SAP Reports / Programs

SD_VPRS_UPDATE SAP ABAP Report - vprs update







SD_VPRS_UPDATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for SD_VPRS_UPDATE You can use this report to update the goods clearing value from billing documents that have already been created...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 SD_VPRS_UPDATE 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 SD_VPRS_UPDATE. "Basic submit
SUBMIT SD_VPRS_UPDATE AND RETURN. "Return to original report after report execution complete
SUBMIT SD_VPRS_UPDATE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


List of selected billing documents
Selection Text: ITEMCAT = Item category
Selection Text: S_PERIOD = Period
Selection Text: S_VBELN = Document number
Selection Text: TEST = Test run
Title: vprs update
Text Symbol: 001 = Clearing value could not be determined
Text Symbol: 002 = changed by
Text Symbol: 003 = Old Cost
Text Symbol: 004 = Curr.
Text Symbol: 005 = New Cost
001 Billing doc. no. Old clearing value New clearing value


INCLUDES used within this REPORT SD_VPRS_UPDATE

INCLUDE VBRKDATA.
INCLUDE VBUKDATA.
INCLUDE VBRPDATA.
INCLUDE KONVDATA.
INCLUDE VBPADATA.
INCLUDE THEADDAT.
INCLUDE VBFSDATA.


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:

RV_INVOICE_REFRESH CALL FUNCTION 'RV_INVOICE_REFRESH' EXPORTING with_posting = 'C' TABLES xkomfk = xkomfk xkomv = xkomv xthead = xthead xvbfs = xvbfs xvbss = xvbss xvbpa = xvbpa xvbrk = xvbrk xvbrp = xvbrp.

RV_INVOICE_DOCUMENT_READ CALL FUNCTION 'RV_INVOICE_DOCUMENT_READ' EXPORTING vbrk_i = vbrk activity = '02' "ACTVT_CHANGE konv_read = 'X' no_nast = 'X' "ALR IMPORTING vbrk_e = vbrk vbuk_e = vbuk TABLES xkomfk = xkomfk xvbrk = xvbrk xvbrp = xvbrp xvbpa = xvbpa xkomv = xkomv EXCEPTIONS error_message = 4 OTHERS = 4.

RV_INVOICE_ITEM_MAINTAIN CALL FUNCTION 'RV_INVOICE_ITEM_MAINTAIN' EXPORTING vbrp_i = vbrp redetermine_wavwr = 'X' IMPORTING vbrp_e = vbrp TABLES xkomfk = xkomfk xkomv = xkomv xthead = xthead xvbfs = xvbfs xvbpa = xvbpa xvbrk = xvbrk xvbrp = xvbrp xvbss = xvbss.

RV_ACCOUNTING_DOCUMENT_CREATE CALL FUNCTION 'RV_ACCOUNTING_DOCUMENT_CREATE' "4.5B

RV_ACCOUNTING_DOCUMENT_CREATE CALL FUNCTION 'RV_ACCOUNTING_DOCUMENT_CREATE' "4.5B

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' "4.5B

RV_INVOICE_DOCUMENT_ADD CALL FUNCTION 'RV_INVOICE_DOCUMENT_ADD' EXPORTING vbsk_i = vbsk with_posting = 'C' i_no_nast = 'X' "ALR IMPORTING vbsk_e = vbsk TABLES xkomfk = xkomfk xthead = xthead xvbfs = xvbfs xvbss = xvbss xvbrk = xvbrk xvbrp = xvbrp xvbpa = xvbpa xkomv = xkomv EXCEPTIONS error_message = 4 OTHERS = 4.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = lt_fieldcat_head i_save = gc_save it_events = lt_eventtab i_tabname_header = gc_tabname_header i_tabname_item = gc_tabname_item is_keyinfo = ls_keyinfo TABLES t_outtab_header = gt_head t_outtab_item = gt_item EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = iv_structure CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = gc_list_type_0 IMPORTING et_events = xt_eventtab.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.



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