S3VBRKPT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving billing documents in SD: Check program This program checks billing documents for their archivability...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 S3VBRKPT 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_VBELN = Document selection
Selection Text: CHK_ITAB = Alternative database access
Selection Text: CHK_DTAI = Detailed Display
Selection Text: CHK_DBAS = Check flow documents residence
Title: Archiving billing documents: Analysis
Text Symbol: 424 = RevRec: Document cannot be archived as VBREVR entry still exists.
Text Symbol: 423 = RevRec: Doc. cannot be archived VBREVK-RRSTA does not equal 'C'
Text Symbol: 422 = RevRec: Document cannot be archived as VBREVC entry still exists.
Text Symbol: 420 = cannot be archived
Text Symbol: 410 = can be archived
Text Symbol: 400 = Checked
Text Symbol: 345 = Residence time
Text Symbol: 330 = Export data
Text Symbol: 325 = FO docs
Text Symbol: 320 = Not cleared
Text Symbol: 315 = Formal check
Text Symbol: 310 = User exit
Text Symbol: 300 = Overview: Consistency checks
Text Symbol: 230 = Incomplete bill.docs
Text Symbol: 225 = Number
Text Symbol: 220 = Deadline
Text Symbol: 215 = Bill. Type
Text Symbol: 210 = Sales organization
Text Symbol: 200 = Overview: Residence times not reached
Text Symbol: 111 = Subsq. doc. &1 created after &2
Text Symbol: 110 = Doc. &1 Sales organization &2 Bill.doc.type &3
Text Symbol: 022 = Agreement & is still valid
Text Symbol: 021 = Residence time for agreement & has not yet expired
Text Symbol: 020 = Agreement & is not totally calculated
Text Symbol: 016 = Subsequent doc. (billing doc. ) & is not complete
Text Symbol: 015 = Subsequent document (delivery) & is not complete
Text Symbol: 014 = Subsequent document (order ) & is not complete
Text Symbol: 013 = No archiving controlling maintained for this document
Text Symbol: 012 = The document is not complete
Text Symbol: 011 = Document entered after &
Text Symbol: 009 = Accounting documents are not yet cleared for this document
Text Symbol: 006 = The corresponding export data is still used in the delivery
Text Symbol: 003 = Document number is made up of zeros and spaces
INCLUDE S3VBRKTB.
INCLUDE RVVBTYP.
INCLUDE SDVBRKSP.
No SAP DATABASE tables are accessed within this REPORT code!
DYNSQL_GENERATE_WHERE_CLAUSE CALL FUNCTION 'DYNSQL_GENERATE_WHERE_CLAUSE' EXPORTING FIELDNAME_KEY_1 = 'FKART' FIELDNAME_KEY_2 = 'VKORG' FIELDNAME_VALUE = 'ERDAT' OPERATOR = '<=' TABLES WHERE_CLAUSE = DYN_SQL control_table = ztvarr ALL_VALUES_KEY_1 = FKART_ALL VALUES_KEY_1 = FKART_TEIL ALL_VALUES_KEY_2 = VKORG_ALL VALUES_KEY_2 = VKORG_TEIL EXCEPTIONS DYNSQL_TOO_LARGE = 1 WRONG_ENTRY_IN_CONTROL_TABLE = 2 KEY_VALUES_INCONSISTENT = 3 NO_ENTRY_FOUND = 4 FUNCTION_ALREADY_CALLED = 5.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = PRGNAME TABLES SELECTION_TABLE = VARI_TAB EXCEPTIONS NOT_FOUND = 1 NO_REPORT = 2 OTHERS = 3.
RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING REPORT = PRGNAME SELTEXT = 'X' TABLES SEL_TAB = VARI_TAB.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = WA_VBRK-FKART KEY_2 = WA_VBRK-VKORG IMPORTING CONTROL_LINE = ZTVARR EXCEPTIONS KEY_VALUE_INVALID = 1.
VFKK_ARCH_BADI_FICA_CHECK CALL FUNCTION 'VFKK_ARCH_BADI_FICA_CHECK' EXPORTING i_awtyp = 'VBRK' i_awkey = ld_awkey CHANGING c_subrc = ld_subrc.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = WA-FKART KEY_2 = WA-VKORG IMPORTING control_line = ztvarr EXCEPTIONS KEY_VALUE_INVALID = 1 OTHERS = 2.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = WA-FKART KEY_2 = WA-VKORG IMPORTING control_line = ztvarr EXCEPTIONS KEY_VALUE_INVALID = 1 OTHERS = 2.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = WA-FKART KEY_2 = WA-VKORG IMPORTING CONTROL_LINE = ZTVARR EXCEPTIONS KEY_VALUE_INVALID = 1 OTHERS = 2.
MM_ARRANG_CHECK_COND_ARCHIVE CALL FUNCTION 'MM_ARRANG_CHECK_COND_ARCHIVE' * Check auf noch gültige Absprachen im Einkauf EXPORTING I_KNUMA = AB_VBRK-KNUMA I_BLTYPA = '02' EXCEPTIONS AGREEMENT_NOT_SETTLED = 1 AGREEMENT_DATBI_VALID = 2 AGREEMENT_RESZT_VALID = 3 OTHERS = 4 .
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
S3VBRKPT - Archiving billing documents: Analysis S3VBRKPT - Archiving billing documents: Analysis S3VBRKDLS - Archiving Billing Documents: Deletion Program S3VBRKDLS - Archiving Billing Documents: Deletion Program S3VBRKDL - Archiving billing documents: Deletion program S3VBRKDL - Archiving billing documents: Deletion program