Skip to Content
0
Former Member
Jun 09, 2010 at 03:17 PM

How to get the details of MIGO num/MIGO Doc year and Ref MIGO Doc item num

428 Views

Hi,

Currently I am working on a requirement to post an Incoming Invoice and using the BAPI 'BAPI_INCOMINGINVOICE_CREATE' to upload the data into SAP.

In the Input file(to be uploaded to SAP) I was not getting details like REF_DOC(Document No. of a Reference Document), REF_DOC_YEAR(Document No. of a Reference Document) and REF_DOC_IT(Item of a Reference Document) and so I need to derive these 3 fields and feed into the interface parameter 'ITEMDATA' of the BAPI.

If I do not give any input values to these 3 fields, BAPI was throwing a message saying that, the mandatory fields were missing in the structure 'ITEMDATA'. So I need to pass these 3 fields mandatorily.

I have in the input fields PO Number and PO item( only from these 2 fields ) and I need to get the above fields.

So please provide me inputs as how I can get these 3 fields from the PO number and PO item.

Thanks for the help in advance.

Regards,

Vishnu.