SAP Function Modules

ISH_FPZ_SUBSCREEN_INTERNAL SAP Function module







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

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


Pattern for FM ISH_FPZ_SUBSCREEN_INTERNAL - ISH FPZ SUBSCREEN INTERNAL





CALL FUNCTION 'ISH_FPZ_SUBSCREEN_INTERNAL' "
  EXPORTING
    ss_einri =                  " rnpa1-einri   Institution
    ss_npat =                   " npat          Patient Master Data
    ss_nfal =                   " nfal          Case Data
    ss_nbew =                   " nbew          Movement Data
*   ss_vcode_nfal = 'DIS'       " tndym-vcode   Processing Mode - Case
*   ss_vcode_nbew = 'DIS'       " tndym-vcode   Processing Mode - Movement
    ss_extprg =                 " sy-repid      Current Program
    ss_tcode =                  " sy-tcode      Current Transaction Code
*   ss_info = ' '               " npdok-xfeld   Fill SS_INFO_TAB (on/off)
  IMPORTING
    ss_repid =                  " sy-repid      Subscreen (Program)
    ss_dynnr =                  " sy-dynnr      Subscreen (Dynpro)
    ss_cursor =                 " tndym-cursr   Cursor Position on Screen
* TABLES
*   ss_infpz =                  " rnfpzz        Case-to-Person Assignments
*   ss_info_tab =               " nish_short_info_tab  Short Info Internal Physicians
  EXCEPTIONS
    ERROR = 1                   "               Errors Occurred, Do not Display Subscreen
    .  "  ISH_FPZ_SUBSCREEN_INTERNAL

ABAP code example for Function Module ISH_FPZ_SUBSCREEN_INTERNAL





The ABAP code below is a full code listing to execute function module ISH_FPZ_SUBSCREEN_INTERNAL 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_infpz  TYPE STANDARD TABLE OF RNFPZZ,"TABLES PARAM
wa_ss_infpz  LIKE LINE OF it_ss_infpz ,
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 .


DATA(ld_ss_einri) = some text here
DATA(ld_ss_npat) = 'Check type of data required'.
DATA(ld_ss_nfal) = 'Check type of data required'.
DATA(ld_ss_nbew) = 'Check type of data required'.

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


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

DATA(ld_ss_extprg) = 'some text here'.
DATA(ld_ss_tcode) = 'some text here'.

DATA(ld_ss_info) = some text here

"populate fields of struture and append to itab
append wa_ss_infpz to it_ss_infpz.

"populate fields of struture and append to itab
append wa_ss_info_tab to it_ss_info_tab. . CALL FUNCTION 'ISH_FPZ_SUBSCREEN_INTERNAL' EXPORTING ss_einri = ld_ss_einri ss_npat = ld_ss_npat ss_nfal = ld_ss_nfal ss_nbew = ld_ss_nbew * ss_vcode_nfal = ld_ss_vcode_nfal * ss_vcode_nbew = ld_ss_vcode_nbew ss_extprg = ld_ss_extprg ss_tcode = ld_ss_tcode * ss_info = ld_ss_info IMPORTING ss_repid = ld_ss_repid ss_dynnr = ld_ss_dynnr ss_cursor = ld_ss_cursor * TABLES * ss_infpz = it_ss_infpz * ss_info_tab = it_ss_info_tab EXCEPTIONS ERROR = 1 . " ISH_FPZ_SUBSCREEN_INTERNAL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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 RNPA1-EINRI ,
it_ss_infpz  TYPE STANDARD TABLE OF RNFPZZ ,
wa_ss_infpz  LIKE LINE OF it_ss_infpz,
ld_ss_dynnr  TYPE SY-DYNNR ,
ld_ss_npat  TYPE NPAT ,
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_cursor  TYPE TNDYM-CURSR ,
ld_ss_nfal  TYPE NFAL ,
ld_ss_nbew  TYPE NBEW ,
ld_ss_vcode_nfal  TYPE TNDYM-VCODE ,
ld_ss_vcode_nbew  TYPE TNDYM-VCODE ,
ld_ss_extprg  TYPE SY-REPID ,
ld_ss_tcode  TYPE SY-TCODE ,
ld_ss_info  TYPE NPDOK-XFELD .


ld_ss_einri = some text here

"populate fields of struture and append to itab
append wa_ss_infpz to it_ss_infpz.
ld_ss_npat = 'some text here'.

"populate fields of struture and append to itab
append wa_ss_info_tab to it_ss_info_tab.
ld_ss_nfal = 'some text here'.
ld_ss_nbew = 'some text here'.

SELECT single VCODE
FROM TNDYM
INTO ld_ss_vcode_nfal.


SELECT single VCODE
FROM TNDYM
INTO ld_ss_vcode_nbew.

ld_ss_extprg = 'some text here'.
ld_ss_tcode = 'some text here'.

ld_ss_info = 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_FPZ_SUBSCREEN_INTERNAL or its description.