Skip to Content
0
Former Member
Apr 22, 2010 at 07:38 AM

Dynamic programming by defining one structure

30 Views

Dear all,

I have a problem to define a dynamic programm. Its easyer to show you the coding:

PERFORM my_perform TABLES lt_vbak.
...
PERFORM my_perform TABLES lt_vbap.
...
PERFORM my_perform TABLES lt_bkpf.
...
...
...
FROM my_perform TABLES pt_any_table.

LOOP AT pt_any_table ASSIGNING <fs_any_structure>.

ENDLOOP.

ENDFORM.

My problem is to define <fs_any_structure>. I want to do only one loop for each tables who coming throw the PERFOM.

How can I define the <fs_any_structure> (<fs_any_structure> TYPE ANY???). And its possible to get the structure of the individuell table like this coding?

Thank u very much