10-15-2007 3:55 PM
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,
Karl
10-15-2007 4:03 PM
Hi,
Please try this BAPI or FM.
BAPI_ACC_DOCUMENT_DISPLAY
FI_DOCUMENT_LIST_DISPLAY
Regards,
Ferry Lianto
10-15-2007 3:58 PM
10-15-2007 4:03 PM
Hi,
Please try this BAPI or FM.
BAPI_ACC_DOCUMENT_DISPLAY
FI_DOCUMENT_LIST_DISPLAY
Regards,
Ferry Lianto
10-15-2007 4:14 PM
Thanks for your reply Ferry! I looked at BAPI_ACC_DOCUMENT_DISPLAY and FI_DOCUMENT_LIST_DISPLAY but I want to retrieve the data programmatically so I can evaluate the information in code instead of displaying it. There may not be SAPGUI where the program is being run.
10-15-2007 4:21 PM
Hi Karl
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.
Max
10-15-2007 5:03 PM
Ferry: Thanks again for the follow-up. BAPI_ACC_DOCUMENT_CHECK will verify data before a post is attempted but I do not think it will retrieve information on a document.
Max: I want to retrieve line item detail of a Customer Invoice so I can compare the data against a remittance for example. I believe RFC_READ_TABLE on BKPF and BSEG is the way to go. I was hoping that it was nicely wrapped up in a BAPI or FM but this will work. Thanks!
10-15-2007 5:10 PM
Hi,
fm RFC_READ_TABLE have a limitation of length. The output length is restrictied to 512.
a®
10-15-2007 4:20 PM
Hi,
Please check this BAPI BAPI_ACC_DOCUMENT_CHECK.
Regards,
Ferry Lianto