SAP EXIT_SAPMN1P1_USF Function Module for IS-H*MED: Function Calls in User-Specific GUI-Statuses (Treatment Screen)
EXIT_SAPMN1P1_USF is a standard exit sapmn1p1 usf 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: Function Calls in User-Specific GUI-Statuses (Treatment Screen) 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 sapmn1p1 usf FM, simply by entering the name EXIT_SAPMN1P1_USF into the relevant SAP transaction such as SE37 or SE38.
Function Group: XN1USERSEXITSGUI
Program Name: SAPLXN1USERSEXITSGUI
Main Program: SAPLXN1USERSEXITSGUI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPMN1P1_USF 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_SAPMN1P1_USF'"IS-H*MED: Function Calls in User-Specific GUI-Statuses (Treatment Screen).
EXPORTING
I_UCOMM = "Screens, Function Code that Triggered PAI
TABLES
* IT_NBEW = "IS-H: Movements for Case
* IT_NDIA = "IS-H: Diagnoses
* IT_N1ANF = "IS-H*MED: Request
* IT_NLEI = "IS-H: Services Performed
* IT_NLEM = "IS-H*MED: Medical Service
* IT_NFAL = "IS-H: Cases
* IT_NPAT = "IS-H: Patient Master Data (General)
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for EXIT_SAPMN1P1_USF
I_UCOMM - Screens, Function Code that Triggered PAI
Data type: SY-UCOMMOptional: No
Call by Reference: Yes
TABLES Parameters details for EXIT_SAPMN1P1_USF
IT_NBEW - IS-H: Movements for Case
Data type: NBEWOptional: Yes
Call by Reference: Yes
IT_NDIA - IS-H: Diagnoses
Data type: NDIAOptional: Yes
Call by Reference: Yes
IT_N1ANF - IS-H*MED: Request
Data type: N1ANFOptional: Yes
Call by Reference: Yes
IT_NLEI - IS-H: Services Performed
Data type: NLEIOptional: Yes
Call by Reference: Yes
IT_NLEM - IS-H*MED: Medical Service
Data type: NLEMOptional: Yes
Call by Reference: Yes
IT_NFAL - IS-H: Cases
Data type: NFALOptional: Yes
Call by Reference: Yes
IT_NPAT - IS-H: Patient Master Data (General)
Data type: NPATOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error! Message in sy-msgid, -msgno, -msgty,-msgv1,-msgv2,-msgv3,-msgv4
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EXIT_SAPMN1P1_USF 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_error | TYPE STRING, " | |||
lt_it_nbew | TYPE STANDARD TABLE OF NBEW, " | |||
lv_i_ucomm | TYPE SY-UCOMM, " | |||
lt_it_ndia | TYPE STANDARD TABLE OF NDIA, " | |||
lt_it_n1anf | TYPE STANDARD TABLE OF N1ANF, " | |||
lt_it_nlei | TYPE STANDARD TABLE OF NLEI, " | |||
lt_it_nlem | TYPE STANDARD TABLE OF NLEM, " | |||
lt_it_nfal | TYPE STANDARD TABLE OF NFAL, " | |||
lt_it_npat | TYPE STANDARD TABLE OF NPAT. " |
  CALL FUNCTION 'EXIT_SAPMN1P1_USF' "IS-H*MED: Function Calls in User-Specific GUI-Statuses (Treatment Screen) |
EXPORTING | ||
I_UCOMM | = lv_i_ucomm | |
TABLES | ||
IT_NBEW | = lt_it_nbew | |
IT_NDIA | = lt_it_ndia | |
IT_N1ANF | = lt_it_n1anf | |
IT_NLEI | = lt_it_nlei | |
IT_NLEM | = lt_it_nlem | |
IT_NFAL | = lt_it_nfal | |
IT_NPAT | = lt_it_npat | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " EXIT_SAPMN1P1_USF |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMN1P1_USF
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 UCOMM FROM SY INTO @DATA(ld_i_ucomm). | ||||
Search for further information about these or an SAP related objects