SAP Function Modules

ISH_READ_DATES_FOR_SERVICES SAP Function module







ISH_READ_DATES_FOR_SERVICES is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISH_READ_DATES_FOR_SERVICES into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: N014
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISH_READ_DATES_FOR_SERVICES - ISH READ DATES FOR SERVICES





CALL FUNCTION 'ISH_READ_DATES_FOR_SERVICES' "
  EXPORTING
*   authority_check = SPACE     " rnle1-mark    Perform authority check ON=yes / OFF=no
    einri =                     " tn01-einri    Institution for which selection should be made
    falnr =                     " nfal-falnr    Case number for which services should be selected
    patnr =                     " npat-patnr    Patient Number
    vcode =                     " rng10-vcode   Current processing mode (for auth. check)
*   nlei_storn = 'X'            " rnle1-mark    Read cancelled NLEI records also
*   nvvp_nvvf_storn = SPACE     " rnle1-mark    Read cancelled ins. relatshps also
*   nlei_abrkz_off = 'X'        " rnle1-mark    Read non-billable services also
  IMPORTING
    authority =                 "               Authority check ok=TRUE; no authoriz.=FALSE
  TABLES
*   e_nksk =                    " rnksk         Determined IV headers
*   e_nksp =                    " rnksp         Determined IV items
*   e_nktr =                    " rnktr         Determined ins. providers for current IRs
    e_nlei =                    " nlei          Determined services for case
*   e_nlkz =                    " nlkz          Determined assignment records fro services
*   ie_nvvf =                   " nvvf          Determined case-rel. insurance relshps     -->F2
*   ie_nvvp =                   " nvvp          Determined patient-rel. IRs
*   e_nicp =                    " rnicp
*   e_nlicz =                   " vnlicz
    .  "  ISH_READ_DATES_FOR_SERVICES

ABAP code example for Function Module ISH_READ_DATES_FOR_SERVICES





The ABAP code below is a full code listing to execute function module ISH_READ_DATES_FOR_SERVICES including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_authority  TYPE STRING ,
it_e_nksk  TYPE STANDARD TABLE OF RNKSK,"TABLES PARAM
wa_e_nksk  LIKE LINE OF it_e_nksk ,
it_e_nksp  TYPE STANDARD TABLE OF RNKSP,"TABLES PARAM
wa_e_nksp  LIKE LINE OF it_e_nksp ,
it_e_nktr  TYPE STANDARD TABLE OF RNKTR,"TABLES PARAM
wa_e_nktr  LIKE LINE OF it_e_nktr ,
it_e_nlei  TYPE STANDARD TABLE OF NLEI,"TABLES PARAM
wa_e_nlei  LIKE LINE OF it_e_nlei ,
it_e_nlkz  TYPE STANDARD TABLE OF NLKZ,"TABLES PARAM
wa_e_nlkz  LIKE LINE OF it_e_nlkz ,
it_ie_nvvf  TYPE STANDARD TABLE OF NVVF,"TABLES PARAM
wa_ie_nvvf  LIKE LINE OF it_ie_nvvf ,
it_ie_nvvp  TYPE STANDARD TABLE OF NVVP,"TABLES PARAM
wa_ie_nvvp  LIKE LINE OF it_ie_nvvp ,
it_e_nicp  TYPE STANDARD TABLE OF RNICP,"TABLES PARAM
wa_e_nicp  LIKE LINE OF it_e_nicp ,
it_e_nlicz  TYPE STANDARD TABLE OF VNLICZ,"TABLES PARAM
wa_e_nlicz  LIKE LINE OF it_e_nlicz .


DATA(ld_authority_check) = some text here

SELECT single EINRI
FROM TN01
INTO @DATA(ld_einri).


SELECT single FALNR
FROM NFAL
INTO @DATA(ld_falnr).


SELECT single PATNR
FROM NPAT
INTO @DATA(ld_patnr).


DATA(ld_vcode) = some text here

DATA(ld_nlei_storn) = some text here

DATA(ld_nvvp_nvvf_storn) = some text here

DATA(ld_nlei_abrkz_off) = some text here

"populate fields of struture and append to itab
append wa_e_nksk to it_e_nksk.

"populate fields of struture and append to itab
append wa_e_nksp to it_e_nksp.

"populate fields of struture and append to itab
append wa_e_nktr to it_e_nktr.

"populate fields of struture and append to itab
append wa_e_nlei to it_e_nlei.

