SAP Function Modules

ISH_NV2000_CALL SAP Function module - IS-H: Call Clinical Process Builder







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

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


Pattern for FM ISH_NV2000_CALL - ISH NV2000 CALL





CALL FUNCTION 'ISH_NV2000_CALL' "IS-H: Call Clinical Process Builder
  EXPORTING
    i_einri =                   " einri         Institution
*   i_patnr = SPACE             " patnr         Patient Number
*   i_falnr = SPACE             " falnr         Case Number
*   i_lfdnr = 0                 " lfdbew        Sequence Number of a Movement
*   i_fcode =                   " ish_fcode_dtm  Caller when Determining the Work Environment
*   i_vcode = 'UPD'             " ish_vcode     Processing Mode -> F2
*   i_patrl = OFF               " ish_on_off    Patient-Related only
*   i_falar_insert = '1'        " fallart       Case Type when Creating a Case ('2' for Outpatient)
*   i_enqueue_patnr = 'X'       " ish_on_off    Lock Patient (ON/OFF) -> F2
*   i_enqueue_falnr = 'X'       " ish_on_off    Lock Case (ON/OFF) -> F2
*   i_enqueue_papid = 'X'       " ish_on_off    Lock Provisional Patient (ON/OFF) -> F2
*   i_skip_entry = SPACE        " ish_on_off    Skip Initial Screen (ON/OFF)
*   i_skip_caselist = SPACE     " ish_on_off    Skip Case List (ON/OFF)
*   i_wplaceid = SPACE          " nwplaceid     Variant ID
*   i_pop_wplaceid = SPACE      " ish_on_off    Dialog Box for Variant Selection (ON/OFF)
*   is_proposal =               " rnv2000       Presetting
*   i_tcode_old = SPACE         " tcode         Transaction Code -> F2
*   i_leave = SPACE             " ish_on_off    LEAVE TO TRANSACTION Instead of CALL TRANSACTION
  IMPORTING
    e_okcode =                  " sy-ucomm      Function with which the Clinical Process Builder Was Exited
    e_patnr =                   " patnr         Edited Patient (for Create: New Patient Number)
    e_falnr =                   " falnr         Edited Case (for Create: New Case Number)
    e_lfdnr =                   " lfdbew        Edited Movement (for Create: New Sequence Number of the Movement)
  EXCEPTIONS
    NO_AUTHORITY = 1            "               No Authorization
    ENQUEUE_MISSING = 2         "               Lock Is Missing
    ADMISSION_NOT_SAVED = 3     "               Transaction Was Exited Without Save
    ERROR = 4                   "               Error During Call
    .  "  ISH_NV2000_CALL

ABAP code example for Function Module ISH_NV2000_CALL





The ABAP code below is a full code listing to execute function module ISH_NV2000_CALL 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_e_okcode  TYPE SY-UCOMM ,
ld_e_patnr  TYPE PATNR ,
ld_e_falnr  TYPE FALNR ,
ld_e_lfdnr  TYPE LFDBEW .

