on 10-02-2012 8:19 PM
Dear all,
I have a 2 source fields which I am concatenating and mapping to target field. If there are more than one source field in the same line item then I need to pass the second value in the queue to the second constant value in target.
For eg.
E1EDL20 -------->E1EDLD01
src1 + src1 ---------> Val1
src2 + src2 --------->Val2
Please advice.
Thanks,
Teresa
Hi,
U mean that one source filed but having more than one occurrence?
If yes then u can use copy value for the same. Check Mark's reply:
http://scn.sap.com/message/10796530#10796530
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Thanks for the reply this works in case where I have one line item and 3 source field values.
What happens when I have two line items ? The 3 values of the second line item should go into 3 values of the second target line item segment .
Eg.
lineitem1 ---> <Target segment>
field1 target1
field2 target2
field3 target3
Line item2 -------- > <target segment>
field1 target1
field2 target2
field3 target3
Thanks,
Teresa
Am I missing something? If you dont want concat operation and map the respective line item source fields to the respective target fields then right click on the <target segment > of the target message structure and choose duplicate subtree. The node for the second target fields will be created and you need to simply map the line item2 fields to them. Is that you want?
I do want concat operation. I do not want to duplicate target segment and target fields. For each line item it should produce a corresponding target segment and target fields. The copy value works well if there is one line item .
When there are two line items it should produce a second target segment with the second set of target values for line item2.
You can create UDF and choose cache as context. Please see sarvesh reply on this thread. This could be very similar to your need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.