SAP Reports / Programs

S3VBAKAU SAP ABAP Report - Archiving orders: Read program







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


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


INCLUDES used within this REPORT S3VBAKAU

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:

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.



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