SAP L_CHECK_SOURCE_HU_WM Function Module for NOTRANSL: Prüfen der Von-HU
L_CHECK_SOURCE_HU_WM is a standard l check source hu wm 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: Prüfen der Von-HU 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 source hu wm FM, simply by entering the name L_CHECK_SOURCE_HU_WM 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_SOURCE_HU_WM 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_SOURCE_HU_WM'"NOTRANSL: Prüfen der Von-HU.
EXPORTING
I_LENUM = "
I_LTAP = "
I_LTAK = "
* I_ENQUEUE = 'X' "
* I_RL03A = "
IMPORTING
O_NEST = "
O_SERI = "
O_SUB_HU = "
O_VEKP = "
TABLES
* OT_VEPO = "
* OT_VEKP = "
EXCEPTIONS
HU_ASSIGNED_TO_OTHER_OBJECT = 1 HU_LOCKED = 2 HU_NOT_FOUND = 3 NON_HU_SLOC = 4 DIFFERENCE_HU = 5
IMPORTING Parameters details for L_CHECK_SOURCE_HU_WM
I_LENUM -
Data type: VEKP-EXIDVOptional: No
Call by Reference: No ( called with pass by value option)
I_LTAP -
Data type: LTAPOptional: No
Call by Reference: No ( called with pass by value option)
I_LTAK -
Data type: LTAKOptional: No
Call by Reference: No ( called with pass by value option)
I_ENQUEUE -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RL03A -
Data type: RL03AOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for L_CHECK_SOURCE_HU_WM
O_NEST -
Data type: LTAP-VNESTOptional: No
Call by Reference: No ( called with pass by value option)
O_SERI -
Data type: LTAP-VSERIOptional: No
Call by Reference: No ( called with pass by value option)
O_SUB_HU -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
O_VEKP -
Data type: VEKPVBOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for L_CHECK_SOURCE_HU_WM
OT_VEPO -
Data type: VEPOVBOptional: Yes
Call by Reference: No ( called with pass by value option)
OT_VEKP -
Data type: VEKPVBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
HU_ASSIGNED_TO_OTHER_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HU_LOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HU_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
NON_HU_SLOC -
Data type:Optional: No
Call by Reference: Yes
DIFFERENCE_HU -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for L_CHECK_SOURCE_HU_WM 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_o_nest | TYPE LTAP-VNEST, " | |||
lv_i_lenum | TYPE VEKP-EXIDV, " | |||
lt_ot_vepo | TYPE STANDARD TABLE OF VEPOVB, " | |||
lv_hu_assigned_to_other_object | TYPE VEPOVB, " | |||
lv_i_ltap | TYPE LTAP, " | |||
lv_o_seri | TYPE LTAP-VSERI, " | |||
lt_ot_vekp | TYPE STANDARD TABLE OF VEKPVB, " | |||
lv_hu_locked | TYPE VEKPVB, " | |||
lv_i_ltak | TYPE LTAK, " | |||
lv_o_sub_hu | TYPE XFELD, " | |||
lv_hu_not_found | TYPE XFELD, " | |||
lv_o_vekp | TYPE VEKPVB, " | |||
lv_i_enqueue | TYPE XFELD, " 'X' | |||
lv_non_hu_sloc | TYPE XFELD, " | |||
lv_i_rl03a | TYPE RL03A, " | |||
lv_difference_hu | TYPE RL03A. " |
  CALL FUNCTION 'L_CHECK_SOURCE_HU_WM' "NOTRANSL: Prüfen der Von-HU |
EXPORTING | ||
I_LENUM | = lv_i_lenum | |
I_LTAP | = lv_i_ltap | |
I_LTAK | = lv_i_ltak | |
I_ENQUEUE | = lv_i_enqueue | |
I_RL03A | = lv_i_rl03a | |
IMPORTING | ||
O_NEST | = lv_o_nest | |
O_SERI | = lv_o_seri | |
O_SUB_HU | = lv_o_sub_hu | |
O_VEKP | = lv_o_vekp | |
TABLES | ||
OT_VEPO | = lt_ot_vepo | |
OT_VEKP | = lt_ot_vekp | |
EXCEPTIONS | ||
HU_ASSIGNED_TO_OTHER_OBJECT = 1 | ||
HU_LOCKED = 2 | ||
HU_NOT_FOUND = 3 | ||
NON_HU_SLOC = 4 | ||
DIFFERENCE_HU = 5 | ||
. " L_CHECK_SOURCE_HU_WM |
ABAP code using 7.40 inline data declarations to call FM L_CHECK_SOURCE_HU_WM
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 VNEST FROM LTAP INTO @DATA(ld_o_nest). | ||||
"SELECT single EXIDV FROM VEKP INTO @DATA(ld_i_lenum). | ||||
"SELECT single VSERI FROM LTAP INTO @DATA(ld_o_seri). | ||||
DATA(ld_i_enqueue) | = 'X'. | |||
Search for further information about these or an SAP related objects