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

S3VBAKRL SAP ABAP Report - Archiving orders: Reload program







S3VBAKRL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving sales documents in SD: Reload program Program for reloading archived sales documents 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 S3VBAKRL 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 S3VBAKRL. "Basic submit
SUBMIT S3VBAKRL AND RETURN. "Return to original report after report execution complete
SUBMIT S3VBAKRL 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: DD_VBELN = Document selection
Selection Text: TESTLAUF = Test run
Title: Archiving orders: Reload program


INCLUDES used within this REPORT S3VBAKRL

INCLUDE ARCHCOMO.
INCLUDE S3VBAKTB.


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:

K_UNITCOST_INIT CALL FUNCTION 'K_UNITCOST_INIT' EXPORTING I_OBJ_DELETE_FLAG = 'X'.

K_KABR_INIT CALL FUNCTION 'K_KABR_INIT' EXPORTING I_RELOAD_MSG_TYPE = ' '.

K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT' EXPORTING I_OBJ_DELETE_FLAG = 'X'.

ARCHIVE_OPEN_FOR_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING OBJECT = 'SD_VBAK' TEST_MODE = TESTLAUF IMPORTING ARCHIVE_READ_HANDLE = HANDLE_READ ARCHIVE_WRITE_HANDLE = HANDLE_WRITE.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = ARCHIVE_HANDLE IMPORTING ARCHIVE_CREATION_RELEASE = ARCHIVE_CREATION_RELEASE EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 3.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE_READ IMPORTING OBJECT_ID = ARC_OBJECT_ID EXCEPTIONS END_OF_FILE = 01.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE_READ IMPORTING RECORD_FLAGS = ARC_BUFFER-FLAGS RECORD_STRUCTURE = ARC_BUFFER-RNAME RECORD_REF = gf_record_ref EXCEPTIONS END_OF_OBJECT = 01.

ARCHIVE_RELOAD_OBJECT_DATA CALL FUNCTION 'ARCHIVE_RELOAD_OBJECT_DATA' EXPORTING ARCHIVE_HANDLE = HANDLE_READ.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE_WRITE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE_READ.

RV_SALES_DOCUMENT_INDEX_ADD CALL FUNCTION 'RV_SALES_DOCUMENT_INDEX_ADD' EXPORTING FXVBAK = VBAK TABLES FXVBAP = XVBAP FXVBEP = XVBEP FXVBFA = XVBFA FXVBKD = XVBKD FXVBPA = XVBPA FXVBUK = XVBUK FXVBUP = XVBUP FYVBUK = YVBUK FXFPLT = XFPLT FYFPLT = YFPLT.



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