11-06-2015 2:57 PM
Hi, forum. I have a requirement of sending an WPUBON idoc for certain type of sales movement and a WPUUMS idoc for the other type.
It is possible to achieve something like that?
Thanks in advance,
Reynaldo
11-06-2015 3:48 PM
Hi Reynaldo,
Yes it is possible. By following the below tip we can achieve this one.
I would suggest to use message code (EDIDC-MESCOD) and/or message function (EDIDC-MESFCT) to store
application server data and let SAP XI perform the segment filtering based on these information. For example,
message function = '001' for application server 'ABC' and '002' for application server 'XYZ'.
Scenario:1
-------------------------------
Step 1:create a user defined function which will split the IDOC node on the basis of this site code and you can map one message to multiple IDOCs.
Please check the below blog to get the idea of triggering multiple IDocs.
Scenario 2:
-----------------------
1)If you wanna generate Multiple same IDoc means then change IDoc segment occurance to 1 to unbounded build a mapping accopridnigly.
2)If you wanna generate miltiple different IDocs then you have two options
refer below blog
or
develop different mapping programs for differentr IDocs and add all different mappings under interface determiantion.
Regards.
Srini.
11-06-2015 4:03 PM
Hi, i think you didn't understand what i have to do.
For the only partner that i have, i received 2 types of sales regarding a customer enhancement. One of this sales if some rule is completed a WPUBON has to be created. Otherwise, a WPUUMS has to be created and acumulated in order to sent it later for SAP Retail.
I wrote the question with an error, there are 2 types of transactions regarding sales, but one transaction has to be WPUBON idoc, the other one a WPUUMS.
Thanks in advance,
Reynaldo