SAP Reports / Programs | Sales and Distribution | Basic Functions(SD-BF) SAP SD

ARCHTEXT SAP ABAP Report - Reads text from the archive







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


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 ARCHTEXT. "Basic submit
SUBMIT ARCHTEXT AND RETURN. "Return to original report after report execution complete
SUBMIT ARCHTEXT 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: 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


INCLUDES used within this REPORT ARCHTEXT

No INCLUDES are used within this REPORT code!


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_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.



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