SAP Function Modules

ISH_CASE_SUBSCREEN SAP Function module







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

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


Pattern for FM ISH_CASE_SUBSCREEN - ISH CASE SUBSCREEN





CALL FUNCTION 'ISH_CASE_SUBSCREEN' "
  EXPORTING
    ss_einri =                  " nfal-einri    Institution
    ss_patnr =                  " npat-patnr    Patient Number
    ss_falnr =                  " nfal-falnr    Case Number
*   ss_falar =                  " nfal-falar    Case Type (for Create)
*   ss_npat =                   " npat          Patient Data -> F2
*   ss_npae =                   " npae          Patient Data (Institution-Specific) -> F2
*   ss_nadr_pat =               " nadr          Patient's Address
*   ss_objnr =                  " nfal-objnr    Object Number of Case Status Management
*   ss_vcode = 'DIS'            " tndym-vcode   Processing Mode
*   ss_info = ' '               " npdok-xfeld   Fill SS_INFO_TAB (on/off)
*   ss_calling_repid =          " sy-repid      Calling Program
*   ss_calling_dynnr = SY-DYNNR  " sy-dynnr     Calling Screen
*   ss_nr_mode = 'N'            " tnkrs-modus   Operation Mode for Number Range -> F2
  IMPORTING
    ss_repid =                  " sy-repid      Subscreen (Program)
    ss_dynnr =                  " sy-dynnr      Subscreen (Dynpro)
    ss_cursor =                 " tndym-cursr   Cursor Position on Screen
* TABLES
*   ss_info_tab =               " nish_short_info_tab  Quick Info Case Data
  EXCEPTIONS
    NO_AUTHORITY = 1            "               No Authorization
    ERROR = 2                   "               Other Errors (for example, Not Found)
    .  "  ISH_CASE_SUBSCREEN

ABAP code example for Function Module ISH_CASE_SUBSCREEN





The ABAP code below is a full code listing to execute function module ISH_CASE_SUBSCREEN 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_ss_repid  TYPE SY-REPID ,
ld_ss_dynnr  TYPE SY-DYNNR ,
ld_ss_cursor  TYPE TNDYM-CURSR ,
it_ss_info_tab  TYPE STANDARD TABLE OF NISH_SHORT_INFO_TAB,"TABLES PARAM
wa_ss_info_tab  LIKE LINE OF it_ss_info_tab .


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


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


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


SELECT single FALAR
FROM NFAL
INTO @DATA(ld_ss_falar).

DATA(ld_ss_npat) = 'Check type of data required'.
DATA(ld_ss_npae) = 'Check type of data required'.
DATA(ld_ss_nadr_pat) = 'Check type of data required'.

SELECT single OBJNR
FROM NFAL
INTO @DATA(ld_ss_objnr).


SELECT single VCODE
FROM TNDYM
INTO @DATA(ld_ss_vcode).


DATA(ld_ss_info) = some text here
DATA(ld_ss_calling_repid) = 'some text here'.
DATA(ld_ss_calling_dynnr) = 'some text here'.

SELECT single MODUS
FROM TNKRS
INTO @DATA(ld_ss_nr_mode).


"populate fields of struture and append to itab
append wa_ss_info_tab to it_ss_info_tab. . CALL FUNCTION 'ISH_CASE_SUBSCREEN' EXPORTING ss_einri = ld_ss_einri ss_patnr = ld_ss_patnr ss_falnr = ld_ss_falnr * ss_falar = ld_ss_falar * ss_npat = ld_ss_npat * ss_npae = ld_ss_npae * ss_nadr_pat = ld_ss_nadr_pat * ss_objnr = ld_ss_objnr * ss_vcode = ld_ss_vcode * ss_info = ld_ss_info * ss_calling_repid = ld_ss_calling_repid * ss_calling_dynnr = ld_ss_calling_dynnr * ss_nr_mode = ld_ss_nr_mode IMPORTING ss_repid = ld_ss_repid ss_dynnr = ld_ss_dynnr ss_cursor = ld_ss_cursor * TABLES * ss_info_tab = it_ss_info_tab EXCEPTIONS NO_AUTHORITY = 1 ERROR = 2 . " ISH_CASE_SUBSCREEN
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_repid  TYPE SY-REPID ,
ld_ss_einri  TYPE NFAL-EINRI ,
it_ss_info_tab  TYPE STANDARD TABLE OF NISH_SHORT_INFO_TAB ,
wa_ss_info_tab  LIKE LINE OF it_ss_info_tab,
ld_ss_dynnr  TYPE SY-DYNNR ,
ld_ss_patnr  TYPE NPAT-PATNR ,
ld_ss_cursor  TYPE TNDYM-CURSR ,
ld_ss_falnr  TYPE NFAL-FALNR ,
ld_ss_falar  TYPE NFAL-FALAR ,
ld_ss_npat  TYPE NPAT ,
ld_ss_npae  TYPE NPAE ,
ld_ss_nadr_pat  TYPE NADR ,
ld_ss_objnr  TYPE NFAL-OBJNR ,
ld_ss_vcode  TYPE TNDYM-VCODE ,
ld_ss_info  TYPE NPDOK-XFELD ,
ld_ss_calling_repid  TYPE SY-REPID ,
ld_ss_calling_dynnr  TYPE SY-DYNNR ,
ld_ss_nr_mode  TYPE TNKRS-MODUS .


SELECT single EINRI
FROM NFAL
INTO ld_ss_einri.


"populate fields of struture and append to itab
append wa_ss_info_tab to it_ss_info_tab.

SELECT single PATNR
FROM NPAT
INTO ld_ss_patnr.


SELECT single FALNR
FROM NFAL
INTO ld_ss_falnr.


SELECT single FALAR
FROM NFAL
INTO ld_ss_falar.

ld_ss_npat = 'some text here'.
ld_ss_npae = 'some text here'.
ld_ss_nadr_pat = 'some text here'.

SELECT single OBJNR
FROM NFAL
INTO ld_ss_objnr.


SELECT single VCODE
FROM TNDYM
INTO ld_ss_vcode.


ld_ss_info = some text here
ld_ss_calling_repid = 'some text here'.
ld_ss_calling_dynnr = 'some text here'.

SELECT single MODUS
FROM TNKRS
INTO ld_ss_nr_mode.

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