SAP Reports / Programs

RGUCOMP4 SAP ABAP Report - Ledger Comparison







RGUCOMP4 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program compares the totals records of any two ledgers...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 RGUCOMP4 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

GCAC - Ledger comparison
GCAE - Ledger comparison w/diff. clearing
GCAR - Ledger Comparison Remote


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 RGUCOMP4. "Basic submit
SUBMIT RGUCOMP4 AND RETURN. "Return to original report after report execution complete
SUBMIT RGUCOMP4 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: P_BBUKRS = Company Code
Selection Text: P_BFLD1 = 1. Base Ledger Field Name
Selection Text: P_BFLD2 = 2. Base Ledger Field Name
Selection Text: P_BFRPER = From Period
Selection Text: P_BRCOMP = Company
Selection Text: P_BRLDNR = Ledger
Selection Text: P_BRVERS = Version
Selection Text: P_BRYEAR = Fiscal Year
Selection Text: P_BTOPER = To Period
Selection Text: P_CFLD1 = 1. Comparison Ledger Fld Name
Selection Text: P_CFLD2 = 2. Comparison Ledger Fld Name
Selection Text: P_CLACCT = Clearing Account
Selection Text: P_CRLDNR = Ledger
Selection Text: P_CRVERS = Version
Selection Text: P_CURR = Currencies
Selection Text: P_DIFF = Display Differences Only
Selection Text: P_POST = Reconcile Differences
Selection Text: P_QUANT = Quantities
Selection Text: P_RACCT = Account
Selection Text: P_REMOTE = Remote Comparison
Selection Text: P_RRCTY = Record Type
Selection Text: P_SGTXT = Document Text
Selection Text: P_LSYS = D .
Title: Ledger Comparison
Text Symbol: 042 = Additional Fields for Comparison
Text Symbol: 043 = Detailed display ledger $: Totals
Text Symbol: 044 = Detailed display ledger $: Periods
Text Symbol: 045 = Detailed display ledger $: Line items
Text Symbol: 046 = Data for base ledger being read
Text Symbol: 047 = Data for comparison ledger being read
Text Symbol: 048 = Comparison data being prepared
Text Symbol: 049 = Differences being determined
Text Symbol: 050 = Differences being cleared
Text Symbol: 051 = Ledger
Text Symbol: 052 = Version
Text Symbol: 053 = Cost Elem
Text Symbol: 054 = Curr. Clnt
Text Symbol: 055 = Client





Text Symbol: 060 = Description
Text Symbol: 061 = Database Connection
Text Symbol: 041 = Clear Currency Differences
Text Symbol: 001 = Base Ledger Selection Data
Text Symbol: 002 = Comparison Ledger Selection Data
Text Symbol: 003 = Common Selection Data
Text Symbol: 004 = Additional Fields for Comparison
Text Symbol: 005 = Key Figures for Comparison
Text Symbol: 006 = Display Options
Text Symbol: 007 = Base Ledger
Text Symbol: 008 = Comparison Ledger
Text Symbol: 009 = Differ.
Text Symbol: 010 = Comparison of
Text Symbol: 011 = Qty
Text Symbol: 012 = Addit. Qty
Text Symbol: 013 = Base Ledger Version
Text Symbol: 014 = Record Type
Text Symbol: 015 = Fiscal Year
Text Symbol: 016 = From Period
Text Symbol: 017 = To Period
Text Symbol: 018 = Comparison Ldgr Vers
Text Symbol: 019 = Company Code
Text Symbol: 020 = Company
Text Symbol: 021 = Account
Text Symbol: 022 = Currency
Text Symbol: 023 = Unit of Measure
Text Symbol: 024 = Period
Text Symbol: 025 = From Per
Text Symbol: 026 = To Per.
Text Symbol: 027 = Choose Key Figure
Text Symbol: 028 = Alternative acct not defined
Text Symbol: 029 = Corporate account not defined
Text Symbol: 030 = Remarks
Text Symbol: 031 = Alternative account
Text Symbol: 032 = Group Account Number
Text Symbol: 033 = Activities after Euro conversion
Text Symbol: 034 = Are you sure you want to clear
Text Symbol: 035 = currency differences?
Text Symbol: 036 = Clear Currency Differences





Text Symbol: 037 = Enter Posting Information
Text Symbol: 038 = Reconcile Differences Following Conversion to Euro (Background Proc.Only)
Text Symbol: 039 = Displayed Currency Type
Text Symbol: 040 = Ledger Comparison


