SAP Reports / Programs

RFBELJ10_NACC SAP ABAP Report - Document Journal







RFBELJ10_NACC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The document journal is created monthly and contains all postings of the posting period in the context of documents...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 RFBELJ10_NACC 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 RFBELJ10_NACC. "Basic submit
SUBMIT RFBELJ10_NACC AND RETURN. "Return to original report after report execution complete
SUBMIT RFBELJ10_NACC 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: BUDATSUM = Totals per Posting Date
Selection Text: COMPRESS = Document Summarization
Selection Text: GB_COMP = Business Area Summarization
Selection Text: LISTSEP = List Separation Required
Selection Text: NOHEADER = Short Header
Selection Text: NO_CPU = Do Not Output CPU Date
Selection Text: POSTEN = Line Item Pages Only
Selection Text: P_ACCSEQ = Reconcil. Not Subledger Acct
Selection Text: P_ALL = Output All Pages
Selection Text: P_DATE = Output Selection Period
Selection Text: P_MIFFL = Issue Microfiche Line
Selection Text: P_VAT = Output VAT Registration Number
Selection Text: SEGMTEXT = Output Line Item Text
Selection Text: S_SBLART = Special Document Type
Selection Text: TITLE = D .
Selection Text: TEST = D .
Selection Text: S_KTOKS = D .
Selection Text: S_HKONT = D .
Selection Text: S_BELEGE = D .
Selection Text: SORT_KEY = D .
Selection Text: SEIT_SUM = D .
Selection Text: P_ALTKT = D .
Selection Text: PAR_DOCC = D .
Selection Text: Z_NUMMER = Output Consecutive Doc. Number
Selection Text: TEXTLINE = Detail:Master Data Text Output
Selection Text: TABSUM = Totals Sheets Only
Selection Text: S_SCPUDT = CPU Date Special Documents
Title: Document Journal
Text Symbol: F05 = Special Handling: Closing Entries for Prior Year and Opening Entries
Text Symbol: F04 = Output Control: Totals, Sorting, and Summarization
Text Symbol: F03 = Output Control: List
Text Symbol: F02 = Output Control: Header
Text Symbol: F01 = Program Flow Control
Text Symbol: C05 = Include Opening Entries for Current Year
Text Symbol: C04 = Consider Statistical Documents
Text Symbol: C03 = Output Reconciliation Account Instead of Subledger Account
Text Symbol: 001 = Carryfwd
Text Symbol: 002 = Pages Total





Text Symbol: 003 = Total
Text Symbol: 004 = Doc.No. CPU Date
Text Symbol: 005 = Cumulated
Text Symbol: 006 = Carryfw
Text Symbol: 007 = *** Start of List ***
Text Symbol: 008 = *** End of List ***
Text Symbol: 102 = Year Curr. CC Mo A LC debit amount LC credit amount A LC debit amount LC credit amount A LC debit amount LC credit amount
Text Symbol: 103 = T T t
Text Symbol: 104 = Document No.
Text Symbol: 110 = Seq.no.
Text Symbol: 111 = CPUdte
Text Symbol: 112 = Doc. No.
Text Symbol: 113 = PstDte
Text Symbol: 114 = DocDte
Text Symbol: 115 = DT
Text Symbol: 116 = Reference No.
Text Symbol: 117 = Document Header Text......
Text Symbol: 118 = Alternat.Ref.No.
Text Symbol: 120 = Account Name..............
Text Symbol: 121 = LIt
Text Symbol: 122 = A
Text Symbol: 123 = Acct No.
Text Symbol: 124 = BA
Text Symbol: 125 = PK
Text Symbol: 126 = G/L
Text Symbol: 127 = VA
Text Symbol: 128 = ...Amt in FC
Text Symbol: 129 = Curr.
Text Symbol: 130 = LC Debit amount
Text Symbol: 131 = LC Cred. amount
Text Symbol: 200 = Error Log
Text Symbol: B01 = Accessible List
Text Symbol: C01 = Output General Ledger View Information
Text Symbol: C02 = Output Alternative Account Number


INCLUDES used within this REPORT RFBELJ10_NACC

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:

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'CA_USER_EXISTS' EXCEPTIONS function_not_exist = 1 OTHERS = 2.






