SAP RV_SHIPMENT_VIEW Function Module for NOTRANSL: Lesen Transport und zugehörige Objekte
RV_SHIPMENT_VIEW is a standard rv shipment view SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen Transport und zugehörige Objekte processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rv shipment view FM, simply by entering the name RV_SHIPMENT_VIEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: V56T
Program Name: SAPLV56T
Main Program: SAPLV56T
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RV_SHIPMENT_VIEW pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RV_SHIPMENT_VIEW'"NOTRANSL: Lesen Transport und zugehörige Objekte.
EXPORTING
SHIPMENT_NUMBER = "Shipment Number
* OPTION_SEGMENTS = ' ' "Option: Shipment stages
* OPTION_PARTNERS = ' ' "Option: Partners
* OPTION_MESSAGES = ' ' "Option: Output
* OPTION_PACKAGES = ' ' "Option: Shipping units
* OPTION_PACKAGE_DIALOG = ' ' "
* OPTION_FLOW = ' ' "Option: Document flow
* OPTION_DELIVERY_LOCK = ' ' "Option: Block deliveries
* OPTION_AUTHORITY_CHECK = ' ' "Option: Check authoriztion
* ACTIVITY = 'A' "Activity for authorization check
* OPTION_NO_REFRESH = 'X' "No initialization before reading
* OPTION_TVTK = ' ' "Option: Shipment type
* OPTION_IGNORE_MISSING_DELIV = ' ' "
* I_FILTER_TYPE = 'F' "
* OPTION_HU_VIA_VBFA = ' ' "
* GI_BADI_SHPMNT_EXTENSION = "
* OPTION_TTDS = ' ' "Option: Transportation planning point
* LANGUAGE = SY-LANGU "Language for descriptions
* OPTION_ITEMS = ' ' "Option: Shipment items
* OPTION_MINIMIZED_ITEM_DATA = ' ' "Option: Only read minimal delivery data
* OPTION_SALES_ORDERS = ' ' "Option: Date of the sales order
* OPTION_EXPORT_DATA = ' ' "Option: Export data
* OPTION_STAWN_READ = ' ' "
IMPORTING
F_VTTKVB = "Shipment header
F_TVTK = "Shipment type
F_TVTKT = "Shipment type (description)
F_TTDS = "Transportation planning point
F_TTDST = "Transportation planning point (description)
F_VBPLA = "Shipping unit (general)
E_DELIVERY_MISSING = "
E_DSD_DISPLAY = "
TABLES
* F_VTTP = "Shipment items
* F_VBPLP = "Shipping unit items
* F_VBPLS = "Shipping unit totals
* F_YVTFA = "
* F_TRLK = "Delivery Headers
* F_TRLP = "Delivery Items
* F_VTTS = "Stages of Shipment
* F_VTSP = "Assignment of shipment stage/item
* F_VBPA = "Partners
* F_VBADR = "Addresses for partners
* F_VTFA = "Document Flow
* F_VBPLK = "Shipping unit headers
EXCEPTIONS
NOT_FOUND = 1 NO_AUTHORITY = 2 DELIVERY_MISSING = 3 DELIVERY_LOCK = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLV56T_001 Filter Delivery Items for Shipment
IMPORTING Parameters details for RV_SHIPMENT_VIEW
SHIPMENT_NUMBER - Shipment Number
Data type: VTTK-TKNUMOptional: No
Call by Reference: No ( called with pass by value option)
OPTION_SEGMENTS - Option: Shipment stages
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_PARTNERS - Option: Partners
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_MESSAGES - Option: Output
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_PACKAGES - Option: Shipping units
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_PACKAGE_DIALOG -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_FLOW - Option: Document flow
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_DELIVERY_LOCK - Option: Block deliveries
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_AUTHORITY_CHECK - Option: Check authoriztion
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY - Activity for authorization check
Data type: T180-TRTYPDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_NO_REFRESH - No initialization before reading
Data type: RV56A-SELKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_TVTK - Option: Shipment type
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_IGNORE_MISSING_DELIV -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FILTER_TYPE -
Data type: RV56A-FLTTYPDefault: 'F'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_HU_VIA_VBFA -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
GI_BADI_SHPMNT_EXTENSION -
Data type: IF_EX_LE_SHPMNT_EXTENSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_TTDS - Option: Transportation planning point
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language for descriptions
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_ITEMS - Option: Shipment items
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_MINIMIZED_ITEM_DATA - Option: Only read minimal delivery data
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_SALES_ORDERS - Option: Date of the sales order
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_EXPORT_DATA - Option: Export data
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPTION_STAWN_READ -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RV_SHIPMENT_VIEW
F_VTTKVB - Shipment header
Data type: VTTKVBOptional: No
Call by Reference: No ( called with pass by value option)
F_TVTK - Shipment type
Data type: TVTKOptional: No
Call by Reference: No ( called with pass by value option)
F_TVTKT - Shipment type (description)
Data type: TVTKTOptional: No
Call by Reference: No ( called with pass by value option)
F_TTDS - Transportation planning point
Data type: TTDSOptional: No
Call by Reference: No ( called with pass by value option)
F_TTDST - Transportation planning point (description)
Data type: TTDSTOptional: No
Call by Reference: No ( called with pass by value option)
F_VBPLA - Shipping unit (general)
Data type: VBPLAOptional: No
Call by Reference: No ( called with pass by value option)
E_DELIVERY_MISSING -
Data type: RV56A-SELKZOptional: No
Call by Reference: No ( called with pass by value option)
E_DSD_DISPLAY -
Data type: RV56A-SELKZOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RV_SHIPMENT_VIEW
F_VTTP - Shipment items
Data type: VTTPVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VBPLP - Shipping unit items
Data type: VBPLPOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VBPLS - Shipping unit totals
Data type: VBPLSOptional: Yes
Call by Reference: No ( called with pass by value option)
F_YVTFA -
Data type: VTFAVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_TRLK - Delivery Headers
Data type: VTRLKOptional: Yes
Call by Reference: No ( called with pass by value option)
F_TRLP - Delivery Items
Data type: VTRLPOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VTTS - Stages of Shipment
Data type: VTTSVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VTSP - Assignment of shipment stage/item
Data type: VTSPVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VBPA - Partners
Data type: VBPAVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VBADR - Addresses for partners
Data type: SADRVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VTFA - Document Flow
Data type: VTFAVBOptional: Yes
Call by Reference: No ( called with pass by value option)
F_VBPLK - Shipping unit headers
Data type: VBPLKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Shipment not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_MISSING - Delivery of shipment missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELIVERY_LOCK - Delivery Blocked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RV_SHIPMENT_VIEW Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_f_vttp | TYPE STANDARD TABLE OF VTTPVB, " | |||
| lv_f_vttkvb | TYPE VTTKVB, " | |||
| lv_not_found | TYPE VTTKVB, " | |||
| lv_shipment_number | TYPE VTTK-TKNUM, " | |||
| lt_f_vbplp | TYPE STANDARD TABLE OF VBPLP, " | |||
| lv_option_segments | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_vbpls | TYPE STANDARD TABLE OF VBPLS, " | |||
| lv_option_partners | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_yvtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lv_option_messages | TYPE RV56A-SELKZ, " SPACE | |||
| lv_option_packages | TYPE RV56A-SELKZ, " SPACE | |||
| lv_option_package_dialog | TYPE RV56A-SELKZ, " SPACE | |||
| lv_option_flow | TYPE RV56A-SELKZ, " SPACE | |||
| lv_option_delivery_lock | TYPE RV56A-SELKZ, " SPACE | |||
| lv_option_authority_check | TYPE RV56A-SELKZ, " SPACE | |||
| lv_activity | TYPE T180-TRTYP, " 'A' | |||
| lv_option_no_refresh | TYPE RV56A-SELKZ, " 'X' | |||
| lt_f_trlk | TYPE STANDARD TABLE OF VTRLK, " | |||
| lv_f_tvtk | TYPE TVTK, " | |||
| lv_option_tvtk | TYPE RV56A-SELKZ, " SPACE | |||
| lv_no_authority | TYPE RV56A, " | |||
| lv_option_ignore_missing_deliv | TYPE RV56A-SELKZ, " SPACE | |||
| lv_i_filter_type | TYPE RV56A-FLTTYP, " 'F' | |||
| lv_option_hu_via_vbfa | TYPE RV56A-SELKZ, " SPACE | |||
| lv_gi_badi_shpmnt_extension | TYPE IF_EX_LE_SHPMNT_EXTENSION, " | |||
| lt_f_trlp | TYPE STANDARD TABLE OF VTRLP, " | |||
| lv_f_tvtkt | TYPE TVTKT, " | |||
| lv_option_ttds | TYPE RV56A-SELKZ, " SPACE | |||
| lv_delivery_missing | TYPE RV56A, " | |||
| lv_f_ttds | TYPE TTDS, " | |||
| lt_f_vtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lv_delivery_lock | TYPE SY, " | |||
| lt_f_vtsp | TYPE STANDARD TABLE OF VTSPVB, " | |||
| lv_f_ttdst | TYPE TTDST, " | |||
| lv_option_items | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_vbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_f_vbpla | TYPE VBPLA, " | |||
| lv_option_minimized_item_data | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_vbadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lv_e_delivery_missing | TYPE RV56A-SELKZ, " | |||
| lv_option_sales_orders | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_vtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lv_e_dsd_display | TYPE RV56A-SELKZ, " | |||
| lv_option_export_data | TYPE RV56A-SELKZ, " SPACE | |||
| lt_f_vbplk | TYPE STANDARD TABLE OF VBPLK, " | |||
| lv_option_stawn_read | TYPE RV56A-SELKZ. " SPACE |
|   CALL FUNCTION 'RV_SHIPMENT_VIEW' "NOTRANSL: Lesen Transport und zugehörige Objekte |
| EXPORTING | ||
| SHIPMENT_NUMBER | = lv_shipment_number | |
| OPTION_SEGMENTS | = lv_option_segments | |
| OPTION_PARTNERS | = lv_option_partners | |
| OPTION_MESSAGES | = lv_option_messages | |
| OPTION_PACKAGES | = lv_option_packages | |
| OPTION_PACKAGE_DIALOG | = lv_option_package_dialog | |
| OPTION_FLOW | = lv_option_flow | |
| OPTION_DELIVERY_LOCK | = lv_option_delivery_lock | |
| OPTION_AUTHORITY_CHECK | = lv_option_authority_check | |
| ACTIVITY | = lv_activity | |
| OPTION_NO_REFRESH | = lv_option_no_refresh | |
| OPTION_TVTK | = lv_option_tvtk | |
| OPTION_IGNORE_MISSING_DELIV | = lv_option_ignore_missing_deliv | |
| I_FILTER_TYPE | = lv_i_filter_type | |
| OPTION_HU_VIA_VBFA | = lv_option_hu_via_vbfa | |
| GI_BADI_SHPMNT_EXTENSION | = lv_gi_badi_shpmnt_extension | |
| OPTION_TTDS | = lv_option_ttds | |
| LANGUAGE | = lv_language | |
| OPTION_ITEMS | = lv_option_items | |
| OPTION_MINIMIZED_ITEM_DATA | = lv_option_minimized_item_data | |
| OPTION_SALES_ORDERS | = lv_option_sales_orders | |
| OPTION_EXPORT_DATA | = lv_option_export_data | |
| OPTION_STAWN_READ | = lv_option_stawn_read | |
| IMPORTING | ||
| F_VTTKVB | = lv_f_vttkvb | |
| F_TVTK | = lv_f_tvtk | |
| F_TVTKT | = lv_f_tvtkt | |
| F_TTDS | = lv_f_ttds | |
| F_TTDST | = lv_f_ttdst | |
| F_VBPLA | = lv_f_vbpla | |
| E_DELIVERY_MISSING | = lv_e_delivery_missing | |
| E_DSD_DISPLAY | = lv_e_dsd_display | |
| TABLES | ||
| F_VTTP | = lt_f_vttp | |
| F_VBPLP | = lt_f_vbplp | |
| F_VBPLS | = lt_f_vbpls | |
| F_YVTFA | = lt_f_yvtfa | |
| F_TRLK | = lt_f_trlk | |
| F_TRLP | = lt_f_trlp | |
| F_VTTS | = lt_f_vtts | |
| F_VTSP | = lt_f_vtsp | |
| F_VBPA | = lt_f_vbpa | |
| F_VBADR | = lt_f_vbadr | |
| F_VTFA | = lt_f_vtfa | |
| F_VBPLK | = lt_f_vbplk | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| NO_AUTHORITY = 2 | ||
| DELIVERY_MISSING = 3 | ||
| DELIVERY_LOCK = 4 | ||
| . " RV_SHIPMENT_VIEW | ||
ABAP code using 7.40 inline data declarations to call FM RV_SHIPMENT_VIEW
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TKNUM FROM VTTK INTO @DATA(ld_shipment_number). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_segments). | ||||
| DATA(ld_option_segments) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_partners). | ||||
| DATA(ld_option_partners) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_messages). | ||||
| DATA(ld_option_messages) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_packages). | ||||
| DATA(ld_option_packages) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_package_dialog). | ||||
| DATA(ld_option_package_dialog) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_flow). | ||||
| DATA(ld_option_flow) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_delivery_lock). | ||||
| DATA(ld_option_delivery_lock) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_authority_check). | ||||
| DATA(ld_option_authority_check) | = ' '. | |||
| "SELECT single TRTYP FROM T180 INTO @DATA(ld_activity). | ||||
| DATA(ld_activity) | = 'A'. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_no_refresh). | ||||
| DATA(ld_option_no_refresh) | = 'X'. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_tvtk). | ||||
| DATA(ld_option_tvtk) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_ignore_missing_deliv). | ||||
| DATA(ld_option_ignore_missing_deliv) | = ' '. | |||
| "SELECT single FLTTYP FROM RV56A INTO @DATA(ld_i_filter_type). | ||||
| DATA(ld_i_filter_type) | = 'F'. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_hu_via_vbfa). | ||||
| DATA(ld_option_hu_via_vbfa) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_ttds). | ||||
| DATA(ld_option_ttds) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_items). | ||||
| DATA(ld_option_items) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_minimized_item_data). | ||||
| DATA(ld_option_minimized_item_data) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_e_delivery_missing). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_sales_orders). | ||||
| DATA(ld_option_sales_orders) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_e_dsd_display). | ||||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_export_data). | ||||
| DATA(ld_option_export_data) | = ' '. | |||
| "SELECT single SELKZ FROM RV56A INTO @DATA(ld_option_stawn_read). | ||||
| DATA(ld_option_stawn_read) | = ' '. | |||
Search for further information about these or an SAP related objects