SAP Reports / Programs

RGUREC50 SAP ABAP Report - CO Document Transfer: Plan Data to FI-SL







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

GJL7 - Plan Data Transfer by Documents
OBPL - Subsequently post CO plan.data to GL
GCU6 - CO plan doc subs. posting to FI-SL
FAGL_CO_PLAN - Transfer CO Plan Documents in ERP GL


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 RGUREC50. "Basic submit
SUBMIT RGUREC50 AND RETURN. "Return to original report after report execution complete
SUBMIT RGUREC50 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 = CO activity
Selection Text: VERSN = Version
Selection Text: T_LEDGER = Target ledger
Selection Text: TEST = Test run
Selection Text: PRUEFEN = Check for existing records
Selection Text: LIST = List posted records
Selection Text: KSTAR = Cost element
Selection Text: KOKRS = Controlling area
Selection Text: GJAHR = Fiscal year
Selection Text: CPUDT = Created on
Selection Text: BUDAT = Posting date
Selection Text: BELNR = Document number
Title: CO Document Transfer: Plan Data to FI-SL
Text Symbol: 031 = Document is not relevant to General Ledger (no primary cost element)
Text Symbol: 030 = Number of Transferred Documents:
Text Symbol: 025 = Processing options
Text Symbol: 024 = Selection
Text Symbol: 018 = Cost element:
Text Symbol: 017 = Posting line:
Text Symbol: 016 = Original doc no:
Text Symbol: 015 = Original doc belongs to another application:
Text Symbol: 014 = Document already posted in ledger
Text Symbol: 013 = Doc. is an actual doc.
Text Symbol: 012 = Error in currency determination
Text Symbol: 011 = Controlling area not found
Text Symbol: 010 = No FI-SL relevant activity
Text Symbol: 009 = Document will not be posted to General Ledger due to its activity or version
Text Symbol: 008 = This document was not posted to the target ledger because of Customizing settings
Text Symbol: 007 = This document was not posted to any ledger because of Customizing settings
Text Symbol: 006 = Activity not in RWIN:
Text Symbol: 005 = Posted
Text Symbol: 004 = Read:
Text Symbol: 002 = CO Document Transfer: Planning Data to General Ledger
Text Symbol: 001 = CO Document Transfer: Plan Data to FI-SL
001 Document Number Number of Line Remarks


INCLUDES used within this REPORT RGUREC50

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:

G_ADMI_AUTHORITY_CHECK CALL FUNCTION 'G_ADMI_AUTHORITY_CHECK' EXPORTING activity = '13' "Datenübernahme EXCEPTIONS not_authorized = 04.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = 'GLU1' fieldname = 'RLDNR' searchhelp = ld_searchhelp shlpparam = 'RLDNR' dynpprog = sy-repid dynpnr = sy-dynnr dynprofield = 'T_LEDGER'.

G_READ_FIXED_LEDGERS CALL FUNCTION 'G_READ_FIXED_LEDGERS' EXPORTING table = 'GLT0' with_parallel_ledgers = space TABLES ledgers = glt0_ledgers.

JV_AUTHORITY_CHECK_PROCESS * CALL FUNCTION 'JV_AUTHORITY_CHECK_PROCESS' "JVA CALL FUNCTION jv_function_1 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.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = h_work.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk TABLES t_mesg = t_h_mesg.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = h_work.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = h_work.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = text-011.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

K_OBJECTS_MASTER_READ CALL FUNCTION 'K_OBJECTS_MASTER_READ' TABLES coiob_tab = it_coiob i_periods = it_periods EXCEPTIONS OTHERS = 2.

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_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = it_cobk TABLES t_mesg = it_mesg.

G_MESS_PRINT_PROTOCOL CALL FUNCTION 'G_MESS_PRINT_PROTOCOL' EXPORTING i_post_ok_list = h_list i_test = h_test i_precheck = h_precheck i_protocol_text = gd_protocol_header TABLES i_gledger = t_mess_gld.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START' EXPORTING fi = fi.

G_SET_TARGET_LEDGER CALL FUNCTION 'G_SET_TARGET_LEDGER' EXPORTING t_ledger = target_ledgers.

MESSAGES_INITIALIZE





CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

G_COBK_HEADER CALL FUNCTION 'G_COBK_HEADER' EXPORTING i_cobk = cobk i_kwaer = itka01-waers i_twaer = itka01-waers i_tka01 = itka01 i_glflex_only = gd_glflex_only i_glflex_targ_ledger = ld_target_ledger TABLES t_bukrs = bukrs_tab.

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_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = it_cobk TABLES t_mesg = it_mesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = msg_identification IMPORTING e_identification = msg_identification.

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_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = it_cobk TABLES t_mesg = it_mesg.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' EXPORTING no_refresh = 'X' TABLES iledger = lt_ledger.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = text-031.

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'.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = ' ' i_cobk = it_cobk.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START' EXPORTING fi = fi.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = gld.

G_SET_TARGET_LEDGER CALL FUNCTION 'G_SET_TARGET_LEDGER' EXPORTING t_ledger = target_ledgers.




G_COBK_HEADER CALL FUNCTION 'G_COBK_HEADER' EXPORTING i_cobk = tab_cobk i_kwaer = tab_cobk-kwaer i_twaer = tab_cobk-kwaer i_tka01 = itka01 i_glflex_only = gd_glflex_only i_glflex_targ_ledger = rldnr TABLES t_bukrs = bukrs_tab.

G_GIVE_GLEDGER CALL FUNCTION 'G_GIVE_GLEDGER' TABLES iledger = gld.

G_NACHBUCHEN_ENDE CALL FUNCTION 'G_NACHBUCHEN_ENDE'.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = ld_string.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = text-009.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = ld_string.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk TABLES t_mesg = t_h_mesg.

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.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

JV_CO_PLAN_CHECK * CALL FUNCTION 'JV_CO_PLAN_CHECK' CALL FUNCTION jv_function_2 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.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = it_cobk TABLES t_mesg = it_mesg.

JV_CO_POST_PLAN * CALL FUNCTION 'JV_CO_POST_PLAN' CALL FUNCTION jv_function_3 TABLES i_cobk = it_cobk i_coeja = it_coeja i_coiob = it_coiob.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = ' ' i_cobk = it_cobk.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = text-015.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_cobk = tab_cobk i_text_line = text-014.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = sy-repid TABLES SELECTION_TABLE = lt_rsparams.

G_UPDATE_T800HIST CALL FUNCTION 'G_UPDATE_T800HIST' EXPORTING I_OBJNAME = sy-repid TABLES T_RSPARAMS = lt_rsparams.



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