cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to trigger a response file from PI, after an IDOC is sent to ECC system?

0 Kudos

Hi Experts,

We have a requirement wherein a file containing multilple invoices is sent to PI. PI should split the file based on invoices and should send one idoc/invoice to ECC. Also, after delivery of each IDOC to ECC, PI has to send a response file back to source system. Please let me know how this can be achieved.

former_member190293
Active Contributor

Hi Poornima!

What do you mean when sayng: "After delivery"? Should message be in "Delivered" state in PI system or anything else?

Regards, Evgeniy.

0 Kudos

Hi Evgeniy,

Yes, PI should send the response file back to source system, only if or after IDOC is delivered to ECC.

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi Poornima!

So, if we say "Delivered to receiver system" (not "Posted in receiver system"):

Since you use split mapping, you could use SOAP loopback scenario to split your source message in the first ICo, and in the second ICo you add another interface to your configuration, next to the main interface, and use "Maintain sequence at runtime" option for Interface Determination step. For second interface you define file receiver channel to store confirmation file. Thus, only when the first interface delivery to receiver is completed without errors, the second interface is triggered, which places the response file to desired location.

Regards, Evgeniy.

0 Kudos

Hi Evgeniy,

Thank you very much. I incorporated this approach in interface design and it's working as expected.

🙂

Regards,

Poornima

Answers (1)

Answers (1)

sugata_bagchi2
Active Contributor
0 Kudos

Hi Poornima,

You can use AIF (may be with a separate license cost from SAP) in ECC to trigger an outbound proxy, once the IDOc is posted. And then PI can map that Proxy to File using a separate ICO/ scenario.

http://scn.sap.com/docs/DOC-34037

http://scn.sap.com/docs/DOC-45728

You can also try with user exits / BADIs.

Thanks

Sugata