Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Populating data into dynamic internal table

$
0
0

Hi Experts,

 

I am facing an issue in populating the data to dynamic internal table. Please find the below code.

 

CALL METHOD cl_alv_table_create=>create_dynamic_table

           EXPORTING

             it_fieldcatalog = tfcat1

           IMPORTING

             ep_table        = lt_int_tab.

 

         DATA : l_str TYPE REF TO data,

                l_line TYPE REF TO data.

         FIELD-SYMBOLS : <fs_intab> TYPE STANDARD TABLE,

                         <l_fs1> TYPE any,

                         <l_fs2> TYPE any.

 

         ASSIGN lt_int_tab->* TO <fs_intab>.

         CREATE DATA l_str LIKE LINE OF <fs_intab>.

         ASSIGN l_str->* TO <l_fs1>.

 

         LOOP AT t_vbap INTO w_vbap.

           "stucked here

         ENDLOOP.


Here T_VBAP will have data. i want to move the data from this table to the dynamic internal table <fs_intab>. Please help me out. Even i tried using assigning components statement. Can any one please let me know the approach to fill this dynamic table. Here i have a field catalog table TFCAT1 for which i should get the data from T_VBAP.


Thanks in advance.


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>