Dear All,
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.
ENDLOOP.
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.
Thank You
Regards
Tutorials
- ABAP Definition & Full Form
- SAP ABAP Certification Cost
- SAP ABAP Course Detail & Scope
- ABAP Interview Questions
- ABAP Syntax
- ABAP Date & Time
- ABAP Internal Tables
- ABAP Table Control
- ABAP Data Dictionary
- ABAP Views Types
- ABAP Loop At Where
- ABAP Module Pool Program
- ABAP Search Help
- ABAP Trigger Event
- ABAP Native vs. Open SQL
- ABAP Function Modules
- ABAP OOPs
- ABAP Data Types and Objects
- ABAP Classes
- ABAP Smartforms
- ABAP Sapscript Layout
- ABAP BADI Step by Step
- ABAP BAPI List
- ABAP WEB DYNPRO
- ABAP ALV
- ABAP Core Data Service
- ABAP Trim or Condense Spaces
- ABAP Convert Currency Format
- ABAP Delete Leading Zeros
- ABAP Use Search Help in Selection Screen
- SAP Tcode SE16 vs SE16N
Get solutions from our experts!