on 12-30-2009 9:37 AM
Hello,
We are in PI7.1. The requirement is 1:N mapping the file to IDoc ACC_DOCUMENT01. Before calling the Idoc we need to check the Duplicate Invoice BAPI, if the bapi return error code "11" calling Idoc should be skipped. Could you suggest the design for this requirement in BPM. We would like to collect all the messages which returned "11" to dump into a file.
I'm new to PI...any help would be appreciated. I started something like this...but, condition is not working to filter out the messages.
1. receive the file.
2. start the block
2. transform the file to Bapi (1:N)
3. transform the file to Idoc (1:N)
4. check the message exception.
4. cancel the process.
5.end the block
6. start the for block.
7. made the sync call to BAPI.
8. check the response error code is "11".
9 if yes, store the duplicate doc req interface into the container.
10.end the for block.
12. start the for block.
13. check in the switch condition Idoc belnr is the same as container reponse error code 11 belnr. This step is not working.
14 otherwise call the Idoc.
15.end the for block.
16. transform the container req to file.
Thanks,
Santha Kumari
You might have to insert another For Block in the final comparison section. Because you have to check the current belnr with all the error returned belnrs. Then only you would know if you have to send the idoc or stop it.
VJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.