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

RMCPAF00 SAP ABAP INCLUDE - Routine to Create IDOCs for Current Stock/Requirements List







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


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


Text pool values


Title: Routine to Create IDOCs for Current Stock/Requirements List


INCLUDES used within this REPORT RMCPAF00

INCLUDE SCMDLT01.
INCLUDE MM61XDBR.


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:

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.



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