on 04-02-2009 10:05 AM
Hi Experts,
I have a requirement. My secnario is file to IDOC. I have three fields in each record of source file like below.
Emp1, Name1, Sal1;
Emp2, Name2, Sal2;
Emp3, Name3, Sal3;
My requirement is, there is one segment (E1EDK14) in IDoc With Cardinlay 0..99. In that Segment there are two fields with cardinaliy 0..1 like Qualf and orgid and as usal one mandatory SEGMENT attribute.
I need to map EMP1 and Constant (001) to the segments (E1EDK14) Qualf adn Orgid and Name1, Constant (002) to the same segment Qualf and Orgid and Sal1 and constant(003) to same segment Qualf and Orgid.
Like wise for second row, i need to repeet the same segment.
In general, i need to repeet same segment along with its fileds for each value in the row.
Kinldy suggest some sloution.
Thnx
Subbu
have u tried this using Duplicating the Field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rama,
suppose you have structure like
source_MT(message type)
records 0..un
+EMP
+Name
+SAL
then MAP like this ;
records( change the context to the source_MT)----
>E1EDK14 ( this will repeat E1EDK14 according to the number of records)
then EMP-->qualf like dat..
see if it works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can duplicate the node as long as you dont duplicate it more than the max occurances
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right click on E1EDK14 and select Duplicate Subtree for creating duplicate nodes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As Ritu said, In your target message type in Message Mapping, Right Click on E1EDK14 and chose Duplicate Subtree.
Then map a constant for the E1EDK14 node and SEGMENT attribute.
Map a constant 001 in the first occurance of QUALF in E1EDK14 and EMP1 field to the ORGID
similarly do the same for the next two occurances of E1EDK14
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.