‎2021 Feb 01 4:16 PM
I have to create common logic for converting dynamic internal table(No of columns can be vary) to String internal table.

Note : No.of Input Columns can be change
Can any one please suggest idea to achieve the above requirement.
Thanks in Advance,
MMP
‎2021 Feb 01 4:21 PM
Hello muthupandi.m
Please check method FILL_CONTAINER_C of class CL_ABAP_CONTAINER_UTILITIES.
Kind regards,‎2021 Feb 01 6:49 PM
It has been asked hundreds of times. To read all the components of any structure, look at the ABAP documentation of ASSIGN COMPONENT:
FIELD-SYMBOLS <line> TYPE any.
FIELD-SYMBOLS <component> TYPE any.
LOOP AT itab ASSIGNING <line>.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE <line> TO <component>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
ENDLOOP.