SAP Reports / Programs

SPL_GENERATE_DDIC SAP ABAP Report - Generate additional material master fields







SPL_GENERATE_DDIC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SPL_GENERATE_DDIC into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SPL_GENERATE_DDIC - Generate additional fields


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SPL_GENERATE_DDIC. "Basic submit
SUBMIT SPL_GENERATE_DDIC AND RETURN. "Return to original report after report execution complete
SUBMIT SPL_GENERATE_DDIC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Generate additional material master fields
Text Symbol: 028 = structures locally in all relevant systems.
Text Symbol: 027 = If you do not transport, you need to generate the
Text Symbol: 025 = Transport
Text Symbol: 024 = has been generated
Text Symbol: 023 = Append for table
Text Symbol: 022 = already exists in table
Text Symbol: 021 = Append
Text Symbol: 020 = done in case you create a new sequence.
Text Symbol: 019 = user/material type and /or industry sector needs to be
Text Symbol: 018 = Note: The assignment of the screen sequence per
Text Symbol: 017 = please create a new screen sequence first.
Text Symbol: 016 = If you are using the SAP standard delivered sequence,
Text Symbol: 015 = added in your sequence as desired.
Text Symbol: 014 = The subscreens contained in sequence `SLĀ“ need to be
Text Symbol: 013 = sequence with the additional dialogs for the new fields.
Text Symbol: 012 = In this step you can extend your material master screen
Text Symbol: 011 = Note: This step cannot be undone!
Text Symbol: 010 = for this step!
Text Symbol: 009 = added to these tables. You will need DDIC authorizations
Text Symbol: 008 = pushbutton below appropriate APPEND structures will be
Text Symbol: 007 = material master database tables. On selecting the
Text Symbol: 006 = At first you need to activate additional fields within the
Text Symbol: 005 = Assign screen sequence
Text Symbol: 004 = Define structure for data screens
Text Symbol: 003 = Generate additional fields
Text Symbol: 002 = Generate screen sequences
Text Symbol: 001 = Generate additional fields


INCLUDES used within this REPORT SPL_GENERATE_DDIC

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_draw_arrow text = but02 info = but02 IMPORTING RESULT = but2 EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_draw_arrow text = but03 info = but03 IMPORTING RESULT = but3 EXCEPTIONS OTHERS = 0.

MESSAGES_INITIALIZE * CALL FUNCTION 'MESSAGES_INITIALIZE' * EXCEPTIONS * log_not_active = 1 * wrong_identification = 2 * OTHERS = 3.

DDIF_TABL_GET * CALL FUNCTION 'DDIF_TABL_GET' * EXPORTING * name = lf_table_name * IMPORTING * dd02v_wa = ls_dd02v * TABLES * dd03p_tab = lt_dd03p * EXCEPTIONS * illegal_input = 1 * OTHERS = 2.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = sy-msgid * msgty = sy-msgty * msgv1 = sy-msgv1 * msgv2 = sy-msgv1 * msgv3 = sy-msgv3 * msgv4 = sy-msgv4 * txtnr = sy-msgno * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = 'AD' * msgv1 = 'Append'(021) * msgv2 = lf_append_name * msgv3 = 'already exists in table'(022) * msgv4 = lf_table_name * msgty = 'I' * txtnr = 010 * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

DDIF_TABL_PUT * CALL FUNCTION 'DDIF_TABL_PUT' * EXPORTING * name = lf_append_name * dd02v_wa = ls_dd02v * TABLES * dd03p_tab = lt_dd05p * EXCEPTIONS * tabl_not_found = 1 * name_inconsistent = 2 * tabl_inconsistent = 3 * put_failure = 4 * put_refused = 5 * OTHERS = 6.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = sy-msgid * msgty = sy-msgty * msgv1 = sy-msgv1 * msgv2 = sy-msgv2 * msgv3 = sy-msgv3 * msgv4 = sy-msgv4 * txtnr = sy-msgno * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = 'AD' * msgty = 'I' * msgv1 = 'Append for table'(023) * msgv2 = lf_table_name * msgv3 = 'has been generated'(024) * msgv4 = '' * txtnr = '010' * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

DDIF_TABL_ACTIVATE * CALL FUNCTION 'DDIF_TABL_ACTIVATE' * EXPORTING * name = lf_append_name * EXCEPTIONS * not_found = 1 * put_failure = 2 * OTHERS = 3.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = 'AD' * msgty = 'I' * msgv1 = lf_append_name * txtnr = 32 * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

MESSAGE_STORE * CALL FUNCTION 'MESSAGE_STORE' * EXPORTING * arbgb = sy-msgid * msgty = sy-msgty * msgv1 = sy-msgv1 * msgv2 = sy-msgv2 * msgv3 = sy-msgv3 * msgv4 = sy-msgv4 * txtnr = sy-msgno * EXCEPTIONS * message_type_not_valid = 1 * not_active = 2 * OTHERS = 3.

MESSAGES_SHOW * CALL FUNCTION 'MESSAGES_SHOW' * EXCEPTIONS * inconsistent_range = 1 * no_messages = 2 * OTHERS = 3.

TR_OBJECTS_CHECK * CALL FUNCTION 'TR_OBJECTS_CHECK' * TABLES * wt_ko200 = lt_ko200 * EXCEPTIONS * CANCEL_EDIT_OTHER_ERROR = 1 * SHOW_ONLY_OTHER_ERROR = 2 * ERROR_MESSAGE = 3 * OTHERS = 4.

TR_OBJECTS_INSERT * CALL FUNCTION 'TR_OBJECTS_INSERT' * EXPORTING * wi_order = ls_ko200_header-TRKORR * IMPORTING * WE_ORDER = ls_ko200_header-TRKORR * TABLES * wt_ko200 = lt_ko200[] * EXCEPTIONS * CANCEL_EDIT_OTHER_ERROR = 1 * SHOW_ONLY_OTHER_ERROR = 2 * ERROR_MESSAGE = 3 * OTHERS = 4.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING WI_TADIR_PGMID = lc_R3TR WI_TADIR_OBJECT = lc_tabl WI_TADIR_OBJ_NAME = Lv_OBJ_NAME WI_READ_ONLY = 'X' IMPORTING NEW_TADIR_ENTRY = LS_TADIR EXCEPTIONS OTHERS = 4.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING WI_TEST_MODUS = SPACE WI_TADIR_PGMID = LC_R3TR WI_TADIR_OBJECT = lc_tabl WI_TADIR_OBJ_NAME = LV_OBJ_NAME WI_TADIR_AUTHOR = sy-uname WI_TADIR_DEVCLASS = lc_DEVCLASS WI_TADIR_MASTERLANG = sy-langu * WI_REMOVE_GENFLAG = ' ' WI_SET_GENFLAG = lc_GENFLAG EXCEPTIONS TADIR_ENTRY_NOT_EXISTING = 1 TADIR_ENTRY_ILL_TYPE = 2 NO_SYSTEMNAME = 3 NO_SYSTEMTYPE = 4 ORIGINAL_SYSTEM_CONFLICT = 5 OBJECT_RESERVED_FOR_DEVCLASS = 6 OBJECT_EXISTS_GLOBAL = 7 OBJECT_EXISTS_LOCAL = 8 OBJECT_IS_DISTRIBUTED = 9 OBJ_SPECIFICATION_NOT_UNIQUE = 10 NO_AUTHORIZATION_TO_DELETE = 11 DEVCLASS_NOT_EXISTING = 12 SIMULTANIOUS_SET_REMOVE_REPAIR = 13 ORDER_MISSING = 14 NO_MODIFICATION_OF_HEAD_SYST = 15 PGMID_OBJECT_NOT_ALLOWED = 16 MASTERLANGUAGE_NOT_SPECIFIED = 17 DEVCLASS_NOT_SPECIFIED = 18 SPECIFY_OWNER_UNIQUE = 19 LOC_PRIV_OBJS_NO_REPAIR = 20 GTADIR_NOT_REACHED = 21 OBJECT_LOCKED_FOR_ORDER = 22 CHANGE_OF_CLASS_NOT_ALLOWED = 23 NO_CHANGE_FROM_SAP_TO_TMP = 24 OTHERS = 25.

TR_GTADIR_QUERY CALL FUNCTION 'TR_GTADIR_QUERY' EXPORTING IV_PGMID = LC_R3TR IV_OBJECT = lc_tabl IV_OBJ_NAME = LV_OBJ_NAME IMPORTING RESULT = LS_GTADIR EXCEPTIONS OTHERS = 01.

TRINT_TADIR_MODIFY





CALL FUNCTION 'TRINT_TADIR_MODIFY' EXPORTING AUTHOR = LS_TADIR-AUTHOR * CPROJECT = LS_TADIR-CPROJECT DEVCLASS = LS_TADIR-DEVCLASS * EDTFLAG = LS_TADIR-EDTFLAG EXISTS = ' ' GENFLAG = lc_GENFLAG MASTERLANG = sy-langu OBJECT = LS_TADIR-OBJECT OBJ_NAME = LS_TADIR-OBJ_NAME PGMID = LS_TADIR-PGMID SRCSYSTEM = LS_TADIR-SRCSYSTEM CHANGE_MASTERLANG = 'X' FORCE_MODE = ' ' EXCEPTIONS OTHERS = 5.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SPL_GENERATE_DDIC or its description.