SAP Reports / Programs

RFSUMB00 SAP ABAP Report - Year-End Postings







RFSUMB00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for RFSUMB00 This program generates the year-end profit and loss statement postings that determine the operating result for the fiscal year and the postings to open and close the balance sheet accounts for the new fiscal year...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 RFSUMB00 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 RFSUMB00. "Basic submit
SUBMIT RFSUMB00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFSUMB00 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


RFSUMB00 - Year-End Postings
Selection Text: XBUPOS = Budget Item
Selection Text: XBUDST = Budget Center
Selection Text: XAUFNR1 = Actual Order
Selection Text: XAUFNR = Statistical Order
Selection Text: XANLN2 = Asset Subnumber
Selection Text: XANLN1 = Asset
Selection Text: VARIANT = Report Variant for Table TRVOR
Selection Text: S_MONAT = Period
Selection Text: S_BUDAT = Posting Date
Selection Text: S_BLDAT = Document Date
Selection Text: S_BLART = Document Type
Selection Text: B_TXJCD = D .
Selection Text: B_TEXT = Text
Selection Text: B_NAMEBI = Batch Input Session Name
Selection Text: B_MONATE = Posting Periods
Selection Text: B_MONAT = Posting Period
Selection Text: B_IVAV = Output Tax Code
Selection Text: B_IVAA = Input Tax Code
Selection Text: B_INPUT = Create Batch Input Update Run
Selection Text: B_DAREC = Debit Posting Key: Fixed Asset
Selection Text: B_DARE = Debit Posting Key
Selection Text: B_CECO = Cost Center
Selection Text: B_BUDAT = Posting Date
Selection Text: B_BLDAT = Document Date
Selection Text: B_BLART = Document Type
Selection Text: B_AVEREC = Credit Posting Key:Fixed Asset
Selection Text: B_AVERE = Credit Posting Key
Selection Text: B_ASSET = Transaction Type
Selection Text: B_ACCT = Accts with Cost Center Posting
Selection Text: AC_YPROF = Net Result Account
Selection Text: AC_OPNBA = Balance Sheet Account- Opening
Selection Text: AC_CLSPL = P&L Account
Selection Text: XBWTAR = Valuation Type
Selection Text: RUNTYPE = D .
Selection Text: B_KEEP = D .
Selection Text: XXIMKY = Detail: Real estate object
Selection Text: XWERKS = Plant





Selection Text: XVPTNR = Partner
Selection Text: XVORNR = Transaction
Selection Text: XVNAME = Joint venture
Selection Text: XVBUND = Trading partner
Selection Text: XRMVCT = Transaction type
Selection Text: XRECID = Recovery indicator
Selection Text: XPS_PSP = WBS Element
Selection Text: XPRCTR = Profit center
Selection Text: XPPRCTR = Partner profit center
Selection Text: XPERNR = Personnel number
Selection Text: XPARGB = Partner business area
Selection Text: XNPLNR = Network
Selection Text: XMATNR = Material
Selection Text: XKSTRG = Cost object
Selection Text: XKOSTL = Cost Center
Selection Text: XKOKRS = Controlling area
Selection Text: XKDPOS = Sales order - item number
Selection Text: XKDEIN = Delivery schedule -sales order
Selection Text: XKDAUF = Sales Order
Selection Text: XKBLPOS = Earmarked Funds: Document Item
Selection Text: XKBLNR = Earmarked Funds
Selection Text: XIMKEY = Real Estate Key
Selection Text: XGSBER = Business Area
Selection Text: XGEBER = Fund
Selection Text: XFKBER = Functional Area
Selection Text: XFISTL = Funds Center
Selection Text: XFIPOS = Commitment Item
Selection Text: XFIKRS = Financial management area
Selection Text: AC_CLSBA = Balance Sheet Account- Closing
Title: Year-End Postings
Text Symbol: 460 = Selections
Text Symbol: 453 = Other
Text Symbol: 452 = Turkey
Text Symbol: 451 = Slovakia
Text Symbol: 450 = Italy
Text Symbol: 203 = No country version has been selected
Text Symbol: 202 = Some of the required fields have no entries
Text Symbol: 201 = List of Required Fields:
Text Symbol: 026 = Opening/Closing B/S





