on 01-05-2007 9:47 PM
I know how to get vbscript to do the createobject on the various sap objects to get connected, call the bapi, and use the tables. I do not know how to use an SAP structure such as the BAPISDHD1 which contains sales_org, req_date_h, purch_date, name, telephone, dlv_block, bill_block, purch_no_c, and ship_cond. Again, not a table, but an SAP structure.
Thanks.
Ray
The createstructure method does not associate the data to the BAPI. So, I had to use the
Dim structure_name ' as Object
Set structure_name = BAPI.Exports("STRUCTURE_NAME")
instead. Then, all the structure methods work on the newly created object and the BAPI "sees" the data in the structure.
Ray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the following web site of great use.
<a href="http://sapass.metro.client.jp/Sap_Active_X/CreateStructure1.htm">Create Structure Example 1</a>
<a href="http://sapass.metro.client.jp/Sap_Active_X/CreateStructure2.htm">Create Structure Example 2</a>
<a href="http://sapass.metro.client.jp/Sap_Active_X/index.htm">Various Active X VBScript Examples</a>
Ray
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.