ARCHTEXT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This is used to read texts from the archive and to import these back into the database...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 ARCHTEXT into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: RV_LIKP = Delivery
Selection Text: SD_VBAK = Order
Selection Text: SD_VBRK = Billing document
Title: Reads text from the archive
Text Symbol: 001 = Archiving object
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING OBJECT = 'SD_VBAK' IMPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE EXCEPTIONS END_OF_FILE = 01.
TEXT_SELECT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_SELECT_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE OBJECT = 'VBBK' TABLES SELECTIONS = XVBBK.
TEXT_SELECT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_SELECT_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE OBJECT = 'VBBP' TABLES SELECTIONS = XVBBP.
READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING ID = XSTXH-TDREFID LANGUAGE = XSTXH-TDSPRAS NAME = XSTXH-TDREFNAME OBJECT = XSTXH-TDREFOBJ ARCHIVE_HANDLE = ARCHIVE_HANDLE IMPORTING HEADER = THEAD TABLES LINES = XTLINE.
CREATE_TEXT CALL FUNCTION 'CREATE_TEXT' EXPORTING FID = XSTXH-TDID FLANGUAGE = XSTXH-TDSPRAS FNAME = XSTXH-TDNAME FOBJECT = XSTXH-TDOBJECT TABLES FLINES = XTLINE.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.