SAP Reports / Programs

RAPOST2000 SAP ABAP Report - Depreciation Posting Run







RAPOST2000 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program posts the different value adjustments (depreciation) and interest to the G/L accounts in Financial Accounting, or to cost accounting...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 RAPOST2000 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

AFABN - Post Depreciation
AFAB - Post depreciation


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 RAPOST2000. "Basic submit
SUBMIT RAPOST2000 AND RETURN. "Return to original report after report execution complete
SUBMIT RAPOST2000 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: P_AGAIN = Repeat
Selection Text: P_BUKRS = Company Code
Selection Text: P_BUPER = Posting Period
Selection Text: P_CHECKP = Unplanned posting run
Selection Text: P_EINZL = List assets
Selection Text: P_GJAHR = Fiscal year
Selection Text: P_MAFAL = List of manual depreciation
Selection Text: P_NEXT = Planned posting run
Selection Text: P_RFCGR = Server Group
Selection Text: P_RSTART = Restart
Selection Text: P_TEST = Test Run
Selection Text: S_ANLN1 = Main asset number
Selection Text: S_ANLN2 = Asset subnumber
Selection Text: P_CHECK = D .
Selection Text: P_LDGRP = D .
Selection Text: P_NOSP = D .
Selection Text: P_VARI = D .
Title: Depreciation Posting Run
Text Symbol: Q03 = &V1& documents were created
Text Symbol: Q04 = A document was created
Text Symbol: Q05 = A document could not be created due to errors
Text Symbol: Q06 = &V1& documents could not be created due to errors
Text Symbol: R01 = Error in RFC processing
Text Symbol: S01 = TargetLedger Group
Text Symbol: S02 = Depreciation Area
Text Symbol: S03 = Last posting fiscal year
Text Symbol: S04 = Posted to Period
Text Symbol: U01 = Posting date :
Text Symbol: U02 = Date created:
Text Symbol: U04 = Ledger Group:
Text Symbol: U05 = Company Code:
Text Symbol: M05 = AA documnt
Text Symbol: 001 = Posting Run
Text Symbol: 002 = T E S T R U N
Text Symbol: 003 = ERROR ANALYSIS
Text Symbol: 004 = was ended
Text Symbol: 005 = was terminated
Text Symbol: 006 = ended with warnings.





Text Symbol: 007 = contained errors.
Text Symbol: 008 = completed successfully
Text Symbol: 009 = CoCd:
Text Symbol: 010 = Period:
Text Symbol: 011 = No Errors
Text Symbol: 012 = Error
Text Symbol: 013 = Warning
Text Symbol: 014 = Canceled
Text Symbol: 015 = Posting Date
Text Symbol: 016 = No documents were created in this run
Text Symbol: 028 = There are errors in the posting run. After correcting, restart the posting run.
Text Symbol: 029 = Refer to the error log
Text Symbol: 098 = Ledger Group &V1&
Text Symbol: 099 = for company code &V1&
Text Symbol: 100 = Simulated Document
Text Symbol: 101 = Output list
Text Symbol: C01 = Further options
Text Symbol: C03 = Reason for posting run
Text Symbol: C04 = Posting Parameters
Text Symbol: C08 = Parameters for Test Run
Text Symbol: F01 = Info for Posting Parameters
Text Symbol: F02 = Copy
Text Symbol: M01 = List of manual depreciation
Text Symbol: M02 = Deprec. docmument
Text Symbol: M03 = No manual depreciation found


INCLUDES used within this REPORT RAPOST2000

INCLUDE LAFARCON.
INCLUDE RAPOST_TOP.
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:

CK_F_RFC_GROUP_SELECTION_LIST CALL FUNCTION 'CK_F_RFC_GROUP_SELECTION_LIST' IMPORTING rfc_group_exp = p_rfcgr.

AM_CHECK_RFC CALL FUNCTION 'AM_CHECK_RFC' EXPORTING i_rfcgr = p_rfcgr.

T093C_READ CALL FUNCTION 'T093C_READ' EXPORTING i_bukrs = p_bukrs IMPORTING f_t093c = ls_t093c EXCEPTIONS not_found = 1.

FAGL_AUTHORITY_LEDGER CALL FUNCTION 'FAGL_AUTHORITY_LEDGER' EXPORTING i_bukrs = p_bukrs i_rldnr = '' i_ldgrp = p_ldgrp i_actvt = '01' EXCEPTIONS no_authority = 1 OTHERS = 2.

