Hi Aamir,
Please check the below note from sap note
- Restore Original Parties for Acknowledgments"
- Converting partners in the inbound IDoc adapter:
Converting an IDoc sender partner to an XI sender partner.
Converting an IDoc receiver partner to an XI receiver partner.
The following tasks are performed for each sender and receiver:
- a) Sender port and client => Service without party:
With the help of the IDoc control record data, a service without party is determined using the adapter-specific identifiers.
If the sender port is the same as SAP+SYSID =>
Service with R/3 identification (SYSID+client)
If the sender port differs from SAP+SYSID =>
Service with sender port as a logical system
- b) Converting an IDoc sender partner to an XI sender partner:
If the partner type is 'LS' =>
The XI sender party is empty. => The XI sender is the service without party from a).
If the partner type is not 'LS' =>
Party identifiers are determined according to the following rule:
Agency = service without party from a)
Scheme = 'ALE#' + partner type + partner role (from control record)
Name = IDoc partner number (from control record)
Is the XI party maintained with alternative identifiers?
If the answer is yes, the XI party is copied with the above service.
If the answer is no, the party is copied from the identifiers with the above service.
=> There must be a receiver determination with * as the party.
- c) Converting an IDoc receiver partner to an XI receiver partner:
Here, the logic is similar as for the IDoc sender partner, but the receiver service is left empty.
- 1. Converting partners in the outbound IDoc adapter:
- Converting an XI sender partner to an IDoc sender partner.
- Converting an XI receiver partner to an IDoc receiver partner.
The following information is required for the partner profile:
Receiver agreement => Header mapping &
IDoc channel &
IDoc channel => Identifiers &
Indicator "Copy values from IDoc XML control record".
- See more at: http://www.stechno.net/sap-notes.html?view=sapnote&id=792333#sthash.nHMfGwkJ.dpuf
regards,
Harish