SAP Reports / Programs | Financial Accounting | General Ledger Accounting | Information System(FI-GL-IS) SAP FI

RFHABU00 SAP ABAP Report - General Ledger from the Document File







RFHABU00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for General ledger from the document file The report documents the G/L account postings in the form of a general ledger...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 RFHABU00 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 RFHABU00. "Basic submit
SUBMIT RFHABU00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFHABU00 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: ARC = (Archive)
Selection Text: BMONATE = Fiscal periods
Selection Text: GESBER = Business area
Selection Text: LISTSEP = List separation
Selection Text: MIKFICHE = Print microfiche line
Selection Text: PAR_GKON = Offsetting acct determination
Selection Text: PAR_GKOS = Sort by offsetting account
Selection Text: POSTEN = G/L account without items
Selection Text: P_MAXPGS = No. of Pages per Spool Request
Selection Text: P_SPOSPL = Distribute Spool Output
Selection Text: SKONTO = G/L account
Selection Text: SUM1 = Summary report 1
Selection Text: SUM2 = Summary report 2
Selection Text: TITLE = Additional heading
Selection Text: XALTKT = Alternative account number
Selection Text: XSTAJ = Read Year-End Closing Postings
Selection Text: X_GSBER = Separate business areas
Selection Text: ARC_MSG1 = D .
Selection Text: ARC_MSG2 = D .
Title: General Ledger from the Document File
Text Symbol: 900 = Structure generated has errors re: component
Text Symbol: 444 = Error log:
Text Symbol: 322 = New balance
Text Symbol: 320 = Balance Carryforward
Text Symbol: 311 = Totals Debit Credit Bal. Acc.monthly bal.
Text Symbol: 305 = Totals accross all company codes
Text Symbol: 304 = Company code totals
Text Symbol: 303 = Business area totals
Text Symbol: 012 = Pstng Pstng Document Do Po Allocation Doc. Reference Bus. A Offset Tx Doc. Debit/credit amount N
Text Symbol: 013 = per. date number ty ky number date number area T acct no. cd curr. in document currency B
Text Symbol: 018 = Number of master records read:
Text Symbol: 019 = Number of items read:
Text Symbol: 021 = Project number
Text Symbol: 022 = Cost center
Text Symbol: 023 = Quantity
Text Symbol: 024 = Unit of meas.
Text Symbol: 025 = Order number
Text Symbol: 027 = Personnel number





Text Symbol: 028 = Purchase order number
Text Symbol: 029 = Purchase order item acct Sp D.Cu D/C amount FC D/C amount LC
Text Symbol: 030 = Profit center
Text Symbol: 031 = (Continuation)
Text Symbol: 041 = CoCd G/L acct FY BA
Text Symbol: 042 = List of items without master record information:
Text Symbol: 043 = Doc. no. LI CC G/L acct FY BA
Text Symbol: 044 = Error in reading table T001:
Text Symbol: 045 = CC
Text Symbol: 047 = Error in reading SKC1c segment:
Text Symbol: 100 = Microfiche line not recommended for optical archiving
Text Symbol: 101 = Cross-company code
Text Symbol: 102 = Invalid archive specifications
Text Symbol: 103 = Optical archiving
Text Symbol: 111 = List separation not recommended for optical archiving
Text Symbol: 299 = Offset.act totals
Text Symbol: 300 = Account totals


INCLUDES used within this REPORT RFHABU00

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:

BUILD_DEFAULT_YEAR CALL FUNCTION 'BUILD_DEFAULT_YEAR' TABLES XGJAHR = BR_GJAHR.

BUILD_DEFAULT_PERIOD CALL FUNCTION 'BUILD_DEFAULT_PERIOD' IMPORTING XVMONAT = VMONAT TABLES XMONAT = BMONATE.

BUILD_DEFAULT_YEAR CALL FUNCTION 'BUILD_DEFAULT_YEAR' TABLES XGJAHR = BR_GJAHR.

BUILD_DEFAULT_PERIOD CALL FUNCTION 'BUILD_DEFAULT_PERIOD' IMPORTING XVMONAT = VMONAT TABLES XMONAT = BMONATE.

