SAP VHUPODB_PACKOBJ_FIND Function Module for NOTRANSL: Packobjekte finden zu Material/Ladungsträger; Verwendung der Pac









VHUPODB_PACKOBJ_FIND is a standard vhupodb packobj find 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: Packobjekte finden zu Material/Ladungsträger; Verwendung der Pac 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 vhupodb packobj find FM, simply by entering the name VHUPODB_PACKOBJ_FIND into the relevant SAP transaction such as SE37 or SE38.

Function Group: VHUPODB
Program Name: SAPLVHUPODB
Main Program: SAPLVHUPODB
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VHUPODB_PACKOBJ_FIND 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 'VHUPODB_PACKOBJ_FIND'"NOTRANSL: Packobjekte finden zu Material/Ladungsträger; Verwendung der Pac
EXPORTING
* PACKTYP_IMP = PACKTYP_PACKING_INST "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RANGE_PAITEMTYPE_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* MATNR_IMP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* LEVEL_IMP = 0 "DE-EN-LANG-SWITCH-NO-TRANSLATION
* RANGE_CONTENT_IMP = "
* RANGE_POBJID_IMP = "
* MAXRECORDS_IMP = 500 "

CHANGING
PACKOBJ_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
POS_WITHOUT_HEAD = 1
.




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_SAPLVHUPODB_001

IMPORTING Parameters details for VHUPODB_PACKOBJ_FIND

PACKTYP_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: PACKKP-PACKTYP
Default: PACKTYP_PACKING_INST
Optional: Yes
Call by Reference: No ( called with pass by value option)

RANGE_PAITEMTYPE_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

MATNR_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

LEVEL_IMP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

RANGE_CONTENT_IMP -

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

RANGE_POBJID_IMP -

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

MAXRECORDS_IMP -

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

CHANGING Parameters details for VHUPODB_PACKOBJ_FIND

PACKOBJ_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

POS_WITHOUT_HEAD - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for VHUPODB_PACKOBJ_FIND 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_packobj_tab  TYPE PDT_T_PACKOBJ_FOUND, "   
lv_packtyp_imp  TYPE PACKKP-PACKTYP, "   PACKTYP_PACKING_INST
lv_pos_without_head  TYPE PACKKP, "   
lv_range_paitemtype_imp  TYPE PDT_T_RA_PAITEMTYPE, "   
lv_matnr_imp  TYPE PACKPO-MATNR, "   
lv_level_imp  TYPE I, "   0
lv_range_content_imp  TYPE PDT_T_RA_CONTENT, "   
lv_range_pobjid_imp  TYPE PDT_T_RA_POBJID, "   
lv_maxrecords_imp  TYPE I. "   500

  CALL FUNCTION 'VHUPODB_PACKOBJ_FIND'  "NOTRANSL: Packobjekte finden zu Material/Ladungsträger; Verwendung der Pac
    EXPORTING
         PACKTYP_IMP = lv_packtyp_imp
         RANGE_PAITEMTYPE_IMP = lv_range_paitemtype_imp
         MATNR_IMP = lv_matnr_imp
         LEVEL_IMP = lv_level_imp
         RANGE_CONTENT_IMP = lv_range_content_imp
         RANGE_POBJID_IMP = lv_range_pobjid_imp
         MAXRECORDS_IMP = lv_maxrecords_imp
    CHANGING
         PACKOBJ_TAB = lv_packobj_tab
    EXCEPTIONS
        POS_WITHOUT_HEAD = 1
. " VHUPODB_PACKOBJ_FIND




ABAP code using 7.40 inline data declarations to call FM VHUPODB_PACKOBJ_FIND

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 PACKTYP FROM PACKKP INTO @DATA(ld_packtyp_imp).
DATA(ld_packtyp_imp) = PACKTYP_PACKING_INST.
 
 
 
"SELECT single MATNR FROM PACKPO INTO @DATA(ld_matnr_imp).
 
 
 
 
DATA(ld_maxrecords_imp) = 500.
 


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!