CA_USER_EXISTS CALL FUNCTION 'CA_USER_EXISTS' EXPORTING i_user = sy-uname EXCEPTIONS user_missing = 1.

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

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' * EXPORTING * I_CLIENT = SY-MANDT IMPORTING e_rldnr = gd_rldnr EXCEPTIONS not_found = 1 more_than_one = 2 OTHERS = 3 .

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = gd_rldnr i_orgunit = br_bukrs-low * JOIN_OF_VALUTYP_AND_CURT = 'X' * SEND_ERROR_WHEN_DEPLD = ' ' IMPORTING organizational_info = gs_orginfo * EXCEPTIONS * NO_INFO_FOUND = 1 * ERROR_IN_SETUP = 2 * ERROR_IN_DEPLD = 3 * OTHERS = 4 .

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datum i_periv = gs_orginfo-periv IMPORTING e_buper = gd_buper e_gjahr = gd_curry EXCEPTIONS t009_notfound = 4 t009b_notfound = 4 input_false = 4.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = gd_buper variant = gs_orginfo-periv year = gd_curry IMPORTING from_date = von_datum * LAST_NORMAL_PERIOD = to_date = bis_datum * FROM_DATE_ORIG = * EXCEPTIONS * PERIOD_NOT_DEFINED = 1 * VARIANT_NOT_DEFINED = 2 * OTHERS = 3 .

GET_CURRENT_YEAR CALL FUNCTION 'GET_CURRENT_YEAR' EXPORTING bukrs = br_bukrs-low date = sy-datum IMPORTING currm = r_monat-low curry = br_gjahr-low.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = br_gjahr-low i_monat = r_monat-low i_periv = t001-periv IMPORTING e_fday = von_datum e_lday = bis_datum.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_alv_variants text = text-b01 add_stdinf = space IMPORTING RESULT = gd_push.

GET_CURRENT_YEAR CALL FUNCTION 'GET_CURRENT_YEAR' EXPORTING bukrs = br_bukrs-low date = sy-datum IMPORTING curry = br_gjahr-low.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' * EXPORTING * I_CLIENT = SY-MANDT IMPORTING e_rldnr = gd_rldnr EXCEPTIONS not_found = 1 more_than_one = 2 OTHERS = 3 .

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = gd_rldnr i_orgunit = br_bukrs-low * JOIN_OF_VALUTYP_AND_CURT = 'X' * SEND_ERROR_WHEN_DEPLD = ' ' IMPORTING organizational_info = gs_orginfo * EXCEPTIONS * NO_INFO_FOUND = 1 * ERROR_IN_SETUP = 2 * ERROR_IN_DEPLD = 3 * OTHERS = 4 .

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING * I_BUKRS = BR_BUKRS-LOW i_opvar = gs_orginfo-opvar i_gjahr = h_year i_koart = '+' i_monat = h_monat2 i_rldnr = gd_rldnr * I_GLVOR = 'RFBU' * IMPORTING * E_OPER = EXCEPTIONS error_period = 1 error_period_acc = 2 * INVALID_INPUT = 3 OTHERS = 4 .

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = br_bukrs-low i_gjahr = h_year i_koart = '+' i_monat = h_monat2 EXCEPTIONS error_period = 1 error_period_acc = 2 OTHERS = 3.

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

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = h_poper variant = gs_orginfo-periv year = br_gjahr-low IMPORTING from_date = firstday.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = br_gjahr-low i_monat = h_monat i_periv = t001-periv IMPORTING e_fday = firstday.

FAGL_GET_DOC_DETAILS_OF_LEDGER CALL FUNCTION 'FAGL_GET_DOC_DETAILS_OF_LEDGER' EXPORTING i_rldnr = gd_rldnr i_bukrs = bkpf-bukrs i_belnr = bkpf-belnr i_gjahr = bkpf-gjahr * I_ARCH = 'X' IMPORTING es_details = gs_fagl_s_doc_details EXCEPTIONS not_found = 1 OTHERS = 2.

READ_SACHKONTO_ALTKT CALL FUNCTION 'READ_SACHKONTO_ALTKT' EXPORTING bukrs = bseg-bukrs saknr = bseg-hkont spras = sy-langu xmass = 'X' * XSKAN = 'X' xtext = 'X' IMPORTING altkt = h_konto * ALTKT_SAKAN = H_KONTa altkt_not_found = h_altnf ktext = h_ktext EXCEPTIONS bukrs_not_found = 02 saknr_not_found = 03.

