SAP ISH_CHECK_SERVICES_LONG_TERM Function Module for IS-H: Maintain Long-Term Accommodation Services
ISH_CHECK_SERVICES_LONG_TERM is a standard ish check services long term 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: Maintain Long-Term Accommodation Services 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 ish check services long term FM, simply by entering the name ISH_CHECK_SERVICES_LONG_TERM into the relevant SAP transaction such as SE37 or SE38.
Function Group: N040
Program Name: SAPLN040
Main Program: SAPLN040
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_CHECK_SERVICES_LONG_TERM 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_CHECK_SERVICES_LONG_TERM'"IS-H: Maintain Long-Term Accommodation Services.
EXPORTING
EINRI = "IS-H: Institution
INFAL = "IS-H: Cases
INPAT = "IS-H: Patient Master Data (General)
* CMVMT = "IS-H: Sequence Number of Movement
* MESSAGES_COLLECT = 'X' "IS-H: Checkbox
* MESSAGES_SHOW = ' ' "IS-H: Checkbox
RGART = "IS-H: Rule Type
* STICHTAG = SY-DATUM "Date and Time, Current (Application Server) Date
* AKTION = ' ' "IS-H: Checkbox
IMPORTING
ERRORS = "
WARNINGS = "
TABLES
ERNLSR = "IS-H: Return form Service Rule Check Modules
INLEI = "IS-H: Services Performed
IVNBEW = "Change Document Structure: Generated by RSSCD000
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for ISH_CHECK_SERVICES_LONG_TERM
EINRI - IS-H: Institution
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
INFAL - IS-H: Cases
Data type: NFALOptional: No
Call by Reference: No ( called with pass by value option)
INPAT - IS-H: Patient Master Data (General)
Data type: NPATOptional: No
Call by Reference: No ( called with pass by value option)
CMVMT - IS-H: Sequence Number of Movement
Data type: NBEW-LFDNROptional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGES_COLLECT - IS-H: Checkbox
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MESSAGES_SHOW - IS-H: Checkbox
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RGART - IS-H: Rule Type
Data type: TNT3-RGARTOptional: No
Call by Reference: No ( called with pass by value option)
STICHTAG - Date and Time, Current (Application Server) Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
AKTION - IS-H: Checkbox
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_CHECK_SERVICES_LONG_TERM
ERRORS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WARNINGS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_CHECK_SERVICES_LONG_TERM
ERNLSR - IS-H: Return form Service Rule Check Modules
Data type: RNLSROptional: No
Call by Reference: Yes
INLEI - IS-H: Services Performed
Data type: NLEIOptional: No
Call by Reference: Yes
IVNBEW - Change Document Structure: Generated by RSSCD000
Data type: VNBEWOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - Internal Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_CHECK_SERVICES_LONG_TERM 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, " | |||
| lv_errors | TYPE RNLSR, " | |||
| lv_infal | TYPE NFAL, " | |||
| lt_inlei | TYPE STANDARD TABLE OF NLEI, " | |||
| lv_warnings | TYPE NLEI, " | |||
| lv_inpat | TYPE NPAT, " | |||
| lt_ivnbew | TYPE STANDARD TABLE OF VNBEW, " | |||
| lv_cmvmt | TYPE NBEW-LFDNR, " | |||
| lv_messages_collect | TYPE NPDOK-XFELD, " 'X' | |||
| lv_messages_show | TYPE NPDOK-XFELD, " ' ' | |||
| lv_rgart | TYPE TNT3-RGART, " | |||
| lv_stichtag | TYPE SY-DATUM, " SY-DATUM | |||
| lv_aktion | TYPE NPDOK-XFELD. " ' ' |
|   CALL FUNCTION 'ISH_CHECK_SERVICES_LONG_TERM' "IS-H: Maintain Long-Term Accommodation Services |
| EXPORTING | ||
| EINRI | = lv_einri | |
| INFAL | = lv_infal | |
| INPAT | = lv_inpat | |
| CMVMT | = lv_cmvmt | |
| MESSAGES_COLLECT | = lv_messages_collect | |
| MESSAGES_SHOW | = lv_messages_show | |
| RGART | = lv_rgart | |
| STICHTAG | = lv_stichtag | |
| AKTION | = lv_aktion | |
| IMPORTING | ||
| ERRORS | = lv_errors | |
| WARNINGS | = lv_warnings | |
| TABLES | ||
| ERNLSR | = lt_ernlsr | |
| INLEI | = lt_inlei | |
| IVNBEW | = lt_ivnbew | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " ISH_CHECK_SERVICES_LONG_TERM | ||
ABAP code using 7.40 inline data declarations to call FM ISH_CHECK_SERVICES_LONG_TERM
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 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 RGART FROM TNT3 INTO @DATA(ld_rgart). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_stichtag). | ||||
| DATA(ld_stichtag) | = SY-DATUM. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_aktion). | ||||
| DATA(ld_aktion) | = ' '. | |||
Search for further information about these or an SAP related objects