SAP Reports / Programs

EWCGENEW SAP ABAP Report - Generation Program for Conversion Programs







EWCGENEW 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 EWCGENEW into the relevant SAP transactions such as SE38 or SE80


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 EWCGENEW. "Basic submit
SUBMIT EWCGENEW AND RETURN. "Return to original report after report execution complete
SUBMIT EWCGENEW VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Generation Program for Conversion Programs
Text Symbol: 001 = Conversion prog. for table:


INCLUDES used within this REPORT EWCGENEW

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:

EWU_PAKET_GET CALL FUNCTION 'EWU_PAKET_GET' CHANGING paket = paket EXCEPTIONS active_paket_not_found = 1 OTHERS = 2.

EWU_STATUS_GET CALL FUNCTION 'EWU_STATUS_GET' EXPORTING programm = programm IMPORTING status = init_status EXCEPTIONS no_program_entry = 1 active_paket_not_found = 2 OTHERS = 3.

DD_TBFD_GET CALL FUNCTION 'DD_TBFD_GET' EXPORTING tabl_name = tabl_name withtext = 'X' TABLES dd03p_tab_a = dd03p_tab_a dd03p_tab_n = dd03p_tab_n EXCEPTIONS illegal_value = 1 op_failure = 2 OTHERS = 3.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '2' msgty = 'S' msgid = 'MQ' msgno = '035' msgv1 = msgv1 msgv2 = msgv2 EXCEPTIONS OTHERS = 1.

EDITOR_SYNTAX_CHECK CALL FUNCTION 'EDITOR_SYNTAX_CHECK' EXPORTING i_program = repname i_trdir = ld_trdir IMPORTING o_error_subrc = returncode TABLES i_source = prog EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = 'E' msgid = 'MQ' msgno = '056' msgv1 = msgv1 EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = 'E' msgid = 'MQ' msgno = '061' msgv1 = msgv1 EXCEPTIONS OTHERS = 1.

EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING status = lp_status EXCEPTIONS no_paket_entry = 1 foreign_lock = 2 system_failure = 3 no_program_entry = 4 wrong_call = 5 OTHERS = 6.

EWU_STATUS_UPDATE CALL FUNCTION 'EWU_STATUS_UPDATE' EXPORTING status = error EXCEPTIONS no_paket_entry = 1 foreign_lock = 2 system_failure = 3 no_program_entry = 4 wrong_call = 5 OTHERS = 6.

EWU_STATUS_INITIALIZE CALL FUNCTION 'EWU_STATUS_INITIALIZE' EXPORTING programm = programm EXCEPTIONS OTHERS = 4.

EWU_VIEW_CREATE CALL FUNCTION 'EWU_VIEW_CREATE' EXPORTING tabnmstr = tabnmstr viewnmstr = viewname flags = 'XX ' usekey = usekey keepkeyflag = keepkey TABLES fields = fields OPTIONS = options EXCEPTIONS error = 1 OTHERS = 2.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' "DS20050511 EXPORTING "DS20050511 wi_test_modus = space "DS20050511 wi_tadir_pgmid = 'R3TR' "DS20050511 wi_tadir_object = 'VIEW' "DS20050511 wi_tadir_obj_name = tadir_objname "DS20050511 wi_tadir_devclass = 'EWUG' "DS20050511 wi_set_genflag = 'T' "DS20050511 EXCEPTIONS "DS20050511 OTHERS = 1. "DS20050511

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' "DS20050511 EXPORTING "DS20050511 level = '1' "DS20050511 msgty = sy-msgty "DS20050511 msgid = sy-msgid "DS20050511 msgno = sy-msgno "DS20050511 msgv1 = sy-msgv1 "DS20050511 msgv2 = sy-msgv2 "DS20050511 msgv3 = sy-msgv3 "DS20050511 msgv4 = sy-msgv4 "DS20050511 EXCEPTIONS "DS20050511 OTHERS = 1. "DS20050511

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = sy-msgty msgid = sy-msgid msgno = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = 'E' msgid = 'MQ' msgno = '018' msgv1 = paket EXCEPTIONS OTHERS = 1.

DD_GET_NAMETAB_HEADER * CALL FUNCTION 'DD_GET_NAMETAB_HEADER' * EXPORTING * TABNAME = TABNAME * IMPORTING * X030L_WA = X030L_WA * EXCEPTIONS * NOT_FOUND = 4 * OTHERS = 0.

EWU_PROTOCOL_APPEND * CALL FUNCTION 'EWU_PROTOCOL_APPEND' * EXPORTING * LEVEL = '4' * MSGID = 'MQ' * MSGNO = '033' * MSGV1 = MSGV1 * EXCEPTIONS * OTHERS = 1.

EWU_PROTOCOL_APPEND * CALL FUNCTION 'EWU_PROTOCOL_APPEND' * EXPORTING * LEVEL = '3' * MSGID = 'MQ' * MSGNO = '034' * MSGV1 = MSGV1 * EXCEPTIONS * OTHERS = 1.

EWU_VIEW_CREATE





CALL FUNCTION 'EWU_VIEW_CREATE' EXPORTING tabnmstr = tabnmstr viewnmstr = viewname flags = 'X X ' TABLES fields = fields OPTIONS = options EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = 'W' msgid = 'DS' msgno = '017' msgv1 = msgv1 EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '2' msgty = 'S' msgid = 'MQ' msgno = '035' msgv1 = msgv1 EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '2' msgty = 'S' msgid = 'MQ' msgno = '035' msgv1 = msgv1 msgv2 = msgv2 EXCEPTIONS OTHERS = 1.

EDITOR_SYNTAX_CHECK CALL FUNCTION 'EDITOR_SYNTAX_CHECK' EXPORTING i_program = lp_newname i_trdir = ld_trdir IMPORTING o_error_subrc = lp_subrc TABLES i_source = lt_prog EXCEPTIONS OTHERS = 1.

EWU_PROTOCOL_APPEND CALL FUNCTION 'EWU_PROTOCOL_APPEND' EXPORTING level = '1' msgty = 'E' msgid = 'MQ' msgno = '056' msgv1 = msgv1 EXCEPTIONS OTHERS = 1.



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 EWCGENEW or its description.