SAP ISH_READ_NTPKD Function Module for
ISH_READ_NTPKD is a standard ish read ntpkd 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 read ntpkd FM, simply by entering the name ISH_READ_NTPKD 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_READ_NTPKD 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_READ_NTPKD'".
EXPORTING
* BEGDT = '19000101' "Service Start Date
EINRI = "Institution
* ENDDT = SY-DATUM "Service End Date
TALST = "Service ID
TARIF = "Charge master ID
* ENZKY = ' ' "
IMPORTING
E_NTPKD = "Found NTPKD entry
GVD = "
GVDI = "
NVD = "
NVDI = "
EXCEPTIONS
MISSING_DATA = 1 NO_NTPKD_FOUND = 2
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_READ_NTPKD
BEGDT - Service Start Date
Data type: NTPKD-BEGDTDefault: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EINRI - Institution
Data type: NTPKD-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
ENDDT - Service End Date
Data type: NTPKD-ENDDTDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TALST - Service ID
Data type: NTPKD-TALSTOptional: No
Call by Reference: No ( called with pass by value option)
TARIF - Charge master ID
Data type: NTPKD-TARIFOptional: No
Call by Reference: No ( called with pass by value option)
ENZKY -
Data type: NTPK-ENZKYDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_READ_NTPKD
E_NTPKD - Found NTPKD entry
Data type: NTPKDOptional: No
Call by Reference: No ( called with pass by value option)
GVD -
Data type: NTPKD-GVDHOptional: No
Call by Reference: No ( called with pass by value option)
GVDI -
Data type: NTPKD-GVDIHOptional: No
Call by Reference: No ( called with pass by value option)
NVD -
Data type: NTPKD-NVDHOptional: No
Call by Reference: No ( called with pass by value option)
NVDI -
Data type: NTPKD-NVDIHOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_DATA - FM called with incomplete data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NTPKD_FOUND - No (valid) entry determined in NTPKD
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_READ_NTPKD 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_begdt | TYPE NTPKD-BEGDT, " '19000101' | |||
| lv_e_ntpkd | TYPE NTPKD, " | |||
| lv_missing_data | TYPE NTPKD, " | |||
| lv_gvd | TYPE NTPKD-GVDH, " | |||
| lv_einri | TYPE NTPKD-EINRI, " | |||
| lv_no_ntpkd_found | TYPE NTPKD, " | |||
| lv_gvdi | TYPE NTPKD-GVDIH, " | |||
| lv_enddt | TYPE NTPKD-ENDDT, " SY-DATUM | |||
| lv_nvd | TYPE NTPKD-NVDH, " | |||
| lv_talst | TYPE NTPKD-TALST, " | |||
| lv_nvdi | TYPE NTPKD-NVDIH, " | |||
| lv_tarif | TYPE NTPKD-TARIF, " | |||
| lv_enzky | TYPE NTPK-ENZKY. " ' ' |
|   CALL FUNCTION 'ISH_READ_NTPKD' " |
| EXPORTING | ||
| BEGDT | = lv_begdt | |
| EINRI | = lv_einri | |
| ENDDT | = lv_enddt | |
| TALST | = lv_talst | |
| TARIF | = lv_tarif | |
| ENZKY | = lv_enzky | |
| IMPORTING | ||
| E_NTPKD | = lv_e_ntpkd | |
| GVD | = lv_gvd | |
| GVDI | = lv_gvdi | |
| NVD | = lv_nvd | |
| NVDI | = lv_nvdi | |
| EXCEPTIONS | ||
| MISSING_DATA = 1 | ||
| NO_NTPKD_FOUND = 2 | ||
| . " ISH_READ_NTPKD | ||
ABAP code using 7.40 inline data declarations to call FM ISH_READ_NTPKD
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 BEGDT FROM NTPKD INTO @DATA(ld_begdt). | ||||
| DATA(ld_begdt) | = '19000101'. | |||
| "SELECT single GVDH FROM NTPKD INTO @DATA(ld_gvd). | ||||
| "SELECT single EINRI FROM NTPKD INTO @DATA(ld_einri). | ||||
| "SELECT single GVDIH FROM NTPKD INTO @DATA(ld_gvdi). | ||||
| "SELECT single ENDDT FROM NTPKD INTO @DATA(ld_enddt). | ||||
| DATA(ld_enddt) | = SY-DATUM. | |||
| "SELECT single NVDH FROM NTPKD INTO @DATA(ld_nvd). | ||||
| "SELECT single TALST FROM NTPKD INTO @DATA(ld_talst). | ||||
| "SELECT single NVDIH FROM NTPKD INTO @DATA(ld_nvdi). | ||||
| "SELECT single TARIF FROM NTPKD INTO @DATA(ld_tarif). | ||||
| "SELECT single ENZKY FROM NTPK INTO @DATA(ld_enzky). | ||||
| DATA(ld_enzky) | = ' '. | |||
Search for further information about these or an SAP related objects