SAP Reports / Programs

RGUREC30 SAP ABAP Report - Transfer Documents from Materials Management







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

1KEC - Post MM data to EC-PCA
GCU4 - Subsequent Posting of Data From MM
OCN2 - FI-LC: Repost MM data
OKBB - Transfer MM Documents to CO


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 RGUREC30. "Basic submit
SUBMIT RGUREC30 AND RETURN. "Return to original report after report execution complete
SUBMIT RGUREC30 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: ACTIVITY = Activity
Selection Text: AWTYP = Document origin
Selection Text: BUKRS = Company code
Selection Text: GJAHR = Fiscal year
Selection Text: LIST = List posted documents
Selection Text: LOESCH = Delete old data
Selection Text: PERIOD = Period
Selection Text: PRUEFEN = Check for existing records
Selection Text: RBELNR = Document number
Selection Text: RBLDAT = Document date
Selection Text: RBUDAT = Posting date
Selection Text: RCPUDT = Created on
Selection Text: STORNO = Reversal
Selection Text: TEST = Test run
Selection Text: T_LEDGER = Target ledger
Title: Transfer Documents from Materials Management
Text Symbol: 190 = Transfer documents from Materials Management
Text Symbol: 180 = Fiscal year change
Text Symbol: 160 = Document resulted from transfer of funds
Text Symbol: 150 = Document reassigned
Text Symbol: 140 = Document is in fiscal year change
Text Symbol: 130 = Document has been reversed
Text Symbol: 120 = Processing options
Text Symbol: 004 = Read:
Text Symbol: 005 = posted
Text Symbol: 006 = Activity not in RWIN:
Text Symbol: 007 = This document was not posted to any ledger because of Customizing settings
Text Symbol: 008 = This document was not posted to the target ledger because of Customizing settings
Text Symbol: 010 = No. of transferred docmnts:
Text Symbol: 020 = Document already posted in ledger
Text Symbol: 030 = Document origin
Text Symbol: 031 = Activity
Text Symbol: 032 = Type
Text Symbol: 033 = Text
Text Symbol: 034 = Tr.
Text Symbol: 035 = Company code
Text Symbol: 036 = CCDE
Text Symbol: 037 = Name





Text Symbol: 038 = City
Text Symbol: 039 = Ctry
Text Symbol: 040 = Crcy
Text Symbol: 050 = Document already exists
Text Symbol: 100 = Business Transaction
Text Symbol: 101 = Further Selection Restrictions
Text Symbol: 110 = Document
001 Document no. No. Line Remarks


INCLUDES used within this REPORT RGUREC30

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.

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING popup_title = ' ' text_object = 'FI_GLX_GI_RGUREC_T_LEDGER'.

G_DISPLAY_LEDGERS_FOR_TABLE CALL FUNCTION 'G_DISPLAY_LEDGERS_FOR_TABLE' EXPORTING gappl = 'FI' gsubappl = 'SL' only_free_ledgers = 'X' IMPORTING picked_ledger = t_ledger EXCEPTIONS no_ledger_found = 1.

HELP_OBJECT_SHOW_FOR_FIELD CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD' EXPORTING called_for_tab = 'RKEC1' called_for_field = 'STORNO'.

G_TRACE_START CALL FUNCTION 'G_TRACE_START' EXCEPTIONS trace_already_on = 1 OTHERS = 2.

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 = text-190 TABLES i_gledger = t_mess_gld.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START'.

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_RWIN_HEADER CALL FUNCTION 'G_RWIN_HEADER' TABLES t_acchd = it_acchd t_accit = it_accit t_acccr = it_acccr.

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_acchd = it_acchd i_text_line = text-007.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd i_msgty = 'E' i_arbgb = 'GI' i_txtnr = '732' i_msgv1 = t_ledger.






G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd TABLES t_mesg = t_h_mesg.

COPCA_DOCUMENT_RECORD CALL FUNCTION 'COPCA_DOCUMENT_RECORD' EXPORTING i_awtyp = s_accthd-awtyp i_awref = s_accthd-awref i_aworg = s_accthd-aworg i_bukrs = g_bukrs i_poper = poper TABLES t_documents = t_documents.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd i_text_line = text-050.

KE_TRANSACTION_DATA_DELETE * call function 'KE_TRANSACTION_DATA_DELETE' * exporting * ryear = gjahr * rbukrs = bukrs * docnr = s_accthd-awref * docct = 'W' * awtyp = s_accthd-awtyp * test_indicator = test * log = space * importing * duprec = duprec_sto * exceptions * document_number_incomplete = 01 * hrkft_without_racct = 02 * planversion_vs_actual_data = 03 * missing_parameters = 04.

LC_DOCUMENT_RECORD * CALL FUNCTION 'LC_DOCUMENT_RECORD' "wms066666 * EXPORTING "wms066666 * I_AWTYP = S_ACCTHD-AWTYP "wms066666 * I_AWREF = S_ACCTHD-AWREF "wms066666 * I_AWORG = S_ACCTHD-AWORG "wms066666 * I_BUKRS = BUKRS "wms066666 * I_BUDAT = S_ACCTHD-CPUDT "wms066666 * TABLES "wms066666 * T_DOCUMENTS = T_DOCUMENTS. "wms066666

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd i_text_line = text-050.