INCLUDES used within this REPORT RGUCOMP4

No INCLUDES are used within this REPORT code!


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:

RFC_IS_GUI_ON CALL FUNCTION 'RFC_IS_GUI_ON' IMPORTING ON = ld_dynp_ok. "Y = No RFC

FAGL_DBCON_GET_APPL CALL FUNCTION 'FAGL_DBCON_GET_APPL' EXPORTING IT_REQUIRED_TABLE = t_required_table I_UNAME = SY-UNAME IMPORTING ET_MESSAGE = t_messages EXCEPTIONS DBCON_NOT_EXIST = 1 DBCON_NO_USE = 2 DBCON_ERROR = 3 DBCON_OTHERS = 4 FUNCTION_NOT_EXIST = 5 OTHERS = 6.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = t881-tab lfieldname = 'LOGSYS' EXCEPTIONS not_found = 1 * OTHERS = 2 .

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = t881-tab fieldname = 'RACCT' EXCEPTIONS not_found = 1 OTHERS = 2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = t881-tab lfieldname = 'LOGSYS' EXCEPTIONS not_found = 1 * OTHERS = 2 .

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING table = t881-tab fieldname = 'RACCT' EXCEPTIONS not_found = 1 OTHERS = 2.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_bfld1 table = t800a-tab.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_cfld1 table = *t800a-tab.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_bfld2 table = t800a-tab.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_cfld2 table = *t800a-tab.

HELPSCREEN_CREATE CALL FUNCTION 'HELPSCREEN_CREATE' EXPORTING doku_id = 'DE' doku_objekt = 'COMP_DIFF' titel = text-041 EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING collect_and_send = collect_and_send i_identification = message_identification IMPORTING e_identification = message_identification.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING I_BUKRS = t_t001-bukrs IMPORTING E_KOKRS = lf_kokrs EXCEPTIONS NO_KOKRS_FOUND = 1 OTHERS = 2.

G_COMBINE_RCOMP_CONS_RBUSA * CALL FUNCTION 'G_COMBINE_RCOMP_CONS_RBUSA' "wms049564 * EXPORTING "wms049564 * e_rcomp = t880-rcomp "wms049564 * e_rbusa = t_tgsb-gsber_kons "wms049564 * IMPORTING "wms049564 * i_rcomp = t_company-rcomp. "wms049564

K_CURRTYP_AND_VAL_GET CALL FUNCTION 'K_CURRTYP_AND_VAL_GET' EXPORTING i_cvtyp = t_fieldgroups-curtp IMPORTING e_currtyp = h_currtyp e_valutyp = h_valutyp EXCEPTIONS illegal_cvtyp = 1 OTHERS = 2.

G_TEXT_FOR_CT_GET CALL FUNCTION 'G_TEXT_FOR_CT_GET' EXPORTING ct = h_currtyp IMPORTING text_20 = t_fieldgroups-name EXCEPTIONS OTHERS = 1.




G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = t_t882-b_periv year = p_bryear IMPORTING last_normal_period = h_b_last_normal_period TABLES i_periods = h_periods.

G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = t_t882-c_periv year = p_bryear IMPORTING last_normal_period = h_b_last_normal_period TABLES i_periods = h_periods.

G_NBR_OF_PERIODS_GET CALL FUNCTION 'G_NBR_OF_PERIODS_GET' EXPORTING periv = t_t882-b_periv IMPORTING anzbp = h_b_anzbp anzsp = h_b_anzsp EXCEPTIONS periv_not_found = 1 OTHERS = 2.

G_NBR_OF_PERIODS_GET CALL FUNCTION 'G_NBR_OF_PERIODS_GET' EXPORTING periv = t_t882-c_periv IMPORTING anzbp = h_c_anzbp anzsp = h_c_anzsp EXCEPTIONS periv_not_found = 1 OTHERS = 2.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = h_b_fr_poper variant = t_periods-b_periv year = p_bryear IMPORTING from_date = t_periods-b_frdate to_date = t_periods-b_todate last_normal_period = h_b_last_normal_period EXCEPTIONS period_not_defined = 1 variant_not_defined = 2 OTHERS = 3.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = t_periods-b_frdate variant = t_periods-c_periv IMPORTING period = t_periods-c_popermin year = t_periods-c_yearmin EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = t_periods-b_todate variant = t_periods-c_periv IMPORTING period = t_periods-c_popermax year = t_periods-c_yearmax EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = t_periods-c_popermin variant = t_periods-c_periv year = t_periods-c_yearmin IMPORTING from_date = t_periods-c_frdate EXCEPTIONS period_not_defined = 1 variant_not_defined = 2 OTHERS = 3.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = t_periods-c_popermax variant = t_periods-c_periv year = t_periods-c_yearmax IMPORTING to_date = t_periods-c_todate EXCEPTIONS period_not_defined = 1 variant_not_defined = 2 OTHERS = 3.

