Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PRODORD_GET_DETAIL order objects?

Former Member
0 Likes
1,939

Hello guys,

I'm trying to use BAPI_PRODORD_GET_DETAIL to get the BOM.

       Set RfcCallTransaction = Functions.Add("BAPI_PRODORD_GET_DETAIL")
       RfcCallTransaction.exports("number") = "000002614140"

       If RfcCallTransaction.Call = True Then
            Set tblData = RfcCallTransaction.tables("component")
            MsgBox tblData.RowCount
       Else
            MsgBox ("Error")
       End If

The above code is ok and works ...except it returns no values (tblData has 0 rows) even though the order number is ok. I believe that I have to give some input to order_objects parameter and I don't know what? Could you guys please tell me what I have to add in order_objects in order to get the list of components?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
932

Guys,

I found a solution!

In order to select the values from order_objects I have to do something like:

RfcCallTransaction.exports("order_objects").Value(1) = "X"

The above is for header.

1 REPLY 1
Read only

Former Member
933

Guys,

I found a solution!

In order to select the values from order_objects I have to do something like:

RfcCallTransaction.exports("order_objects").Value(1) = "X"

The above is for header.