S3VBAKAU is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving for sales documents in SD: Sequential read program Program for sequential reading of archived sales documents At least one archive file must be available for executing the read program...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 S3VBAKAU 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: DD_VBELN = Document selection
Title: Archiving orders: Read program
Text Symbol: 001 = Sold-to
Text Symbol: 002 = PO Number
Text Symbol: 003 = PO date
Text Symbol: 004 = Order
Text Symbol: 005 = Net value
Text Symbol: 090 = Customer master not available
Text Symbol: 101 = Item
Text Symbol: 102 = Material
Text Symbol: 103 = Order Qty
Text Symbol: 104 = Unit of meas.
Text Symbol: 105 = Description
INCLUDE ARCHCOMO.
INCLUDE S3VBAKTB.
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 importing object_id = obj_id object_offset = obj_offset archive_name = arc_name exceptions end_of_file = 01.
ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting archive_handle = archive_handle importing record_flags = arc_buffer-flags record_structure = arc_buffer-rname record_ref = gf_record_ref exceptions end_of_object = 01 wrong_access_to_archive = 02.
ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = archive_handle.
VIEW_KUAG2 call function 'VIEW_KUAG2' exporting comwa = vtcomag init_kuagv = ' ' importing agwa = kuagv exceptions no_kna1 = 1 no_knvv = 2 others = 20.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.