G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = t_t882-b_periv year = p_bryear TABLES i_periods = h_periods.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = h_periods-buper variant = t_periods-b_periv year = p_bryear IMPORTING from_date = t_periods-b_frdate EXCEPTIONS period_not_defined = 1 variant_not_defined = 2 OTHERS = 3.

G_PERIOD_GET CALL FUNCTION 'G_PERIOD_GET' EXPORTING date = t_periods-b_frdate variant = t_periods-c_periv IMPORTING year = t_periods-c_yearmin EXCEPTIONS ledger_not_assigned_to_company = 1 period_not_defined = 2 variant_not_defined = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = h_orgunit msgv2 = t_t882-b_periv msgv3 = t_t882-c_periv txtnr = h_txtnr. "overlapping periods

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = h_text.

G_TABLE_OPEN_CURSOR call function 'G_TABLE_OPEN_CURSOR' EXPORTING i_tabname = h_tab i_selection = t_selection i_fieldlist = t_fields i_aggregation = 'X' * i_with_hold = 'X' "note 1704775 I_CLIENT_SPECIFIED = ld_CLIENT_SPECIFIED I_DBCON_NAME = dbcon "note 1704775 IMPORTING e_cursor = h_cursor.

FCOM_TABLE_OPEN_CURSOR call function 'FCOM_TABLE_OPEN_CURSOR' EXPORTING i_tka01 = ls_tka01 i_tabname = h_tab i_selection = t_selection i_fieldlist = t_fields i_aggregation = 'X' i_with_hold = 'X' IMPORTING e_cursor = h_cursor.

G_TABLE_FETCH CALL FUNCTION 'G_TABLE_FETCH' EXPORTING i_cursor = h_cursor i_package_size = c_package_size i_zero_records = 'X' CHANGING c_t_glu1 = t_glu1 EXCEPTIONS no_more_data = 1.

FCOM_TABLE_FETCH CALL FUNCTION 'FCOM_TABLE_FETCH' EXPORTING i_tka01 = ls_tka01 i_cursor = h_cursor i_package_size = c_package_size i_zero_records = 'X' i_compare_ledger = t_t881-b_rldnr "basis ledger CHANGING c_t_glu1 = t_glu1 EXCEPTIONS no_more_data = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = p_crldnr txtnr = '267'. "No data found in compared ledger

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '268'. "No data found in both ledgers

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = p_brldnr txtnr = '267'. "No data found in basis ledger

DB_COMMIT * CALL FUNCTION 'DB_COMMIT'.

G_COMBINE_RCOMP_CONS_RBUSA * CALL FUNCTION 'G_COMBINE_RCOMP_CONS_RBUSA' "wms049564 * EXPORTING "wms049564 * e_rcomp = t_t001-rcomp "wms049564 * e_rbusa = t_tgsb-gsber_kons "wms049564 * IMPORTING "wms049564 * i_rcomp = t_t882-c_rcomp. "wms049564

READ_ACCOUNT_TEXT CALL FUNCTION 'READ_ACCOUNT_TEXT' EXPORTING I_CCODE = fa_t_t882-b_bukrs I_GLACC = fa_compare_racct IMPORTING E_GLTEXT = ld_txt20.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-049.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = t_fieldgroups-name txtnr = '269'. "No data found in compared ledger

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '291'. "General Informations

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '292'. "General Informations

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '293' "General Informations msgv1 = t_t882_curr-orgunit msgv2 = t_t882_curr-b_curtp msgv3 = t_t882_curr-c_curtp.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '287'. "Accounts could not be substituted

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = t_no_auth-rldnr msgv2 = t_no_auth-rrcty msgv3 = t_no_auth-rvers msgv4 = h_orgunit txtnr = h_txtnr. "No authorization

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 01 e_message = 02 i_message = 03 w_message = 04.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-048.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = 'RGUCOMP4' i_callback_user_command = 'USER_COMMAND_TOT' i_callback_pf_status_set = 'SET_PF_STATUS_TOT' it_events = t_events it_fieldcat = t_fieldcat is_layout = s_layout it_excluding = t_extab i_structure_name = 'T_COMPARE_T' TABLES t_outtab = t_compare_t EXCEPTIONS OTHERS = 1.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = t_events EXCEPTIONS OTHERS = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = t_header[].

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_bfld1 table = 'GLU1' text_flag = 'X' IMPORTING field_attr = dfies.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING fieldname = p_bfld2 table = 'GLU1' text_flag = 'X' IMPORTING field_attr = dfies.

