SAP Reports / Programs | Financial Services | Collections/Disbursements(FS-CD) SAP FS

SAPRVV22 SAP ABAP Report - Display Invoicing History







SAPRVV22 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program first generates a list of the invoices selected...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 SAPRVV22 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

VAH1 - Display Invoicing Items


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 SAPRVV22. "Basic submit
SUBMIT SAPRVV22 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPRVV22 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: H_ARCH = D Display archive
Selection Text: I_XSIMU = Invoices from simulation run
Selection Text: P_VARI = Invoice layout
Selection Text: P_VARI1 = Invoice item layout
Selection Text: SO_BETRW = Amount
Selection Text: SO_FANR = Payt doc no.
Selection Text: SO_GPART = Business Partner
Selection Text: SO_LAUFD = Program run date
Selection Text: SO_LAUFI = Identification number
Selection Text: SO_OPBUK = Company code
Selection Text: SO_RFZAS = External payment doc no.
Selection Text: SO_SLART = Selection category
Selection Text: SO_VKONT = Contract Account
Selection Text: SO_VTREF = Contract references
Selection Text: SO_WAERS = Currency
Title: Display Invoicing History
Text Symbol: 001 = Display Invoicing History
Text Symbol: 002 = Layout variant selection


INCLUDES used within this REPORT SAPRVV22

INCLUDE RVV22TOP.


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:

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = l_save CHANGING cs_variant = lx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = l_save1 CHANGING cs_variant = lx_variant1 EXCEPTIONS not_found = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_pf_status_set = 'STATUS_INVO_HIST_ALV' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'VKKFAPOS_ALV' i_save = l_save is_variant = l_variant i_grid_title = l_grid_title it_fieldcat = it_fieldcat[] it_excluding = it_exclude[] TABLES t_outtab = it_vvkkfapos EXCEPTIONS program_error = 1 OTHERS = 2.

FKK_BP_LINE_ITEMS_SEL_LOGICAL CALL FUNCTION 'FKK_BP_LINE_ITEMS_SEL_LOGICAL' * EXPORTING * I_VKONT = * IX_VKONT = ' ' * I_GPART = * IX_GPART = ' ' * I_OPBEL = * IX_OPBEL = ' ' * I_FAEDN = * IX_FAEDN = ' ' * I_VTREF = * IX_VTREF = ' ' * I_EMGPA = * IX_EMGPA = ' ' * I_WAERS = * IX_WAERS = ' ' * I_BUDAT = * IX_BUDAT = ' ' * I_BUKRS = * IX_BUKRS = ' ' * IX_SAMPLE_FLAG = ' ' TABLES pt_logfkkop = t_fkkop * PT_WHERETAB = * TP_VKONT_RANGE = * TP_GPART_RANGE = * TP_OPBEL_RANGE = * TP_FAEDN_RANGE = tp_vtref_range = so_vtref * TP_EMGPA_RANGE = * TP_WAERS_RANGE = * TP_BUDAT_RANGE = * TP_BUKRS_RANGE = .

FKK_GET_ARC_INVCH CALL FUNCTION 'FKK_GET_ARC_INVCH' TABLES i_sel = t_frange t_fpos = it_vvkkfapos_arc EXCEPTIONS no_selection_criteria = 1 no_correspondence_found = 2 OTHERS = 3.

BUPA_DESCRIPTION_READ CALL FUNCTION 'BUPA_DESCRIPTION_READ' EXPORTING iv_partner = -gpart IMPORTING ev_description = -gpart_description EXCEPTIONS no_partner_specified = 1 no_valid_record_found = 2 OTHERS = 3.

FKK_BP_LINE_ITEMS_SEL_BY_OPBEL CALL FUNCTION 'FKK_BP_LINE_ITEMS_SEL_BY_OPBEL' EXPORTING i_opbel = it_vvkkfapos1-opbel IMPORTING e_count = lv_count TABLES pt_fkkop = t_fkkop.

FKK_GET_SINGLE_ARC_DOC CALL FUNCTION 'FKK_GET_SINGLE_ARC_DOC' EXPORTING i_opbel = it_vvkkfapos1-opbel TABLES t_fkkop = t_fkkop EXCEPTIONS OTHERS = 1.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_pf_status_set = ' ' i_callback_user_command = 'USER_COMMAND1' i_structure_name = 'vvkkfahid' i_save = l_save1 is_variant = l_variant1 it_excluding = it_exclude[] TABLES t_outtab = it_vvkkfapos1 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = l_variant i_save = l_save IMPORTING e_exit = l_exit es_variant = lx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = l_variant1 i_save = l_save1 IMPORTING e_exit = l_exit1 es_variant = lx_variant1 EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = l_save CHANGING cs_variant = lx_variant.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = l_save1 CHANGING cs_variant = lx_variant1.

FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_bukrs = all_bukrs i_actvt = '03' " 03 is display EXCEPTIONS error_message = 1.

FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_begru = all_begru i_actvt = '03' " 03 is display EXCEPTIONS error_message = 1.

FKK_ACCOUNT_READ CALL FUNCTION 'FKK_ACCOUNT_READ' EXPORTING i_vkont = l_vvkkfapos-vkont i_gpart = l_vvkkfapos-gpart i_only_acc_holder = ' ' IMPORTING e_fkkvkp = l_fkkvkp EXCEPTIONS error_message = 1 OTHERS = 2.

FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_bukrs = l_bukrs i_begru = l_fkkvkp-begru i_actvt = '03' "display EXCEPTIONS error_message = 1.

FKK_DOC_AUTHORITY_CHECK CALL FUNCTION 'FKK_DOC_AUTHORITY_CHECK' EXPORTING i_bukrs = l_bukrs i_actvt = '03' "display EXCEPTIONS error_message = 1.



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