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

S3VBAKPTS SAP ABAP Report - Archiving Orders: Analysis







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


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





Text Symbol: 007 = Subsequent order (delivery) is not complete
Text Symbol: 008 = Subsequent order (billing document) is not complete
Text Symbol: 009 = Accounting document for subseqent order is not cleared
Text Symbol: 010 = Costs still exist for this document (CO checks)
Text Symbol: 011 = Residence time not reached
Text Symbol: 012 = The document is not complete
Text Symbol: 013 = No archiving controlling maintained for this document
Text Symbol: 014 = Doc. not archiveable because of stock check MSKA
Text Symbol: 015 = Doc. not archiveable because of status check
Text Symbol: 017 = &1 of &2 documents processed (&3 can be archived)
Text Symbol: 018 = Document archived
Text Symbol: 019 = Doc. cannot be archived because of BADI_SD_ARCHIVING check
Text Symbol: 027 = Document Not Archivable Due to BADI Add-On Archiving Check
Text Symbol: 110 = Doc. &1 Sales organization &2 Order type &3
Text Symbol: 111 = Subsq. doc. &1 created after &2
Text Symbol: 112 = No documents available
Text Symbol: 113 = Res. times for subsequent doc. not reached
Text Symbol: 200 = Overview: Residence times not reached
Text Symbol: 210 = Sales Organization
Text Symbol: 215 = Order Type
Text Symbol: 220 = Deadline
Text Symbol: 225 = Number
Text Symbol: 230 = Incomplete Documents
Text Symbol: 300 = Overview: Consistency checks
Text Symbol: 310 = User Exit


INCLUDES used within this REPORT S3VBAKPTS

INCLUDE S3VBAKTB.
INCLUDE RVVBTYP.
INCLUDE S3VBAKSEL.
INCLUDE S3VBAKCDS.


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



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