Dear Friends,
I need your help on the following scenario.
Requirement:
we are going to build an interface for invioce postings in SAP using Tcode FB60(Invioce with out PO) and MIRO(with PO).
Data has to be picked up by the interface from a staging server where each invoice data is available in .dat format.
Data for posting is from the .dat file. We are going to store that in Z tables and will use for posting.
But our additional requirement is each invoice will have a PDF document(supporting document for that invoice), it is not the invoice as such, but an additional document.
While doing the posting in SAP thru FB60/MIRO transaction, the PDF file corresponding to this invoice has to be attached with this posting.
Problem Areas:
We know that an attachment can be uploaded thru transaction in FB03 after the posting is done using Object Services.
1. But our concern is how can they be attached programatically?
2. Can't we attach the file while doing Posting either thru FB60 or MIRO?
3. How to extract those PDF files placed in another server and attach during the background job?
Any help/inputs on this is highly appreciated.
SAP Version: 4.7 Enterprise edition
Note: Content of the PDF attachment is not the data for invoice posting, no need to read its contents, it only has to be attached with the posting.
Regards,
Simha