SAP Reports / Programs

S4VBRKPT SAP ABAP Report - Archiving billing documents: Analysis







S4VBRKPT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter S4VBRKPT 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 S4VBRKPT. "Basic submit
SUBMIT S4VBRKPT AND RETURN. "Return to original report after report execution complete
SUBMIT S4VBRKPT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Archiving billing documents: Analysis


INCLUDES used within this REPORT S4VBRKPT

INCLUDE S4VBRKTB.
INCLUDE RVVBTYP.
INCLUDE SDVBRKSP.


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:

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-VKORG KEY_2 = WA_VBRK-FKART IMPORTING CONTROL_LINE = ZTVARR EXCEPTIONS KEY_VALUE_INVALID = 1.

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.



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