on 10-02-2009 12:46 AM
Hi,
I am working on Single IDOC to Multiple Files where Multiple files are generated depenign up on segment occurance.
IDOC
--SEGMENT
-
Field1
-
Field2
-
Segment2
-
Field3
-
Field4
Recdord
--Field1
--Field1
--Field1
--Field1
Segment2 is repeating and I need to generate fiels depending on this segment. I also mapped field1 to feild1 and Field2 to Field2 , field3 to Field3 and Field4 to Field4.
Any inputs?
Thanks
Rajeev
if source Structure is
IDOC
--SEGMENT
-----Field1
-----Field2
------Segment2
-------Field3
-------Field4
and target structure is
Record
--Field1
--Field2
--Field3
--Field4
and You want to create as many files as there are Segment2 and you want to repeat Field1 and Field2 in every file.then
In the messages tab(Mapping Editor) change the occurence of the target structure to 0..unbounded
Do the mapping as
Segment2---->Record
field1----------\
segment2-----UseOneAsMany------>field1
field3---------/
field2----------\
segment2-----UseOneAsMany------>field2
field3---------/
In the Interface determination choose Extented and specify the Interface ampping that you have to create for the above message Mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
multimapping and split on adapter engine can fix you case ... check this out: [Multi-Mapping without BPM - Yes, itu2019s possible!|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3115] [original link is broken] [original link is broken] [original link is broken];
/Jakub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
As per you requirement it's look like 1:N mapping.So, Just make your message mapping and Operation mapping as o...unbounded in the signature tab And Map Segment2 with Record node of target structure. Then do the other normal configuration. It will work. Kindly test and let us know.
Thanks and Regards,
Nutan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev
What is the occurrence of each field/node of the below structure
DOC
--SEGMENT
-
Field1
-
Field2
-
Segment2
-
Field3
-
Field4
and i guess the fields in below structure shoudl be sequential (ie 1,2,3,4 rather than 1)
Recdord
--Field1
--Field1
--Field1
--Field1
Since you need to generate one file each (for each segment 2) you need to use multimapping.
Check these links
http://help.sap.com/saphelp_nw04/Helpdata/EN/21/6faf35c2d74295a3cb97f6f3ccf43c/frameset.htm
http://help.sap.com/saphelp_nw04/Helpdata/EN/42/f3b31d48fb1bc8e10000000a11466f/frameset.htm
you have 1:n case here
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make the Message mapping & Operation Mapping Target structure occurance (0.n)...
Map Segment2 node to Record (Target Node).. This shuld take care...
Map rest of the fields frm src to Target as required...
-Siva Maranani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.