cancel
Showing results for 
Search instead for 
Did you mean: 

How to Handle SAP SUS XML Acknowledgment

Former Member
0 Kudos

Hi folks,

I have a scenario here where the SAP R/3 system sends a Purchase Order document to SAP SUS through a SAP XI Mapping.

After processing the P.O. document, the SAP SUS system, automatically, returns a Acknowledgment message (ns: http://sap.com/xi/XI/Message/30) to SAP XI.

I need to implement a BPM scenario where SAP XI processes this Acknowledgment message and Logs it into my Monitor System (JDBC Adapter). Actually, the SAP XI needs to send to my Monitor System the status (Success or Fail) of the P.O. processing by SAP SUS.

How can I handle this Acknowledgment message with a BPM Scenario? Is it possible?

Best Regards,

Nascimento

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Abhy,

I've tested the scenario that you explained to me, and it really works, but I do need to get the Error Description for the Purchase Order processing by SAP SUS.

Well, the SUS Purchase Order is a predefined mapping in SAP XI. The Purchase Order processed by this mapping is inputed trough a ABAP Proxy in SAP SUS.

Can I customize the SAP SUS abap proxy with the intention to generate a new and complete Ack message? How can I Do it? Trough SPROXY transaction?

Where do I Assign my Message Interface to its correspondent Processing Method? If it is not possible to customize this Method can I associate the Message Interface to another one or activate a BADI?

Best Regards,

Thiago Nascimento

udo_martens
Active Contributor
0 Kudos

Hi Thiago,

yes, your scenario should look like:

R/3 -> XI/BP (start process)

BP -> SAP SUS

SUS -> BP (correlation nessecary)

BP -> JDBC

process ends.

all messages should be asynchronous (good for your performance).

>>>How can I handle this Acknowledgment message with a BPM Scenario?

You have to configure it like every message. May be a sender adapter (depends on kind of adapter), a mapping to the abstr IF (container) and routing to the BP. Plz ask for unknown details.

Regards,

Udo

Former Member
0 Kudos

Hi Thiago,

Currently in BPM you can do this with ASYNC-SYNC Bridge design.

You can not dirrectly access the content of the ACK, however the BPM shows different behaviours based on the ACK status. E.g. if the ACK contains a success message the BPM will continue in its normal process, if the ACK contains a permanent error, it will either stop or go through an exception branch (provided such a branch has been defined). Have a look at the documentation: http://help.sap.com/saphelp_nw04/helpdata/en/43/65ce41ae343e2be10000000a1553f6/content.htm It doesnt"t state the above mentioned behaviour in detail but says that you need to define an exception branch.

The trickiest part is always to find out, when you will get a transient vs. as permanent error ack. If you are using ACKs with Proxies refer also to this link http://help.sap.com/saphelp_nw04/helpdata/en/29/345d3b7c32a527e10000000a114084/content.htm and this http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm

Receiver adapters that run on the Adapter Engine support system acknowledgments if they are requested by the sender. Acknowledgements are triggered when a message is successfully processed by the adapter or if an error occurs while it is being processed. Receiver adapters do not support application acknowledgments. The RNIF and CIDX adapters are exceptions to this rule, since they also support scenario-dependent application acknowledgments. Sender adapters of the Adapter Engine do not request any acknowledgments.

However IDoc adapter is requesting application acks. Therefore you have to disable acks for this scenario using report IDX_NOALE.

Also go through these documents for any further help:

http://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how...

http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm

Also refer the guide: "How To Handle Acknowledgments for IDoc"

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50...

Regards,

Abhy

Message was edited by: Abhy Thomas