I have to change the field name dynamically in the loop. Database Name is PA9002 having fields ZFAMSA1, ZFAMSA2, ZFAMSA3 up to ZFAMSA10. I want to pass the data to these fields in loop and update.
Following is my Code.
LOOP AT GT_PA0021 INTO GS_PA0021
MOVE GA_PA0021-SUBTY TO P9002-FAMSA1.
In above code I have to change the Field name in each loop pass that P9002-FAMSA1, then in next loop P9002-FAMSA2 then next loop pass P9002-FAMSA3. So please suggest me how to change the field name dynamically in Loop.
Waiting for reply.
SAP ABAP | Hyderabad |
Exp :1 - 3 years | City : Hyderabad
ABAP HANA Consultant Job | 5 - 8 yrs | Bengaluru | SAP India
Exp :3 - 5 years | City : Bangalore
SAP ABAP HR Certified Consultant
Exp :2 - 15 years | City : Delhi
SAP ISU EDM Consultant
Exp :5 - 15 years | City : Bangalore
Exp :2 - 7 years | City : Delhi