SAP Reports / Programs

AM_ASSET_WRI SAP ABAP Report - Archiving Assets: Write Program







AM_ASSET_WRI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter AM_ASSET_WRI 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 AM_ASSET_WRI. "Basic submit
SUBMIT AM_ASSET_WRI AND RETURN. "Return to original report after report execution complete
SUBMIT AM_ASSET_WRI 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_GJAHR = To Fiscal Year
Selection Text: S_STEUER = Customizing Snapshot
Selection Text: P_AR_ILM = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: S_ANLN1 = D .
Selection Text: S_BUKRS = D .
Title: Archiving Assets: Write Program
Text Symbol: T04 = Option
Text Symbol: T03 = Restrictions
Text Symbol: T02 = Restrictions in Test Mode
Text Symbol: N03 = Asset Archivable
Text Symbol: N02 = Retention Duration Reached
Text Symbol: N01 = Snapshot archived
Text Symbol: 900 = Asset:
Text Symbol: 700 = Errors occurred during archiving.
Text Symbol: 610 = No assets were read.
Text Symbol: 604 = Stop time
Text Symbol: 603 = Stop date
Text Symbol: 602 = Start time
Text Symbol: 001 = Archive Key
Text Symbol: 002 = FI-AA Archiving - Archiving Session
Text Symbol: 004 = <<>>
Text Symbol: 005 = <<>>
Text Symbol: 006 = <<>>
Text Symbol: 011 = CoCode Company code
Text Symbol: 023 = &1% (&2 of &3) of assets were processed
Text Symbol: 040 = Statistics "
Text Symbol: 041 = Assets read
Text Symbol: 042 = Arch. assets
Text Symbol: 043 = Ann. values
Text Symbol: 044 = Transactions





Text Symbol: 045 = Pstd.values Posted values
Text Symbol: 100 = Tax tables
Text Symbol: 101 = Assets, transactions and annual values
Text Symbol: 102 = Posting values
Text Symbol: 200 = Tax tables
Text Symbol: 201 = Assets, transactions and annual values
Text Symbol: 202 = Posting values
Text Symbol: 300 = Archived fiscal years
Text Symbol: 500 = Selection of the program run:
Text Symbol: 501 = Company codes
Text Symbol: 502 = Assets
Text Symbol: 600 = Program started by user: "
Text Symbol: 601 = Start date


INCLUDES used within this REPORT AM_ASSET_WRI

INCLUDE RAARCHTP.
INCLUDE ARCH_WRITE_PRG_STANDARD2.


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:

ARCHIVE_PROTOCOL_INIT call function 'ARCHIVE_PROTOCOL_INIT' exporting i_detailprotocol = p_prot.

AM_CONFIRM_LIMIT call function 'AM_CONFIRM_LIMIT' exporting i_test = g_test importing e_leave_prog = answer.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ANLA_READ_RANGE_TRIGGER call function 'ANLA_READ_RANGE_TRIGGER' exporting i_abra = ld_abra importing e_goon = l_goon tables t_r_anln1 = s_anln1 t_anla = xanla exceptions no_records_found = 01 input_false = 02.

ABRA_SET_ANLN2 call function 'ABRA_SET_ANLN2' exporting i_aanln2 = xanla-anln2 i_banln2 = xanla-anln2.

FIRST_DAY_IN_PERIOD_GET call function 'FIRST_DAY_IN_PERIOD_GET' exporting i_gjahr = hlp_gjahr i_monmit = t093c-monmit i_periv = t001-periv i_poper = con_firstper importing e_date = g_gjbdat_lc exceptions t009b_notfound = 03.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = handle_lc importing archive_document = g_sel_run_lc.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = handle_lp importing archive_document = g_sel_run_lp.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = handle_st importing archive_document = g_sel_run_st.

SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting text = hlp_txt.



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