SAP Reports / Programs

RMCP6FLS SAP ABAP Report - Set Up Planning Hierarchy/Master Data Based on Planned/Actual Version







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

MC9A - Flexible Planning: Gen. Master Data


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


Text pool values


Selection Text: FLGSIM = Simulation Indicator
Title: Set Up Planning Hierarchy/Master Data Based on Planned/Actual Version
Text Symbol: 001 = Info structure
Text Symbol: 002 = Version
Text Symbol: 003 = Key figure for calculation of proportional factors
Text Symbol: 031 = Period
Text Symbol: 033 = To
Text Symbol: 034 = From
Text Symbol: 035 = Simulation indicator
Text Symbol: 036 = Self-defined method
Text Symbol: 100 = Maximum no. of planning objects at detailed level
Text Symbol: 820 = Key figure
Text Symbol: 821 = Key figures
Text Symbol: 822 = Select Key Figure(s)


INCLUDES used within this REPORT RMCP6FLS

INCLUDE MMCP6TO1.
INCLUDE MMCP6TP1.


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:

MCP_MESSAGE_INIT CALL FUNCTION 'MCP_MESSAGE_INIT'.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MC_GSTRU_PRUEFEN CALL FUNCTION 'MC_GSTRU_PRUEFEN' EXPORTING I_GSTRU = SAV_GSTRU IMPORTING * O_DATFCNT = O_KEYCNT = START_INDEX * O_SUBRC = O_UNITCNT = SAV_ANZ_UNIT_FIELDS TABLES T_DATF = DATENFELDER T_KEYS = KEYFELDER T_UNITS = IP_EINH.

MCS_CODING_PLAN2_GENER CALL FUNCTION 'MCS_CODING_PLAN2_GENER' EXPORTING I_GSTRU_GEN = SAV_GSTRU I_MCINF_GEN = MCINF I_MUSTERREPORT = 'MMCP5SO2' IMPORTING E_REPORTNAME = SAV_GEN_REPID1 EXCEPTIONS GENERATION_FAILED = 01.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MCS_CODING_PLAN2_GENER CALL FUNCTION 'MCS_CODING_PLAN2_GENER' EXPORTING I_GSTRU_GEN = SAV_GSTRU I_MCINF_GEN = MCINF I_MUSTERREPORT = 'MMCP6SO2' IMPORTING E_REPORTNAME = SAV_GEN_REPID EXCEPTIONS GENERATION_FAILED = 01.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

MC_PERIODE_ZUM_DATUM CALL FUNCTION 'MC_PERIODE_ZUM_DATUM' EXPORTING IDATE = HLP_VON_DATUM IPERKZ = SAV_PERKZ IPERIV = ' ' IMPORTING EPERID = TAB_PERID-PERID.

MC_PERIODE_ZUM_DATUM CALL FUNCTION 'MC_PERIODE_ZUM_DATUM' EXPORTING IDATE = HLP_VON_DATUM IPERKZ = PER_P IPERIV = SAV_PERIV IMPORTING EPERID = TAB_PERID-PERID.

MC_PERIO_GET_FIRST_AND_LASTDAY CALL FUNCTION 'MC_PERIO_GET_FIRST_AND_LASTDAY' EXPORTING IFABKL = ' ' IWERKS = ' ' IPERKZ = SAV_PERKZ IPERIV = SAV_PERIV IPERID = TAB_PERID-PERID IMPORTING EFIRSTDAY = TAB_PERID-ERTAG ELASTDAY = TAB_PERID-LASTTAG EXCEPTIONS PERID_INVALID = 01.

MCP_MESSAGE_PRINT CALL FUNCTION 'MCP_MESSAGE_PRINT' EXPORTING I_PLOBJ = ' ' I_XAUSN = 'X'.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = DYNAME DYNUMB = DYNUMB TRANSLATE_TO_UPPER = 'X' TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 01 INVALID_DYNPROFIELD = 02 INVALID_DYNPRONAME = 03 INVALID_DYNPRONUMMER = 04 INVALID_REQUEST = 05 NO_FIELDDESCRIPTION = 06 UNDEFIND_ERROR = 07.



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