SAP Reports / Programs | Production Planning and Control (PP) enhancements | Mill Products Industry Solution | Production Planning and Control (PP) enhancements(IS-MP-PP) SAP IS

/SAPMP/CMTSBV_STATUS_F01 SAP ABAP INCLUDE - /SAPMP/CMTSBVSTATUSF01







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


INCLUDES used within this REPORT /SAPMP/CMTSBV_STATUS_F01

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:

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = gv_tabname i_structure_name = '/SAPMP/CMTSBV_OUTSTR' i_client_never_display = abap_true CHANGING ct_fieldcat = ct_fieldcat.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'CO03' EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'CO02' EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

STATUS_CHECK_MULTI CALL FUNCTION 'STATUS_CHECK_MULTI' EXPORTING status = -stat flg_exclude = -excl TABLES OBJECTS = ct_objnr.

STATUS_CHECK_BY_SELSCHEM CALL FUNCTION 'STATUS_CHECK_BY_SELSCHEM' EXPORTING objnr = -objnr selid = iv_selid IMPORTING fullfill = flg_status_ok EXCEPTIONS OTHERS = 01.

STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' TABLES jsto_pre_tab = lt_objnr.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu txt04 = iv_syst1 IMPORTING status_number = ls_status-stat EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu txt04 = iv_syst2 IMPORTING status_number = ls_status-stat EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu mode = 'E' stsma = 'CMTSB' txt04 = iv_user1 IMPORTING status_number = ls_status-stat EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu mode = 'E' stsma = 'CMTSB' txt04 = iv_user2 IMPORTING status_number = ls_status-stat EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu mode = iv_mode stsma = iv_stsma txt04 = cv_state IMPORTING status_number = l_state_nr EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

STATUS_TEXT_CONVERSION CALL FUNCTION 'STATUS_TEXT_CONVERSION' EXPORTING language = sy-langu mode = iv_mode stsma = iv_stsma txt04 = l_state IMPORTING status_number = l_state_nr EXCEPTIONS insufficient_input = 1 not_found = 2 object_not_found = 3 wrong_mode = 4 OTHERS = 5.

BSV_GET_STATUS_PROFILE CALL FUNCTION 'BSV_GET_STATUS_PROFILE' EXPORTING stsma = cv_stsma * IMPORTING * LANGUAGE_FOUND = * STSMA_TEXT = TABLES status = lt_status EXCEPTIONS stsma_not_found = 1 OTHERS = 2 .



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 /SAPMP/CMTSBV_STATUS_F01 or its description.