SAP Reports / Programs

SAPF180A SAP ABAP Report - Calculate Balance Sheet Adjustment







SAPF180A is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for A balance sheet eadjustment distributes receivables and payables in customer and vendor reconciliation accounts, tax postings, cash discount postings from the net method of posting vendor invoices as well as valuated exchange rate differences in open items (this is a P&L item, but since receivables or payables increase or decrease depending on the valuation, a readjustment is also made for the exchange rate difference with a reverse +/- sign)...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 SAPF180A 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 SAPF180A. "Basic submit
SUBMIT SAPF180A AND RETURN. "Return to original report after report execution complete
SUBMIT SAPF180A 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: BUKRS = Company code
Title: Calculate Balance Sheet Adjustment
Text Symbol: 001 = Company code &1: Breakdown calculated for &2 documents ;;


INCLUDES used within this REPORT SAPF180A

INCLUDE SAPF180H.
INCLUDE SAPF180V.
INCLUDE RKASMAWF.


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:

BREAKDOWN_DOCUMENT_SAVE CALL FUNCTION 'BREAKDOWN_DOCUMENT_SAVE'.

BREAKDOWN_DOCUMENT_SAVE CALL FUNCTION 'BREAKDOWN_DOCUMENT_SAVE'.

BREAKDOWN_DOCUMENT CALL FUNCTION 'BREAKDOWN_DOCUMENT' EXPORTING YBKPF = BKPF I_FOREX = FOREX_CI I_OLDFUNCT = OLDFUNCT IMPORTING E_XWORK = XWORK E_XSAVE = XSAVE E_XERROR = E_XERROR TABLES YBSEG = XBSEG YRF048 = XRF048.

BREAKDOWN_ACTIVITY_GET CALL FUNCTION 'BREAKDOWN_ACTIVITY_GET' EXPORTING I_BUKRS = XRF048-BUKRS I_GJAHR = XRF048-GJAHR IMPORTING E_FIELDS = FIELDS E_DPRCTR = XRF048-PRCTR.

BREAKDOWN_SUMMARIZATION_GET CALL FUNCTION 'BREAKDOWN_SUMMARIZATION_GET' EXPORTING I_AWTYP = BKPF-AWTYP I_FIELDS = FIELDS IMPORTING E_SUMMARIZED = XVERD.

BREAKDOWN_RELATION_INSERT CALL FUNCTION 'BREAKDOWN_RELATION_INSERT' EXPORTING XMODIFY = XON XITAB = XON TABLES TRF048 = XRF048.

BREAKDOWN_DOCUMENT_MODIFY_REL CALL FUNCTION 'BREAKDOWN_DOCUMENT_MODIFY_REL' EXPORTING I_DELETE = XON BUKRS = XRF048-BUKRS BELNR = XRF048-BELNR GJAHR = XRF048-GJAHR.

BREAKDOWN_RELATION_INSERT CALL FUNCTION 'BREAKDOWN_RELATION_INSERT' EXPORTING XITAB = XON TABLES TRF048 = XRF048.

BREAKDOWN_DOCUMENT_SHOW_ERROR CALL FUNCTION 'BREAKDOWN_DOCUMENT_SHOW_ERROR' exporting i_log_handle = gs_log_handle.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING ls_detail = ls_detail ls_witem = ls_witem IMPORTING ls_key = ls_key_static TABLES lt_selkrit = lt_selkrit.

KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING ls_key = ls_key_static ls_scma_event = ls_scma_event CHANGING ld_aplstat = ld_aplstat EXCEPTIONS OTHERS = 0.



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