Dear Experts,
Requirement:
Table 1 : T_CHARDATA
Table 2 : T_RETURN
Input :
See the source xml for example it contains 2 tables in SAP BAPI
T_CHARDATA and T_RETURN
for each 'item' of T_RETURN,T_CHARDATA will have maximum of 35 rows.
in example I have given 3 items of T_CHARDATA to one 'item' of T_RETURN
and observe that the MATNR of T_RETURN is equal to MATNR of T_CHARDATA for 3 items.
File struture:
Output :
will contain all possible 35 items in target XSD.
in xml i have not mentioned all 35 for understanding purpose.
Mapping:
mapping needs to be done to all 35 fields in target side.
Logic:
step1: compare the MATNR of T_RETURN and MATNR of T_CHARDATA
step2: if both MATNR are equal, compare CHAR_NAME in T_CHARDATA with constant say 'LEGAL_DEMANDS'.
step3: if CHAR_NAME is equal to constant we maintain, then pass the CHAR_VALUE as output to LEGAL_DEMANDS field.
step4: we have to send 35 CHAR_NAME and CHAR_VALUE combinations to 35 fields in target side
Note:1. for all 35 fields in target xsd we need to do mapping with constant .
2.contant is the name of target field.
3.CHAR_NAME of T_CHARDATA will get 35 target field names.
4. CHAR_VALUE of T_CHARDATA will get values corresponding to CHAR_NAME values.
5.Multiple materials will come as input.
Please let me know if you get any idea on this requirement.
Kindly help on this Requirement friends it is very urgent to me, Please help me.
Thanks and Regards,
T.S.