S3VBAKPTS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving of sales documents in SD: Checking program Use this program to check if sales documents can be archived...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 S3VBAKPTS 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: SO_VKORG = D .
Selection Text: SO_VBELN = D .
Selection Text: SO_ERDAT = D .
Selection Text: SO_AUART = D .
Selection Text: C_EDATE = D .
Selection Text: P_PROT = Detail Log
Selection Text: C_DBAS = Check Flow Documents Residence
Selection Text: C_BANF = Check Purchase Order
Selection Text: C_AUSG = Check FI Document
Selection Text: CHK_AEDA = Change Date: Residence Time
Title: Archiving Orders: Analysis
Text Symbol: 320 = Purch. Requisitions
Text Symbol: 325 = POs
Text Symbol: 330 = Foll.Docs
Text Symbol: 335 = Cleared
Text Symbol: 340 = Costs
Text Symbol: 345 = Residence Time
Text Symbol: 400 = Inspected
Text Symbol: 410 = Can Be Archived
Text Symbol: 420 = Cannot Be Archived
Text Symbol: 421 = Document Not Archivable: VBUK-RRSTA Does Not Equal 'C'
Text Symbol: 422 = Document Not Archivable: VBREVC Entry Still Exists
Text Symbol: 423 = Document Not Archivable: VBREVK-RRSTA Does Not Equal 'C'
Text Symbol: 424 = Document Not Archivable: Predecessor VBUK-RRSTA Does Not Equal 'C'
Text Symbol: 425 = Document Not Archivable: Predecessor VBREVC Entry Exists
Text Symbol: 426 = Document Not Archivable: Predecessor VBREVK-RRSTA Does Not Equal 'C'
Text Symbol: 430 = Valid-To Date & is not in the Past
Text Symbol: 431 = Lean Staffing: Document &1 not Archivable
Text Symbol: S01 = Sales Docs
Text Symbol: S02 = Restrictions
Text Symbol: S03 = Options
Text Symbol: 315 = Formal Check
Text Symbol: 001 = Doc. Can Be Archived
Text Symbol: 002 = User-defined check prevents archiving
Text Symbol: 003 = Document number is made up of zeros and spaces
Text Symbol: 004 = Purchase requisistions still exist for this document
Text Symbol: 005 = Purchase orders still exist for this document
Text Symbol: 006 = Subsequent document (order) is not complete
INCLUDE S3VBAKTB.
INCLUDE RVVBTYP.
INCLUDE S3VBAKSEL.
INCLUDE S3VBAKCDS.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT_APPL call function 'ARCHIVE_PROTOCOL_INIT_APPL' exporting i_detailprotocol = p_prot.
ARCHIVE_PROTOCOL_WRITE_APPL call function 'ARCHIVE_PROTOCOL_WRITE_APPL'.
GET_HANDLE_SD_ARCHIVING CALL FUNCTION 'GET_HANDLE_SD_ARCHIVING' IMPORTING HANDLE = lv_sd_archiving_exit ACTIVE = lv_active.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.