SAP L_CHECK_PICK_HU_2_TO_ITEM Function Module for NOTRANSL: Überprüfen der Zuordnung von Pick-HU zu TA-Position









L_CHECK_PICK_HU_2_TO_ITEM is a standard l check pick hu 2 to item 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: Überprüfen der Zuordnung von Pick-HU zu TA-Position 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 l check pick hu 2 to item FM, simply by entering the name L_CHECK_PICK_HU_2_TO_ITEM into the relevant SAP transaction such as SE37 or SE38.

Function Group: LHUM
Program Name: SAPLLHUM
Main Program: SAPLLHUM
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function L_CHECK_PICK_HU_2_TO_ITEM 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 'L_CHECK_PICK_HU_2_TO_ITEM'"NOTRANSL: Überprüfen der Zuordnung von Pick-HU zu TA-Position
EXPORTING
I_LGNUM = "Warehouse number
* I_VBELN = ' ' "
* I_LZNUM = ' ' "
I_MINWM = "
I_TANUM = "Transfer Order Number
I_TAPOS = "
I_NLTYP = "
I_NLPLA = "
I_FHUTA = "Flag: Transfer order item is HU TO item
I_EXIDV = "
* I_HUKNN = ' ' "

TABLES
I_LTHU = "
IT_VEKP = "
IT_VEPO = "
IT_LTHU_ALL = "Assignment of Pick-HUs to Transfer Orders

EXCEPTIONS
INVALID_ASSIGNMENT = 1 INPUT_ERROR = 2 HU_NOT_FOUND = 3 ASSIGNMENT_NOT_POSSIBLE = 4
.



IMPORTING Parameters details for L_CHECK_PICK_HU_2_TO_ITEM

I_LGNUM - Warehouse number

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

I_VBELN -

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

I_LZNUM -

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

I_MINWM -

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

I_TANUM - Transfer Order Number

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

I_TAPOS -

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

I_NLTYP -

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

I_NLPLA -

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

I_FHUTA - Flag: Transfer order item is HU TO item

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

I_EXIDV -

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

I_HUKNN -

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

TABLES Parameters details for L_CHECK_PICK_HU_2_TO_ITEM

I_LTHU -

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

IT_VEKP -

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

IT_VEPO -

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

IT_LTHU_ALL - Assignment of Pick-HUs to Transfer Orders

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

EXCEPTIONS details

INVALID_ASSIGNMENT -

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

INPUT_ERROR -

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

HU_NOT_FOUND -

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

ASSIGNMENT_NOT_POSSIBLE -

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

Copy and paste ABAP code example for L_CHECK_PICK_HU_2_TO_ITEM 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_i_lthu  TYPE STANDARD TABLE OF LTHU, "   
lv_i_lgnum  TYPE LTAK-LGNUM, "   
lv_invalid_assignment  TYPE LTAK, "   
lv_i_vbeln  TYPE LTAK-VBELN, "   SPACE
lv_i_lznum  TYPE LTAK-LZNUM, "   SPACE
lt_it_vekp  TYPE STANDARD TABLE OF VEKPVB, "   
lv_i_minwm  TYPE LTAK-MINWM, "   
lv_input_error  TYPE LTAK, "   
lt_it_vepo  TYPE STANDARD TABLE OF VEPOVB, "   
lv_i_tanum  TYPE LTAK-TANUM, "   
lv_hu_not_found  TYPE LTAK, "   
lv_i_tapos  TYPE LTAP-TAPOS, "   
lt_it_lthu_all  TYPE STANDARD TABLE OF LTHU, "   
lv_assignment_not_possible  TYPE LTHU, "   
lv_i_nltyp  TYPE LTAP-NLTYP, "   
lv_i_nlpla  TYPE LTAP-NLPLA, "   
lv_i_fhuta  TYPE LTAP-FHUTA, "   
lv_i_exidv  TYPE LTHU-EXIDV, "   
lv_i_huknn  TYPE LTHU-HUKNN. "   SPACE

  CALL FUNCTION 'L_CHECK_PICK_HU_2_TO_ITEM'  "NOTRANSL: Überprüfen der Zuordnung von Pick-HU zu TA-Position
    EXPORTING
         I_LGNUM = lv_i_lgnum
         I_VBELN = lv_i_vbeln
         I_LZNUM = lv_i_lznum
         I_MINWM = lv_i_minwm
         I_TANUM = lv_i_tanum
         I_TAPOS = lv_i_tapos
         I_NLTYP = lv_i_nltyp
         I_NLPLA = lv_i_nlpla
         I_FHUTA = lv_i_fhuta
         I_EXIDV = lv_i_exidv
         I_HUKNN = lv_i_huknn
    TABLES
         I_LTHU = lt_i_lthu
         IT_VEKP = lt_it_vekp
         IT_VEPO = lt_it_vepo
         IT_LTHU_ALL = lt_it_lthu_all
    EXCEPTIONS
        INVALID_ASSIGNMENT = 1
        INPUT_ERROR = 2
        HU_NOT_FOUND = 3
        ASSIGNMENT_NOT_POSSIBLE = 4
. " L_CHECK_PICK_HU_2_TO_ITEM




ABAP code using 7.40 inline data declarations to call FM L_CHECK_PICK_HU_2_TO_ITEM

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 LGNUM FROM LTAK INTO @DATA(ld_i_lgnum).
 
 
"SELECT single VBELN FROM LTAK INTO @DATA(ld_i_vbeln).
DATA(ld_i_vbeln) = ' '.
 
"SELECT single LZNUM FROM LTAK INTO @DATA(ld_i_lznum).
DATA(ld_i_lznum) = ' '.
 
 
"SELECT single MINWM FROM LTAK INTO @DATA(ld_i_minwm).
 
 
 
"SELECT single TANUM FROM LTAK INTO @DATA(ld_i_tanum).
 
 
"SELECT single TAPOS FROM LTAP INTO @DATA(ld_i_tapos).
 
 
 
"SELECT single NLTYP FROM LTAP INTO @DATA(ld_i_nltyp).
 
"SELECT single NLPLA FROM LTAP INTO @DATA(ld_i_nlpla).
 
"SELECT single FHUTA FROM LTAP INTO @DATA(ld_i_fhuta).
 
"SELECT single EXIDV FROM LTHU INTO @DATA(ld_i_exidv).
 
"SELECT single HUKNN FROM LTHU INTO @DATA(ld_i_huknn).
DATA(ld_i_huknn) = ' '.
 


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!