CO_DOCUMENT_RECORD CALL FUNCTION 'CO_DOCUMENT_RECORD' EXPORTING i_awtyp = s_accthd-awtyp i_awref = s_accthd-awref i_aworg = s_accthd-aworg i_bukrs = g_bukrs TABLES t_documents = t_documents.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd i_text_line = text-050.

COPCA_RW_REPOSTING_START * call function 'COPCA_RW_REPOSTING_START'.

COPCA_RW_REPOSTING_START CALL FUNCTION 'COPCA_RW_REPOSTING_START' EXPORTING flag = 'X' application = 'MM'.

G_NACHBUCHEN_START CALL FUNCTION 'G_NACHBUCHEN_START'.

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.

SET_FACI_GM_FLAGS CALL FUNCTION 'SET_FACI_GM_FLAGS' EXPORTING subseq_post = 'X'.

FI_SL_FLAG_SET CALL FUNCTION 'FI_SL_FLAG_SET' "Keine Verprobung externe Belegnummer EXPORTING i_nochk = 'X'.

FI_OFFSET_ACCOUNT_DETERMINE CALL FUNCTION 'FI_OFFSET_ACCOUNT_DETERMINE' TABLES t_accit = it_accit t_acccr = it_acccr.

FI_DOCUMENT_PROJECT CALL FUNCTION 'FI_DOCUMENT_PROJECT' TABLES t_acchd = it_acchd t_accit = it_accit t_acccr = it_acccr.

FAGL_RWIN_SPLIT CALL FUNCTION 'FAGL_RWIN_SPLIT' EXPORTING i_subsequent = 'X' TABLES t_acchd = it_acchd t_accit = it_accit t_acccr = it_acccr * T_ACCIT_EXT = t_accit_spl = lt_accit_spl t_acccr_spl = lt_acccr_spl.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' "GM EXPORTING "GM i_comp = space "GM i_comp_check = space "GM TABLES "GM t_acchd = it_acchd "GM t_accit = it_accit "GM t_acccr = it_acccr "GM EXCEPTIONS "GM error_message = 8. "GM

AC_DOCUMENT_CREATE



CALL FUNCTION 'AC_DOCUMENT_CREATE' EXPORTING i_comp = application i_comp_check = application TABLES t_acchd = it_acchd t_accit = it_accit t_acccr = it_acccr t_accit_spl = lt_accit_spl t_acccr_spl = lt_acccr_spl EXCEPTIONS error_message = 8.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = 'X' i_acchd = it_acchd i_msgty = sy-msgty i_arbgb = sy-msgid i_txtnr = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

FI_SL_FLAG_SET CALL FUNCTION 'FI_SL_FLAG_SET' "Keine Verprobung externe Belegnummer EXPORTING i_nochk = ' '.

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_acchd = it_acchd TABLES t_mesg = it_mesg.

KE_TRANSACTION_DATA_DELETE CALL FUNCTION 'KE_TRANSACTION_DATA_DELETE' EXPORTING poper = poper "<<<< NOTE 205870 ryear = g_gjahr rbukrs = g_bukrs docnr = s_accthd-awref "#EC DOM_EQUAL docct = 'W' awtyp = s_accthd-awtyp test_indicator = test log = space IMPORTING duprec = duprec_sto EXCEPTIONS document_number_incomplete = 01 hrkft_without_racct = 02 planversion_vs_actual_data = 03 missing_parameters = 04.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = ' ' i_acchd = it_acchd i_text_line = text-130.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awtyp = it_accit-awtyp i_awref = it_accit-awref i_aworg = it_accit-aworg i_comp = application.

COPCA_RW_REPOSTING_END CALL FUNCTION 'COPCA_RW_REPOSTING_END'.

G_NACHBUCHEN_ENDE CALL FUNCTION 'G_NACHBUCHEN_ENDE'.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = ' ' i_acchd = it_acchd.

G_DISPLAY_SELECTION_DYNPRO CALL FUNCTION 'G_DISPLAY_SELECTION_DYNPRO' EXPORTING allow_print = 'X' dynp_title = title sel_title1 = i_typt sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' IMPORTING sel_index = sy-tabix TABLES sel_table = i_typt EXCEPTIONS no_lines = 02 no_line_picked = 03.

G_DISPLAY_SELECTION_DYNPRO CALL FUNCTION 'G_DISPLAY_SELECTION_DYNPRO' EXPORTING allow_print = 'X' dynp_title = title sel_title1 = i_022t sel_title2 = space show_also_1 = 'X' width_of_titles = 'X' start_column = '2' IMPORTING sel_index = sy-tabix TABLES sel_table = i_022t EXCEPTIONS no_lines = 02 no_line_picked = 03.

G_CURRENCY_FROM_CT_GET CALL FUNCTION 'G_CURRENCY_FROM_CT_GET' EXPORTING bukrs = p_bukrs ct = p_curtp allow_cvtyps = 'X' IMPORTING currency = lt_curtp-waers.

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