on 06-04-2013 7:15 AM
Hi,
I have a new requirement for a file to Idoc scenario.
1) In the sender side I have records like that -
Record
Reading1
Value1
Reading2
Value2
Reading3
Value3
where Reading and value are optional ,, but there there will always be value on Reading1 and on Value1 ,,, rest are optional means value may or may not be come.
2 ) This thing have to be mapped on a Idoc whose structure is like that -
IdocHeader
Idoc
Reading
Value
Here multiple Idoc will be created depending on the value of the sender side .
Is there any UDF or something that can be applied here ? I am using 7.3 ... Please help .
Hi Apu,
If i understand you correctly, you are looking out for something like below -
1. 1 IDoc will always be generated as reading 1 and value 1 are mandatory. In case of multiple values, you want multiple IDocs should be generated. means 2 incoming record in source - 2 IDocs.
If this is the case, you have to do multimapping - 1:n. It s easy and you will not require UDF.
Regards
Aashish Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks a lot to you all for the quick response .
The problem is solved by using an UDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't need an UDF , you can directly achevie this by changing the occurance of the IDOC segment (1....unbounded) so it will allow many IDOC segments and you should get your results.
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 refer below link for the same scenario
http://wiki.sdn.sap.com/wiki/display/XI/File+to+Multiple+IDOC+Splitting+without+BPM
https://scn.sap.com/thread/1753742
http://scn.sap.com/docs/DOC-3807
Hope it will helpful..
Regards
Bhargava krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can see michal blog for doing this. Basically you need to export your target idoc as xsd and edit and reimport as explained in this blog. This will return individual idoc for every record in the file.
Also dont forget to rate this blog, if you like it. Also search scn for the same. You will find lots of discussion for the same requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.