cancel
Showing results for 
Search instead for 
Did you mean: 

Pls suggest the BPM design .

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks for the reply. I changed the design a little bit that took care of the problem.

Answers (0)