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

Function ISH_FIND_UPPER_DYN_SERVICES 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_FIND_UPPER_DYN_SERVICES'".
EXPORTING
EINRI = "Institution
* BEGDT = 18000101 "Start date of service (NTPK)
* ENDDT = 99991231 "End date of service (NTPK)
TARID = "Charge master identification
ZOTYP = "Grouping cat. (NLGR)
TALST = "Individual service (NTPK)
* READ_DB = ' ' "
TABLES
UPPER_TAB = "Output table with all dynamic groups found
EXCEPTIONS
MISSING_DATA = 1 WRONG_DATA = 2 NO_DATA = 3 DYNGRP_OFF = 4
IMPORTING Parameters details for ISH_FIND_UPPER_DYN_SERVICES
EINRI - Institution
Data type: NTPK-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
BEGDT - Start date of service (NTPK)
Data type: NTPK-BEGDTDefault: 18000101
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDT - End date of service (NTPK)
Data type: NTPK-ENDDTDefault: 99991231
Optional: Yes
Call by Reference: No ( called with pass by value option)
TARID - Charge master identification
Data type: NLGR-TARIDOptional: No
Call by Reference: No ( called with pass by value option)
ZOTYP - Grouping cat. (NLGR)
Data type: NLGR-ZOTYPOptional: No
Call by Reference: No ( called with pass by value option)
TALST - Individual service (NTPK)
Data type: NTPK-TALSTOptional: No
Call by Reference: No ( called with pass by value option)
READ_DB -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_FIND_UPPER_DYN_SERVICES
UPPER_TAB - Output table with all dynamic groups found
Data type: RNHISOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_DATA - Missing import parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_DATA - Service TALST is already service group
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA - No service groups found for service
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DYNGRP_OFF - Dynamic service groups not active
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_FIND_UPPER_DYN_SERVICES 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 NTPK-EINRI, " | |||
| lt_upper_tab | TYPE STANDARD TABLE OF RNHIS, " | |||
| lv_missing_data | TYPE RNHIS, " | |||
| lv_begdt | TYPE NTPK-BEGDT, " 18000101 | |||
| lv_wrong_data | TYPE NTPK, " | |||
| lv_enddt | TYPE NTPK-ENDDT, " 99991231 | |||
| lv_no_data | TYPE NTPK, " | |||
| lv_tarid | TYPE NLGR-TARID, " | |||
| lv_dyngrp_off | TYPE NLGR, " | |||
| lv_zotyp | TYPE NLGR-ZOTYP, " | |||
| lv_talst | TYPE NTPK-TALST, " | |||
| lv_read_db | TYPE NTPK. " ' ' |
|   CALL FUNCTION 'ISH_FIND_UPPER_DYN_SERVICES' " |
| EXPORTING | ||
| EINRI | = lv_einri | |
| BEGDT | = lv_begdt | |
| ENDDT | = lv_enddt | |
| TARID | = lv_tarid | |
| ZOTYP | = lv_zotyp | |
| TALST | = lv_talst | |
| READ_DB | = lv_read_db | |
| TABLES | ||
| UPPER_TAB | = lt_upper_tab | |
| EXCEPTIONS | ||
| MISSING_DATA = 1 | ||
| WRONG_DATA = 2 | ||
| NO_DATA = 3 | ||
| DYNGRP_OFF = 4 | ||
| . " ISH_FIND_UPPER_DYN_SERVICES | ||
ABAP code using 7.40 inline data declarations to call FM ISH_FIND_UPPER_DYN_SERVICES
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 NTPK INTO @DATA(ld_einri). | ||||
| "SELECT single BEGDT FROM NTPK INTO @DATA(ld_begdt). | ||||
| DATA(ld_begdt) | = 18000101. | |||
| "SELECT single ENDDT FROM NTPK INTO @DATA(ld_enddt). | ||||
| DATA(ld_enddt) | = 99991231. | |||
| "SELECT single TARID FROM NLGR INTO @DATA(ld_tarid). | ||||
| "SELECT single ZOTYP FROM NLGR INTO @DATA(ld_zotyp). | ||||
| "SELECT single TALST FROM NTPK INTO @DATA(ld_talst). | ||||
| DATA(ld_read_db) | = ' '. | |||
Search for further information about these or an SAP related objects