Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converting Dynamic Internal table to String Internal table table using ABAP 7.4

0 Likes
1,811

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

2 REPLIES 2
Read only

MateuszAdamus
Active Contributor
0 Likes
1,388

Hello muthupandi.m

Please check method FILL_CONTAINER_C of class CL_ABAP_CONTAINER_UTILITIES.

Kind regards,
Mateusz
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,388

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.