FI_MESSAGE_COLLECT



CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = fimsg.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = fimsg.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = fimsg.

READ_SKA1 CALL FUNCTION 'READ_SKA1' EXPORTING xktopl = t001-ktopl xsaknr = h_kontm IMPORTING xska1 = ska1 xskat = skat EXCEPTIONS not_found = 1 key_incomplete = 2 not_authorized = 3.

FI_MESSAGE_CHECK CALL FUNCTION 'FI_MESSAGE_CHECK' EXCEPTIONS no_message = 4.

FI_MESSAGE_SORT CALL FUNCTION 'FI_MESSAGE_SORT'.

FI_MESSAGE_PRINT CALL FUNCTION 'FI_MESSAGE_PRINT' EXPORTING i_xskip = 'X'.

FI_MESSAGE_GET CALL FUNCTION 'FI_MESSAGE_GET' TABLES t_fimsg = t_fimsg.

READ_SKA1 CALL FUNCTION 'READ_SKA1' EXPORTING xktopl = t001-ktopl xsaknr = t-kontm IMPORTING xska1 = ska1 xskat = skat EXCEPTIONS not_found = 1 key_incomplete = 2 not_authorized = 3.

READ_KNA1 CALL FUNCTION 'READ_KNA1' EXPORTING xkunnr = t-konto IMPORTING xkna1 = kna1 EXCEPTIONS "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

READ_LFA1 CALL FUNCTION 'READ_LFA1' EXPORTING xlifnr = t-konto IMPORTING xlfa1 = lfa1 EXCEPTIONS not_found = 1 key_incomplete = 2 not_authorized = 3.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = fimsg.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

READ_SKA1 * CALL FUNCTION 'READ_SKA1' "begin n1149977 * EXPORTING * xktopl = t001-ktopl * xsaknr = t-kontm * IMPORTING * xska1 = ska1 ** xskat = skat. ">>DELETE:68132

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' "<

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = excdt foreign_currency = t001-waers local_amount = trvor-sumso local_currency = bukrs_waers type_of_rate = teurb-kurst IMPORTING foreign_amount = trvor-sumso.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = excdt foreign_currency = t001-waers local_amount = trvor-sumha local_currency = bukrs_waers type_of_rate = teurb-kurst IMPORTING foreign_amount = trvor-sumha.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "CSS 142437/99

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'T001' fieldname = 'STCEG' TABLES dfies_tab = lt_dfies.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = ld_poper variant = gs_orginfo-periv year = prev_gjahr IMPORTING * to_date = br_budat-low "1263269 from_date = br_budat-low "1263269 .

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = 001 variant = gs_orginfo-periv year = gt_gjahr-low IMPORTING to_date = last_day "1797455 from_date = br_budat-high "1263269 .

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = prev_gjahr i_monat = ld_monat i_periv = t001-periv IMPORTING e_fday = br_budat-low.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = br_gjahr-low i_monat = 01 i_periv = t001-periv IMPORTING e_lday = last_day "n1797455 e_fday = br_budat-high.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = bkpf-budat i_periv = gs_orginfo-periv IMPORTING e_buper = x_poper e_gjahr = x_gjahr.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = bkpf-budat i_periv = t001-periv IMPORTING e_buper = x_poper e_gjahr = x_gjahr.

OPEN_FI_PERFORM_00003310_P CALL FUNCTION 'OPEN_FI_PERFORM_00003310_P' EXPORTING i_land1 = t001-land1 i_store_tab = store_tab i_testlauf = test i_budat_low = budat_low i_budat_high = budat_high TABLES t_bkpf_addon = t_bkpf_addon_tab CHANGING i_check_open_fi = check_open_fi.

FREE_SELECTIONS_RANGE_2_WHERE CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_WHERE' EXPORTING field_ranges = lt_table_range IMPORTING where_clauses = lt_where_clause.

READ_SKA1 call function 'READ_SKA1' exporting xktopl = ls_t001-ktopl xsaknr = importing xska1 = ska1 xskat = skat exceptions not_found = 1 key_incomplete = 2 not_authorized = 3.



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