SAP SHP_VBUK_SELECT_02 Function Module for NOTRANSL: Datenbankschnittstelle Lieferkopfstatus









SHP_VBUK_SELECT_02 is a standard shp vbuk select 02 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: Datenbankschnittstelle Lieferkopfstatus 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 shp vbuk select 02 FM, simply by entering the name SHP_VBUK_SELECT_02 into the relevant SAP transaction such as SE37 or SE38.

Function Group: LE_SHP_DB_DELIVERY_BUF_EXE
Program Name: SAPLLE_SHP_DB_DELIVERY_BUF_EXE
Main Program: SAPLLE_SHP_DB_DELIVERY_BUF_EXE
Appliation area: D
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SHP_VBUK_SELECT_02 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 'SHP_VBUK_SELECT_02'"NOTRANSL: Datenbankschnittstelle Lieferkopfstatus
EXPORTING
* IT_VBUK_KEY = "
* IT_VBUK_KEY01 = "Table for Business Admin. Key (Delivery Header)
* IF_SORT = 'X' "

CHANGING
CT_VBUK = "

EXCEPTIONS
NO_RECORD_FOUND = 1
.



IMPORTING Parameters details for SHP_VBUK_SELECT_02

IT_VBUK_KEY -

Data type: V50T2_VBUK_KEY_T
Optional: Yes
Call by Reference: Yes

IT_VBUK_KEY01 - Table for Business Admin. Key (Delivery Header)

Data type: LESHP_DELIVERY_KEY_T
Optional: Yes
Call by Reference: Yes

IF_SORT -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for SHP_VBUK_SELECT_02

CT_VBUK -

Data type: SHP_VL10_VBUK_T
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_RECORD_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SHP_VBUK_SELECT_02 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:
lv_ct_vbuk  TYPE SHP_VL10_VBUK_T, "   
lv_it_vbuk_key  TYPE V50T2_VBUK_KEY_T, "   
lv_no_record_found  TYPE V50T2_VBUK_KEY_T, "   
lv_it_vbuk_key01  TYPE LESHP_DELIVERY_KEY_T, "   
lv_if_sort  TYPE XFELD. "   'X'

  CALL FUNCTION 'SHP_VBUK_SELECT_02'  "NOTRANSL: Datenbankschnittstelle Lieferkopfstatus
    EXPORTING
         IT_VBUK_KEY = lv_it_vbuk_key
         IT_VBUK_KEY01 = lv_it_vbuk_key01
         IF_SORT = lv_if_sort
    CHANGING
         CT_VBUK = lv_ct_vbuk
    EXCEPTIONS
        NO_RECORD_FOUND = 1
. " SHP_VBUK_SELECT_02




ABAP code using 7.40 inline data declarations to call FM SHP_VBUK_SELECT_02

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.

 
 
 
 
DATA(ld_if_sort) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!