SAP Function Modules

ISH_PROCEDURE_READ_SIMPLE SAP Function module







ISH_PROCEDURE_READ_SIMPLE 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_PROCEDURE_READ_SIMPLE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISH_PROCEDURE_READ_SIMPLE - ISH PROCEDURE READ SIMPLE





CALL FUNCTION 'ISH_PROCEDURE_READ_SIMPLE' "
  EXPORTING
    ss_einri =                  " tn01-einri    Current Institution
    ss_falnr =                  " nfal-falnr    Current Case
*   ss_db_read = ' '            " npdok-xfeld
*   ss_only_maincode = ' '      " npdok-xfeld
*   ss_with_text = ' '          " npdok-xfeld
*   ss_only_drg = ' '           " npdok-xfeld
*   ss_without_drg = ' '        " npdok-xfeld
*   ss_without_custom = ' '     " npdok-xfeld
*   ss_language = SY-LANGU      " sy-langu
*   ss_with_canceled = ' '      " npdok-xfeld
*   ss_only_prtyp =             " nicp-prtyp
*   ss_only_official = ' '      " npdok-xfeld
* TABLES
*   e_nicp =                    " rnicp
*   e_nicp_canc =               " rnicp
*   e_nlicz =                   " vnlicz
*   e_ndicz =                   " vndicz
*   e_icdtxt =                  " cdtxt
*   ss_filter_lfdbew =          " rnrangelfdbew
*   ss_filter_lnrls =           " rnrangelnrls
*   ss_filter_lfddia =          " rnrangelfddia
  EXCEPTIONS
    WRONG_CASE_NUMBER = 1       "
    NO_INSTITUTION = 2          "
    .  "  ISH_PROCEDURE_READ_SIMPLE

ABAP code example for Function Module ISH_PROCEDURE_READ_SIMPLE





The ABAP code below is a full code listing to execute function module ISH_PROCEDURE_READ_SIMPLE 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:
it_e_nicp  TYPE STANDARD TABLE OF RNICP,"TABLES PARAM
wa_e_nicp  LIKE LINE OF it_e_nicp ,
it_e_nicp_canc  TYPE STANDARD TABLE OF RNICP,"TABLES PARAM
wa_e_nicp_canc  LIKE LINE OF it_e_nicp_canc ,
it_e_nlicz  TYPE STANDARD TABLE OF VNLICZ,"TABLES PARAM
wa_e_nlicz  LIKE LINE OF it_e_nlicz ,
it_e_ndicz  TYPE STANDARD TABLE OF VNDICZ,"TABLES PARAM
wa_e_ndicz  LIKE LINE OF it_e_ndicz ,
it_e_icdtxt  TYPE STANDARD TABLE OF CDTXT,"TABLES PARAM
wa_e_icdtxt  LIKE LINE OF it_e_icdtxt ,
it_ss_filter_lfdbew  TYPE STANDARD TABLE OF RNRANGELFDBEW,"TABLES PARAM
wa_ss_filter_lfdbew  LIKE LINE OF it_ss_filter_lfdbew ,
it_ss_filter_lnrls  TYPE STANDARD TABLE OF RNRANGELNRLS,"TABLES PARAM
wa_ss_filter_lnrls  LIKE LINE OF it_ss_filter_lnrls ,
it_ss_filter_lfddia  TYPE STANDARD TABLE OF RNRANGELFDDIA,"TABLES PARAM
wa_ss_filter_lfddia  LIKE LINE OF it_ss_filter_lfddia .


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


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


DATA(ld_ss_db_read) = some text here

DATA(ld_ss_only_maincode) = some text here

DATA(ld_ss_with_text) = some text here

DATA(ld_ss_only_drg) = some text here

DATA(ld_ss_without_drg) = some text here

DATA(ld_ss_without_custom) = some text here
DATA(ld_ss_language) = 'Check type of data required'.

DATA(ld_ss_with_canceled) = some text here

SELECT single PRTYP
FROM NICP
INTO @DATA(ld_ss_only_prtyp).


DATA(ld_ss_only_official) = 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_nicp_canc to it_e_nicp_canc.

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

"populate fields of struture and append to itab
append wa_e_ndicz to it_e_ndicz.

"populate fields of struture and append to itab
append wa_e_icdtxt to it_e_icdtxt.

"populate fields of struture and append to itab
append wa_ss_filter_lfdbew to it_ss_filter_lfdbew.

"populate fields of struture and append to itab
append wa_ss_filter_lnrls to it_ss_filter_lnrls.