GET_ARCHIVE_PARAMETERS CALL FUNCTION 'GET_ARCHIVE_PARAMETERS' EXPORTING IN_PARAMETERS = ARC_SAVE PRINTER = ' ' IMPORTING OUT_PARAMETERS = ARC_MEM VALID = ARC_VALID EXCEPTIONS OTHERS = 04.

GET_GKONT CALL FUNCTION 'GET_GKONT' EXPORTING BUKRS = BKPF-BUKRS GJAHR = BKPF-GJAHR BELNR = BKPF-BELNR BUZEI = BSEG-BUZEI GKNKZ = PAR_GKON IMPORTING GKONT = BSEGA-GKONT "1827391 KOART = BSEGA-GKART "1827391 EXCEPTIONS BELNR_NOT_FOUND = 04 BUZEI_NOT_FOUND = 04 GKNKZ_NOT_FOUND = 06.

READ_SACHKONTO_ALTKT CALL FUNCTION 'READ_SACHKONTO_ALTKT' EXPORTING BUKRS = SKB1-BUKRS SAKNR = SKB1-SAKNR XTEXT = 'X' IMPORTING ALTKT = SKB1-ALTKT LTEXT = SKAT-TXT50 EXCEPTIONS OTHERS = 4.

READ_SKA1 call function 'READ_SKA1' exporting xktopl = t001-ktopl xsaknr = wa_hkont importing xska1 = ska1 xskat = skat.

READ_SACHKONTO_ALTKT call function 'READ_SACHKONTO_ALTKT' exporting bukrs = skb1-bukrs saknr = skb1-saknr xtext = 'X' importing altkt = skb1-altkt ltext = skat-txt50 exceptions others = 4.

FI_MESSAGE_CHECK





CALL FUNCTION 'FI_MESSAGE_CHECK' EXCEPTIONS NO_MESSAGE = 04.

FI_MESSAGE_SORT CALL FUNCTION 'FI_MESSAGE_SORT'.

FI_MESSAGE_PRINT CALL FUNCTION 'FI_MESSAGE_PRINT' EXPORTING I_MSORT = ' ' I_XAUSN = 'X' I_XEAUS = ' ' I_XSKIP = 'X'.

READ_SACHKONTO_ALTKT CALL FUNCTION 'READ_SACHKONTO_ALTKT' EXPORTING BUKRS = BUKRS SAKNR = KONTO SPRAS = SY-LANGU XMASS = 'X' XSKAN = 'X' XTEXT = ' ' IMPORTING ALTKT = SKB1-ALTKT ALTKT_SAKAN = ERGEBNIS ALTKT_NOT_FOUND = ALTKT_NOT_FOUND * TEXT_NOT_FOUND = TEXT_NOT_FOUND * LTEXT = * KTEXT = EXCEPTIONS BUKRS_NOT_FOUND = 02 SAKNR_NOT_FOUND = 03.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING I_FIMSG = FIMSG I_XAPPN = ' ' EXCEPTIONS MSGID_MISSING = 01 MSGNO_MISSING = 02 MSGTY_MISSING = 03.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING I_FIMSG = FIMSG I_XAPPN = ' ' EXCEPTIONS MSGID_MISSING = 01 MSGNO_MISSING = 02 MSGTY_MISSING = 03.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING I_FIMSG = FIMSG I_XAPPN = ' ' EXCEPTIONS MSGID_MISSING = 01 MSGNO_MISSING = 02 MSGTY_MISSING = 03.

READ_SKC1C CALL FUNCTION 'READ_SKC1C' EXPORTING XBUKRS = SKC1A-BUKRS XGJAHR = SKC1A-GJAHR XGSBER = SKC1A-GSBER XSAKNR = SKC1A-SAKNR XRTCUR = SKB1-WAERS IMPORTING XSKC1C = SKC1C EXCEPTIONS KEY_INCOMPLETE = 04 NOT_AUTHORIZED = 04 NOT_FOUND = 04.

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



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