SAP Reports / Programs

/SAPMP/CMTSBV_STATUS SAP ABAP Report - Status Overview Production Orders with Individual Batch Determination







/SAPMP/CMTSBV_STATUS 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 /SAPMP/CMTSBV_STATUS 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

/SAPMP/CMTSBV_STATUS - Status Report of CMTSBV Scenario


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


Text pool values


Selection Text: S_WERK = D .
Selection Text: S_MATNR = D .
Selection Text: S_GLTRS = D .
Selection Text: S_FEVOR = D .
Selection Text: S_DISPO = D .
Selection Text: S_BWTTY = D .
Selection Text: S_AUFNR = D .
Selection Text: S_AUART = D .
Selection Text: P_STSMA = D .
Selection Text: P_SELID = D .
Selection Text: P_USER1 = User Status
Selection Text: P_SYST1 = System Status
Selection Text: P_KZ_E4 = Excl.
Selection Text: P_KZ_E3 = Excl.
Selection Text: P_KZ_E2 = Excl.
Selection Text: P_KZ_E1 = Excl.
Selection Text: P_GLTRS3 = Manual Entry:
Selection Text: P_GLTRS2 = As of tomorrow + 7 days
Selection Text: P_GLTRS1 = Up to and including today
Title: Status Overview Production Orders with Individual Batch Determination
Text Symbol: USE = User Status
Text Symbol: SYS = Syst. Status
Text Symbol: STS = Schema
Text Symbol: EXC = Excl.
Text Symbol: AND = and
Text Symbol: 017 = Price in GR
Text Symbol: 016 = Price in GR-Doc.
Text Symbol: 015 = Val.Type GR
Text Symbol: 014 = Val.Type in GR Doc.
Text Symbol: 013 = Valuation Type in GR Doc.
Text Symbol: 012 = PreCost. Error
Text Symbol: 011 = MissingBatches
Text Symbol: 010 = Pre.C.Val.
Text Symbol: 009 = Pre.Cstg Val.
Text Symbol: 008 = Prelim.Costing Valuation
Text Symbol: 007 = PreCostingOK
Text Symbol: 006 = Prelim. Costing OK
Text Symbol: 005 = Preliminary Costing OK





Text Symbol: 004 = Batches Selected
Text Symbol: 003 = All Batches Selected
Text Symbol: 002 = Prelim.Costing
Text Symbol: 001 = Batches


INCLUDES used within this REPORT /SAPMP/CMTSBV_STATUS

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:

STATUS_TEXT_EDIT CALL FUNCTION 'STATUS_TEXT_EDIT' EXPORTING objnr = -objnr only_active = abap_true spras = sy-langu bypass_buffer = gc_true IMPORTING line = -sttxt.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING bypass_buffer = gc_true objnr = -objnr status = /sapmp/cl_cmtsbv=>gc_mt01 "E0002 EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = 'Chargen fehlen'(011) IMPORTING RESULT = -light_batches.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = 'Chargen selektiert'(004) IMPORTING RESULT = -light_batches.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING bypass_buffer = gc_true objnr = -objnr status = /sapmp/cl_cmtsbv=>gc_mt02 "E0005 EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_red_light info = 'Vorkalk. Fehler'(012)

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_green_light info = 'Vorkalkulation in Ordnung'(005) IMPORTING RESULT = -light_costing.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = -matnr bwkey = -pwerk bwtar = -bwtar IMPORTING wmbew = ls_mbew EXCEPTIONS OTHERS = 1.

MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = -matnr bwkey = -pwerk bwtar = space IMPORTING wmbew = ls_mbew EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = gv_status i_callback_user_command = gv_user_command i_structure_name = '/SAPMP/CMTSBV_OUTSTR' is_layout = gs_layout is_variant = gs_variant it_fieldcat = gt_fieldcat[] i_save = gv_save TABLES t_outtab = gt_outtab.



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