SAP ISH_CASE_CHANGE Function Module for









ISH_CASE_CHANGE is a standard ish case change 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 case change FM, simply by entering the name ISH_CASE_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: NFA2
Program Name: SAPLNFA2
Main Program: SAPLNFA2
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_CASE_CHANGE 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_CASE_CHANGE'"
EXPORTING
SS_EINRI = "Institution
* SS_NO_UPDATE = ' ' "No Update Program Call (ON/OFF)
* SS_CHECK_AUTH = 'X' "Authorization Check (ON/OFF)
* SS_COMM_WAIT = ' ' "Communication: Collect and Maintain Events (ON/OFF)
* SS_CALL_FROM_BAPI = 'X' "Call from BAPI (ON/OFF)
* SS_ACTION = ' ' "If not BAPI: Timepoint for Dependent Objects - Check, Before Save, Adjust
* SS_POOL_REFRESH = ON "Delete Global Memory
SS_FALNR = "Case Number
* SS_NPAT = "Patient Data -> F2
* SS_NPAE = "Patient Data (Institution-Specific) -> F2
* SS_NADR_PAT = "Patient's Address
SS_CASE = "Case Data
* SS_SURGERY = ' ' "Change Case for a Surgery (ON/OFF)
* SS_ENQUEUE = ' ' "Lock Case (ON/OFF)
* SS_TESTRUN = 'X' "Test Mode (ON/OFF)

IMPORTING
SS_NFAL = "Case Data -> F2
SS_UPD_ICDTXT = "Long Text Changed (<> ' ')
SS_ICDTXT = "Change-Document Table for Long Text
SS_RETMAXTYPE = "Most Severe Message Type -> F2

TABLES
SS_RETURN = "Table of Error Messages -> F2
* SS_EVENT_TAB = "Table with Event -> F2
* SS_NBEWTAB = "Movements for Case (if not to Be Read from DB)
.



IMPORTING Parameters details for ISH_CASE_CHANGE

SS_EINRI - Institution

Data type: NFAL-EINRI
Optional: No
Call by Reference: No ( called with pass by value option)

SS_NO_UPDATE - No Update Program Call (ON/OFF)

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_CHECK_AUTH - Authorization Check (ON/OFF)

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_COMM_WAIT - Communication: Collect and Maintain Events (ON/OFF)

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_CALL_FROM_BAPI - Call from BAPI (ON/OFF)

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_ACTION - If not BAPI: Timepoint for Dependent Objects - Check, Before Save, Adjust

Data type: TNPOL-ACTIO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_POOL_REFRESH - Delete Global Memory

Data type: ISH_ON_OFF
Default: ON
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_FALNR - Case Number

Data type: NFAL-FALNR
Optional: No
Call by Reference: No ( called with pass by value option)

SS_NPAT - Patient Data -> F2

Data type: NPAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_NPAE - Patient Data (Institution-Specific) -> F2

Data type: NPAE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_NADR_PAT - Patient's Address

Data type: NADR
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_CASE - Case Data

Data type: NFAL_IM
Optional: No
Call by Reference: No ( called with pass by value option)

SS_SURGERY - Change Case for a Surgery (ON/OFF)

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_ENQUEUE - Lock Case (ON/OFF)

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_TESTRUN - Test Mode (ON/OFF)

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISH_CASE_CHANGE

SS_NFAL - Case Data -> F2

Data type: NFAL
Optional: No
Call by Reference: No ( called with pass by value option)

SS_UPD_ICDTXT - Long Text Changed (<> SPACE)

Data type: CDPOS-CHNGIND
Optional: No
Call by Reference: No ( called with pass by value option)

SS_ICDTXT - Change-Document Table for Long Text

Data type: NSTXD_T_ICDTXT
Optional: No
Call by Reference: No ( called with pass by value option)

SS_RETMAXTYPE - Most Severe Message Type -> F2

Data type: NPDOK-BAPIRETMAXTY
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_CASE_CHANGE

SS_RETURN - Table of Error Messages -> F2

Data type: BAPIRET2
Optional: No
Call by Reference: No ( called with pass by value option)

SS_EVENT_TAB - Table with Event -> F2

Data type: RNEVT
Optional: Yes
Call by Reference: Yes

