RMSERI20 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 RMSERI20 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
MF27 - Update Stats for Planned Quantities
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.
Update Planned Figures in Run Schedule Header Statistics
Selection Text: PA_WERKS = Plant
Selection Text: SO_M01_F = D Production line
Selection Text: SO_M01_P = D Production line
Selection Text: SO_M02_P = D Planning ID 2
Title: Update Planned Figures Statistics
Text Symbol: 010 = Statistic update carried out for
Text Symbol: 020 = Plnt:
Text Symbol: 030 = PLine/PlanningID:
Text Symbol: 040 = Update interval
Text Symbol: 050 = from
Text Symbol: 060 = to
Text Symbol: 100 = Statistics records changed
Text Symbol: 101 = Statistic records newly created
Text Symbol: 102 = Stat. records: Plnd qties deleted
INCLUDE LBARMD05.
No SAP DATABASE tables are accessed within this REPORT code!
DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' EXPORTING DATE = PLAF_ERW-PEDTR IMPORTING WEEK = L_WOCHE.
RM_COMPANYCODE_FIND CALL FUNCTION 'RM_COMPANYCODE_FIND' EXPORTING WERKS = PLAF_ERW-PLWRK IMPORTING COMPCODE = L_BUKRS.
FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = PLAF_ERW-PEDTR I_PERIV = L_PERIV X_XMO16 = L_TRUE IMPORTING E_GJAHR = L_JAHR E_MONAT = L_MONAT EXCEPTIONS OTHERS = 01.
DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' EXPORTING DATE = PA_ADATU IMPORTING WEEK = L_WOCHE.
DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' EXPORTING DATE = PA_BDATU IMPORTING WEEK = L_WOCHE.
RM_COMPANYCODE_FIND CALL FUNCTION 'RM_COMPANYCODE_FIND' EXPORTING WERKS = PLAF-PLWRK IMPORTING COMPCODE = L_BUKRS.
FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = PA_ADATU I_PERIV = L_PERIV X_XMO16 = L_TRUE IMPORTING E_GJAHR = L_JAHR E_MONAT = L_MONAT EXCEPTIONS OTHERS = 01.
FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = PA_BDATU I_PERIV = L_PERIV X_XMO16 = L_TRUE IMPORTING E_GJAHR = L_JAHR E_MONAT = L_MONAT EXCEPTIONS OTHERS = 01.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = SY-REPID I_STRUCTURE_NAME = 'MDLI' CHANGING CT_FIELDCAT = LT_FIELDCAT.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IT_FIELDCAT = LT_FIELDCAT it_excluding = lt_excluding IT_EVENTS = LT_EVENTTAB TABLES T_OUTTAB = GT_ITAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 .
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = XT_EVENTTAB EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING * i_logo = 'HTMLCNTL_TESTHTM2_SAPLOGO' * I_LOGO = 'ENJOYSAP_LOGO' IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.