SAP Reports / Programs

RGPLNCRE SAP ABAP Report - FI-SL Planning: Generate Database Routines







RGPLNCRE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program RGPLNCRE generates the read routines in the form pool SAPFGPLN which the planning processor requires in order to be able to access the planning records from the FI-GLX summary tables...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RGPLNCRE 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 RGPLNCRE. "Basic submit
SUBMIT RGPLNCRE AND RETURN. "Return to original report after report execution complete
SUBMIT RGPLNCRE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: FI-SL Planning: Generate Database Routines
Text Symbol: 001 = Generate database routines for FI-SL planning
Text Symbol: 002 = Database routines for table $ generated (SAPFGPLN)
Text Symbol: 003 = FI-SL Planning: Generate Database Routines


INCLUDES used within this REPORT RGPLNCRE

FORM GENERATE_INCLUDES.


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:

G_GET_TABLE_INFO CALL FUNCTION 'G_GET_TABLE_INFO' EXPORTING I_TAB = T800A-TAB IMPORTING E_TAB_INFO = WA_T800A.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING FIELDNAME = 'LOGSYS' TABLE = T800A-TAB EXCEPTIONS NOT_FOUND = 01.

G_SPLIT_LINE CALL FUNCTION 'G_SPLIT_LINE' EXPORTING INPUT_LINE = CODE CONDENSE_SHORT_LINES = 'X' TABLES EXPORT_LINES = EXPORT_LINES EXCEPTIONS OTHERS = 1.

G_UPDATE_T800O CALL FUNCTION 'G_UPDATE_T800O' EXPORTING PGMID = 'R3TR' OBJECT = 'PROG' OBJNAME = CRD_RNAME GEN_PROGRAM = 'RGPLNCRE' USNAM = SY-UNAME UDAT = SY-DATUM UTIME = SY-UZEIT.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING TABLE = GLTAB-TT FTYPE = 'K'.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING NO_GLX_OBJ_PROCESSING = 'X' TABLE = GLTAB-TT FTYPE = 'K'.

G_FIELD_GET_WITH_KEY CALL FUNCTION 'G_FIELD_GET_WITH_KEY' EXPORTING FIELDNAME = 'DRCRK ' IMPORTING OFFSET = SY-INDEX EXCEPTIONS NOT_FOUND = 1.

G_FIELD_GET_WITH_KEY CALL FUNCTION 'G_FIELD_GET_WITH_KEY' EXPORTING FIELDNAME = 'RPMAX ' IMPORTING OFFSET = SY-INDEX.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING TABLE = GLTAB-TT FTYPE = 'K'.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING FIELD_ATTR = DFIES SUBRC = USUBRC.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING TABLE = GLTAB-TT FTYPE = 'K'.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING FIELD_ATTR = DFIES SUBRC = USUBRC.

CALL FUNCTION 2 0 'CALL FUNCTION ''G_MAX_PERIOD_AND_OFFSET_GET''' SPACE, 5 0 'EXPORTING TABLE = T881-TAB' SPACE, 10 0 'PERIOD = E02_FRPER' SPACE, -10 0 'IMPORTING RPMAX = RPMAX' SPACE, 10 0 'OFFSET = OFFSET.' SPACE,

CALL FUNCTION C = 'CALL FUNCTION ''PCA_PLANDATA_MODIFY'''.

CALL FUNCTION C = 'CALL FUNCTION ''G_POSTING_$'' IN UPDATE TASK'.

CALL FUNCTION C = 'CALL FUNCTION ''G_VALIDATE_RECORD'''.

CALL FUNCTION C = 'CALL FUNCTION ''G_POPUP_TO_DECIDE_IN_PLANNING'''.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = LS_LOG IMPORTING E_LOG_HANDLE = XV_LOG_HDL EXCEPTIONS LOG_HEADER_INCONSISTENT = 1 OTHERS = 2.

BAL_LOG_MSG_ADD_FREE_TEXT





CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING I_LOG_HANDLE = IV_LOG_HDL I_MSGTY = LV_MSGTY I_PROBCLASS = LV_PROBCLS I_TEXT = LV_TEXT EXCEPTIONS LOG_NOT_FOUND = 1 MSG_INCONSISTENT = 2 LOG_IS_FULL = 3 OTHERS = 4.

BAL_DSP_PROFILE_SINGLE_LOG_GET CALL FUNCTION 'BAL_DSP_PROFILE_SINGLE_LOG_GET' IMPORTING E_S_DISPLAY_PROFILE = LS_DISPLAY_PROFILE.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING I_S_DISPLAY_PROFILE = LS_DISPLAY_PROFILE I_T_LOG_HANDLE = LT_LOG_HDL * i_amodal = 'X' EXCEPTIONS PROFILE_INCONSISTENT = 1 INTERNAL_ERROR = 2 NO_DATA_AVAILABLE = 3 NO_AUTHORITY = 4 OTHERS = 5.



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