SAP Function Modules

ISH_AT_NWPW_DP_MEDCONTROL_DRG SAP Function module







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

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


Pattern for FM ISH_AT_NWPW_DP_MEDCONTROL_DRG - ISH AT NWPW DP MEDCONTROL DRG





CALL FUNCTION 'ISH_AT_NWPW_DP_MEDCONTROL_DRG' "
  EXPORTING
    i_institution =             " einri
*   i_get_new_lists = 'X'       " ish_on_off
*   i_dispvar =                 " lvc_t_fcat
* TABLES
*   e_medcontrol_list =         " ish_t_medcontrol_list
*   i_selection_criteria =      " rsparams
*   i_refresh_case =            " rnrangefalnr
  EXCEPTIONS
    NO_DATA_EXIST = 1           "
    .  "  ISH_AT_NWPW_DP_MEDCONTROL_DRG

ABAP code example for Function Module ISH_AT_NWPW_DP_MEDCONTROL_DRG





The ABAP code below is a full code listing to execute function module ISH_AT_NWPW_DP_MEDCONTROL_DRG 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_medcontrol_list  TYPE STANDARD TABLE OF ISH_T_MEDCONTROL_LIST,"TABLES PARAM
wa_e_medcontrol_list  LIKE LINE OF it_e_medcontrol_list ,
it_i_selection_criteria  TYPE STANDARD TABLE OF RSPARAMS,"TABLES PARAM
wa_i_selection_criteria  LIKE LINE OF it_i_selection_criteria ,
it_i_refresh_case  TYPE STANDARD TABLE OF RNRANGEFALNR,"TABLES PARAM
wa_i_refresh_case  LIKE LINE OF it_i_refresh_case .

DATA(ld_i_institution) = 'Check type of data required'.
DATA(ld_i_get_new_lists) = 'Check type of data required'.
DATA(ld_i_dispvar) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_medcontrol_list to it_e_medcontrol_list.

"populate fields of struture and append to itab
append wa_i_selection_criteria to it_i_selection_criteria.

"populate fields of struture and append to itab
append wa_i_refresh_case to it_i_refresh_case. . CALL FUNCTION 'ISH_AT_NWPW_DP_MEDCONTROL_DRG' EXPORTING i_institution = ld_i_institution * i_get_new_lists = ld_i_get_new_lists * i_dispvar = ld_i_dispvar * TABLES * e_medcontrol_list = it_e_medcontrol_list * i_selection_criteria = it_i_selection_criteria * i_refresh_case = it_i_refresh_case EXCEPTIONS NO_DATA_EXIST = 1 . " ISH_AT_NWPW_DP_MEDCONTROL_DRG
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_i_institution  TYPE EINRI ,
it_e_medcontrol_list  TYPE STANDARD TABLE OF ISH_T_MEDCONTROL_LIST ,
wa_e_medcontrol_list  LIKE LINE OF it_e_medcontrol_list,
ld_i_get_new_lists  TYPE ISH_ON_OFF ,
it_i_selection_criteria  TYPE STANDARD TABLE OF RSPARAMS ,
wa_i_selection_criteria  LIKE LINE OF it_i_selection_criteria,
ld_i_dispvar  TYPE LVC_T_FCAT ,
it_i_refresh_case  TYPE STANDARD TABLE OF RNRANGEFALNR ,
wa_i_refresh_case  LIKE LINE OF it_i_refresh_case.

ld_i_institution = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_medcontrol_list to it_e_medcontrol_list.
ld_i_get_new_lists = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_selection_criteria to it_i_selection_criteria.
ld_i_dispvar = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_refresh_case to it_i_refresh_case.

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