SAP Reports / Programs | Basis Components | ABAP Workbench, Java IDE and Infrastructure | Activation Program, Conversion Program, DB Utility, MC, SPDD(BC-DWB-DIC-AC) SAP BC

MSGTBF01 SAP ABAP INCLUDE - INCLUDE with Subroutines (FORMs) for Module Pool SAPMSGTB







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


Text pool values


Title: INCLUDE with Subroutines (FORMs) for Module Pool SAPMSGTB


INCLUDES used within this REPORT MSGTBF01

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:

DD_MASS_REQUESTS_JOB_CREATE CALL FUNCTION 'DD_MASS_REQUESTS_JOB_CREATE' EXCEPTIONS abort_function = 1 unexpected_error = 2 OTHERS = 3.

DD_LOGNPROT_NAME_GET CALL FUNCTION 'DD_LOGNPROT_NAME_GET' EXPORTING task = 'CNV' single_or_mass = 'M' " OBJ_TYPE = 'TABL' " ONLINE_PUT = 'O' " OBJ_NAME = ' ' " IND_NAME = ' ' " DATE_IN = ' ' " TIME_IN = ' ' IMPORTING * PROTNAME = PROTNAME protname_template = protname * JOBNAME = * JOBNAME_TEMPLATE = EXCEPTIONS input_error = 01.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = 'Daten wurden nicht gesichert!'(a01) textline2 = 'Verarbeitung beenden?'(a02) titel = 'Verarbeitung beenden'(a03) IMPORTING answer = answer.

DD_GET_NAMETAB_HEADER CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = objname IMPORTING r_status = r_status x030l_wa = x030l_wa EXCEPTIONS not_found = 1.

DD_GET_NAMETAB_HEADER CALL FUNCTION 'DD_GET_NAMETAB_HEADER' EXPORTING tabname = objname status = 'N' IMPORTING r_status = r_status x030l_wa = x030l_wa EXCEPTIONS not_found = 1.

DD_MOHD_GET CALL FUNCTION 'DD_MOHD_GET' EXPORTING mco_name = mconame withtext = 'X' IMPORTING dd20v_wa_a = objstate-add20v dd20v_wa_n = objstate-mdd20v got_state = r_status EXCEPTIONS OTHERS = 1.

DD_TBHD_GET CALL FUNCTION 'DD_TBHD_GET' EXPORTING tabl_name = objname withtext = 'X' IMPORTING dd02v_wa_a = objstate-add02v dd02v_wa_n = objstate-mdd02v got_state = r_status EXCEPTIONS OTHERS = 1.

DD_VIHD_GET CALL FUNCTION 'DD_VIHD_GET' EXPORTING view_name = objname withtext = 'X' IMPORTING dd25v_wa_a = objstate-add25v dd25v_wa_n = objstate-mdd25v got_state = r_status EXCEPTIONS OTHERS = 1.

DD_SQHD_GET CALL FUNCTION 'DD_SQHD_GET' EXPORTING name = sqlname withtext = 'X' IMPORTING dd06v_wa_a = objstate-add06v dd06v_wa_n = objstate-mdd06v got_state = r_status EXCEPTIONS OTHERS = 1.

DD_TBHD_GET CALL FUNCTION 'DD_TBHD_GET' EXPORTING tabl_name = tabname withtext = 'X' IMPORTING dd02v_wa_a = dd02v got_state = tabstate EXCEPTIONS illegal_value = 01 op_failure = 02.

DD_SQHD_GET CALL FUNCTION 'DD_SQHD_GET' EXPORTING name = sqlname withtext = 'X' IMPORTING dd06v_wa_n = dd06v got_state = sqlstate EXCEPTIONS illegal_value = 01 op_failure = 02.

DD_TBIX_GET CALL FUNCTION 'DD_TBIX_GET' EXPORTING indexname = index tabl_name = tabname withtext = 'X' IMPORTING got_state = indstate TABLES dd12v_tab_n = idd12v dd12v_tab_a = idd12v_a dd17v_tab_a = idd17v_a dd17v_tab_n = idd17v_n EXCEPTIONS illegal_value = 01.

