SAP Reports / Programs | Financial Accounting | Asset Accounting | Basic Functions(FI-AA-AA) SAP FI

RAFABNEW SAP ABAP Report - Automatic Opening of a New Depreciation Area







RAFABNEW is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program opens a new depreciation area for existing assets...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 RAFABNEW 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

AFBN - Include New Depreciation Area


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 RAFABNEW. "Basic submit
SUBMIT RAFABNEW AND RETURN. "Return to original report after report execution complete
SUBMIT RAFABNEW 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_WRTAFB = Copy Values from Deprec. Area
Selection Text: P_TEST = Test run
Selection Text: P_INIT = Leave values initial
Selection Text: P_ANLKL = Dep. terms from asset class
Selection Text: P_AFAPL = Chart of depreciation
Selection Text: P_AFABE = Depreciation area
Title: Automatic Opening of a New Depreciation Area
Text Symbol: WRT = Value Transfer from Depreciation Area:
Text Symbol: UPD = Processed
Text Symbol: UP1 = Errors found
Text Symbol: STA = Status
Text Symbol: IPR = Projects
Text Symbol: IOR = Orders
Text Symbol: IIP = Inv. prog. positions
Text Symbol: IIO = Approp. requests
Text Symbol: F10 = Error
Text Symbol: ERT = Error text
Text Symbol: ERR = Asset
Text Symbol: BUK = Company code
Text Symbol: 701 = No errors occurred
Text Symbol: 700 = Errors occurred.
Text Symbol: 100 = Step
001 Class Asset Class Text Read Changed


INCLUDES used within this REPORT RAFABNEW

INCLUDE LACHKMSG.
INCLUDE LAFARCON.


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:

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = X093C-BUKRS IMPORTING E_X001 = X001 EXCEPTIONS OTHERS = 1.

VANLA1_READ_RANGE_TRIGGER CALL FUNCTION 'VANLA1_READ_RANGE_TRIGGER' EXPORTING I_ABRA = LD_ABRA IMPORTING E_GOON = LD_GOON E_ANLA = ANLA TABLES T_DOPT = LD_DS_CLAUSES-WHERE_TAB T_R_AFABE = LR_AFABE EXCEPTIONS OTHERS = 1.

GET_NEXT_ANLZ CALL FUNCTION 'GET_NEXT_ANLZ' TABLES T_ANLZ = XANLZ EXCEPTIONS NO_RECORDS_FOUND = 1 OTHERS = 2.

GET_NEXT_ANLB CALL FUNCTION 'GET_NEXT_ANLB' TABLES T_ANLB = XANLB EXCEPTIONS NO_RECORDS_FOUND = 1 OTHERS = 2.

GET_NEXT_ANLBZA CALL FUNCTION 'GET_NEXT_ANLBZA' "> 1409925 TABLES t_anlbza = xanlbza EXCEPTIONS NO_RECORDS_FOUND = 1 OTHERS = 2.

GET_NEXT_ANLC CALL FUNCTION 'GET_NEXT_ANLC' TABLES T_ANLC = XANLC_DB EXCEPTIONS OTHERS = 1.

GET_NEXT_ANLC CALL FUNCTION 'GET_NEXT_ANLC' TABLES T_ANLC = XANLC EXCEPTIONS OTHERS = 1.

GET_NEXT_ANEP CALL FUNCTION 'GET_NEXT_ANEP' TABLES T_ANEP = XANEP EXCEPTIONS OTHERS = 1.

GET_NEXT_ANEA CALL FUNCTION 'GET_NEXT_ANEA' TABLES T_ANEA = XANEA EXCEPTIONS OTHERS = 1.

ANLBZW_READ_ASSET CALL FUNCTION 'ANLBZW_READ_ASSET' EXPORTING i_bukrs = anla-bukrs i_anln1 = anla-anln1 i_anln2 = anla-anln2 I_AFABE = x093a-wrtafb tables et_anlbzw = lt_anlbzw EXCEPTIONS NO_ANLBZW_EXISTS_FOR_ASSET = 1 NO_ANLBZW_FOR_AREA_OR_YEAR = 2 OTHERS = 3.

ANLBZW_CREATE_FOR_UPDATE CALL FUNCTION 'ANLBZW_CREATE_FOR_UPDATE' EXPORTING IS_ANLBZW = ls_anlbzw EXCEPTIONS NO_READ_DONE_BEFORE_UPDATE = 1 WRONG_INPUT_DATA = 2 OTHERS = 3.

OBJECT_NUMBER_TYPE_GET CALL FUNCTION 'OBJECT_NUMBER_TYPE_GET' EXPORTING OBJNR = IT_CHG_OBJECTS-OBJNR IMPORTING OBART = L_OBART.

IM_TAPRF_READ CALL FUNCTION 'IM_TAPRF_READ' EXPORTING I_IVPRO = XIVPRO-IVPRO IMPORTING E_TAPRF = LS_TAPRF.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING TABNAME = LD_TABNAME TABLES DFIES_TAB = U_ITAB.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = ld_datum foreign_currency = hlp-curr_to local_amount = local_currency = hlp-curr_from type_of_rate = hlp-kurst IMPORTING foreign_amount = .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = ld_datum foreign_currency = hlp-curr_to local_amount = local_currency = hlp-curr_from type_of_rate = hlp-kurst IMPORTING foreign_amount = .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = LD_DATUM FOREIGN_CURRENCY = HLP-CURR_TO LOCAL_AMOUNT = LOCAL_CURRENCY = HLP-CURR_FROM TYPE_OF_RATE = HLP-KURST IMPORTING FOREIGN_AMOUNT = .

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = XANEP-BZDAT FOREIGN_CURRENCY = HLP-CURR_TO LOCAL_AMOUNT = LOCAL_CURRENCY = HLP-CURR_FROM TYPE_OF_RATE = HLP-KURST IMPORTING FOREIGN_AMOUNT = .

CONVERT_TO_FOREIGN_CURRENCY





CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING DATE = XANEP-BZDAT FOREIGN_CURRENCY = HLP-CURR_TO LOCAL_AMOUNT = LOCAL_CURRENCY = HLP-CURR_FROM TYPE_OF_RATE = HLP-KURST IMPORTING FOREIGN_AMOUNT = .

DEPR_RECALCULATE CALL FUNCTION 'DEPR_RECALCULATE' EXPORTING I_ANTS = LD_XANTS I_FEHLER = 'X' I_FUNCTION = 'N' TABLES T_ANEA = XANEA T_ANEP = XANEP T_ANFM = LD_XANFM T_ANLB = XANLB T_ANLC = LD_XANLC T_ANLZ = XANLZ T_ANLBZA = XANLBZA "> 1409925 EXCEPTIONS OTHERS = 1.

ANLBZW_UPDATE_DB CALL FUNCTION 'ANLBZW_UPDATE_DB'. "> 1077695

DB_COMMIT CALL FUNCTION 'DB_COMMIT' EXCEPTIONS OTHERS = 1.

HELPSCREEN_NA_CREATE CALL FUNCTION 'HELPSCREEN_NA_CREATE' EXPORTING LANGU = SY-LANGU MELDUNG = MSGH-MELDUNG MELD_ID = MSGH-MELD_ID MELD_NR = MSGH-MELD_NR TITEL = MSGH-TITEL MSGV1 = MSGH-MSGV1 MSGV2 = MSGH-MSGV2 MSGV3 = MSGH-MSGV3 MSGV4 = MSGH-MSGV4.



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