SAP Reports / Programs

SAPMCR05 SAP ABAP Report - Test Formulas in Work Center







SAPMCR05 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 SAPMCR05 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

CR04 - Test Work Center Formulas


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


Text pool values


&1..................
Title: Test Formulas in Work Center
Text Symbol: 001 = Capacity requirement;;
Text Symbol: 002 = Costing ;;
Text Symbol: 003 = Scheduling ;;
Text Symbol: 004 = Available capacity ;;
Text Symbol: E01 = There are no capacities allocated to the work center
Text Symbol: LAN = ActType Int.Proc.
Text Symbol: T02 = Act.Type Fixed Variable
Text Symbol: VA1 = Setup
Text Symbol: VA2 = Processing
Text Symbol: VA3 = Teardown
Text Symbol: VAN = Internal processing


INCLUDES used within this REPORT SAPMCR05

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:

CR_WORKSTATION_READ_ROUTING CALL FUNCTION 'CR_WORKSTATION_READ_ROUTING' EXPORTING ARBPL = RCR01-ARBPL DATE = RC68K-DATUV_SEL PLNTY = SPACE VGWKZ = 'X' WERKS = RCR01-WERKS IMPORTING WORKS = RCR01 EXCEPTIONS NOT_FOUND = 01 TYPE_NOT_ALLOWED = 02 WRONG_PARAMETERS = 03.

CR_HIERARCHY_READ_NAME CALL FUNCTION 'CR_HIERARCHY_READ_NAME' EXPORTING NAME = RC68H-HNAME WERKS = RC68H-WERKS IMPORTING OBJID = OBJID_HY.

CR_OPERATION_VALUES_COMPUTE CALL FUNCTION 'CR_OPERATION_VALUES_COMPUTE' EXPORTING ARBID = RCR01-ARBID OP_IN = RCROP VGW_IN = RCRVGW IMPORTING OP = RCROP VGW = RCRVGW TABLES PHASE_VALUES = T_PH EXCEPTIONS WORKCENTER_NOT_FOUND = 01.

CR_WORKCENTER_FORMULA_CALC CALL FUNCTION 'CR_WORKCENTER_FORMULA_CALC' EXPORTING ARBID = RCR01-ARBID DATE = RC68K-DATUV_SEL INDEX = LOC_INDEX OP = RCROP VGW = RCRVGW IMPORTING UNIT = KBED-KEINH VALUE_FIX = VALUE_FIX VALUE_VAR = VALUE_VAR EXCEPTIONS MISSING_PARAMETER = 01 NOT_FOUND = 02.

CR_WORKCENTER_READ_CAPACITIES CALL FUNCTION 'CR_WORKCENTER_READ_CAPACITIES' EXPORTING ARBID = RCR01-ARBID TABLES TCRCA = TCRCA EXCEPTIONS NOT_FOUND = 01.

CR_CAPACITY_PRE_READ CALL FUNCTION 'CR_CAPACITY_PRE_READ' EXPORTING AVAIL = KREUZ TABLES T_KAPID = TCRKAPID.

CR_CAPACITY_PERIODS CALL FUNCTION 'CR_CAPACITY_PERIODS' EXPORTING DATUB = RCR04-DATUB DATUV = RCR04-DATUV KAPEL = RC65K-KAPEL KAPID = TCRCA-KAPID * PAANZ = MAX_PERIODS PEART = TC35A-PEART PEBEG = TC35A-PEBEG PEDAU = TC35A-PEDAU VERSN = RC65K-VERSN ZRAST = TC35A-ZRAST TABLES T_PER = TC65K.

CR_CAPACITY_READ CALL FUNCTION 'CR_CAPACITY_READ' EXPORTING KAPID = TCRCA-KAPID MSGTY = 'E' REQ_RCRKK = 'X' IMPORTING WORKS = RCRKK EXCEPTIONS MISSING_PARAMETERS = 01 NOT_FOUND = 02.

CR_CAPACITY_UNIT_CONVERSION CALL FUNCTION 'CR_CAPACITY_UNIT_CONVERSION' EXPORTING KAPID = T_CNV-KAPID * UNIT_IN = UNIT_IN_BASIS = 'X' UNIT_OUT = RC65K-KEINH IMPORTING * ADD_CONST = DENOMINATOR = LOC_DENOMINATOR NUMERATOR = LOC_NUMERATOR EXCEPTIONS CAPACITY_NOT_FOUND = 01 CONVERSION_NOT_FOUND = 02 UNIT_IN_NOT_FOUND = 03 UNIT_OUT_NOT_FOUND = 04.

