Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating database tables dynamically

Former Member
0 Likes
1,947

Hi All,

         I was wondering if there is a way to create database tables through BAPI or FM's. More on the similar ground on proxy generated structures,they are created dynamically. Can we in the similar way create database tables dynamically through code?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,185

We are just trying to automate a process of creating tables,rather automating of all the data dictionary objects. We started with tables,seems lot of trouble involved(though will give it a try),what else of the data dictionary part can be controlled via code?

6 REPLIES 6
Read only

Former Member
0 Likes
1,185

Hi Amit

I must admit I've never tried anything like this before, but I guess you could create an RFC enabled FM and do a BDC recording to achieve this...I take it you have taken all the risks involved into account.

As far as I know I don't think there is a standard FM to create DB tables.

Hope this Helps

Regards

Vic

Read only

Former Member
0 Likes
1,185

You could take a look at FM DD_CREATE_TABLE.

Please check on the same here.

http://scn.sap.com/thread/261676

Also you can use Native SQL to create table, but this will not be available in Data dictionary.

Thanks,

Shambu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,185

Perform some search at scn on DD_CREATE_TABLE or DDIF_TABL_PUT / DDIF_TABL_ACTIVATE.

(But first ask the question to the managers of the database.)

Also those are internal not released FM, the "official" way to table creation is transaction SE11 (Note 618242 - Creating / changing database table in ABAP Dictionary)

Regards,

Raymond

Read only

Former Member
0 Likes
1,185

Search in SCN forums you will get it

Read only

ThomasZloch
Active Contributor
0 Likes
1,185

SAPLink uses DDIF_TABL_PUT (internal use only, no surprise) to create DB Tables. However the new table would still need to be assigned to a package other than $TMP, possibly via TR_TADIR_INTERFACE, activated and inserted into a transport request..

Thomas

Read only

Former Member
0 Likes
1,186

We are just trying to automate a process of creating tables,rather automating of all the data dictionary objects. We started with tables,seems lot of trouble involved(though will give it a try),what else of the data dictionary part can be controlled via code?