"populate fields of struture and append to itab
append wa_e_nlkz to it_e_nlkz.

"populate fields of struture and append to itab
append wa_ie_nvvf to it_ie_nvvf.

"populate fields of struture and append to itab
append wa_ie_nvvp to it_ie_nvvp.

"populate fields of struture and append to itab
append wa_e_nicp to it_e_nicp.

"populate fields of struture and append to itab
append wa_e_nlicz to it_e_nlicz. . CALL FUNCTION 'ISH_READ_DATES_FOR_SERVICES' EXPORTING * authority_check = ld_authority_check einri = ld_einri falnr = ld_falnr patnr = ld_patnr vcode = ld_vcode * nlei_storn = ld_nlei_storn * nvvp_nvvf_storn = ld_nvvp_nvvf_storn * nlei_abrkz_off = ld_nlei_abrkz_off IMPORTING authority = ld_authority TABLES * e_nksk = it_e_nksk * e_nksp = it_e_nksp * e_nktr = it_e_nktr e_nlei = it_e_nlei * e_nlkz = it_e_nlkz * ie_nvvf = it_ie_nvvf * ie_nvvp = it_ie_nvvp * e_nicp = it_e_nicp * e_nlicz = it_e_nlicz . " ISH_READ_DATES_FOR_SERVICES
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_authority  TYPE STRING ,
ld_authority_check  TYPE RNLE1-MARK ,
it_e_nksk  TYPE STANDARD TABLE OF RNKSK ,
wa_e_nksk  LIKE LINE OF it_e_nksk,
ld_einri  TYPE TN01-EINRI ,
it_e_nksp  TYPE STANDARD TABLE OF RNKSP ,
wa_e_nksp  LIKE LINE OF it_e_nksp,
ld_falnr  TYPE NFAL-FALNR ,
it_e_nktr  TYPE STANDARD TABLE OF RNKTR ,
wa_e_nktr  LIKE LINE OF it_e_nktr,
ld_patnr  TYPE NPAT-PATNR ,
it_e_nlei  TYPE STANDARD TABLE OF NLEI ,
wa_e_nlei  LIKE LINE OF it_e_nlei,
ld_vcode  TYPE RNG10-VCODE ,
it_e_nlkz  TYPE STANDARD TABLE OF NLKZ ,
wa_e_nlkz  LIKE LINE OF it_e_nlkz,
ld_nlei_storn  TYPE RNLE1-MARK ,
it_ie_nvvf  TYPE STANDARD TABLE OF NVVF ,
wa_ie_nvvf  LIKE LINE OF it_ie_nvvf,
ld_nvvp_nvvf_storn  TYPE RNLE1-MARK ,
it_ie_nvvp  TYPE STANDARD TABLE OF NVVP ,
wa_ie_nvvp  LIKE LINE OF it_ie_nvvp,
ld_nlei_abrkz_off  TYPE RNLE1-MARK ,
it_e_nicp  TYPE STANDARD TABLE OF RNICP ,
wa_e_nicp  LIKE LINE OF it_e_nicp,
it_e_nlicz  TYPE STANDARD TABLE OF VNLICZ ,
wa_e_nlicz  LIKE LINE OF it_e_nlicz.


ld_authority_check = some text here

"populate fields of struture and append to itab
append wa_e_nksk to it_e_nksk.

SELECT single EINRI
FROM TN01
INTO ld_einri.


"populate fields of struture and append to itab
append wa_e_nksp to it_e_nksp.

SELECT single FALNR
FROM NFAL
INTO ld_falnr.


"populate fields of struture and append to itab
append wa_e_nktr to it_e_nktr.

SELECT single PATNR
FROM NPAT
INTO ld_patnr.


"populate fields of struture and append to itab
append wa_e_nlei to it_e_nlei.

ld_vcode = some text here

"populate fields of struture and append to itab
append wa_e_nlkz to it_e_nlkz.

ld_nlei_storn = some text here

"populate fields of struture and append to itab
append wa_ie_nvvf to it_ie_nvvf.

ld_nvvp_nvvf_storn = some text here

"populate fields of struture and append to itab
append wa_ie_nvvp to it_ie_nvvp.

ld_nlei_abrkz_off = some text here

"populate fields of struture and append to itab
append wa_e_nicp to it_e_nicp.

"populate fields of struture and append to itab
append wa_e_nlicz to it_e_nlicz.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISH_READ_DATES_FOR_SERVICES or its description.