AREAS_OPEN_IN_YEAR





CALL FUNCTION 'AREAS_OPEN_IN_YEAR' EXPORTING i_ccode = p_bukrs i_year = p_gjahr TABLES t_areas = r_oafabe EXCEPTIONS no_areas_are_open = 01.

RA_ASSET_ENQUEUE * CALL FUNCTION 'RA_ASSET_ENQUEUE' * EXPORTING * ANLN1 = l_anln1_init * ANLN2 = l_anln2_init * BUKRS = p_bukrs * I_SCOPE = '1' * EXCEPTIONS * ANLAGE_GESPERRT = 1 * ANLAGE_SELBST_GESPERRT = 2 * OTHERS = 3.

RA_ASSET_DEQUEUE * CALL FUNCTION 'RA_ASSET_DEQUEUE' * EXPORTING * bukrs = anla-bukrs * anln1 = l_anln1_init * anln2 = l_anln2_init.

FIAA_DEPRECIATION_POST_RFC CALL FUNCTION 'FIAA_DEPRECIATION_POST_RFC' EXPORTING i_test = p_test i_bukrs = p_bukrs i_gjahr = p_gjahr i_callback_program = sy-cprog i_callback_form = con_form_extract i_buper = p_buper i_again = p_again i_next = p_next i_taba = wtaba_act i_nocheck = p_checkp i_rstart = p_rstart i_ukv_aktiv = flg_ukv_aktiv i_ldgrp = p_ldgrp TABLES t_fehl = lt_fehl t_r_anln1 = s_anln1 t_r_anln2 = s_anln2 t_r_afabe = vt_afabe t_t093d = x093d EXCEPTIONS internal_error = 8.

GET_ANLN1_RANGES CALL FUNCTION 'GET_ANLN1_RANGES' EXPORTING i_bukrs = p_bukrs i_records = 5000 TABLES t_so_anln1 = s_anln1 t_r_anln1 = lt_r_anln1.

FIAA_DEPRECIATION_POST_RFC CALL FUNCTION 'FIAA_DEPRECIATION_POST_RFC' STARTING NEW TASK u_tasknr DESTINATION IN GROUP p_rfcgr PERFORMING return_rfc ON END OF TASK EXPORTING i_test = p_test i_bukrs = p_bukrs i_gjahr = p_gjahr i_callback_program = ' ' i_callback_form = ' ' i_buper = p_buper i_again = p_again i_next = p_next i_taba = wtaba_act i_nocheck = p_checkp i_rstart = p_rstart i_ukv_aktiv = flg_ukv_aktiv i_ldgrp = p_ldgrp TABLES t_fehl = lt_fehl t_r_anln1 = ut_r_anln1 t_r_anln2 = s_anln2 t_r_afabe = vt_r_afabe t_t093d = vt_t093d EXCEPTIONS communication_failure = 8 system_failure = 16 resource_failure = 4.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'AAPO' msgty = 'E' txtnr = '501' EXCEPTIONS not_active = 1 OTHERS = 2.

RA_ASSET_ENQUEUE CALL FUNCTION 'RA_ASSET_ENQUEUE' EXPORTING anln1 = l_anln1_init anln2 = l_anln2_init bukrs = p_bukrs i_scope = '1' EXCEPTIONS anlage_gesperrt = 1 anlage_selbst_gesperrt = 2 OTHERS = 3.

ENQUEUE_ET093C CALL FUNCTION 'ENQUEUE_ET093C' EXPORTING bukrs = p_bukrs _scope = '1' EXCEPTIONS OTHERS = 1.

RA_ASSET_DEQUEUE CALL FUNCTION 'RA_ASSET_DEQUEUE' EXPORTING bukrs = p_bukrs anln1 = l_anln1_init anln2 = l_anln2_init.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datlo i_periv = g_fi_periv "t001-periv " EhP6 IMPORTING e_buper = ld_buper e_gjahr = ld_gjahr EXCEPTIONS OTHERS = 1.

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "> 1153718 EXPORTING i_arbgb = 'AA' i_dtype = con_mess_warning i_msgnr = '697' IMPORTING e_msgty = ld_msgty.



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