on 04-04-2013 6:51 AM
Dear All,
I have a requirement to generate multiple idocs depending on the SiteCode of source file.
My scenario is File to IDoc inbound scenario..
eg: file format will be like this
C001|hdfc|20130404|GEN|1000
C001|hdfc|20130404|GEN|1000
C002|icici|20130404|GEN|1000
C002|icici|20130404|GEN|1000
C003|axis|20130404|GEN|1000
C003|axis|20130404|GEN|1000
I have to generate the 3 idocs depending on the site code C00x..first column is SiteCode
all c001 come under one idoc and
all c002 come under second idoc and
all c003 details come under third idoc.
How to achieve this task , any idea please let me know.
Regards,
Aravind
You wanna generate different IDocs or same IDocs ?
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.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aravind,
Please check the below blog to get the idea of triggering multiple IDocs.
Rest you have to handle in your message mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can do it easily as per the below thread. Map the IDoc node to the one whose occurrence will decide the no. of IDoc's:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Change the ocurrence of the IDoc to 1- unbounded
map the ID field as ID - Remove context - Split by value ( value change ) - IDoc root node
http://scn.sap.com/thread/1475576
Check the above discussion
Hope this helps
Ninad Sane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
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 (using the trick with IDOC occurance change from my blog)
it's as simple as that
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.