on 02-08-2006 9:50 AM
Hi everybody,
does any one of u know a FM which append structures of table (to add the key fields and so on) in ABAP dictionary.
The FM DDIF_TABL_PUT is only used to write a new table and I don't want to call this FM twice to realize my application.
Thanks in advance!
Liying
check out this FM
DB_ADD_TABLE_FIELDS
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
I got a runtime error:Perform_NOT_FOUND
EXCEPTION:CX_SY_DYN_CALL_ILLEGAL_FORM
following is my codes:
DATA ATA DDFIELDS LIKE DDFIELD OCCURS 2 WITH HEADER LINE.
DATA NAME LIKE DD02L-TABNAME.
DDFIELDS-FIELDNAME = 'F3'.
DDFIELDS-POSITION = '3'.
DDFIELDS-KEYFLAG = 'X'.
DDFIELDS-DATATYPE = 'INT4'.
APPEND DDFIELDS.
DDFIELDS-FIELDNAME = 'F4'.
DDFIELDS-POSITION = '4'.
DDFIELDS-KEYFLAG = ''.
DDFIELDS-DATATYPE = 'INT4'.
APPEND DDFIELDS.
NAME = 'ZTEST'.
CALL FUNCTION 'DB_ADD_TABLE_FIELDS'
EXPORTING
TABNAME = NAME
TABLES
DDFIELDS = DDFIELDS
EXCEPTIONS
FIELDS_NOT_ADDED = 01
PROGRAM_NOT_GENERATED = 02
PROGRAM_NOT_WRITTEN = 03
TABLE_DOES_NOT_EXIST = 04.
What might be the reason?
B.R.
Liying
I tried them, but it still doesn't help:-(
DATA DDFIELDS LIKE DDFIELD OCCURS 2 WITH HEADER LINE.
DATA NAME LIKE DD02L-TABNAME.
DDFIELDS-FIELDNAME = 'F3'.
DDFIELDS-POSITION = '3'.
DDFIELDS-KEYFLAG = 'X'.
DDFIELDS-DATATYPE = 'INT4'.
APPEND DDFIELDS.
DDFIELDS-FIELDNAME = 'F4'.
DDFIELDS-POSITION = '4'.
DDFIELDS-KEYFLAG = ''.
DDFIELDS-DATATYPE = 'INT4'.
APPEND DDFIELDS.
NAME = 'ZFMHIST1'.
CALL FUNCTION 'DB_ADD_TABLE_FIELDS'
EXPORTING
TABNAME = NAME
NO_EXEC = 'X'
PROGNAME = '$MEMORY'
TABLES
DDFIELDS = DDFIELDS
EXCEPTIONS
FIELDS_NOT_ADDED = 01
PROGRAM_NOT_GENERATED = 02
PROGRAM_NOT_WRITTEN = 03
TABLE_DOES_NOT_EXIST = 04.
B.R.
Liying
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.