SAP ISH_SHOW_SERVICES_NEW Function Module for
ISH_SHOW_SERVICES_NEW is a standard ish show services new 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 show services new FM, simply by entering the name ISH_SHOW_SERVICES_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: N014
Program Name: SAPLN014
Main Program: SAPLN014
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ISH_SHOW_SERVICES_NEW 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_SHOW_SERVICES_NEW'".
EXPORTING
EINRICHTUNG = "Institution
* SEL_LEIST = 'X' "Select services allowed
* SEL_GROUP = 'X' "Select groups allowed
* SEL_ERFSP = ' ' "Selection of services with entry block allowed
* MDC_CAT = '' "IS-H: Catalog for Major Diagnostic Category (MDC)
* MULTI_SELECT = 'X' "Multiple selection allowed
* USE_GROUPS = 'X' "Display service groups
* ZOTYP = ' ' "Assignment Type
* DEPTH = '1' "Start expansion level for group display
* CHANGE_TARIF = 'X' "Change charge master is allowed
* CHANGE_ZEITR = 'X' "Change period indicator is allowed
* TARIF = ' ' "Charge master, if empty -> service catalog
* CHANGE_ZEITP = 'X' "Change time indicator is allowed
* CHANGE_ENTGA = 'X' "Change charge type allowed
* CHANGE_TAGRU = 'X' "Change service category allowed
* CHANGE_ZOTYP = 'X' "Change grouping category is allowed
* CHANGE_USEGR = 'X' "
* WIN_TITLE = 'Eingabehilfe' "Window title
* VCODE = 'UPD' "Processing code, no selection for DIS
* SKIP_FIRST_SCREEN = ' ' "Skip selection dialog box
* READ_VLE = 'X' "Evaluate user parameter VLE
* SELECT_ALL = 'X' "'Select all' active
* TALST = ' ' "Service
* SEARCH_FOR = 'NTPK_S' "
* USE_SERVICE = OFF "
* ZEITRAUM = 'X' "Only display extended services
* ZEITPUNKT = 'X' "Only display immediate services
* ENTGA = ' ' "Charge Type
* TAGRU = ' ' "Service Category
* BEGDT = '00000000' "Start date (01/01/1800 if initial)
* ENDDT = '00000000' "End date (12/31/9999 if initial)
IMPORTING
E_NTPK = "Selected individual service
E_NTPT = "Text for selected individual service
E_ZOTYP = "
TABLES
* T_NTPK = "Table with all selected services
* T_NTPT = "Texts for selected services
EXCEPTIONS
WRONG_EINRI = 1 NOTHING_FOUND = 2 NOTHING_SELECTED = 3 MISSING_ZOTYP = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLN014_001 IS-H: User Exit for Service Master Data
IMPORTING Parameters details for ISH_SHOW_SERVICES_NEW
EINRICHTUNG - Institution
Data type: NTPK-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
SEL_LEIST - Select services allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEL_GROUP - Select groups allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEL_ERFSP - Selection of services with entry block allowed
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MDC_CAT - IS-H: Catalog for Major Diagnostic Category (MDC)
Data type: NTPK-DKATDefault: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
MULTI_SELECT - Multiple selection allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_GROUPS - Display service groups
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ZOTYP - Assignment Type
Data type: TNT0-ZOTYPDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEPTH - Start expansion level for group display
Data type: RNN002-OPEN_LEVELDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_TARIF - Change charge master is allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_ZEITR - Change period indicator is allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TARIF - Charge master, if empty -> service catalog
Data type: NTPK-TARIFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_ZEITP - Change time indicator is allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_ENTGA - Change charge type allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_TAGRU - Change service category allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_ZOTYP - Change grouping category is allowed
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_USEGR -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WIN_TITLE - Window title
Data type:Default: 'Eingabehilfe'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VCODE - Processing code, no selection for DIS
Data type:Default: 'UPD'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SKIP_FIRST_SCREEN - Skip selection dialog box
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_VLE - Evaluate user parameter VLE
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECT_ALL - 'Select all' active
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TALST - Service
Data type: NTPK-TALSTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_FOR -
Data type: RI_FCODEDefault: 'NTPK_S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
USE_SERVICE -
Data type: ISH_ON_OFFDefault: OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)
ZEITRAUM - Only display extended services
Data type: NTPK-ZEITRDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ZEITPUNKT - Only display immediate services
Data type: NTPK-ZEITRDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENTGA - Charge Type
Data type: NTPK-ENTGADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TAGRU - Service Category
Data type: NTPK-TAGRUDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
BEGDT - Start date (01/01/1800 if initial)
Data type: NTSP-BEGDTDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENDDT - End date (12/31/9999 if initial)
Data type: NTSP-ENDDTDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_SHOW_SERVICES_NEW
E_NTPK - Selected individual service
Data type: NTPKOptional: No
Call by Reference: No ( called with pass by value option)
E_NTPT - Text for selected individual service
Data type: NTPTOptional: No
Call by Reference: No ( called with pass by value option)
E_ZOTYP -
Data type: TNT0-ZOTYPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_SHOW_SERVICES_NEW
T_NTPK - Table with all selected services
Data type: NTPKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_NTPT - Texts for selected services
Data type: NTPTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_EINRI - Invalid institution
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_FOUND - No service found for selection conditions
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOTHING_SELECTED - Nothing selected
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_ZOTYP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_SHOW_SERVICES_NEW 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_e_ntpk | TYPE NTPK, " | |||
lt_t_ntpk | TYPE STANDARD TABLE OF NTPK, " | |||
lv_einrichtung | TYPE NTPK-EINRI, " | |||
lv_wrong_einri | TYPE NTPK, " | |||
lv_sel_leist | TYPE NTPK, " 'X' | |||
lv_sel_group | TYPE NTPK, " 'X' | |||
lv_sel_erfsp | TYPE NTPK, " ' ' | |||
lv_mdc_cat | TYPE NTPK-DKAT, " '' | |||
lv_multi_select | TYPE NTPK, " 'X' | |||
lv_use_groups | TYPE NTPK, " 'X' | |||
lv_zotyp | TYPE TNT0-ZOTYP, " ' ' | |||
lv_depth | TYPE RNN002-OPEN_LEVEL, " '1' | |||
lv_change_tarif | TYPE RNN002, " 'X' | |||
lv_change_zeitr | TYPE RNN002, " 'X' | |||
lv_tarif | TYPE NTPK-TARIF, " ' ' | |||
lv_e_ntpt | TYPE NTPT, " | |||
lt_t_ntpt | TYPE STANDARD TABLE OF NTPT, " | |||
lv_nothing_found | TYPE NTPT, " | |||
lv_change_zeitp | TYPE NTPT, " 'X' | |||
lv_change_entga | TYPE NTPT, " 'X' | |||
lv_change_tagru | TYPE NTPT, " 'X' | |||
lv_change_zotyp | TYPE NTPT, " 'X' | |||
lv_change_usegr | TYPE NTPT, " 'X' | |||
lv_win_title | TYPE NTPT, " 'Eingabehilfe' | |||
lv_vcode | TYPE NTPT, " 'UPD' | |||
lv_skip_first_screen | TYPE NTPT, " ' ' | |||
lv_read_vle | TYPE NTPT, " 'X' | |||
lv_select_all | TYPE NTPT, " 'X' | |||
lv_talst | TYPE NTPK-TALST, " ' ' | |||
lv_e_zotyp | TYPE TNT0-ZOTYP, " | |||
lv_nothing_selected | TYPE TNT0, " | |||
lv_search_for | TYPE RI_FCODE, " 'NTPK_S' | |||
lv_use_service | TYPE ISH_ON_OFF, " OFF | |||
lv_zeitraum | TYPE NTPK-ZEITR, " 'X' | |||
lv_missing_zotyp | TYPE NTPK, " | |||
lv_zeitpunkt | TYPE NTPK-ZEITR, " 'X' | |||
lv_entga | TYPE NTPK-ENTGA, " ' ' | |||
lv_tagru | TYPE NTPK-TAGRU, " ' ' | |||
lv_begdt | TYPE NTSP-BEGDT, " '00000000' | |||
lv_enddt | TYPE NTSP-ENDDT. " '00000000' |
  CALL FUNCTION 'ISH_SHOW_SERVICES_NEW' " |
