BAPI / Function Module to Retrieve AR Customer Invoices like FB03
Im writing some code to post and retrieve AR Customer Invoices. It looks like BAPI_ACC_DOCUMENT_POST is the way to create the invoice (any way to park it?) but Ive only found BAPI_AR_ACC_GETOPENITEMS to retrieve invoice data which does not seem like what I really want. I do want line item details but only for the invoice Im after and it may not be open any longer. T-code FB03 is the GUI way. How do I get the invoice data throug a remote enabled BAPI or FM?
Thanks for any help,
What you really need to do?
The BAPI BAPI_ACC_DOCUMENT_POST should return the number of the document is created, so u can do a select on BKPF and BSEG table in order to return the informations.