on 03-11-2010 7:11 AM
Hi,
Need ur help on below situation.
I have input file structure as
- <G_SPO1>
- <S_PO1>
<D_350>0001</D_350>
<D_330>6</D_330>
<D_355>EA</D_355>
<D_212>151</D_212>
<D_235>VC</D_235>
<D_234>40421-821/1920-02</D_234>
<D_235_2>SK</D_235_2>
<D_234_2>427Y73226</D_234_2>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325940</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325957</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325964</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325971</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325988</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325995</D_127>
</S_REF>
- <S_REF>
<D_128>CR</D_128>
<D_127>WHITEHOUSE,RYAN</D_127>
</S_REF>
</S_PO1>
</G_SPO1>
I need to map D_127 elements to target field.
here i need to check conditions.
IF D_128 = SU then only i need to map D_127 to target field. otherwise ignore that record.
Plzz let me know how would i map thid field to target field.
Thanks,
Singh.
Hi singh,
You can use iWithoutElse
need to map D_127 elements to target field.
here i need to check conditions.
IF D_128 = SU then only i need to map D_127 to target field. otherwise ignore that record.
Plzz let me know how would i map thid field to target field.
You can map If IF D_128 = SU then pass D_127 and mapped to target filed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Satya thanks, for ur reply.
Here i need to check PO1 element also i.e. 001
if i use like the above condition u said
I am getting error as Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Cannot cast 'SU' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method equalsBoolean[SU, SU, com.sap.aii.mappingtool.tf7.rt.Context@c171667]
Plzz clarify y i am getting that error
Thanks,
Singh.
Edited by: vcpsingh on Mar 11, 2010 1:47 PM
- <G_SPO1>
- <S_PO1>
<D_350>0001</D_350>
<D_330>6</D_330>
<D_355>EA</D_355>
<D_212>151</D_212>
<D_235>VC</D_235>
<D_234>40421-821/1920-02</D_234>
<D_235_2>SK</D_235_2>
<D_234_2>427Y73226</D_234_2>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325940</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325957</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325964</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325971</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325988</D_127>
</S_REF>
- <S_REF>
<D_128>SU</D_128>
<D_127>0060325995</D_127>
</S_REF>
- <S_REF>
<D_128>CR</D_128>
<D_127>WHITEHOUSE,RYAN</D_127>
</S_REF>
</S_PO1>
</G_SPO1>
if i used D_128 Context as S_PO1 and
D_127 Context as S_REF then i am getting output as
0060325940
0060325940
0060325940
0060325940
0060325940
0060325940
0060325957
0060325957
Plzzz tell me which context i have to use.
Thanks,
Singh.
Lakshmi,
for PO1 first element is 0001 i need output as
0060325940
0060325957
0060325964
0060325971
0060325988
0060325995
for next PO1 first element is 0002 then i need output as
0070325940
0070325957
0070325964
These below fields are present in input file. the above file i mentioned only for PO1 first element D_350 = 0001.
Presnetly i am geting output as
0060325940
0060325957
0060325964
0060325971
0060325988
0060325995
0070325940
0070325957
0070325964
but i need to differentiate this output as separate based on D_350 = 0001.
finally required output is
if PO1 1st element D-350 = 0001
then output is
0060325940
0060325957
0060325964
0060325971
0060325988
0060325995
if PO1 1st element D_350 = 0002
then
0070325940
0070325957
0070325964
Plzzzz let me know.
Thanks,
Singh.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.