Skip to Content
0
Nov 26, 2009 at 09:42 AM

Creating a database table dynamically with different structure

232 Views

I want to create a database table dynamically with the content of table details stored in an internal table.

Ex:

ZTAB1 MANDT

ZTAB1 F1

ZTAB1 F2

ZTAB1 F3

ZTAB1 F4

ZTAB2 MANDT

ZTAB2 F1

ZTAB2 F2

ZTAB2 F3

The above structure will be dynamic, it can be of any structure. so, i need to create these ztables i.e. ztab1,ztab2.

For this, i am using fm:DDIF_TABL_PUT but how can i identify that the first set of fields in ztab1 should be created.

Requesting for a prompt solution.

Thanks in advance.

Rohith