DATA(ld_i_einri) = 'Check type of data required'.
DATA(ld_i_patnr) = 'Check type of data required'.
DATA(ld_i_falnr) = 'Check type of data required'.
DATA(ld_i_lfdnr) = 'Check type of data required'.
DATA(ld_i_fcode) = 'Check type of data required'.
DATA(ld_i_vcode) = 'Check type of data required'.
DATA(ld_i_patrl) = 'Check type of data required'.
DATA(ld_i_falar_insert) = 'Check type of data required'.
DATA(ld_i_enqueue_patnr) = 'Check type of data required'.
DATA(ld_i_enqueue_falnr) = 'Check type of data required'.
DATA(ld_i_enqueue_papid) = 'Check type of data required'.
DATA(ld_i_skip_entry) = 'Check type of data required'.
DATA(ld_i_skip_caselist) = 'Check type of data required'.
DATA(ld_i_wplaceid) = 'Check type of data required'.
DATA(ld_i_pop_wplaceid) = 'Check type of data required'.
DATA(ld_is_proposal) = 'Check type of data required'.
DATA(ld_i_tcode_old) = 'Check type of data required'.
DATA(ld_i_leave) = 'Check type of data required'. . CALL FUNCTION 'ISH_NV2000_CALL' EXPORTING i_einri = ld_i_einri * i_patnr = ld_i_patnr * i_falnr = ld_i_falnr * i_lfdnr = ld_i_lfdnr * i_fcode = ld_i_fcode * i_vcode = ld_i_vcode * i_patrl = ld_i_patrl * i_falar_insert = ld_i_falar_insert * i_enqueue_patnr = ld_i_enqueue_patnr * i_enqueue_falnr = ld_i_enqueue_falnr * i_enqueue_papid = ld_i_enqueue_papid * i_skip_entry = ld_i_skip_entry * i_skip_caselist = ld_i_skip_caselist * i_wplaceid = ld_i_wplaceid * i_pop_wplaceid = ld_i_pop_wplaceid * is_proposal = ld_is_proposal * i_tcode_old = ld_i_tcode_old * i_leave = ld_i_leave IMPORTING e_okcode = ld_e_okcode e_patnr = ld_e_patnr e_falnr = ld_e_falnr e_lfdnr = ld_e_lfdnr EXCEPTIONS NO_AUTHORITY = 1 ENQUEUE_MISSING = 2 ADMISSION_NOT_SAVED = 3 ERROR = 4 . " ISH_NV2000_CALL
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_e_okcode  TYPE SY-UCOMM ,
ld_i_einri  TYPE EINRI ,
ld_e_patnr  TYPE PATNR ,
ld_i_patnr  TYPE PATNR ,
ld_e_falnr  TYPE FALNR ,
ld_i_falnr  TYPE FALNR ,
ld_e_lfdnr  TYPE LFDBEW ,
ld_i_lfdnr  TYPE LFDBEW ,
ld_i_fcode  TYPE ISH_FCODE_DTM ,
ld_i_vcode  TYPE ISH_VCODE ,
ld_i_patrl  TYPE ISH_ON_OFF ,
ld_i_falar_insert  TYPE FALLART ,
ld_i_enqueue_patnr  TYPE ISH_ON_OFF ,
ld_i_enqueue_falnr  TYPE ISH_ON_OFF ,
ld_i_enqueue_papid  TYPE ISH_ON_OFF ,
ld_i_skip_entry  TYPE ISH_ON_OFF ,
ld_i_skip_caselist  TYPE ISH_ON_OFF ,
ld_i_wplaceid  TYPE NWPLACEID ,
ld_i_pop_wplaceid  TYPE ISH_ON_OFF ,
ld_is_proposal  TYPE RNV2000 ,
ld_i_tcode_old  TYPE TCODE ,
ld_i_leave  TYPE ISH_ON_OFF .

ld_i_einri = 'Check type of data required'.
ld_i_patnr = 'Check type of data required'.
ld_i_falnr = 'Check type of data required'.
ld_i_lfdnr = 'Check type of data required'.
ld_i_fcode = 'Check type of data required'.
ld_i_vcode = 'Check type of data required'.
ld_i_patrl = 'Check type of data required'.
ld_i_falar_insert = 'Check type of data required'.
ld_i_enqueue_patnr = 'Check type of data required'.
ld_i_enqueue_falnr = 'Check type of data required'.
ld_i_enqueue_papid = 'Check type of data required'.
ld_i_skip_entry = 'Check type of data required'.
ld_i_skip_caselist = 'Check type of data required'.
ld_i_wplaceid = 'Check type of data required'.
ld_i_pop_wplaceid = 'Check type of data required'.
ld_is_proposal = 'Check type of data required'.
ld_i_tcode_old = 'Check type of data required'.
ld_i_leave = 'Check type of data required'.

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