K_CURRTYP_AND_VAL_GET CALL FUNCTION 'K_CURRTYP_AND_VAL_GET' EXPORTING i_cvtyp = fgh_curtp IMPORTING e_currtyp = h_currtyp e_valutyp = h_valutyp EXCEPTIONS illegal_cvtyp = 1 OTHERS = 2.

G_TEXT_FOR_CT_GET CALL FUNCTION 'G_TEXT_FOR_CT_GET' EXPORTING ct = h_currtyp IMPORTING text_20 = h_text_20 EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = text-034 textline2 = text-035 titel = text-036 start_column = 25 start_row = 6 IMPORTING answer = h_answer.

POPUP_GET_VALUES_USER_CHECKED CALL FUNCTION 'POPUP_GET_VALUES_USER_CHECKED' EXPORTING formname = 'CHECK_POST' popup_title = text-037 programname = 'RGUCOMP4' start_column = '5' start_row = '5' IMPORTING returncode = work TABLES fields = t_sval EXCEPTIONS error_in_fields = 01.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING object = text-040 show_linno = space EXCEPTIONS OTHERS = 1.

G_TOTALS_SELECT_WITH_CURRENCY CALL FUNCTION 'G_TOTALS_SELECT_WITH_CURRENCY' EXPORTING i_ledger = h_rldnr i_zscode = space i_selection = t_selection * I_LEDGERFIELDS = T_FIELDS i_period_agg = 'F' IMPORTING e_t_totals = t_glu1 CHANGING c_t_fieldcat = l_t_f.

G_TOTALS_GLU1_LIST_DISPLAY CALL FUNCTION 'G_TOTALS_GLU1_LIST_DISPLAY' EXPORTING i_drill_down = ld_drilldown i_text = h_text i_text2 = h_text2 i_text3 = h_text3 i_ledger = h_rldnr i_totals = t_glu1 i_cwcode = space i_zscode = space i_variant = space i_selection = t_selection i_prompt = ' ' IMPORTING e_t_listcat = alv_fieldcat e_t_selection_for_set = sel_nr_poper e_t_totals_per = totals_per e_t_fieldcat = lt_fieldcat e_t_ledgerfield = ledgerfields EXCEPTIONS internal_error = 1 error_tp_authority = 2 no_info_found = 3 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = 'RGUCOMP4' i_callback_user_command = 'USER_COMMAND_PER' i_callback_pf_status_set = 'SET_PF_STATUS_PER' it_events = t_events it_fieldcat = t_fieldcat is_layout = s_layout i_structure_name = 'T_COMPARE_P' TABLES t_outtab = t_compare_p EXCEPTIONS OTHERS = 1.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'VALUE' VALUE_ORG = 'S' tables value_tab = st_value return_tab = ret_tab EXCEPTIONS OTHERS = 1.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = glod_rldnr i_orgunit = glod_bukrs IMPORTING organizational_info = glod_org_info EXCEPTIONS OTHERS = 1.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING I_BUKRS = glod_org_info-bukrs IMPORTING E_KOKRS = ls_tka01-kokrs.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = ggod_rldnr i_orgunit = ggod_rcomp IMPORTING organizational_info = ggod_org_info EXCEPTIONS OTHERS = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = coi_org_info-rldnr msgv2 = coi_org_info-ktopl msgv3 = coi_org_info-altsv txtnr = '275'.

G_ADMI_AUTHORITY_CHECK CALL FUNCTION 'G_ADMI_AUTHORITY_CHECK' EXPORTING activity = '14' EXCEPTIONS not_authorized = 1 OTHERS = 2.

