on 07-19-2011 7:28 AM
Hi,
The mapping requirement that I am doing is
Source field:E1EDP05:sourcefield
Target field:targetfield
Mapping requirement:Take sourcefield from first E1EDP05 segment
Can you please help me?
Thanks in advance
Hi,
You can use standard function copyvalue
You can use CopyValue() to copy the value of a position in the source structure and assign it to a target field
see this link for an perfect example
http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for your replies.
The node E1EDP05 can repeat for n number of times and the condition is that the value of the sourcefield should be taken from the first occurrence of the node E1EDP05 and not the first occurrence of sourcefield.
As per your replies it should be
sourcefieldcopyvalue(0)-mapwithdefault--targetfield
and the context of the sourcefield should be E1EDP05,right?
Will this work for the mapping condition?
Please help me.
Thanks in advance
Hi,
Use source > ( raise the context to the level below which you expect the value) CollapseContext>SplitByValue-->Target.
The above mapping will give you the one output Node/Field if you have multiple E1EDP05's.
If you raise the source cotext to E1EDP01 for all lineitems from the source - one target Node/Field will be created for each Linetiem.
Cheers,
Sunil.
Hi ,
Thanks for your replies.
Also,one more thing,the sourcefield from the first occurrence of the node should be taken.
sourcefield--removecontexts--copyvalue(0)---mapwithdefault--targetfield
After that the context of the sourcefield should be IDOC LEVEL or E1EDP05?
Please help me.
Thanks in advance
Edited by: Shweta Kullkarni on Jul 19, 2011 10:19 AM
Hi Debashish,
Thanks for the reply.
The mapping should be like this
sourcefieldremovecontexts(no need to set the context of sourcefield to IDOC level)copyvalue(0)-mapwithdefaulttargetfield
or
sourcefield(need to set the context of sourcefield to IDOC level)--copyvalue(0)-mapwithdefault--targetfield
right?
Thanks in advance
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution already provided by above poster.
Edited by: Mark Dihiansan on Jul 19, 2011 8:32 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.