Text Symbol: 025 = P&L Closing
Text Symbol: 024 = Update Run for G/L Accounts:
Text Symbol: 023 = Test Run for G/L Accounts:
Text Symbol: 022 = Year end posting profit/loss
Text Symbol: 021 = Start of year
Text Symbol: 020 = Year-end closing
Text Symbol: 017 = Batch input session created:
Text Symbol: 016 = Posting not possible
Text Symbol: 015 = Post Retained Earnings Account Closing Session First
Text Symbol: 014 = Posted Documents
Text Symbol: 013 = All Accounts
Text Symbol: 012 = Close/Open
Text Symbol: 011 = PK BuAr Balance
Text Symbol: 010 = BSheet
Text Symbol: 009 = P&L
Text Symbol: 008 = Only Accounts That Can Be Posted to Automatically
Text Symbol: 007 = Balance Sheet Accounts
Text Symbol: 006 = Profit & Loss Statement Accounts
Text Symbol: 005 = Vendors
Text Symbol: 004 = Customers
Text Symbol: 003 = Assets
Text Symbol: 002 = Autom. Posting
Text Symbol: 001 = Recon.Acct
Text Symbol: 567 = Balance
Text Symbol: 564 = Invalid Posting Specification (Start Parameters)
Text Symbol: 563 = P&L State. Acct
Text Symbol: 562 = Ret. Earnings Carried Forward
Text Symbol: 561 = Totals:
Text Symbol: 560 = (Update Run)
Text Symbol: 559 = (Test Run)
Text Symbol: 558 = Account Selection: P&L Statement Accts
Text Symbol: 557 = Account Selection: Balance Sheet Accts
Text Symbol: 556 = CCde
Text Symbol: 555 = Business Area
Text Symbol: 554 = Currency
Text Symbol: 553 = Balance
Text Symbol: 551 = Name
Text Symbol: 550 = Account No.
Text Symbol: 505 = Additnl Posting Parameters (Slovakia)



Text Symbol: 504 = Additional Parameters for Postings
Text Symbol: 503 = Parameters for Opening Postings
Text Symbol: 502 = Parameters for Closing Postings
Text Symbol: 501 = Definition of G/L Accounts
Text Symbol: 500 = Additional Selection Options
Text Symbol: 499 = Country Version
Text Symbol: 498 = Further Selections
Text Symbol: 475 = Name of All Sessions
Text Symbol: 474 = Total Number of Transactions:
Text Symbol: 473 = Number of Sessions Created:
Text Symbol: 472 = Variable:
Text Symbol: 471 = Errors:
Text Symbol: 470 = Account Determination
Text Symbol: 463 = Other Parameters
Text Symbol: 462 = Postings
Text Symbol: 461 = Accounts


INCLUDES used within this REPORT RFSUMB00

INCLUDE RFSUMB11.
INCLUDE RFSUMB15.
INCLUDE RFSUMB16.


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:

FAGL_CHECK_GLFLEX_ACTIV_CLIENT CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIV_CLIENT' EXPORTING client = sy-mandt IMPORTING e_glflex_active = fagl_active EXCEPTIONS others = 1.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = leading_ledger EXCEPTIONS not_found = 1 OTHERS = 2.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' IMPORTING e_rldnr = leading_ledger EXCEPTIONS not_found = 1 OTHERS = 2.

CHECK_JURISDICTION_ACTIVE CALL FUNCTION 'CHECK_JURISDICTION_ACTIVE' EXPORTING I_BUKRS = sd_bukrs-low IMPORTING E_ISACTIVE = gf_txjcd_active EXCEPTIONS INPUT_INCOMPLETE = 1 INPUT_INCONSISTENT = 2 OTHERS = 3.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = ledger_glt0 "n1744121 i_rldnr = ledger_for_sel i_rrcty = '0' i_rvers = '001' i_bukrs = t001-bukrs i_ryear = sd_gjahr-low i_racct = skc1a-saknr i_rbusa = skc1a-gsber IMPORTING et_glt0 = t_glt0[] EXCEPTIONS OTHERS = 2.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

READ_SKB1 CALL FUNCTION 'READ_SKB1' EXPORTING xbukrs = sd_bukrs-low xsaknr = wk030-konts IMPORTING xskb1 = *skb1 EXCEPTIONS key_incomplete = 01 not_authorized = 02 not_found = 03.

READ_SKB1 CALL FUNCTION 'READ_SKB1' EXPORTING xbukrs = societa xsaknr = conto IMPORTING xskb1 = *skb1 EXCEPTIONS key_incomplete = 01 not_authorized = 02 not_found = 03.

