SAP ANLA_READ_SINGLE Function Module for
ANLA_READ_SINGLE is a standard anla read single SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 anla read single FM, simply by entering the name ANLA_READ_SINGLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ANLR
Program Name: SAPLANLR
Main Program: SAPLANLR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ANLA_READ_SINGLE 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 'ANLA_READ_SINGLE'".
EXPORTING
F_ANLA = "Interface, with entering, KEY fiel
* I_ERROR_IF_FOUND = ' ' "Error message if asset is availabl
* I_LOCK = 'X' "The asset can be blocked (X=yes)
* I_WAIT = ' ' "
* I_GETFB = ' ' "
* I_BYPASSING_MEMORY = ' ' "
* I_INT_WITHOUT_HYPHEN = 'X' "
IMPORTING
F_ANLA = "Interface, with entering, KEY fiel
EXCEPTIONS
NOT_FOUND = 1 SELBST_GESPERRT = 2 VORHANDEN = 3
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_SAPLANLR_001 Control Level Texts for FI-AA Reporting
IMPORTING Parameters details for ANLA_READ_SINGLE
F_ANLA - Interface, with entering, KEY fiel
Data type: ANLAOptional: No
Call by Reference: No ( called with pass by value option)
I_ERROR_IF_FOUND - Error message if asset is availabl
Data type: ANLA-EIGKZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOCK - The asset can be blocked (X=yes)
Data type: ANLA-EIGKZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WAIT -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GETFB -
Data type: ANLA-EIGKZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BYPASSING_MEMORY -
Data type: ANLA-EIGKZDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INT_WITHOUT_HYPHEN -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ANLA_READ_SINGLE
F_ANLA - Interface, with entering, KEY fiel
Data type: ANLAOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Record was not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SELBST_GESPERRT - Fixed asset is blocked by the same
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VORHANDEN - Fixed asset already exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ANLA_READ_SINGLE 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_f_anla | TYPE ANLA, " | |||
lv_f_anla | TYPE ANLA, " | |||
lv_not_found | TYPE ANLA, " | |||
lv_selbst_gesperrt | TYPE ANLA, " | |||
lv_i_error_if_found | TYPE ANLA-EIGKZ, " ' ' | |||
lv_i_lock | TYPE ANLA-EIGKZ, " 'X' | |||
lv_vorhanden | TYPE ANLA, " | |||
lv_i_wait | TYPE XFELD, " SPACE | |||
lv_i_getfb | TYPE ANLA-EIGKZ, " ' ' | |||
lv_i_bypassing_memory | TYPE ANLA-EIGKZ, " ' ' | |||
lv_i_int_without_hyphen | TYPE XFELD. " 'X' |
  CALL FUNCTION 'ANLA_READ_SINGLE' " |
EXPORTING | ||
F_ANLA | = lv_f_anla | |
I_ERROR_IF_FOUND | = lv_i_error_if_found | |
I_LOCK | = lv_i_lock | |
I_WAIT | = lv_i_wait | |
I_GETFB | = lv_i_getfb | |
I_BYPASSING_MEMORY | = lv_i_bypassing_memory | |
I_INT_WITHOUT_HYPHEN | = lv_i_int_without_hyphen | |
IMPORTING | ||
F_ANLA | = lv_f_anla | |
EXCEPTIONS | ||
NOT_FOUND = 1 | ||
SELBST_GESPERRT = 2 | ||
VORHANDEN = 3 | ||
. " ANLA_READ_SINGLE |
ABAP code using 7.40 inline data declarations to call FM ANLA_READ_SINGLE
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 EIGKZ FROM ANLA INTO @DATA(ld_i_error_if_found). | ||||
DATA(ld_i_error_if_found) | = ' '. | |||
"SELECT single EIGKZ FROM ANLA INTO @DATA(ld_i_lock). | ||||
DATA(ld_i_lock) | = 'X'. | |||
DATA(ld_i_wait) | = ' '. | |||
"SELECT single EIGKZ FROM ANLA INTO @DATA(ld_i_getfb). | ||||
DATA(ld_i_getfb) | = ' '. | |||
"SELECT single EIGKZ FROM ANLA INTO @DATA(ld_i_bypassing_memory). | ||||
DATA(ld_i_bypassing_memory) | = ' '. | |||
DATA(ld_i_int_without_hyphen) | = 'X'. | |||
Search for further information about these or an SAP related objects