SAP Reports / Programs

RGUREC51 SAP ABAP Report - Re-post Plandata by Document Number







RGUREC51 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 RGUREC51 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 RGUREC51. "Basic submit
SUBMIT RGUREC51 AND RETURN. "Return to original report after report execution complete
SUBMIT RGUREC51 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: VRGNG = Activity
Selection Text: VERSN = Version
Selection Text: TEST = test run
Selection Text: PRUEFEN = Check if documents exist
Selection Text: LIST = Print List
Selection Text: KSTAR = Cost Element
Selection Text: KOKRS = Controlling Area
Selection Text: GJAHR = Year
Selection Text: BELNR = Document Number
Title: Re-post Plandata by Document Number
Text Symbol: 025 = Sequence
Text Symbol: 024 = Selection
Text Symbol: 015 = Version of Document not allowed for JVA
Text Symbol: 014 = Document was already posted
Text Symbol: 013 = Document has actual data
Text Symbol: 012 = Currency error
Text Symbol: 011 = Controlling area not found
Text Symbol: 010 = Activity not relevant
Text Symbol: 006 = Activity not in RWIN:
Text Symbol: 005 = document posted
Text Symbol: 004 = document checked
001 Document Number Nbr.Ln Comment


INCLUDES used within this REPORT RGUREC51

INCLUDE IS01AD00.


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:

JV_AUTHORITY_CHECK_PROCESS CALL FUNCTION 'JV_AUTHORITY_CHECK_PROCESS' "JVA EXPORTING "JVA PROCESS_CODE = 'PLAN ' "JVA ACTIVITY = '16' "JVA BUKRS = ' '. "JVA

K_COBK_TAB_CURRENCY_FILL CALL FUNCTION 'K_COBK_TAB_CURRENCY_FILL' TABLES ITCOBK = TAB_COBK EXCEPTIONS OTHERS = 8.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES COIOB_TAB = IT_COIOB I_PERIODS = IT_PERIODS.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

G_COBK_HEADER CALL FUNCTION 'G_COBK_HEADER' EXPORTING I_COBK = COBK I_KWAER = ITKA01-WAERS I_TWAER = ITKA01-WAERS.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS I_MESSAGE = 1 W_MESSAGE = 2 E_MESSAGE = 3 A_MESSAGE = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES T_MESG = IT_MESG.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

G_COEJA_CHECK CALL FUNCTION 'G_COEJA_CHECK' TABLES I_COBK = IT_COBK I_COEJA = IT_COEJA I_COIOB = IT_COIOB I_PERIODS = IT_PERIODS.

G_COEJRA_CHECK CALL FUNCTION 'G_COEJRA_CHECK' TABLES I_COBK = IT_COBK I_COEJRA = IT_COEJRA I_COIOB = IT_COIOB I_PERIODS = IT_PERIODS.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS I_MESSAGE = 1 W_MESSAGE = 2 E_MESSAGE = 3 A_MESSAGE = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES T_MESG = IT_MESG.

G_COEJA_UPDATE CALL FUNCTION 'G_COEJA_UPDATE' TABLES I_COBK = IT_COBK I_COEJA = IT_COEJA I_COIOB = IT_COIOB.

G_COEJRA_UPDATE CALL FUNCTION 'G_COEJRA_UPDATE' TABLES I_COBK = IT_COBK I_COEJRA = IT_COEJRA I_COIOB = IT_COIOB.

G_NACHBUCHEN_ENDE CALL FUNCTION 'G_NACHBUCHEN_ENDE'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

JV_CO_PLAN_CHECK CALL FUNCTION 'JV_CO_PLAN_CHECK' TABLES I_COBK = IT_COBK I_COEJA = IT_COEJA I_COIOB = IT_COIOB I_PERIODS = IT_PERIODS.

MESSAGES_STOP





CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS I_MESSAGE = 1 W_MESSAGE = 2 E_MESSAGE = 3 A_MESSAGE = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES T_MESG = IT_MESG.

JV_CO_POST_PLAN CALL FUNCTION 'JV_CO_POST_PLAN' TABLES I_COBK = IT_COBK I_COEJA = IT_COEJA I_COIOB = IT_COIOB.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START'.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES ILEDGER = GLD.

G_COBK_HEADER CALL FUNCTION 'G_COBK_HEADER' EXPORTING I_COBK = TAB_COBK I_KWAER = TAB_COBK-KWAER I_TWAER = TAB_COBK-KWAER.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES ILEDGER = GLD.

G_NACHBUCHEN_ENDE CALL FUNCTION 'G_NACHBUCHEN_ENDE'.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING PERIOD = FIL_PTABLE-BUPER VARIANT = FIL_LMONA YEAR = FIL_GJAHR IMPORTING FROM_DATE = FIL_PTABLE-DATAB LAST_NORMAL_PERIOD = LAST_NORMAL_PERIOD TO_DATE = FIL_PTABLE-DATBI.



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