SAP Reports / Programs | Plant Maintenance | Maintenance Processing | Maintenance Orders(PM-WOC-MO) SAP PM

/MRSS/CAG_CG_MNT SAP ABAP Report - MRS - Capacity Graphs: Create - Update - Display







/MRSS/CAG_CG_MNT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to recalculate capacity-graph objects, read them from the database, or recreate them, for any personnel resource and over any period of time...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter /MRSS/CAG_CG_MNT 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 /MRSS/CAG_CG_MNT. "Basic submit
SUBMIT /MRSS/CAG_CG_MNT AND RETURN. "Return to original report after report execution complete
SUBMIT /MRSS/CAG_CG_MNT 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: P_CALC = Only Calculate Capacity Graphs
Selection Text: P_CREA = Create/Update Capacity Graphs
Selection Text: P_DISP = Display Cap. Graphs from DB
Selection Text: P_PALLG = Display Results Log
Selection Text: P_PDET = Detail Log Display
Selection Text: SO_BP = Business Partner
Selection Text: SO_DATE = Period from:
Selection Text: SO_PERNR = Personnel Number
Selection Text: SO_TEAM = Team (GUID)
Selection Text: SO_TIM = Time from:
Selection Text: SO_UNIT = Unit
Selection Text: P_CGTY = D .
Title: MRS - Capacity Graphs: Create - Update - Display
Text Symbol: 116 = Pers. No.
Text Symbol: 115 = Cap. Types
Text Symbol: 114 = Notifctn
Text Symbol: 113 = Capacity Graph Types
Text Symbol: 112 = Personnel Number
Text Symbol: 111 = Status
Text Symbol: 033 = End of Departure
Text Symbol: 032 = Start of Departure
Text Symbol: 031 = End of Arrival
Text Symbol: 030 = Start of Arrival
Text Symbol: 028 = Could not calculate basic capacity graph
Text Symbol: 001 = Create or Update Capacity Graphs
Text Symbol: 002 = Only Calculate Capacity Graphs
Text Symbol: 003 = Capacity Graphs: Detail Display
Text Symbol: 004 = Display Results Log Only
Text Symbol: 005 = Processing Options
Text Symbol: 006 = Display Options in Dialog Mode
Text Symbol: 007 = Selection Parameter
Text Symbol: 008 = Read and Display Capacity Graphs from Database
Text Symbol: 009 = Display Basis Availability (H Graph)
Text Symbol: 010 = Display Availabilities from WFM Core
Text Symbol: 011 = Start of Time Stamp
Text Symbol: 012 = End of Time Stamp
Text Symbol: 013 = Display Assignments from WFM Core
Text Symbol: 014 = Display Capacity Graphs





Text Symbol: 015 = GUID - Capacity Graph
Text Symbol: 016 = GUID - Resource
Text Symbol: 017 = GUID - Availability
Text Symbol: 018 = GUID - Assignment
Text Symbol: 019 = GUID - Demand
Text Symbol: 021 = Capacity graph was recalculated
Text Symbol: 022 = Capacity graph could not be calculated
Text Symbol: 023 = Capacity graph was recalculated and marked for saving
Text Symbol: 024 = Queue error: Capacity graph could not be marked for saving
Text Symbol: 027 = No data was selected


INCLUDES used within this REPORT /MRSS/CAG_CG_MNT

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:

RS_SELOPT_NO_INTERVAL_CHECK CALL FUNCTION 'RS_SELOPT_NO_INTERVAL_CHECK' EXPORTING program = gv_selop_prog TABLES selop = gt_selop.

RH_ASK_FOR_PLVAR CALL FUNCTION 'RH_ASK_FOR_PLVAR' EXPORTING no_msg = 'X' CHANGING plvar = gv_plvar.

/MRSS/SGE_TEXT_OTYPE CALL FUNCTION '/MRSS/SGE_TEXT_OTYPE' EXPORTING otype = /mrss/cl_sge_scenatt=>otype_planning_node langu = sy-langu IMPORTING otext = gv_otext.

/MRSS/CAG_CGRAPH_BASE_MAINTAIN CALL FUNCTION '/MRSS/CAG_CGRAPH_BASE_MAINTAIN' IN UPDATE TASK EXPORTING it_res_int = gt_res_int EXCEPTIONS failed = 1.

/MRSS/CAG_CGRAPH_MAINTAIN CALL FUNCTION '/MRSS/CAG_CGRAPH_MAINTAIN' EXPORTING iv_cg_type = p_cgty iv_get_cg_base_from_db = 'X' it_res_int = gt_res_int EXCEPTIONS invalid_queue_name = 1 OTHERS = 2.

/MRSS/CAG_CGRAPH_MAINTAIN CALL FUNCTION '/MRSS/CAG_CGRAPH_MAINTAIN' EXPORTING iv_cg_type = p_cgty it_res_int = gt_res_int EXCEPTIONS invalid_queue_name = 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 /MRSS/CAG_CG_MNT or its description.