cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Object directory entry

Former Member
0 Kudos

Hi all,

I have to create objects dictionary from a program. I have found a very interesting function group that do almost everything but one thing:

The object directory entry

.
Then my question is quite obvious: How can I can create an object entry for an object dictionary from a Z-Program?

regards,

David Rodríguez

pd: uppps!! I forget something really important:

the function group is SDIF

Accepted Solutions (0)

Answers (1)

Answers (1)

franois_henrotte
Active Contributor
0 Kudos

The smarter way:

call function module TR_EXT_CREATE_REQUEST to create the request and get the request number in export parameter ES_REQ_ID

IV_REQUEST_TYPE: K for workbench, W for customizing, T for copies

call function module TR_EXT_INSERT_IN_REQUEST with IV_REQ_ID = request number and IT_OBJECTS filled with values to put in E071 like this:

PGMID = 'R3TR'

OBJECT = 'TABU' for tables

OBJ_NAME = tabname

You should be able to save your table in object directory while it is contained in a transport request

franois_henrotte
Active Contributor
0 Kudos

Correction: table definition is included with

OBJECT = 'TABL'

OBJ_NAME = tabname

in fact the object corresponds to the DDIF_<type>_* of function module in SDIF (means that you have to build table with records for data elements and so on...)

if you want to include table contents in the transport request then you have to put:

PGMID = 'R3TR'

OBJECT = 'TABU'

OBJ_NAME = tabname/tabkey

so that all records having tabkey as key are taken in TR, tabkey = concatenate key fields including client but not more than 30 characters. If more than 30 characters, then 29 characters and *