|
|
vb script for bapi SAP.BAPI.1
This archived discussion is "read only".
» cetin - vd script syntax Dim boOrderDim oPartners Dim oHeaderIn Dim oItemsIn Dim oCommit Dim oReturn Dim oBapiService Dim bResult set boOrder = oBAPI.GetSAPObject("SalesOrder")
oHeaderIn.Value("DOC_TYPE") = "ZA"
above code runs in VB but does not run in VB script. -- posted by cetin » sswie - Re: vd script syntax Hi cetin,I am new to the SAP VBScript role with a lot of experience in vbscript and asp but little knowledge of SAP interfaces. I am looking for assistance/references to do the following: 1. How in vbscript I can call the contents of a table in SAP (e.g. to act as a lookup in an asp page) 2. How can I post transactions back into SAP using the BAPI and how do I know which BAPI to use? For example, in your posting you obviously know the fields and the code to execute where do I find this info? Appreciate any help you can give. Regards -- posted by sswie » nickfry - Re: Re: vd script syntax In response to Re: vd script syntax posted by sswie:Hi Andrew Were you able to find any resources using BAPI from VB? I am currently trying to create some applications that will post invoices via BAPI but can find very little help on the subject. Any pointers that you can give will be most welcome. Cheers -- posted by nickfry » mk496 - Re: vd script syntax In response to vd script syntax posted by cetin:Hi, boOrder.CreateFromDat1 OrderHeaderIn:=OrderItemsIn , _ I have used method call bat in such a format: boOrder.CreateFromDat1 OrderHeaderIn OrderPartners Set OrderItemsIn = OrderHeaderIn (maybe with comas in first line, I tested with other BAPI, with one parameter and it works). I dont know if You have in other places bugs, but in this I am sure. You must test. Regards -- posted by mk496 » mpshankar - Error in BAPI in SAP SD Module Dim bapictrl As ObjectDim boOrder As Object Dim oPartner As Object Dim oItemin As Object Dim oHeader As Object Dim oreturn As Object Dim oConnection As Object Private Sub Command1_Click() oPartner.rows.Add
orderitemsin:=oItemin, orderpartners:=oPartner, soldtoparty:=oSoldto, shiptoparty:=oShipto, return:=oreturn Private Sub Form_Load() Set boOrder = bapictrl.getsapobject("SalesOrder") In the above program, i got the error message like "Please enter ship to party or sold to party" Please help me to overcome this problem Thanks in Advance -- posted by mpshankar
Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion. |
|
|
|
|
|
|
|