SAP Function Modules

ISH_DP_OCP_MOVEMENTS_GET SAP Function module







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

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


Pattern for FM ISH_DP_OCP_MOVEMENTS_GET - ISH DP OCP MOVEMENTS GET





CALL FUNCTION 'ISH_DP_OCP_MOVEMENTS_GET' "
* EXPORTING
*   i_get_new_lists = 'X'       " ish_on_off
*   i_including_free_beds = SPACE  " ish_on_off
*   i_dispvar =                 " lvc_t_fcat
*   i_show_all_occupancies = SPACE  " ish_on_off
* 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
  EXCEPTIONS
    NO_MOVEMENTS_EXIST = 1      "
    .  "  ISH_DP_OCP_MOVEMENTS_GET

ABAP code example for Function Module ISH_DP_OCP_MOVEMENTS_GET





The ABAP code below is a full code listing to execute function module ISH_DP_OCP_MOVEMENTS_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 .

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'.
DATA(ld_i_show_all_occupancies) = '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. . CALL FUNCTION 'ISH_DP_OCP_MOVEMENTS_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 * i_show_all_occupancies = ld_i_show_all_occupancies * 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 EXCEPTIONS NO_MOVEMENTS_EXIST = 1 . " ISH_DP_OCP_MOVEMENTS_GET
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_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,
ld_i_show_all_occupancies  TYPE ISH_ON_OFF ,
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.

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.
ld_i_show_all_occupancies = 'Check type of data required'.

"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.

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