SAP Reports / Programs

SAPF180 SAP ABAP Report - Post Balance Sheet Adjustment







SAPF180 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 adjustment distributes receivables and payables in customer and vendor reconciliation accounts, tax postings, cash discount postings from the net method of posting 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 SAPF180 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 SAPF180. "Basic submit
SUBMIT SAPF180 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPF180 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: TAXSTTAG = Lower date limit for tax
Selection Text: STICHTAG = Key date
Selection Text: PR_ZPROT = Log at line item level
Selection Text: PR_TITEL = Additional title
Selection Text: PR_BPROT = Log of distributed documents
Selection Text: ECHTLAUF = Generate postings
Selection Text: BU_XPRCT = Post to profit center
Selection Text: BU_MONAT = Posting period
Selection Text: BU_BUDAT = Posting date
Selection Text: BU_BLART = Document type
Selection Text: BUKRS = Company code
Title: Post Balance Sheet Adjustment
Text Symbol: TEN = Not all adjustment accounts have been entered as yet
Text Symbol: TEO = If you start this program as a production run (generate postings), the missing
Text Symbol: TEP = entries are transferred from the account determination.
Text Symbol: TEQ = You can, however, also update the entries beforehand.
Text Symbol: TEW = The settings for the parallel currencies are incorrect
Text Symbol: TGR = The incorrect docs were entered in batch input session &
Text Symbol: TK1 = G/L account
Text Symbol: TK2 = BA
Text Symbol: TK3 = TPBA
Text Symbol: TK4 = Profit ctr
Text Symbol: TK5 = TP ProfCtr
Text Symbol: TK6 = Amount in LC
Text Symbol: TKA = Account
Text Symbol: TKB = Amount
Text Symbol: TKF = Amount in LC1
Text Symbol: TKG = Amount in LC2
Text Symbol: TKH = Amount in LC3
Text Symbol: TKS = G/L acct
Text Symbol: TV0 = An error occurred when determining the clearing account
Text Symbol: TV1 = A clearing account has not been specified for chart of accounts &1
Text Symbol: TV2 = Account &2 has not been created in company code &3
Text Symbol: TV3 = You cannot post directly to account &2 in company code &3
Text Symbol: TV4 = Account &2 is relevant to tax in company code &3
Text Symbol: TEL = Run report SAPF180K
Text Symbol: B01 = B/S readjustment:
Text Symbol: B0B = Post





Text Symbol: B0T = Test run
Text Symbol: B31 = Run
Text Symbol: B32 = Key date
Text Symbol: B33 = Start
Text Symbol: B34 = User
Text Symbol: BL2 = Selection of line items to include
Text Symbol: BL3 = Posting parameters
Text Symbol: BL4 = Output control
Text Symbol: BTX = Balance Sheet Adjustment
Text Symbol: I10 = Post zero balance
Text Symbol: I1D = Customer reconciliation acct
Text Symbol: I1E = Evaluation difference (cust.)
Text Symbol: I1G = Other G/L account
Text Symbol: I1K = Vendor reconciliation acct
Text Symbol: I1L = Evaluation difference (vendor)
Text Symbol: I1S = Net cash discount account
Text Symbol: I1T = Tax account
Text Symbol: I2A = Reset distribution
Text Symbol: I2E = Post distribution
Text Symbol: I2R = Reset cleared items
Text Symbol: SB1 = Document
Text Symbol: SE1 = Doc. no.
Text Symbol: SE2 = Year
Text Symbol: SE3 = Item
Text Symbol: SE4 = Account
Text Symbol: SE5 = Posting date
Text Symbol: SE9 = Total
Text Symbol: TBK = Document could not be posted
Text Symbol: TBN = Document number
Text Symbol: TE0 = No postings can be created for company code &
Text Symbol: TE8 = Correct the error
Text Symbol: TE9 = Proceed
Text Symbol: TEK = Errors occur when determining adjustment accounts


INCLUDES used within this REPORT SAPF180

INCLUDE SAPF180H.
INCLUDE SAPF180Q.
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:






DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

FI_NEGATIVE_POSTING_CHECK CALL FUNCTION 'FI_NEGATIVE_POSTING_CHECK' EXPORTING i_bukrs = xrf180-bukrs i_blart = bu_blart IMPORTING e_xnegp = xnegp.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT



CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = 'C' i_xbdcc = 'X' i_keep = 'X' i_group = bu_hlk-group i_user = sy-uname.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

POSTING_INTERFACE_DOCUMENT CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' EXPORTING i_tcode = bu_hlp-tcode IMPORTING e_subrc = subrc TABLES t_blntab = blntab t_ftpost = ftpost t_fttax = fttax EXCEPTIONS account_missing = 1 company_code_missing = 2 posting_key_invalid = 3 posting_key_missing = 4 record_type_invalid = 5 transaction_code_invalid = 6.

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 lt_param = lt_param.

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