SAP Reports / Programs

FAGL_DR_PROVISION SAP ABAP Report - Provisions for Doubtful Receivables







FAGL_DR_PROVISION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report posts provisions for doubtful receivables to specific ledger groups...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 FAGL_DR_PROVISION 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

FAGL_104 - Reserve for Bad Debt: Gross (New)


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 FAGL_DR_PROVISION. "Basic submit
SUBMIT FAGL_DR_PROVISION AND RETURN. "Return to original report after report execution complete
SUBMIT FAGL_DR_PROVISION 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: PAR_VAR1 = Doubtful Receivables
Selection Text: PAR_VAR2 = Totals
Selection Text: PAR_VAR3 = Postings
Selection Text: PAR_VAR4 = Messages
Selection Text: STICHTAG = Key Date
Selection Text: AKONTO = D .
Selection Text: BELNR = D .
Selection Text: BWBER = D .
Selection Text: B_BLART = D .
Selection Text: B_BLDAT = D .
Selection Text: B_BUDAT = D .
Selection Text: B_BUPEM = D .
Selection Text: B_PST_FL = D .
Selection Text: B_REVERS = D .
Selection Text: FOR_CUR = D .
Selection Text: LISTSEP = D .
Selection Text: MIKFICHE = D .
Selection Text: P_UMSKZ = D .
Selection Text: RSMET = D .
Selection Text: TITLE = D .
Title: Provisions for Doubtful Receivables
Text Symbol: 043 = No provisions posted for document
Text Symbol: 042 = No run to be canceled found
Text Symbol: 041 = Error when updating FAGL_BSBW_HISTRY
Text Symbol: 040 = Error when updating BSBW
Text Symbol: 039 = No currency type is defined for valuation area
Text Symbol: 038 = Valuation area is not defined
Text Symbol: 037 = Deadlines and amount of provisions are not defined for these selection criteria
Text Symbol: 036 = Account could not be determined for provision posting
Text Symbol: 035 = External doc. no. assignment is active but process is internal
Text Symbol: 034 = Posting Error
Text Symbol: 004 = Other Selections
Text Symbol: 005 = Posting Parameter
Text Symbol: 006 = Output Control
Text Symbol: 007 = Layout
Text Symbol: 008 = Output List
Text Symbol: 009 = Layout
Text Symbol: 010 = Configure





Text Symbol: 011 = Doubtful Receivables
Text Symbol: 012 = Totals
Text Symbol: 013 = Postings
Text Symbol: 014 = Messages
Text Symbol: 015 = Provision method does not exist
Text Symbol: 016 = Combination of valuation area and provision method not found
Text Symbol: 017 = TrPtr
Text Symbol: 018 = Acct No.
Text Symbol: 019 = Doc. Date
Text Symbol: 020 = PostDate
Text Symbol: 021 = LIt
Text Symbol: 022 = Amount Posted
Text Symbol: 023 = Until Provisn
Text Symbol: 024 = ClrngDate
Text Symbol: 025 = Lst
Text Symbol: 026 = Posting Amount (LC)
Text Symbol: 027 = Dr. Acct
Text Symbol: 028 = Cr. Acct
Text Symbol: 029 = Company Code Totals
Text Symbol: 030 = Postings generated:
Text Symbol: 031 = Error when updating provision amount
Text Symbol: 032 = Tax Amount
Text Symbol: 033 = Provisions for Doubtful Receivables


INCLUDES used within this REPORT FAGL_DR_PROVISION

INCLUDE FAGL_DR_PROVISION_CLASS_DEF.
INCLUDE FAGL_DR_PROVISION_CLASS_IMP.


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:

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 CHANGING c_workarea = gs_header EXCEPTIONS invalid_type = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 CHANGING c_workarea = gs_item EXCEPTIONS invalid_type = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = sy-repid it_fieldcat = lt_fieldcat_receivables is_variant = ls_variant i_tabname_header = gc_tabname1 i_tabname_item = gc_tabname2 is_keyinfo = ls_keyinfo i_save = gc_save TABLES t_outtab_header = gt_header t_outtab_item = gt_item.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 CHANGING c_workarea = gs_totals EXCEPTIONS invalid_type = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' "#EC * EXPORTING i_callback_program = sy-repid it_fieldcat = lt_fieldcat_totals is_variant = ls_variant it_sort = lt_sort i_save = gc_save TABLES t_outtab = gt_totals EXCEPTIONS program_error = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 CHANGING c_workarea = gs_postings EXCEPTIONS invalid_type = 1 OTHERS = 2.






REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = sy-repid it_fieldcat = lt_fieldcat_postings is_variant = ls_variant i_save = gc_save TABLES t_outtab = gt_postings EXCEPTIONS program_error = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 CHANGING c_workarea = gs_err_bseg EXCEPTIONS invalid_type = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = sy-repid it_fieldcat = lt_fieldcat_err_bseg is_variant = ls_variant i_save = gc_save TABLES t_outtab = gt_err_bseg EXCEPTIONS program_error = 1 OTHERS = 2.

DETERMINE_DUE_DATE CALL FUNCTION 'DETERMINE_DUE_DATE' EXPORTING i_faede = x_faede IMPORTING e_faede = x_faede EXCEPTIONS OTHERS = 1.

FAGL_BATCH_HEADING_PERFORM CALL FUNCTION 'FAGL_BATCH_HEADING_PERFORM' EXPORTING is_bhdgd = bhdgd.

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_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.



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