SAP Function Modules

ISH_DP_CARE_UNIT_LIST_DATA_GET SAP Function module







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

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


Pattern for FM ISH_DP_CARE_UNIT_LIST_DATA_GET - ISH DP CARE UNIT LIST DATA GET





CALL FUNCTION 'ISH_DP_CARE_UNIT_LIST_DATA_GET' "
  EXPORTING
*   i_get_new_lists = 'X'       " ish_on_off
*   i_including_free_beds = SPACE  " ish_on_off
    i_dispvar =                 " lvc_t_fcat
* TABLES
*   e_occupancy_list =          " ish_t_occupancy_list
*   e_arrival_list =            " ish_t_arrival_list
*   e_departure_list =          " ish_t_departure_list
*   i_selection_criteria =      " rsparams      ABAP/4: General Structure for PARAMETERS and SELECT-OPTIONS
*   i_refresh_case =            " rnrangefalnr
*   i_ish_objects =             " ish_t_drag_drop_data
  EXCEPTIONS
    NO_MOVEMENTS_EXIST = 1      "
    NO_AUTHORITY = 2            "
    .  "  ISH_DP_CARE_UNIT_LIST_DATA_GET

ABAP code example for Function Module ISH_DP_CARE_UNIT_LIST_DATA_GET





The ABAP code below is a full code listing to execute function module ISH_DP_CARE_UNIT_LIST_DATA_GET 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_occupancy_list  TYPE STANDARD TABLE OF ISH_T_OCCUPANCY_LIST,"TABLES PARAM
wa_e_occupancy_list  LIKE LINE OF it_e_occupancy_list ,
it_e_arrival_list  TYPE STANDARD TABLE OF ISH_T_ARRIVAL_LIST,"TABLES PARAM
wa_e_arrival_list  LIKE LINE OF it_e_arrival_list ,
it_e_departure_list  TYPE STANDARD TABLE OF ISH_T_DEPARTURE_LIST,"TABLES PARAM
wa_e_departure_list  LIKE LINE OF it_e_departure_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 ,
it_i_ish_objects  TYPE STANDARD TABLE OF ISH_T_DRAG_DROP_DATA,"TABLES PARAM
wa_i_ish_objects  LIKE LINE OF it_i_ish_objects .

DATA(ld_i_get_new_lists) = 'Check type of data required'.
DATA(ld_i_including_free_beds) = '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_occupancy_list to it_e_occupancy_list.

"populate fields of struture and append to itab
append wa_e_arrival_list to it_e_arrival_list.

"populate fields of struture and append to itab
append wa_e_departure_list to it_e_departure_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.

"populate fields of struture and append to itab
append wa_i_ish_objects to it_i_ish_objects. . CALL FUNCTION 'ISH_DP_CARE_UNIT_LIST_DATA_GET' EXPORTING * i_get_new_lists = ld_i_get_new_lists * i_including_free_beds = ld_i_including_free_beds i_dispvar = ld_i_dispvar * TABLES * e_occupancy_list = it_e_occupancy_list * e_arrival_list = it_e_arrival_list * e_departure_list = it_e_departure_list * i_selection_criteria = it_i_selection_criteria * i_refresh_case = it_i_refresh_case * i_ish_objects = it_i_ish_objects EXCEPTIONS NO_MOVEMENTS_EXIST = 1 NO_AUTHORITY = 2 . " ISH_DP_CARE_UNIT_LIST_DATA_GET
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_i_get_new_lists  TYPE ISH_ON_OFF ,
it_e_occupancy_list  TYPE STANDARD TABLE OF ISH_T_OCCUPANCY_LIST ,
wa_e_occupancy_list  LIKE LINE OF it_e_occupancy_list,
ld_i_including_free_beds  TYPE ISH_ON_OFF ,
it_e_arrival_list  TYPE STANDARD TABLE OF ISH_T_ARRIVAL_LIST ,
wa_e_arrival_list  LIKE LINE OF it_e_arrival_list,
ld_i_dispvar  TYPE LVC_T_FCAT ,
it_e_departure_list  TYPE STANDARD TABLE OF ISH_T_DEPARTURE_LIST ,
wa_e_departure_list  LIKE LINE OF it_e_departure_list,
it_i_selection_criteria  TYPE STANDARD TABLE OF RSPARAMS ,
wa_i_selection_criteria  LIKE LINE OF it_i_selection_criteria,
it_i_refresh_case  TYPE STANDARD TABLE OF RNRANGEFALNR ,
wa_i_refresh_case  LIKE LINE OF it_i_refresh_case,
it_i_ish_objects  TYPE STANDARD TABLE OF ISH_T_DRAG_DROP_DATA ,
wa_i_ish_objects  LIKE LINE OF it_i_ish_objects.

ld_i_get_new_lists = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_occupancy_list to it_e_occupancy_list.
ld_i_including_free_beds = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_e_departure_list to it_e_departure_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.

"populate fields of struture and append to itab
append wa_i_ish_objects to it_i_ish_objects.

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