RMCPAF00 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 RMCPAF00 into the relevant SAP transactions such as SE38 or SE80
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.
Title: Routine to Create IDOCs for Current Stock/Requirements List
INCLUDE SCMDLT01.
INCLUDE MM61XDBR.
No SAP DATABASE tables are accessed within this REPORT code!
MATERIAL_LESEN CALL FUNCTION 'MATERIAL_LESEN' EXPORTING SCHLUESSEL = MTCOM IMPORTING MATDATEN = MT61D RETURN = MTCOR TABLES SEQMAT01 = DUMMY EXCEPTIONS MATERIAL_NOT_FOUND = 04 PLANT_NOT_FOUND = 08 ACCOUNT_NOT_FOUND = 12.
MD_READ_MATERIAL_SIMPLE CALL FUNCTION 'MD_READ_MATERIAL_SIMPLE' "N375273 EXPORTING "N375273 EWERKS = IS_HELP_MARC-WERKS "N375273 EMATNR = IS_HELP_MARC-MATNR "N375273 EBERID = LV_BERID "N375273 CHANGING "N375273 CMT61D = LS_MT61D "N375273 CCM61B = LS_CM61B "N375273 EXCEPTIONS "N375273 MATERIAL_MRP_AREA_NOT_FOUND = 1 "N375273 MISSING_PARAMETER = 2 "N375273 MATERIAL_PLANT_NOT_FOUND = 3 "N375273 MATERIAL_MRP_AREA_DELETED = 4 "N375273 OTHERS = 5. "N375273
AUFBAUEN_MDPSX_ANZEIGEN_SIM CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN_SIM' EXPORTING EMT61D = MT61D ECM61X = CM61X ECM61W = CM61W ET399D = T399D EPLSC = XPLSC ECM61B = LS_CM61B "N375273 IMPORTING IMDKP = MDKP * IMDSTA = MDSTA "Delete 3.0F, wegen TODO
AUFBAUEN_MDPSX_ANZEIGEN CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN' EXPORTING EMT61D = MT61D ECM61X = CM61X ECM61W = CM61W ET399D = T399D ECM61B = LS_CM61B "N375273 IMPORTING IMDKP = MDKP IMDSTA = MDSTA ICM61M = CM61M TABLES MDPSX = MDPSX EXCEPTIONS ERROR = 01 ERROR_MESSAGE = 02. "N392816
ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' "Insert 3.0f
ME_READ_HISTORY CALL FUNCTION 'ME_READ_HISTORY' EXPORTING EBELN = HLP_DELNR EBELP = HLP_DELPS WEBRE = SPACE TABLES XEKBE = T_EKBE XEKBES = T_EKBES XEKBEZ = T_EKBEZ XEKBNK = T_EKBNK XEKBZ = T_EKBZ EXCEPTIONS OTHERS = 1.
MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING MASTER_IDOC_CONTROL = EDIDC TABLES COMMUNICATION_IDOC_CONTROL = T_EDIDC MASTER_IDOC_DATA = T_EDIDD.
MD_GET_ALL_MATERIAL_DB CALL FUNCTION 'MD_GET_ALL_MATERIAL_DB' EXPORTING IMATNR = HLP_MARC-MATNR IWERKS = HLP_MARC-WERKS TABLES BERX_TAB = HLP_BERX.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RMCPAF00 - Routine to Create IDOCs for Current Stock/Requirements List RMCP6_DEL_KAPA - Deletion of SOP orders in tables SAUF and KBED RMCP6_DEL_KAPA - Deletion of SOP orders in tables SAUF and KBED RMCP6VIS - Set Up Planning Hierarchy/Master Data Based on Planned/Actual Version RMCP6VIS - Set Up Planning Hierarchy/Master Data Based on Planned/Actual Version RMCP6VER - Enter Version 000 in P44V