SAP Reports / Programs | Logistics Execution | Shipping(LE-SHP) SAP LE

RVV50L09 SAP ABAP Report - Reverse Goods Movement







RVV50L09 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 RVV50L09 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

VL09 - Cancel Goods Issue for Delivery Note


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 RVV50L09. "Basic submit
SUBMIT RVV50L09 AND RETURN. "Return to original report after report execution complete
SUBMIT RVV50L09 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: I_VSTEL = Shipping Point
Selection Text: I_VBELN = Inbound / Outbound Delivery
Selection Text: I_TKNUM = Shipment Number
Selection Text: I_SAMMG = Group of Deliveries
Selection Text: I_ROUTE = Route
Selection Text: I_DATUM = Goods Movement Date
Title: Reverse Goods Movement
Text Symbol: 022 = Cancellable Material Docs
Text Symbol: 021 = Inbound Dlvs
Text Symbol: 020 = Outbound Dely
Text Symbol: 019 = Inbound Delivs & Outbound Delivs
Text Symbol: 018 = GI Stat.
Text Symbol: 017 = Define Date
Text Symbol: 016 = Error Log for Reversal
Text Symbol: 015 = RvrsDate
Text Symbol: 014 = ChangeReversalDate
Text Symbol: 013 = Transacts to Be Canceled
Text Symbol: 012 = Confirmatn Prompt
Text Symbol: 010 = Reverse goods movement?
Text Symbol: 009 = Shipment
Text Symbol: 008 = ShpToPrty
Text Symbol: 007 = PckDate
Text Symbol: 006 = Route
Text Symbol: 005 = LPt
Text Symbol: 004 = SPt
Text Symbol: 003 = ActGIDat
Text Symbol: 002 = DlvTp
Text Symbol: 001 = Delivery


INCLUDES used within this REPORT RVV50L09

INCLUDE: RVDIREKT.
INCLUDE RVV50L09PGR .
INCLUDE RVV50L09PBO.
INCLUDE RVV50L09SELMAT.
INCLUDE RVV50L09FORMS.
INCLUDE RVV50L09PAI.
INCLUDE RVV50L09ALV.


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:

CONVERSION_EXIT_ALPHA_INPUT ** CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "v_n_724909 ** EXPORTING ** INPUT = SY-LISEL+2(10) ** IMPORTING ** OUTPUT = VBELN. "^_n_724909

RV_CALL_DISPLAY_TRANSACTION ** CALL FUNCTION 'RV_CALL_DISPLAY_TRANSACTION' "fct-call moved ** EXPORTING fcode analysis ** VBELN = VBELN WHEN '&IC1' ** AUFNR = SPACE ** VBTYP = XLIKPUKWA-VBTYP ** EXCEPTIONS ** OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = ident IMPORTING e_identification = ident EXCEPTIONS OTHERS = 0.

MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' EXCEPTIONS OTHERS = 1.

WS_REVERSE_GOODS_ISSUE CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE' EXPORTING i_vbeln = xlikpukwa-vbeln i_budat = xlikpukwa-stdat i_count = count i_mblnr = xlikpukwa-mblnr i_tcode = 'VL09' i_vbtyp = xlikpukwa-vbtyp TABLES t_mesg = xmesg EXCEPTIONS error_reverse_goods_issue = 1 error_message = 2 "v_n_1449556 OTHERS = 3. "^_n_1449556

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = sy-msgid msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgty = 'E' txtnr = sy-msgno zeile = count EXCEPTIONS not_active = 1 OTHERS = 2.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'VL' msgv1 = xlikpukwa-vbeln txtnr = '624' zeile = count modify = ' ' EXCEPTIONS not_active = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'VL' msgv1 = xlikpukwa-vbeln msgty = 'E' txtnr = '623' zeile = count EXCEPTIONS not_active = 1 OTHERS = 2.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING show_linno = space object = text-016 EXCEPTIONS no_messages = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = ident IMPORTING e_identification = ident EXCEPTIONS OTHERS = 0. "^_n_720286

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP'.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING show_linno = space object = text-016 EXCEPTIONS no_messages = 1.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "v_n_724909 EXPORTING input = is_selfield-value IMPORTING output = vbeln. "^_n_724909

RV_CALL_DISPLAY_TRANSACTION CALL FUNCTION 'RV_CALL_DISPLAY_TRANSACTION' EXPORTING vbeln = xlikpukwa-vbeln aufnr = space vbtyp = xlikpukwa-vbtyp EXCEPTIONS OTHERS = 1.

POPUP_TO_DECIDE_INFO CALL FUNCTION 'POPUP_TO_DECIDE_INFO' EXPORTING defaultoption = 'N' textline1 = text-010 titel = text-012 start_column = 25 start_row = 6 IMPORTING answer = reaction EXCEPTIONS OTHERS = 1.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-017 "*--Datum vorgeben start_column = '8' start_row = '8' IMPORTING returncode = reaction TABLES fields = fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

RV_CALL_DISPLAY_TRANSACTION CALL FUNCTION 'RV_CALL_DISPLAY_TRANSACTION' EXPORTING vbeln = xlikpukwa-vbeln vbtyp = xlikpukwa-vbtyp EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING i_identification = ident IMPORTING e_identification = ident EXCEPTIONS OTHERS = 0.

MESSAGES_ACTIVE





CALL FUNCTION 'MESSAGES_ACTIVE' EXCEPTIONS OTHERS = 1.

WS_REVERSE_GOODS_ISSUE CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE' EXPORTING i_vbeln = xlikpukwa-vbeln i_budat = xlikpukwa-stdat i_count = count i_mblnr = xlikpukwa-mblnr i_tcode = 'VL09' i_vbtyp = xlikpukwa-vbtyp TABLES t_mesg = xmesg EXCEPTIONS error_reverse_goods_issue = 1 OTHERS = 2.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = tmesg EXCEPTIONS OTHERS = 0.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING object = tmesg EXCEPTIONS inconsistent_range = 1 no_messages = 2 OTHERS = 3.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP'.



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