"populate fields of struture and append to itab
append wa_ss_filter_lfddia to it_ss_filter_lfddia. . CALL FUNCTION 'ISH_PROCEDURE_READ_SIMPLE' EXPORTING ss_einri = ld_ss_einri ss_falnr = ld_ss_falnr * ss_db_read = ld_ss_db_read * ss_only_maincode = ld_ss_only_maincode * ss_with_text = ld_ss_with_text * ss_only_drg = ld_ss_only_drg * ss_without_drg = ld_ss_without_drg * ss_without_custom = ld_ss_without_custom * ss_language = ld_ss_language * ss_with_canceled = ld_ss_with_canceled * ss_only_prtyp = ld_ss_only_prtyp * ss_only_official = ld_ss_only_official * TABLES * e_nicp = it_e_nicp * e_nicp_canc = it_e_nicp_canc * e_nlicz = it_e_nlicz * e_ndicz = it_e_ndicz * e_icdtxt = it_e_icdtxt * ss_filter_lfdbew = it_ss_filter_lfdbew * ss_filter_lnrls = it_ss_filter_lnrls * ss_filter_lfddia = it_ss_filter_lfddia EXCEPTIONS WRONG_CASE_NUMBER = 1 NO_INSTITUTION = 2 . " ISH_PROCEDURE_READ_SIMPLE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_ss_einri  TYPE TN01-EINRI ,
it_e_nicp  TYPE STANDARD TABLE OF RNICP ,
wa_e_nicp  LIKE LINE OF it_e_nicp,
ld_ss_falnr  TYPE NFAL-FALNR ,
it_e_nicp_canc  TYPE STANDARD TABLE OF RNICP ,
wa_e_nicp_canc  LIKE LINE OF it_e_nicp_canc,
ld_ss_db_read  TYPE NPDOK-XFELD ,
it_e_nlicz  TYPE STANDARD TABLE OF VNLICZ ,
wa_e_nlicz  LIKE LINE OF it_e_nlicz,
ld_ss_only_maincode  TYPE NPDOK-XFELD ,
it_e_ndicz  TYPE STANDARD TABLE OF VNDICZ ,
wa_e_ndicz  LIKE LINE OF it_e_ndicz,
ld_ss_with_text  TYPE NPDOK-XFELD ,
it_e_icdtxt  TYPE STANDARD TABLE OF CDTXT ,
wa_e_icdtxt  LIKE LINE OF it_e_icdtxt,
ld_ss_only_drg  TYPE NPDOK-XFELD ,
it_ss_filter_lfdbew  TYPE STANDARD TABLE OF RNRANGELFDBEW ,
wa_ss_filter_lfdbew  LIKE LINE OF it_ss_filter_lfdbew,
ld_ss_without_drg  TYPE NPDOK-XFELD ,
it_ss_filter_lnrls  TYPE STANDARD TABLE OF RNRANGELNRLS ,
wa_ss_filter_lnrls  LIKE LINE OF it_ss_filter_lnrls,
ld_ss_without_custom  TYPE NPDOK-XFELD ,
it_ss_filter_lfddia  TYPE STANDARD TABLE OF RNRANGELFDDIA ,
wa_ss_filter_lfddia  LIKE LINE OF it_ss_filter_lfddia,
ld_ss_language  TYPE SY-LANGU ,
ld_ss_with_canceled  TYPE NPDOK-XFELD ,
ld_ss_only_prtyp  TYPE NICP-PRTYP ,
ld_ss_only_official  TYPE NPDOK-XFELD .


SELECT single EINRI
FROM TN01
INTO ld_ss_einri.


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

SELECT single FALNR
FROM NFAL
INTO ld_ss_falnr.


"populate fields of struture and append to itab
append wa_e_nicp_canc to it_e_nicp_canc.

ld_ss_db_read = some text here

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

ld_ss_only_maincode = some text here

"populate fields of struture and append to itab
append wa_e_ndicz to it_e_ndicz.

ld_ss_with_text = some text here

"populate fields of struture and append to itab
append wa_e_icdtxt to it_e_icdtxt.

ld_ss_only_drg = some text here

"populate fields of struture and append to itab
append wa_ss_filter_lfdbew to it_ss_filter_lfdbew.

ld_ss_without_drg = some text here

"populate fields of struture and append to itab
append wa_ss_filter_lnrls to it_ss_filter_lnrls.

ld_ss_without_custom = some text here

"populate fields of struture and append to itab
append wa_ss_filter_lfddia to it_ss_filter_lfddia.
ld_ss_language = 'Check type of data required'.

ld_ss_with_canceled = some text here

SELECT single PRTYP
FROM NICP
INTO ld_ss_only_prtyp.


ld_ss_only_official = some text here

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_PROCEDURE_READ_SIMPLE or its description.