Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to Create Dynamic Itab.

$
0
0

Hi Experts,

 

I want to create Multiple itabs based on User Selection 

 

TYPES : BEGIN OF ty_mara,

              matnr TYPE mara-matnr,

              END OF ty_mara.

DATA : lr_data TYPE REF TO data,

           lv_str(20TYPE c.

 

PARAMETERS : p_num TYPE n.     

FIELD-SYMBOLS : <lt_mara> TYPE STANDARD TABLE,

                             <fs> TYPE any.

 

CREATE DATA lr_data  TYPE STANDARD TABLE OF ty_mara.

ASSIGN lr_data->* TO <lt_mara>.

 

DO p_num TIMES.

   CONCATENATE '<lt_mara' p_num '>' INTO lv_str.

   ASSIGN lr_data->* to (lv_str)

ENDDO.

 

But is Showing an error that lv_str is Unknown . How to Create Multiple Itabs Based on User Selection .

Please Provide if there is any alternative way.

 

 

 

Thanks & Regards,

Raghunadh.K


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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