CR_CAPACITY_AVAILABLE_PERIODS CALL FUNCTION 'CR_CAPACITY_AVAILABLE_PERIODS' EXPORTING * LEVELS = '00' OBJID_A = RCR01-ARBID OBJID_HY = OBJID_HY SHIFTS = RC65K_SHIFTS SINGLE = RC65K_SINGLE * UNIT_SI = ' ' * VERSN = ' ' VIA_HY = RC65K_VIAHY TABLES T_AVAIL = TC65K EXCEPTIONS HIERARCHY_NOT_FOUND = 01 OBJECT_NOT_IN_HIERARCHY = 02 VERSION_WITHOUT_HIERARCHY = 03.

CR_WORKCENTER_READ_CAPACITIES CALL FUNCTION 'CR_WORKCENTER_READ_CAPACITIES' EXPORTING ARBID = RCR01-ARBID TABLES TCRCA = TCRCA EXCEPTIONS NOT_FOUND = 01.

CR_CAPACITY_READ CALL FUNCTION 'CR_CAPACITY_READ' EXPORTING KAPID = TCRCA-KAPID MSGTY = 'E' REQ_RCRKK = 'X' IMPORTING WORKS = RCRKK EXCEPTIONS MISSING_PARAMETERS = 01 NOT_FOUND = 02.

CR_WORKCENTER_FORMULA_KBED CALL FUNCTION 'CR_WORKCENTER_FORMULA_KBED' EXPORTING CRCA_IMP = TCRCA DATE = SY-DATLO FLG_NETWORK = ' ' OP = RCROP VGW = RCRVGW IMPORTING K1 = KBED-KRUESOLL K2 = KBED-KBEASOLL K3 = KBED-KABRSOLL KEINH = KBED-KEINH.

CR_WORKCENTER_FORMULA_KBED CALL FUNCTION 'CR_WORKCENTER_FORMULA_KBED' EXPORTING CRCA_IMP = TCRCA DATE = SY-DATLO FLG_NETWORK = 'X' OP = RCROP VGW = RCRVGW IMPORTING K1 = KBED-KRUESOLL K2 = KBED-KBEASOLL K3 = KBED-KABRSOLL KEINH = KBED-KEINH.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING I_ARBID = RCR01-ARBID I_DATE_START = RC68K-DATUV_SEL I_TIME_START = RC68K-BEGZT I_DATE_END = RC68K-DATUB_SEL I_TIME_END = RC68K-ENDZT I_DURATION = DAUER I_UNIT = RC68K-KAPEH I_FCALID = FABKAL I_FLG_EXACT_BREAKS = FLG_PAUSEN IMPORTING E_DATE_START = RC68K-DATUV_SEL E_TIME_START = RC68K-BEGZT E_DATE_END = RC68K-DATUB_SEL E_TIME_END = RC68K-ENDZT E_DURATION = DAUER E_UNIT = RC68K-KAPEH E_MIN_NUM_CAPACITIES = RC68K-ANZHL E_MESSAGE_CODE = TERM_ERROR.

CR_WORKCENTER_BUFFER_REFRESH CALL FUNCTION 'CR_WORKCENTER_BUFFER_REFRESH' TABLES TARBID = TCRID.

CR_WORKCENTER_FORMULA_TERM CALL FUNCTION 'CR_WORKCENTER_FORMULA_TERM' EXPORTING ARBID = RCR01-ARBID OP = RCROP VGW = RCRVGW IMPORTING F1 = HLP_F1 F2 = HLP_F2 F3 = HLP_F3 CHANGING U1 = RC68K-KAPEH_01 U2 = RC68K-KAPEH_02 U3 = RC68K-KAPEH_03 EXCEPTIONS NOT_FOUND = 01.

CR_WORKCENTER_FORMULA_TERM CALL FUNCTION 'CR_WORKCENTER_FORMULA_TERM' EXPORTING ARBID = RCR01-ARBID FLG_NETWORK = 'X' OP = RCROP VGW = RCRVGW IMPORTING F2 = HLP_F2 CHANGING U2 = RC68K-KAPEH_02 EXCEPTIONS NOT_FOUND = 01.



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