SAP Reports / Programs | Production Planning and Control | Sales and Operations Planning | Sales Plan(PP-SOP-SP) SAP PP

RMCAFOR8 SAP ABAP INCLUDE - FORM Routines for RMCAMUS8







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


Text pool values


Title: FORM Routines for RMCAMUS8


INCLUDES used within this REPORT RMCAFOR8

INCLUDE RMCAMET8.


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:

MC_GSTRU_PRUEFEN CALL FUNCTION 'MC_GSTRU_PRUEFEN' EXPORTING I_GSTRU = P_GSTRU IMPORTING O_KEYCNT = O_KEYCNT TABLES T_DATF = T_DATF T_KEYS = T_KEYS T_UNITS = T_UNITS.

MERCHANDISE_GROUP_INVENTORY CALL FUNCTION 'MERCHANDISE_GROUP_INVENTORY' EXPORTING I_WERKS = WAGRU-WERKS I_MATKL = WAGRU-MATKL I_SAISO = WAGRU-SAISO IMPORTING E_LBKUM = BESTAND_M E_VKSAL = BESTAND_VP * E_XVKBW = * E_KEBF = E_SALK3 = BESTAND_EPOM "Neu zu 40A E_VKWRA = BESTAND_VPOM "Neu zu 40A EXCEPTIONS ERROR_FOUND = 01.

MCB_S033_MITBEST CALL FUNCTION 'MCB_S033_MITBEST' EXPORTING MATERIAL = I_MATNR WERK = I_WERKS BISDATUM = BIS VONDATUM = VON IMPORTING MITBESTAND = I_BESTAND EXCEPTIONS NO_STATISTICS = 01.

MCP_BESTAND_LESEN CALL FUNCTION 'MCP_BESTAND_LESEN' EXPORTING MATNR = I_MATNR WERKS = I_WERKS IMPORTING BEST = I_BESTAND.

MC_UNIT_CONVERSION CALL FUNCTION 'MC_UNIT_CONVERSION' "<40C EXPORTING "<40C MATNR = I_MATNR "<40C NACH_MEINS = T445A-BASME "<40C VON_MEINS = MARA_TAB-MEINS "<40C IMPORTING "<40C UMREF = HLP_UMREF "<40C EXCEPTIONS "<40C CONVERSION_NOT_FOUND = 1 "<40C MATERIAL_NOT_FOUND = 2 "<40C NACH_MEINS_MISSING = 3 "<40C OVERFLOW = 4 "<40C VON_MEINS_MISSING = 5 "<40C OTHERS = 6. "<40C

MATERIAL_READ_MAPR CALL FUNCTION 'MATERIAL_READ_MAPR' EXPORTING SCHLUESSEL = SOP_MTCOM IMPORTING MATDATEN = SOP_MPRO2 RETURN = SOP_MTCOR TABLES SEQMAT01 = DUMMY_MAT_TAB EXCEPTIONS MATERIAL_NOT_FOUND = 01 PLANT_NOT_FOUND = 01.

MC_PG_STRUKTUR CALL FUNCTION 'MC_PG_STRUKTUR' EXPORTING IPRGRP = I_MATNR IWERKS = I_WERKS TABLES IPGMIT = PGMIT IPGTAB = PGTAB "<-- new 30E EXCEPTIONS PG_OR_MATERIAL_NOT_FOUND = 1 UNIT_CONVERSION_NOT_POSSIBLE = 2 OTHERS = 3.

MCP_STOCK CALL FUNCTION 'MCP_STOCK' EXPORTING I_STATUS = 'S' I_MBEST = SAV_P445G-MBEST I_PLOBJ = SAV_P445G-PLOBJ I_VRSIO = VERSION I_GSTRU = MF_GSTRUQ I_STFNA = SAV_P445G-STFNA IMPORTING * E_SUBRC = SY-SUBRC "del 927195 HQ E_SUBRC = HLP_SUBRC "ins 927195 HQ EXCEPTIONS NO_STOCK_FOUND = 01 INPUT_NOT_CORRECT = 02 DELETE_NOT_SUCCESSFUL = 03.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'MCSRUME' TABNAME = 'MCSMET' IMPORTING SELECT_VALUE = MF_MCSRUME TABLES FIELDS = MF_FIELDS_TAB VALUETAB = MF_VALUE_TAB EXCEPTIONS NO_SELECTFIELD = 03.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'FNAME' TABNAME = 'I_DATF' IMPORTING SELECT_VALUE = MF_KENNZAHL TABLES FIELDS = MF_FIELDS_TAB VALUETAB = MF_VALUE_TAB EXCEPTIONS NO_SELECTFIELD = 03.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = 'FNAME' TABNAME = 'I_DATF' IMPORTING SELECT_VALUE = MF_KENNZAHL TABLES FIELDS = MF_FIELDS_TAB VALUETAB = KZ_VALUE_TAB EXCEPTIONS NO_SELECTFIELD = 03.

MARA_ARRAY_READ CALL FUNCTION 'MARA_ARRAY_READ' TABLES IPRE03 = MATERIALIEN_MEINS MARA_TAB = MARA_TAB EXCEPTIONS ENQUEUE_MODE_CHANGED = 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 RMCAFOR8 or its description.