Skip to Content
0
Former Member
Nov 15, 2012 at 10:10 AM

BAPI_PRODORD_GET_DETAIL order objects?

1007 Views

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!