Skip to Content
0
Jun 05, 2009 at 05:42 AM

Get Fields of internal table

37 Views

Hi experts,

I have a small problem:

I call form this way:

PERFORM export_data USING 'T_WARE'
                          gt_ware
                          gs_ware
                 CHANGING gt_exp_ware.

The Form looks like this

FORM export_data USING struktur TYPE string
                       tabname  TYPE STANDARD TABLE
                       zeile    TYPE any
              CHANGING exp_table TYPE STANDARD TABLE.

Now I need a variant of the same type as gt_exp_ware (which is this type: DATA: gt_exp_ware TYPE TABLE OF char100).

I just need a variant of type char100. How do I get this type in my perform?

I tried

  ref_table  ?= cl_abap_tabledescr=>describe_by_name( exp_table )...

Nothing is correct.