SAP EXIT_SAPLN2LA1_002 Function Module for IS-H*MED: USER EXIT Lab Documents









EXIT_SAPLN2LA1_002 is a standard exit sapln2la1 002 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 Lab Documents 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 sapln2la1 002 FM, simply by entering the name EXIT_SAPLN2LA1_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLN2LA1_002 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_SAPLN2LA1_002'"IS-H*MED: USER EXIT Lab Documents
EXPORTING
* SS_LAB_CUSTOMIZING = "Customizing Data for the Lab Data Transfer
* SS_NDOC = "IS-H*MED-Document Management Data
* SS_DRAW = "General Document Management Data (DMD)

CHANGING
* SS_N2LABOR = "Lab Findings (Header Data)

TABLES
* SS_LABCOMM = "Lab Values
* SS_LABTEXT = "Comments to the Lab Values
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
Y_H_N2_VS_DEF_N2LA1_01
Y_H_N2_VS_DELETE_N2LA1_01
Y_H_N2_VS_MAINT_N2LA1_01
Y_H_N2_VS_NULL_N2LA1_01
Y_H_N2_VS_PRINT_N2LA1_01
Y_H_N2_VS_READ_N2LA1_01
Y_H_N2_VS_SAVE_N2LA1_01
Y_H_N2_VS_TOTAB_N2LA1_01
Y_H_N2_VS_TOTEXT_N2LA1_01
Y_H_N2_VS_TRANS_N2LA1_01

IMPORTING Parameters details for EXIT_SAPLN2LA1_002

SS_LAB_CUSTOMIZING - Customizing Data for the Lab Data Transfer

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

SS_NDOC - IS-H*MED-Document Management Data

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

SS_DRAW - General Document Management Data (DMD)

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

CHANGING Parameters details for EXIT_SAPLN2LA1_002

SS_N2LABOR - Lab Findings (Header Data)

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

TABLES Parameters details for EXIT_SAPLN2LA1_002

SS_LABCOMM - Lab Values

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

SS_LABTEXT - Comments to the Lab Values

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

Copy and paste ABAP code example for EXIT_SAPLN2LA1_002 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_ss_labcomm  TYPE STANDARD TABLE OF N2LABCOMM, "   
lv_ss_n2labor  TYPE N2LABOR, "   
lv_ss_lab_customizing  TYPE TN2KUM04, "   
lv_ss_ndoc  TYPE NDOC, "   
lt_ss_labtext  TYPE STANDARD TABLE OF N2LABORTXT, "   
lv_ss_draw  TYPE DRAW. "   

  CALL FUNCTION 'EXIT_SAPLN2LA1_002'  "IS-H*MED: USER EXIT Lab Documents
    EXPORTING
         SS_LAB_CUSTOMIZING = lv_ss_lab_customizing
         SS_NDOC = lv_ss_ndoc
         SS_DRAW = lv_ss_draw
    CHANGING
         SS_N2LABOR = lv_ss_n2labor
    TABLES
         SS_LABCOMM = lt_ss_labcomm
         SS_LABTEXT = lt_ss_labtext
. " EXIT_SAPLN2LA1_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLN2LA1_002

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.

 
 
 
 
 
 


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!