‎2009 May 11 2:23 PM
Hello Everyone,
I am using BAPI_INCOMINGINVOICE_CREATE to generate invoice for a PO that is being created using BAPI_PO_CREATE1. But in the invoice BAPI it has few mandatory fields in ITEM DATA out of which Ref_Doc is the one. This refers to XBLNR. But their is not material document created during PO creation. So can anyone help me in finding the exact table and field to populate REF_DOC.
Thanks & Regards,
Sumalatha N
‎2009 May 11 3:03 PM
Hi,
Usually there should be a reference for the invoice that is created..In your case this will be the PO number that is created using the BAPI_PO_CREATE1.
Hence by seeing the invoice data, it can be know that the PO is being invoiced...Means some reference
Hope this helps
Regards
Shiva
‎2009 May 12 5:25 AM
Hi,
I will be giving the PO as reference number, but in the item data there is one field with name REF_DOC which refers to LFBNR "Document No. of a reference Document". Can you please tell me which table field it refers to.
Thanks,
Sumalatha.
‎2009 May 12 7:45 AM