on 12-14-2011 10:07 AM
Hi All,
A segment E1BLINE in the source IDOC can repeat multiple times(0..999) and at the target that many times the record needs to be generated.
In the target record strucutre a field say ABC is mapped to a feild in XYZ in segment E2ES (0..999) .But the test IDOC doesnt have these segment data ,suppose if segmnt E1BLINE repeats 2 times i am getting 2 records in target structure but the field ABC should have blank values in each record as if there is no data in the source.I am unable to get the logic .
Thanks in advance
HI manu,
might be it's helpful for ur mapping:
QUALI1 -> exists -> constant (true) -> equals -> if -> then -> field1 -> cretaeif-> target.
thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Priyanka ,
I cannot use Use one as many becoz i can even get QUALI =100 two times if it comes two times then each corresponding FIELD1 may have different value.
If QUALI comes once then corresponding FIELD1 value shouls be passed to ABC in 1st record and in 2nd record i need a blank to be passed to ABC.
Hi.
try with below one.
QUALI1(ni1)>E2ES(in2)>E2ES(in3)>UseOneAsMany->Target
GreatDay..
Girii
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>but the field ABC should have blank values in each record as if there is no data in the source
Try using mapwithdefault...
E1BLINE--->targetRecordNode
sourceField>mapwithdefault(with blank space)>ABC
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
my actual requirement is as follows
for example:
There are 2 segments LINE Segment E2ES Segment. I need to generate target file records based on LINE SEgmentIn my input data I am getting 2 LINE SEGMENTS so I am generating 2 records in the output file. But some of the fields in target comes from E2ES Segment.
LINE segment 2 times so no of recordsets =2 .(which i am able to generate)
E2ES segment has 4 fields. QUALI1 , FIELD1,QUALI2 , FIELD2
If QUALI1 = 100 , FIELD1--> ABC
If QUALI2 = 200 , FIELD2--> HBY
If QUALI2 = 200 , FIELD2--> HBY
If QUALI2 is used i can easily get 2 HBY fields at target .But how do i get two ABC fields
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.