DD_INDEX_NAME CALL FUNCTION 'DD_INDEX_NAME' EXPORTING indexname = index tabname = tabname IMPORTING dbindex = dd12v-dbindex.

DB_EXISTS_INDEX CALL FUNCTION 'DB_EXISTS_INDEX' EXPORTING dbindex = dd12v-dbindex IMPORTING realname = dd12v-dbindex subrc = subrc.

DD_INDEX_NAME CALL FUNCTION 'DD_INDEX_NAME' EXPORTING indexname = dd12v-indexname tabname = dd12v-sqltab IMPORTING dbindex = dd12v-dbindex.

DD_INDEX_NAME CALL FUNCTION 'DD_INDEX_NAME' EXPORTING indexname = '0' tabname = tabname IMPORTING dbindex = dbindex.

DD_MIHD_GET CALL FUNCTION 'DD_MIHD_GET' EXPORTING mcid_name = mcid mco_name = mcob withtext = 'X' IMPORTING dd23v_wa_a = dd23v dd23v_wa_n = dd23v_wa_n got_state = mcistate EXCEPTIONS illegal_state = 01.

STRING_CONCATENATE * CALL FUNCTION 'STRING_CONCATENATE' * EXPORTING * STRING1 = PREFIX * STRING2 = SUFFIX * IMPORTING * STRING = FB_NAME * EXCEPTIONS * TOO_SMALL = 01.

DB_EXISTS_VIEW





CALL FUNCTION 'DB_EXISTS_VIEW' EXPORTING viewname = obname IMPORTING subrc = subrc.

DB_EXISTS_TABLE CALL FUNCTION 'DB_EXISTS_TABLE' EXPORTING tabname = obname IMPORTING subrc = subrc.

DD_INDEX_NAME CALL FUNCTION 'DD_INDEX_NAME' EXPORTING indexname = indexkennung tabname = obname IMPORTING dbindex = dbindexname.

DB_EXISTS_INDEX CALL FUNCTION 'DB_EXISTS_INDEX' EXPORTING dbindex = dbindexname IMPORTING realname = dd12v-dbindex subrc = subrc.

DD_TBHD_GET CALL FUNCTION 'DD_TBHD_GET' EXPORTING get_state = 'A' tabl_name = objname IMPORTING dd02v_wa_a = dd02v_wa_a got_state = r_status EXCEPTIONS OTHERS = 1.

DD_MOHD_GET CALL FUNCTION 'DD_MOHD_GET' EXPORTING get_state = 'A' mco_name = mconame IMPORTING got_state = r_status EXCEPTIONS OTHERS = 1.

DD_VIHD_GET CALL FUNCTION 'DD_VIHD_GET' EXPORTING get_state = 'A' view_name = objname IMPORTING dd25v_wa_a = dd25v_wa_a got_state = r_status EXCEPTIONS OTHERS = 1.

DD_SQHD_GET CALL FUNCTION 'DD_SQHD_GET' EXPORTING get_state = 'A' name = sqlname IMPORTING got_state = r_status EXCEPTIONS OTHERS = 1.

DD_TBIX_GET CALL FUNCTION 'DD_TBIX_GET' EXPORTING get_state = 'A' indexname = '*' langu = sy-langu prid = 0 tabl_name = tname withtext = 'X' tracelevel = 0 IMPORTING got_state = r_state TABLES dd12v_tab_a = dd12v_tab_a dd12v_tab_n = dd12v_tab_n dd17v_tab_a = dd17v_tab_a dd17v_tab_n = dd17v_tab_n EXCEPTIONS illegal_value = 01.

SELECT_TABLE_INDICES CALL FUNCTION 'SELECT_TABLE_INDICES' EXPORTING tabname = tname with_primary_index = 'X' IMPORTING r_indexname = iname * R_DBINDEX = EXCEPTIONS no_index_selected = 01.

LIST_MATCHCODE_IDS CALL FUNCTION 'LIST_MATCHCODE_IDS' EXPORTING mconame = mname activ_only = 'X' IMPORTING mcid = iname EXCEPTIONS no_mcid_found = 01 no_mcid_selected = 02.



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