SAP EXIT_SAPLN1AF_001 Function Module for IS-H*MED: User Exit for Customer-Specific Checks of the Preregistration
EXIT_SAPLN1AF_001 is a standard exit sapln1af 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H*MED: User Exit for Customer-Specific Checks of the Preregistration 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 exit sapln1af 001 FM, simply by entering the name EXIT_SAPLN1AF_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XN1V
Program Name: SAPLXN1V
Main Program: SAPLXN1V
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPLN1AF_001 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 'EXIT_SAPLN1AF_001'"IS-H*MED: User Exit for Customer-Specific Checks of the Preregistration.
EXPORTING
* I_VKG_TYP = ' ' "Which Preregistration is being checked (OR, Normal) ->
I_VCODE = "Processing Code ->
* I_GPART = ' ' "Inputting Employee ->
IMPORTING
E_CURSOR_FIELD = "Cursor Field ->
E_CURSOR_LINE = "Cursor Line for the Table Control
E_ERROR_OCCURED = "Flag, whether error has occurred ->
CHANGING
* C_ANKERLEI = ' ' "Anchor Service for the OR Preregistration ->
C_N1VKG = "Preregistration record (item) that will be checked
TABLES
T_NLEI = "Service Records
T_NLEM = "Medical Part of the Services
T_NTMN = "Table with Appointments ->
T_NAPP = "Attribute Table for the Appointments (see T_NTMN)
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.ISHMED_CALL_ANFO_NEU
IMPORTING Parameters details for EXIT_SAPLN1AF_001
I_VKG_TYP - Which Preregistration is being checked (OR, Normal) ->
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VCODE - Processing Code ->
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_GPART - Inputting Employee ->
Data type: NGPA-GPARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLN1AF_001
E_CURSOR_FIELD - Cursor Field ->
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_CURSOR_LINE - Cursor Line for the Table Control
Data type: SY-STEPLOptional: No
Call by Reference: No ( called with pass by value option)
E_ERROR_OCCURED - Flag, whether error has occurred ->
Data type: RNT40-MARKOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EXIT_SAPLN1AF_001
C_ANKERLEI - Anchor Service for the OR Preregistration ->
Data type: V_NLEMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
C_N1VKG - Preregistration record (item) that will be checked
Data type: VN1VKGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EXIT_SAPLN1AF_001
T_NLEI - Service Records
Data type: VNLEIOptional: No
Call by Reference: No ( called with pass by value option)
T_NLEM - Medical Part of the Services
Data type: VNLEMOptional: No
Call by Reference: No ( called with pass by value option)
T_NTMN - Table with Appointments ->
Data type: VNTMNOptional: No
Call by Reference: No ( called with pass by value option)
T_NAPP - Attribute Table for the Appointments (see T_NTMN)
Data type: VNAPPOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLN1AF_001 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_t_nlei | TYPE STANDARD TABLE OF VNLEI, " | |||
lv_i_vkg_typ | TYPE VNLEI, " SPACE | |||
lv_c_ankerlei | TYPE V_NLEM, " SPACE | |||
lv_e_cursor_field | TYPE V_NLEM, " | |||
lt_t_nlem | TYPE STANDARD TABLE OF VNLEM, " | |||
lv_c_n1vkg | TYPE VN1VKG, " | |||
lv_i_vcode | TYPE VN1VKG, " | |||
lv_e_cursor_line | TYPE SY-STEPL, " | |||
lt_t_ntmn | TYPE STANDARD TABLE OF VNTMN, " | |||
lv_i_gpart | TYPE NGPA-GPART, " SPACE | |||
lv_e_error_occured | TYPE RNT40-MARK, " | |||
lt_t_napp | TYPE STANDARD TABLE OF VNAPP. " |
  CALL FUNCTION 'EXIT_SAPLN1AF_001' "IS-H*MED: User Exit for Customer-Specific Checks of the Preregistration |
EXPORTING | ||
I_VKG_TYP | = lv_i_vkg_typ | |
I_VCODE | = lv_i_vcode | |
I_GPART | = lv_i_gpart | |
IMPORTING | ||
E_CURSOR_FIELD | = lv_e_cursor_field | |
E_CURSOR_LINE | = lv_e_cursor_line | |
E_ERROR_OCCURED | = lv_e_error_occured | |
CHANGING | ||
C_ANKERLEI | = lv_c_ankerlei | |
C_N1VKG | = lv_c_n1vkg | |
TABLES | ||
T_NLEI | = lt_t_nlei | |
T_NLEM | = lt_t_nlem | |
T_NTMN | = lt_t_ntmn | |
T_NAPP | = lt_t_napp | |
. " EXIT_SAPLN1AF_001 |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLN1AF_001
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.DATA(ld_i_vkg_typ) | = ' '. | |||
DATA(ld_c_ankerlei) | = ' '. | |||
"SELECT single STEPL FROM SY INTO @DATA(ld_e_cursor_line). | ||||
"SELECT single GPART FROM NGPA INTO @DATA(ld_i_gpart). | ||||
DATA(ld_i_gpart) | = ' '. | |||
"SELECT single MARK FROM RNT40 INTO @DATA(ld_e_error_occured). | ||||
Search for further information about these or an SAP related objects