ENQUEUE_EGGCAEE CALL FUNCTION 'ENQUEUE_EGGCAEE'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'"Activate message handler EXPORTING collect_and_send = collect_and_send i_identification = message_identification IMPORTING e_identification = message_identification.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-050.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '280'. "No differences, no posting

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 01 e_message = 02 i_message = 03 w_message = 04.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING object = text-041 show_linno = space.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = t_compare-racct msgv2 = t_t882-b_altsv msgv3 = t_t882-c_altsv txtnr = '282'. "no postings possible

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = t_p_glu1-poper variant = t_t882-c_periv year = t_p_glu1-ryear IMPORTING to_date = t_p_glu1-budat.

G_MAX_PERIOD_AND_OFFSET_GET CALL FUNCTION 'G_MAX_PERIOD_AND_OFFSET_GET' EXPORTING period = t_cut_glu1-poper table = t_t881-c_tab IMPORTING offset = t_glu1_add-offset rpmax = t_glu1_add-rpmax.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' msgv1 = h_docnr txtnr = '284'. "document posted

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING object = h_nbr_object nr_range_nr = h_nr_range_nr quantity = h_quantity IMPORTING number = gnd_docnr quantity = h_quantity returncode = h_returncode EXCEPTIONS interval_not_found = 01 number_range_not_intern = 02 object_not_found = 03 quantity_is_0 = 04 OTHERS = 08.

G_READ_VALUE CALL FUNCTION 'G_READ_VALUE' EXPORTING activity = ' ' check_typ = '1' field = 'RACCT' record_key = glu1 t800d_table = 'GLT0' table = 'GLU1' value = s_rgumd-value TABLES period = t_periods EXCEPTIONS not_found = 1 OTHERS = 2.

G_READ_VALUE CALL FUNCTION 'G_READ_VALUE' EXPORTING activity = ' ' check_typ = '1' field = 'RACCT' record_key = glu1 t800d_table = 'GLT0' table = 'GLU1' value = s_rgumd-value TABLES period = t_periods EXCEPTIONS not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'RGUCOMP4' dynumb = '1000' translate_to_upper = 'X' TABLES dynpfields = t_dynpfields.

G_CONVERT_INPUT CALL FUNCTION 'G_CONVERT_INPUT' EXPORTING convexit = 'ALPHA' input_value = t_dynpfields-fieldvalue input_length = 2 IMPORTING converted_value = t881-rldnr.

G_FIELD_SET CALL FUNCTION 'G_FIELD_SET' EXPORTING table = t881-tab text_flag = 'X'.

G_FIELD_GET CALL FUNCTION 'G_FIELD_GET' IMPORTING field_attr = dfies subrc = h_subrc.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = h_selectfield display = ' ' titel = text-042 IMPORTING ind = h_ind TABLES fields = t_fields_lst full_table = t_dis_fields EXCEPTIONS OTHERS = 1.

RK_KOKRS_FIND CALL FUNCTION 'RK_KOKRS_FIND' EXPORTING bukrs = fpf_bukrs IMPORTING t_ka01 = s_tka01 EXCEPTIONS OTHERS = 1.

G_GIVE_FIELDS_FOR_LEDGER CALL FUNCTION 'G_GIVE_FIELDS_FOR_LEDGER' EXPORTING i_ledger = bflfd_rldnr IMPORTING e_t_fields = t_fields.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING I_BUKRS = lf_bukrs IMPORTING E_KOKRS = lf_kokrs.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '281'. "No complete posting possible

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = p_brldnr i_rrcty = p_rrcty i_rvers = p_brvers i_ryear = h_ryear i_range_bukrs = lt_bukrs i_range_racct = lt_racct i_range_rtcur = lt_rtcur IMPORTING et_glt0 = it_glt0.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '281'. "No complete posting possible

READ_HAUPTBUCH CALL FUNCTION 'READ_HAUPTBUCH' EXPORTING buchungskreis = l_comp_code sachkonto = t_compare-racct IMPORTING kontenplan_wa = l_ska1 EXCEPTIONS kontenplan_not_found = 1 sachkonto_not_found = 2 OTHERS = 4.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = p_brldnr i_rrcty = p_rrcty i_rvers = p_brvers i_ryear = h_ryear i_range_bukrs = lt_bukrs i_range_racct = lt_racct i_range_rtcur = lt_rtcur IMPORTING et_glt0 = it_glt0.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'GU' msgty = 'I' txtnr = '281'. "No complete posting possible



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