SAP ISH_SERVICES_RULES_ACTIONS Function Module for
ISH_SERVICES_RULES_ACTIONS is a standard ish services rules actions 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 ish services rules actions FM, simply by entering the name ISH_SERVICES_RULES_ACTIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: N040
Program Name: SAPLN040
Main Program: SAPLN040
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_SERVICES_RULES_ACTIONS 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 'ISH_SERVICES_RULES_ACTIONS'".
EXPORTING
EINRI = "Institution
* FIRSTTIME = 'X' "ON with 1st and OFF with further calls
EVENT = "Check time (event)
* DMODE = ' ' "
INFAL = "Case
INPAT = "Patient
* CMVMT = "
* MESSAGES_COLLECT = 'X' "Collect Messages
* MESSAGES_SHOW = ' ' "Issue Messages
* STICHTAG = SY-DATUM "Date for check procedure determination
TABLES
ERNLSR = "Table containing actions
INNLZ = "
INLLZ = "
IVNBEW = "Movements
* DRNLSR = "Delta since last action
* ERNLRF = "Complete table with actions for case data
* DRNLRF = "Delta since last action
* ERNLRG = "Complete table with actions for physician assignments
* ERNLRZ = "
* ERNLRT = "
INLEI = "Table with services to be checked
* INLEI_MARK = "
EXCEPTIONS
ERROR = 1 TNRS2_NOT_FOUND = 2 NO_MORE = 3
IMPORTING Parameters details for ISH_SERVICES_RULES_ACTIONS
EINRI - Institution
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
FIRSTTIME - ON with 1st and OFF with further calls
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EVENT - Check time (event)
Data type: TN02E-EVENTOptional: No
Call by Reference: No ( called with pass by value option)
DMODE -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INFAL - Case
Data type: NFALOptional: No
Call by Reference: No ( called with pass by value option)
INPAT - Patient
Data type: NPATOptional: No
Call by Reference: No ( called with pass by value option)
CMVMT -
Data type: NBEW-LFDNROptional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGES_COLLECT - Collect Messages
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGES_SHOW - Issue Messages
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
STICHTAG - Date for check procedure determination
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_SERVICES_RULES_ACTIONS
ERNLSR - Table containing actions
Data type: RNLSROptional: No
Call by Reference: No ( called with pass by value option)
INNLZ -
Data type: NNLZOptional: No
Call by Reference: Yes
INLLZ -
Data type: NLLZOptional: No
Call by Reference: Yes
IVNBEW - Movements
Data type: VNBEWOptional: No
Call by Reference: No ( called with pass by value option)
DRNLSR - Delta since last action
Data type: RNLSROptional: Yes
Call by Reference: Yes
ERNLRF - Complete table with actions for case data
Data type: RNLRFOptional: Yes
Call by Reference: No ( called with pass by value option)
DRNLRF - Delta since last action
Data type: RNLRFOptional: Yes
Call by Reference: No ( called with pass by value option)
ERNLRG - Complete table with actions for physician assignments
Data type: RNLRGOptional: Yes
Call by Reference: No ( called with pass by value option)
ERNLRZ -
Data type: RNLRZOptional: Yes
Call by Reference: Yes
ERNLRT -
Data type: ISH_T_RNLRTOptional: Yes
Call by Reference: Yes
INLEI - Table with services to be checked
Data type: NLEIOptional: No
Call by Reference: No ( called with pass by value option)
INLEI_MARK -
Data type: ISH_SRVMRKOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Check FM internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TNRS2_NOT_FOUND - No check found for EVENT
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MORE - Reached end of checks
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_SERVICES_RULES_ACTIONS 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_einri | TYPE TN01-EINRI, " | |||
| lv_error | TYPE TN01, " | |||
| lt_ernlsr | TYPE STANDARD TABLE OF RNLSR, " | |||
| lt_innlz | TYPE STANDARD TABLE OF NNLZ, " | |||
| lv_firsttime | TYPE NPDOK-XFELD, " 'X' | |||
| lt_inllz | TYPE STANDARD TABLE OF NLLZ, " | |||
| lt_ivnbew | TYPE STANDARD TABLE OF VNBEW, " | |||
| lv_event | TYPE TN02E-EVENT, " | |||
| lt_drnlsr | TYPE STANDARD TABLE OF RNLSR, " | |||
| lv_tnrs2_not_found | TYPE RNLSR, " | |||
| lv_dmode | TYPE C, " ' ' | |||
| lt_ernlrf | TYPE STANDARD TABLE OF RNLRF, " | |||
| lv_no_more | TYPE RNLRF, " | |||
| lv_infal | TYPE NFAL, " | |||
| lt_drnlrf | TYPE STANDARD TABLE OF RNLRF, " | |||
| lv_inpat | TYPE NPAT, " | |||
| lt_ernlrg | TYPE STANDARD TABLE OF RNLRG, " | |||
| lv_cmvmt | TYPE NBEW-LFDNR, " | |||
| lt_ernlrz | TYPE STANDARD TABLE OF RNLRZ, " | |||
| lt_ernlrt | TYPE STANDARD TABLE OF ISH_T_RNLRT, " | |||
| lv_messages_collect | TYPE NPDOK-XFELD, " 'X' | |||
| lt_inlei | TYPE STANDARD TABLE OF NLEI, " | |||
| lv_messages_show | TYPE NPDOK-XFELD, " ' ' | |||
| lv_stichtag | TYPE SY-DATUM, " SY-DATUM | |||
| lt_inlei_mark | TYPE STANDARD TABLE OF ISH_SRVMRK. " |
|   CALL FUNCTION 'ISH_SERVICES_RULES_ACTIONS' " |
| EXPORTING | ||
| EINRI | = lv_einri | |
| FIRSTTIME | = lv_firsttime | |
| EVENT | = lv_event | |
| DMODE | = lv_dmode | |
| INFAL | = lv_infal | |
| INPAT | = lv_inpat | |
| CMVMT | = lv_cmvmt | |
| MESSAGES_COLLECT | = lv_messages_collect | |
| MESSAGES_SHOW | = lv_messages_show | |
| STICHTAG | = lv_stichtag | |
| TABLES | ||
| ERNLSR | = lt_ernlsr | |
| INNLZ | = lt_innlz | |
| INLLZ | = lt_inllz | |
| IVNBEW | = lt_ivnbew | |
| DRNLSR | = lt_drnlsr | |
| ERNLRF | = lt_ernlrf | |
| DRNLRF | = lt_drnlrf | |
| ERNLRG | = lt_ernlrg | |
| ERNLRZ | = lt_ernlrz | |
| ERNLRT | = lt_ernlrt | |
| INLEI | = lt_inlei | |
| INLEI_MARK | = lt_inlei_mark | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| TNRS2_NOT_FOUND = 2 | ||
| NO_MORE = 3 | ||
| . " ISH_SERVICES_RULES_ACTIONS | ||
ABAP code using 7.40 inline data declarations to call FM ISH_SERVICES_RULES_ACTIONS
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 EINRI FROM TN01 INTO @DATA(ld_einri). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_firsttime). | ||||
| DATA(ld_firsttime) | = 'X'. | |||
| "SELECT single EVENT FROM TN02E INTO @DATA(ld_event). | ||||
| DATA(ld_dmode) | = ' '. | |||
| "SELECT single LFDNR FROM NBEW INTO @DATA(ld_cmvmt). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_messages_collect). | ||||
| DATA(ld_messages_collect) | = 'X'. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_messages_show). | ||||
| DATA(ld_messages_show) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_stichtag). | ||||
| DATA(ld_stichtag) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects