SAP L_INV_COUNT_EXT Function Module for NOTRANSL: Zähldatenerfassung Lagerinventur: Prüfung und/oder Verarbeitung
L_INV_COUNT_EXT is a standard l inv count ext 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: Zähldatenerfassung Lagerinventur: Prüfung und/oder Verarbeitung 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 inv count ext FM, simply by entering the name L_INV_COUNT_EXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: L04EXT
Program Name: SAPLL04EXT
Main Program: SAPLL04EXT
Appliation area: L
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function L_INV_COUNT_EXT 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_INV_COUNT_EXT'"NOTRANSL: Zähldatenerfassung Lagerinventur: Prüfung und/oder Verarbeitung.
EXPORTING
* I_CHECK_ONLY = "General all-purpose parameters for funct.module interface
* I_COMMIT = 'X' "Processing with COMMIT WORK
IMPORTING
ALLE_LGNUM = "Warehouse Number / Warehouse Complex
ALLE_IVNUM = "Number of system inventory record
ALLE_NVERS = "Inventory recount version
TABLES
S_LINV = "IDoc confirm physical inventory count in WM
EXCEPTIONS
EITHER_QUANTITY_OR_EMPTY_BIN = 1 IVNUM_NOT_FOUND = 2 CHECK_PROBLEM = 3 NO_COUNT_ALLOWED = 4 L_INV_READ = 5 BIN_NOT_IN_IVNUM = 6 COUNTS_NOT_UPDATED = 7 LOCK_ERROR = 8
IMPORTING Parameters details for L_INV_COUNT_EXT
I_CHECK_ONLY - General all-purpose parameters for funct.module interface
Data type: RL04I-XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COMMIT - Processing with COMMIT WORK
Data type: RL03B-COMITDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for L_INV_COUNT_EXT
ALLE_LGNUM - Warehouse Number / Warehouse Complex
Data type: LINV-LGNUMOptional: No
Call by Reference: No ( called with pass by value option)
ALLE_IVNUM - Number of system inventory record
Data type: LINV-IVNUMOptional: No
Call by Reference: No ( called with pass by value option)
ALLE_NVERS - Inventory recount version
Data type: LINV-NVERSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for L_INV_COUNT_EXT
S_LINV - IDoc confirm physical inventory count in WM
Data type: E1LINVXOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EITHER_QUANTITY_OR_EMPTY_BIN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IVNUM_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHECK_PROBLEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_COUNT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
L_INV_READ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BIN_NOT_IN_IVNUM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COUNTS_NOT_UPDATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOCK_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for L_INV_COUNT_EXT 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_s_linv | TYPE STANDARD TABLE OF E1LINVX, " | |||
lv_alle_lgnum | TYPE LINV-LGNUM, " | |||
lv_i_check_only | TYPE RL04I-XFELD, " | |||
lv_either_quantity_or_empty_bin | TYPE RL04I, " | |||
lv_i_commit | TYPE RL03B-COMIT, " 'X' | |||
lv_alle_ivnum | TYPE LINV-IVNUM, " | |||
lv_ivnum_not_found | TYPE LINV, " | |||
lv_alle_nvers | TYPE LINV-NVERS, " | |||
lv_check_problem | TYPE LINV, " | |||
lv_no_count_allowed | TYPE LINV, " | |||
lv_l_inv_read | TYPE LINV, " | |||
lv_bin_not_in_ivnum | TYPE LINV, " | |||
lv_counts_not_updated | TYPE LINV, " | |||
lv_lock_error | TYPE LINV. " |
  CALL FUNCTION 'L_INV_COUNT_EXT' "NOTRANSL: Zähldatenerfassung Lagerinventur: Prüfung und/oder Verarbeitung |
EXPORTING | ||
I_CHECK_ONLY | = lv_i_check_only | |
I_COMMIT | = lv_i_commit | |
IMPORTING | ||
ALLE_LGNUM | = lv_alle_lgnum | |
ALLE_IVNUM | = lv_alle_ivnum | |
ALLE_NVERS | = lv_alle_nvers | |
TABLES | ||
S_LINV | = lt_s_linv | |
EXCEPTIONS | ||
EITHER_QUANTITY_OR_EMPTY_BIN = 1 | ||
IVNUM_NOT_FOUND = 2 | ||
CHECK_PROBLEM = 3 | ||
NO_COUNT_ALLOWED = 4 | ||
L_INV_READ = 5 | ||
BIN_NOT_IN_IVNUM = 6 | ||
COUNTS_NOT_UPDATED = 7 | ||
LOCK_ERROR = 8 | ||
. " L_INV_COUNT_EXT |
ABAP code using 7.40 inline data declarations to call FM L_INV_COUNT_EXT
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 LINV INTO @DATA(ld_alle_lgnum). | ||||
"SELECT single XFELD FROM RL04I INTO @DATA(ld_i_check_only). | ||||
"SELECT single COMIT FROM RL03B INTO @DATA(ld_i_commit). | ||||
DATA(ld_i_commit) | = 'X'. | |||
"SELECT single IVNUM FROM LINV INTO @DATA(ld_alle_ivnum). | ||||
"SELECT single NVERS FROM LINV INTO @DATA(ld_alle_nvers). | ||||
Search for further information about these or an SAP related objects