on 05-27-2015 3:06 PM
hello,
i need to map one Position field into one Header field.
with n-records on the left site it always maps the position field of record 1 into all n-idoc Header fields.
<record1>
<headerfield1>1</headerfield1>
<position>
<positionsfield1>1</positionsfield1>
</position>
<position>
<positionsfield1>1</positionsfield1>
</position>
<position>
<positionsfield1>1</positionsfield1>
</position>
</record1>
<record2>
<headerfield1>2</headerfield1>
<position>
<positionsfield1>2</positionsfield1>
</position>
<position>
<positionsfield1>2</positionsfield1>
</position>
<position>
<positionsfield1>2</positionsfield1>
</position>
</record1>
Problem exists with positionfield1. we Need to map that field into a Header idoc field. so a simple n...to 1 mapping.
every record builds one idoc. actually the second idoc is filled with positionfield1 out of record1.
<idoc1>
<headerfield1>1</headerfield1>
<headerfield2>1</headerfield1>
</idoc1>
<idoc1>
<headerfield1>2</headerfield1>
<headerfield2>1</headerfield2>
</idoc2>
any idea?
thanks
Hi Simon,
I think if you want to populate one value depending of the context you can use the function useOneAsMany.
Check these links:
Explain node functions - Process Integration - SCN Wiki
http://saprainbow.com/sap-pi-mapping/useoneasmany-explained-in-easy-example/
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
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.