SAP HU_PACKING_DELIVERY Function Module for NOTRANSL: Handling Unit Bearbeitung innerhalb der Lieferungsbearbeitung









HU_PACKING_DELIVERY is a standard hu packing delivery 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: Handling Unit Bearbeitung innerhalb der Lieferungsbearbeitung 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 hu packing delivery FM, simply by entering the name HU_PACKING_DELIVERY into the relevant SAP transaction such as SE37 or SE38.

Function Group: V51H
Program Name: SAPLV51H
Main Program: SAPLV51H
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HU_PACKING_DELIVERY 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 'HU_PACKING_DELIVERY'"NOTRANSL: Handling Unit Bearbeitung innerhalb der Lieferungsbearbeitung
EXPORTING
IS_DELIVERY = "
IS_LIKP = "Delivery Header Data
IT_XLIPS = "
IT_XVBUK = "Delivery Header Status
IT_XVBUP = "
* IT_XVBPA = "Delivery Partner
* IF_AR_HUS = ' ' "Also Read Archived HUs

IMPORTING
EF_DATA_CHANGED = "Data was changed
EF_FCODE = "
EF_NUMBER_HUS = "
EF_DISPLAY = "

CHANGING
CT_XVBFA = "
CT_YVBFA = "
* CT_XVBAPF = "
.



IMPORTING Parameters details for HU_PACKING_DELIVERY

IS_DELIVERY -

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

IS_LIKP - Delivery Header Data

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

IT_XLIPS -

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

IT_XVBUK - Delivery Header Status

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

IT_XVBUP -

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

IT_XVBPA - Delivery Partner

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

IF_AR_HUS - Also Read Archived HUs

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HU_PACKING_DELIVERY

EF_DATA_CHANGED - Data was changed

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

EF_FCODE -

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

EF_NUMBER_HUS -

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

EF_DISPLAY -

Data type: CHAR9
Optional: No
Call by Reference: Yes

CHANGING Parameters details for HU_PACKING_DELIVERY

CT_XVBFA -

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

CT_YVBFA -

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

CT_XVBAPF -

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

Copy and paste ABAP code example for HU_PACKING_DELIVERY 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_xvbfa  TYPE VSE_T_VBFA, "   
lv_is_delivery  TYPE VSE_S_V51H, "   
lv_ef_data_changed  TYPE XFELD, "   
lv_is_likp  TYPE LIKPVB, "   
lv_ct_yvbfa  TYPE VSE_T_VBFA, "   
lv_ef_fcode  TYPE SY-UCOMM, "   
lv_it_xlips  TYPE VSE_T_LIPS, "   
lv_ct_xvbapf  TYPE VSE_T_VBAPF, "   
lv_ef_number_hus  TYPE SY-TABIX, "   
lv_it_xvbuk  TYPE VSE_T_VBUK, "   
lv_ef_display  TYPE CHAR9, "   
lv_it_xvbup  TYPE VSE_T_VBUP, "   
lv_it_xvbpa  TYPE VSEP_T_VBPA, "   
lv_if_ar_hus  TYPE XFELD. "   SPACE

  CALL FUNCTION 'HU_PACKING_DELIVERY'  "NOTRANSL: Handling Unit Bearbeitung innerhalb der Lieferungsbearbeitung
    EXPORTING
         IS_DELIVERY = lv_is_delivery
         IS_LIKP = lv_is_likp
         IT_XLIPS = lv_it_xlips
         IT_XVBUK = lv_it_xvbuk
         IT_XVBUP = lv_it_xvbup
         IT_XVBPA = lv_it_xvbpa
         IF_AR_HUS = lv_if_ar_hus
    IMPORTING
         EF_DATA_CHANGED = lv_ef_data_changed
         EF_FCODE = lv_ef_fcode
         EF_NUMBER_HUS = lv_ef_number_hus
         EF_DISPLAY = lv_ef_display
    CHANGING
         CT_XVBFA = lv_ct_xvbfa
         CT_YVBFA = lv_ct_yvbfa
         CT_XVBAPF = lv_ct_xvbapf
. " HU_PACKING_DELIVERY




ABAP code using 7.40 inline data declarations to call FM HU_PACKING_DELIVERY

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 UCOMM FROM SY INTO @DATA(ld_ef_fcode).
 
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_ef_number_hus).
 
 
 
 
 
DATA(ld_if_ar_hus) = ' '.
 


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!