SS_NBEWTAB - Movements for Case (if not to Be Read from DB)

Data type: NBEW
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for ISH_CASE_CHANGE 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_ss_nfal  TYPE NFAL, "   
lv_ss_einri  TYPE NFAL-EINRI, "   
lt_ss_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_ss_no_update  TYPE NPDOK-XFELD, "   ' '
lv_ss_check_auth  TYPE NPDOK-XFELD, "   'X'
lv_ss_comm_wait  TYPE NPDOK-XFELD, "   ' '
lv_ss_call_from_bapi  TYPE NPDOK-XFELD, "   'X'
lv_ss_action  TYPE TNPOL-ACTIO, "   SPACE
lv_ss_pool_refresh  TYPE ISH_ON_OFF, "   ON
lv_ss_falnr  TYPE NFAL-FALNR, "   
lt_ss_event_tab  TYPE STANDARD TABLE OF RNEVT, "   
lv_ss_upd_icdtxt  TYPE CDPOS-CHNGIND, "   
lv_ss_npat  TYPE NPAT, "   
lv_ss_icdtxt  TYPE NSTXD_T_ICDTXT, "   
lt_ss_nbewtab  TYPE STANDARD TABLE OF NBEW, "   
lv_ss_npae  TYPE NPAE, "   
lv_ss_retmaxtype  TYPE NPDOK-BAPIRETMAXTY, "   
lv_ss_nadr_pat  TYPE NADR, "   
lv_ss_case  TYPE NFAL_IM, "   
lv_ss_surgery  TYPE NPDOK-XFELD, "   ' '
lv_ss_enqueue  TYPE NPDOK-XFELD, "   ' '
lv_ss_testrun  TYPE NPDOK-XFELD. "   'X'

  CALL FUNCTION 'ISH_CASE_CHANGE'  "
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_NO_UPDATE = lv_ss_no_update
         SS_CHECK_AUTH = lv_ss_check_auth
         SS_COMM_WAIT = lv_ss_comm_wait
         SS_CALL_FROM_BAPI = lv_ss_call_from_bapi
         SS_ACTION = lv_ss_action
         SS_POOL_REFRESH = lv_ss_pool_refresh
         SS_FALNR = lv_ss_falnr
         SS_NPAT = lv_ss_npat
         SS_NPAE = lv_ss_npae
         SS_NADR_PAT = lv_ss_nadr_pat
         SS_CASE = lv_ss_case
         SS_SURGERY = lv_ss_surgery
         SS_ENQUEUE = lv_ss_enqueue
         SS_TESTRUN = lv_ss_testrun
    IMPORTING
         SS_NFAL = lv_ss_nfal
         SS_UPD_ICDTXT = lv_ss_upd_icdtxt
         SS_ICDTXT = lv_ss_icdtxt
         SS_RETMAXTYPE = lv_ss_retmaxtype
    TABLES
         SS_RETURN = lt_ss_return
         SS_EVENT_TAB = lt_ss_event_tab
         SS_NBEWTAB = lt_ss_nbewtab
. " ISH_CASE_CHANGE




ABAP code using 7.40 inline data declarations to call FM ISH_CASE_CHANGE

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 NFAL INTO @DATA(ld_ss_einri).
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_no_update).
DATA(ld_ss_no_update) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_check_auth).
DATA(ld_ss_check_auth) = 'X'.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_comm_wait).
DATA(ld_ss_comm_wait) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_call_from_bapi).
DATA(ld_ss_call_from_bapi) = 'X'.
 
"SELECT single ACTIO FROM TNPOL INTO @DATA(ld_ss_action).
DATA(ld_ss_action) = ' '.
 
DATA(ld_ss_pool_refresh) = ON.
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_falnr).
 
 
"SELECT single CHNGIND FROM CDPOS INTO @DATA(ld_ss_upd_icdtxt).
 
 
 
 
 
"SELECT single BAPIRETMAXTY FROM NPDOK INTO @DATA(ld_ss_retmaxtype).
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_surgery).
DATA(ld_ss_surgery) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_enqueue).
DATA(ld_ss_enqueue) = ' '.
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_testrun).
DATA(ld_ss_testrun) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!