SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating 2 types of Idocs

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.




http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bd....


Please check the below blog to get the idea of triggering multiple IDocs.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/12/04/xi-idoc-bundling--the-trick-with-...



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

http://scn.sap.com/people/rajasekhar.reddy14/blog/2011/02/24/multi-mapping-without-bpm-for-idoc-scen...

    or

develop different mapping programs for differentr IDocs and add all different mappings under interface determiantion.



Regards.

Srini.

0 Kudos

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