SAP Reports / Programs

RMCP6PRL SAP ABAP Report - Program: Delete Forecast Versions







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

MC8N - Delete forecast versions


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


Text pool values


Title: Program: Delete Forecast Versions
Text Symbol: 001 = Delete forecast
Text Symbol: 002 = Material and plants
Text Symbol: 006 = Info structure
Text Symbol: 029 = Characteristics
Text Symbol: 820 = Key figure
Text Symbol: 821 = Key figures
Text Symbol: 822 = Select Key Figure(s)


INCLUDES used within this REPORT RMCP6PRL

INCLUDE MMCP6TPL.
INCLUDE MMCP6TO2.
INCLUDE LBTCHDEF.
INCLUDE MMCP6FP1.
INCLUDE MMCP6IP1.
INCLUDE MMCP6OP1.


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:

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING DELANFREP = ' ' JOBGROUP = ' ' JOBNAME = JOBNAME IMPORTING JOBCOUNT = JOBNUMMER EXCEPTIONS CANT_CREATE_JOB = 01 INVALID_JOB_DATA = 02 JOBNAME_MISSING = 03.

BP_START_DATE_EDITOR CALL FUNCTION 'BP_START_DATE_EDITOR' EXPORTING STDT_DIALOG = BTC_YES STDT_INPUT = STARTTIME STDT_OPCODE = BTC_EDIT_STARTDATE IMPORTING STDT_MODIFY_TYPE = START_MODIFY_FLAG STDT_OUTPUT = STARTTIME EXCEPTIONS FCAL_ID_NOT_DEFINED = 01 INCOMPLETE_LAST_STARTDATE = 02 INCOMPLETE_STARTDATE = 03 INVALID_DIALOG_TYPE = 04 INVALID_EVENTID = 05 INVALID_OPCODE = 06 INVALID_OPMODE_NAME = 07 INVALID_PERIODBEHAVIOUR = 08 INVALID_PREDECESSOR_JOBNAME = 09 LAST_STARTDATE_IN_THE_PAST = 10 NO_PERIOD_DATA_GIVEN = 11 NO_STARTDATE_GIVEN = 12 PERIOD_AND_PREDJOB_NO_WAY = 13 PERIOD_TOO_SMALL_FOR_LIMIT = 14 PREDECESSOR_JOBNAME_NOT_UNIQUE = 15 STARTDATE_INTERVAL_TOO_LARGE = 16 STARTDATE_IN_THE_PAST = 17 STARTDATE_IS_A_HOLIDAY = 18 STARTDATE_OUT_OF_FCAL_RANGE = 19 STDT_BEFORE_HOLIDAY_IN_PAST = 20 UNKNOWN_FCAL_ERROR_OCCURED = 21.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = JOBNUMMER JOBNAME = JOBNAME.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = JOBNUMMER JOBNAME = JOBNAME.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = JOBNUMMER JOBNAME = JOBNAME.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING AT_OPMODE = ' ' AT_OPMODE_PERIODIC = ' ' CALENDAR_ID = ' ' EVENT_ID = STARTTIME-EVENTID EVENT_PARAM = STARTTIME-EVENTPARM EVENT_PERIODIC = ' ' JOBCOUNT = JOBNUMMER JOBNAME = JOBNAME LASTSTRTDT = STARTTIME-LASTSTRTDT LASTSTRTTM = STARTTIME-LASTSTRTTM PRDDAYS = STARTTIME-PRDDAYS PRDHOURS = STARTTIME-PRDHOURS PRDMINS = STARTTIME-PRDMINS PRDMONTHS = STARTTIME-PRDMONTHS PRDWEEKS = STARTTIME-PRDWEEKS PREDJOB_CHECKSTAT = ' ' PRED_JOBCOUNT = ' ' PRED_JOBNAME = ' ' SDLSTRTDT = STARTTIME-SDLSTRTDT SDLSTRTTM = STARTTIME-SDLSTRTTM STARTDATE_RESTRICTION = BTC_PROCESS_ALWAYS STRTIMMED = STARTIMMEDIATE TARGETSYSTEM = ' ' IMPORTING JOB_WAS_RELEASED = JOB_ALREADY_RELEASED EXCEPTIONS CANT_START_IMMEDIATE = 01 INVALID_STARTDATE = 02 JOBNAME_MISSING = 03 JOB_CLOSE_FAILED = 04 JOB_NOSTEPS = 05 JOB_NOTEX = 06 LOCK_FAILED = 07.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING FORCEDMODE = 'X' JOBCOUNT = JOBNUMMER JOBNAME = JOBNAME.



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