‎2007 Mar 09 7:26 PM
Hello-
This is my first question. Thanks for your help.
I am writing an interface that uses an inbound RFC call from EPIC guns. They will be sending me either a PO or a ASN as goods are received. I am gathering the required data and then calling BAPI_GOODSMVT_CREATE to create the goods movement. I will be passed 1 PO at a time and also it should only be one PO line item.
BAPI_GOODSMVT_CREATE returns the:
materialdocument[MBLNR] and
matdocumentyear{MJAHR]
I am then needing to go to QALS and getting the inspection lot, then I'm taking that inspection lot number and doing a BDC of QA11 to post 'Confirm receipt of certificate', because posting via the BADI the status of the inspection lot is missing the certificate.
The BADI does not return the Material Document Item[ZEILE] that was updated, and to go to QALS with INDEX H I need:
MANDT
MBLNR
MJAHR
ZEILE
And I'm lacking ZEILE, anyway you can see to get around this? I will post rep points for help. Thanks!
‎2007 Mar 09 7:45 PM
Hi,
Please note that if they send you 1 PO it can have many items. Once you pass these items through the tables interface "GOODSMVT_ITEM" and create the Material document I guess the item numbers can be passed in the interface "GOODSMVT_SERIALNUMBER" or it will return the item numbers. I hope you can use them for your further coding of BDC.
Please go through the documentation of the BAPI once to get a clear idea.
Hope this helps,
Sudhi