cancel
Showing results for 
Search instead for 
Did you mean: 

Using Structure in VBScript

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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