EXPORTING | ||
EINRICHTUNG | = lv_einrichtung | |
SEL_LEIST | = lv_sel_leist | |
SEL_GROUP | = lv_sel_group | |
SEL_ERFSP | = lv_sel_erfsp | |
MDC_CAT | = lv_mdc_cat | |
MULTI_SELECT | = lv_multi_select | |
USE_GROUPS | = lv_use_groups | |
ZOTYP | = lv_zotyp | |
DEPTH | = lv_depth | |
CHANGE_TARIF | = lv_change_tarif | |
CHANGE_ZEITR | = lv_change_zeitr | |
TARIF | = lv_tarif | |
CHANGE_ZEITP | = lv_change_zeitp | |
CHANGE_ENTGA | = lv_change_entga | |
CHANGE_TAGRU | = lv_change_tagru | |
CHANGE_ZOTYP | = lv_change_zotyp | |
CHANGE_USEGR | = lv_change_usegr | |
WIN_TITLE | = lv_win_title | |
VCODE | = lv_vcode | |
SKIP_FIRST_SCREEN | = lv_skip_first_screen | |
READ_VLE | = lv_read_vle | |
SELECT_ALL | = lv_select_all | |
TALST | = lv_talst | |
SEARCH_FOR | = lv_search_for | |
USE_SERVICE | = lv_use_service | |
ZEITRAUM | = lv_zeitraum | |
ZEITPUNKT | = lv_zeitpunkt | |
ENTGA | = lv_entga | |
TAGRU | = lv_tagru | |
BEGDT | = lv_begdt | |
ENDDT | = lv_enddt | |
IMPORTING | ||
E_NTPK | = lv_e_ntpk | |
E_NTPT | = lv_e_ntpt | |
E_ZOTYP | = lv_e_zotyp | |
TABLES | ||
T_NTPK | = lt_t_ntpk | |
T_NTPT | = lt_t_ntpt | |
EXCEPTIONS | ||
WRONG_EINRI = 1 | ||
NOTHING_FOUND = 2 | ||
NOTHING_SELECTED = 3 | ||
MISSING_ZOTYP = 4 | ||
. " ISH_SHOW_SERVICES_NEW |
ABAP code using 7.40 inline data declarations to call FM ISH_SHOW_SERVICES_NEW
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_einrichtung). | ||||
DATA(ld_sel_leist) | = 'X'. | |||
DATA(ld_sel_group) | = 'X'. | |||
DATA(ld_sel_erfsp) | = ' '. | |||
"SELECT single DKAT FROM NTPK INTO @DATA(ld_mdc_cat). | ||||
DATA(ld_mdc_cat) | = ''. | |||
DATA(ld_multi_select) | = 'X'. | |||
DATA(ld_use_groups) | = 'X'. | |||
"SELECT single ZOTYP FROM TNT0 INTO @DATA(ld_zotyp). | ||||
DATA(ld_zotyp) | = ' '. | |||
"SELECT single OPEN_LEVEL FROM RNN002 INTO @DATA(ld_depth). | ||||
DATA(ld_depth) | = '1'. | |||
DATA(ld_change_tarif) | = 'X'. | |||
DATA(ld_change_zeitr) | = 'X'. | |||
"SELECT single TARIF FROM NTPK INTO @DATA(ld_tarif). | ||||
DATA(ld_tarif) | = ' '. | |||
DATA(ld_change_zeitp) | = 'X'. | |||
DATA(ld_change_entga) | = 'X'. | |||
DATA(ld_change_tagru) | = 'X'. | |||
DATA(ld_change_zotyp) | = 'X'. | |||
DATA(ld_change_usegr) | = 'X'. | |||
DATA(ld_win_title) | = 'Eingabehilfe'. | |||
DATA(ld_vcode) | = 'UPD'. | |||
DATA(ld_skip_first_screen) | = ' '. | |||
DATA(ld_read_vle) | = 'X'. | |||
DATA(ld_select_all) | = 'X'. | |||
"SELECT single TALST FROM NTPK INTO @DATA(ld_talst). | ||||
DATA(ld_talst) | = ' '. | |||
"SELECT single ZOTYP FROM TNT0 INTO @DATA(ld_e_zotyp). | ||||
DATA(ld_search_for) | = 'NTPK_S'. | |||
DATA(ld_use_service) | = OFF. | |||
"SELECT single ZEITR FROM NTPK INTO @DATA(ld_zeitraum). | ||||
DATA(ld_zeitraum) | = 'X'. | |||
"SELECT single ZEITR FROM NTPK INTO @DATA(ld_zeitpunkt). | ||||
DATA(ld_zeitpunkt) | = 'X'. | |||
"SELECT single ENTGA FROM NTPK INTO @DATA(ld_entga). | ||||
DATA(ld_entga) | = ' '. | |||
"SELECT single TAGRU FROM NTPK INTO @DATA(ld_tagru). | ||||
DATA(ld_tagru) | = ' '. | |||
"SELECT single BEGDT FROM NTSP INTO @DATA(ld_begdt). | ||||
DATA(ld_begdt) | = '00000000'. | |||
"SELECT single ENDDT FROM NTSP INTO @DATA(ld_enddt). | ||||
DATA(ld_enddt) | = '00000000'. | |||
Search for further information about these or an SAP related objects