on 12-12-2012 8:06 AM
Hello,
We have several interfaces in PI that create finance Idocs from files. These have worked well although recently there was a problem and it was suggested that we could use BAPI's, i.e. BAPI_ACC_DOCUMENT_POST, to create invoice documents as this would allow for the data to be validated.
I thought that I might call BAPI_ACC_DOCUMENT_CHECK first and route message accordingly. If the validation check is successful I would send the message to BAPI_ACC_DOCUMENT_POST, otherwise notify the user who submitted the file.
Does anyone have any comments on which approach we should be using? I appreciate that we will have to decide where data errors should be handled, i.e. by resubmitting a file or by Idocs being edited in ECC, but I am more interested for the moment in the technical implementation details.
I understand that I can create a service interface from a BAPI in PI. However, it looks like the BAPI I mentioned creates one document at a time. Is it possible to use the BAPI to create multiple invoices from one message in PI without separating the initial file into single invoices?
I hope this is the right forum. I wasn't sure whether to post this in a finance group or PI but decided it was slightly more of a PI question.
Kind regards
Steve
i would put a wrapper around the bapi and loop the documents in.
then you can call the CHECK and catch and log any errors and send a mail notification with reasons for failure. and then process in successful messages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.