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

Create structure and table for global use

Former Member
0 Likes
790

Hi,

I want to create a structure and then a table type, which has a line type of the previously created structure.

The thing is that after the table is created, I want to use it as a parameter for a function.

Is that a way to insert these data types by API, so they will be exposed for other programs or functions?

Thanks,

Sivan

5 REPLIES 5
Read only

Former Member
0 Likes
745

Hi,

In my opinion if you create a object in Data Dictionary, then it is global to all programs and functions etc. But i dont understand what exactly you want to know.

Regards

Karthik D

Read only

0 Likes
745

Hi,

I want to know how to create these objects using code and not by manual clicking in object navigator.

Thanks,

Sivan

Read only

0 Likes
745

Hi,

You can create and activate structures, tables and table types using the following APIs:

DDIF_TABL_PUT

&

DDIF_TABL_ACTIVATE

.

Hope this helps.

Regards,

Ram

Read only

0 Likes
745

Thanks for the help

One more question regarding this topic. I'm using DDIC_TTYP_PUT\ACTIVATE to create and activate table types.

How can I create a structure, which is a bit different from table. Should I use the FM DDIC_TBL_PUT...?

How can I define that this is a structure and not a table?

Thanks,

Sivan

Read only

0 Likes
745

I can create a structure using RS_DD_STRU_ADD. But Cannot add a description, so I cannot activate it afterwards.

May you help me with:

1) Set the description.

2) Activate the structure.

Thanks,

Sivan