READ_HAUPTBUCH_TEXT CALL FUNCTION 'READ_HAUPTBUCH_TEXT' EXPORTING kontenplan = ska1-ktopl sachkonto = ska1-saknr sprache = sy-langu IMPORTING text_wa = skat EXCEPTIONS text_not_found = 01.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = 'B' i_group = w_group i_keep = b_keep i_mode = 'N' i_user = sy-uname EXCEPTIONS OTHERS = 2.

G_FIELD_READ CALL FUNCTION 'G_FIELD_READ' EXPORTING TABLE = lf_tab FIELDNAME = lf_field IMPORTING FIELD_ATTR = ls_dfies EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = p_bukrs IMPORTING e_x001 = p_x001.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = t001-bukrs curtp = p_curt TABLES ledtab = gt_ledtab.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = t001-bukrs curtp = p_curt TABLES ledtab = gt_ledtab.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING * i_glt0_rldnr = i_rldnr = '$$' i_rrcty = '0' i_rvers = '001' i_bukrs = t001-bukrs i_ryear = sd_gjahr-low i_racct = skc1a-saknr i_rbusa = skc1a-gsber IMPORTING et_glt0 = t_glt0[] EXCEPTIONS OTHERS = 2.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = gt_ledtab-rldnr * i_rldnr = i_rrcty = '0' i_rvers = '001' i_bukrs = t001-bukrs i_ryear = sd_gjahr-low i_racct = skc1a-saknr i_rbusa = skc1a-gsber IMPORTING et_glt0 = t_glt0[] EXCEPTIONS OTHERS = 2.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = trans TABLES dynprotab = bdc_tab.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

POSTING_INTERFACE_DOCUMENT CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' EXPORTING i_tcode = wtcode IMPORTING e_subrc = local_sy_subrc e_msgid = sy-msgid e_msgty = sy-msgty e_msgno = sy-msgno e_msgv1 = sy-msgv1 e_msgv2 = sy-msgv2 e_msgv3 = sy-msgv3 e_msgv4 = sy-msgv4 TABLES t_ftpost = ftpost t_blntab = xblntab t_fttax = fttax EXCEPTIONS account_missing = 01 company_code_missing = 02 posting_key_invalid = 03 posting_key_missing = 04 record_type_invalid = 05 transaction_code_invalid = 06.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = gs_log IMPORTING e_log_handle = gs_log_handle 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 = gs_log_handle i_msgty = 'S' i_probclass = '4' i_text = gv_free_text.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gs_log_handle i_s_msg = us_app_log EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = gc_handle_event_user_command is_layout = ls_layout it_fieldcat = gt_fieldcat_checkfields it_events = lt_events TABLES t_outtab = gt_check_fields EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' "#EC * EXPORTING i_program_name = g_repid i_structure_name = gc_structure5 CHANGING ct_fieldcat = gt_fieldcat_checkfields EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' "#EC * EXPORTING i_callback_program = g_repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = gc_handle_event_user_command is_layout = ls_layout it_fieldcat = gt_fieldcat_accdetails it_sort = gt_sort it_events = lt_events i_tabname_header = 'GT_ACCHEADER' i_tabname_item = 'GT_ACCDETAILS' is_keyinfo = gs_keyinfo TABLES t_outtab_header = gt_accheader t_outtab_item = gt_accdetails.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' "#EC * EXPORTING i_program_name = g_repid i_structure_name = gc_structure1 CHANGING ct_fieldcat = gt_fieldcat_accdetails EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' "#EC * EXPORTING i_program_name = g_repid i_structure_name = gc_structure2 CHANGING ct_fieldcat = gt_fieldcat_accdetails EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' "#EC * EXPORTING i_list_type = 0 IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = gt_fieldcat_listprofit it_events = lt_events TABLES t_outtab = gt_listprofit EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' "#EC * EXPORTING i_program_name = g_repid i_structure_name = gc_structure3 CHANGING ct_fieldcat = gt_fieldcat_listprofit EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = gt_fieldcat_listtotal it_events = lt_events TABLES t_outtab = gt_listtotal EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' "#EC * EXPORTING i_program_name = g_repid i_structure_name = gc_structure4 CHANGING ct_fieldcat = gt_fieldcat_listtotal EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = gs_display_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = gs_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = gc_x i_s_display_profile = gs_display_profile.



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