SAP Function Modules

FITP_WEB_HOTEL_AVAIL SAP Function module







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

Associated Function Group: FITP_WEB_HOTEL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FITP_WEB_HOTEL_AVAIL - FITP WEB HOTEL AVAIL





CALL FUNCTION 'FITP_WEB_HOTEL_AVAIL' "
  EXPORTING
*   i_portal_action =           " ftpd_hotel_action
    i_personal_number =         " pernr_d       Personnel Number
*   i_trip_number =             " reinr         Trip Number
*   i_item_number =             " itempos_nr    Travel request item number (sequential number)
    i_iata_location =           " hotel_slocation  Hotel Location
    i_date_arrival =            " hotel_date_arr
    i_date_departure =          " hotel_date_dep  Departure Date Hotel
*   i_hotel_chain =             " hotel_provider  Hotel Chain
*   i_area_location =           " hotel_area_loc  Hotel area
*   i_hotel_name =              " hotel_name
*   i_maximum_distance =        " ftpd_web_distance  Distance
*   i_hotel_preferences =       " ps0472        HR Master Record Infotype 0472 (Hotel Preferences)
*   i_address =                 " ftps_web_address  Travel Web Interface: Addresses
*   i_geocoding =               " ftps_web_geocoding  Travel Web Interface: Geocoding
*   i_return_geocoding = SPACE  " xfeld         Checkbox
  IMPORTING
    e_hotel_header =            " ftps_web_hotel_list_header  Header Data of Hotel List (Portal RFC Interface)
  TABLES
    et_return =                 " bapirettab    Table with BAPI Return Information
    et_hotel_list =             " ftps_web_hotel_list_t  Table Type for FTPS_WEB_HOTEL_LIST
    .  "  FITP_WEB_HOTEL_AVAIL

ABAP code example for Function Module FITP_WEB_HOTEL_AVAIL





The ABAP code below is a full code listing to execute function module FITP_WEB_HOTEL_AVAIL 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_e_hotel_header  TYPE FTPS_WEB_HOTEL_LIST_HEADER ,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return ,
it_et_hotel_list  TYPE STANDARD TABLE OF FTPS_WEB_HOTEL_LIST_T,"TABLES PARAM
wa_et_hotel_list  LIKE LINE OF it_et_hotel_list .

DATA(ld_i_portal_action) = 'Check type of data required'.
DATA(ld_i_personal_number) = 'Check type of data required'.
DATA(ld_i_trip_number) = 'Check type of data required'.
DATA(ld_i_item_number) = 'Check type of data required'.
DATA(ld_i_iata_location) = 'Check type of data required'.
DATA(ld_i_date_arrival) = 'Check type of data required'.
DATA(ld_i_date_departure) = 'Check type of data required'.
DATA(ld_i_hotel_chain) = 'Check type of data required'.
DATA(ld_i_area_location) = 'Check type of data required'.
DATA(ld_i_hotel_name) = 'Check type of data required'.
DATA(ld_i_maximum_distance) = 'Check type of data required'.
DATA(ld_i_hotel_preferences) = 'Check type of data required'.
DATA(ld_i_address) = 'Check type of data required'.
DATA(ld_i_geocoding) = 'Check type of data required'.
DATA(ld_i_return_geocoding) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.

"populate fields of struture and append to itab
append wa_et_hotel_list to it_et_hotel_list. . CALL FUNCTION 'FITP_WEB_HOTEL_AVAIL' EXPORTING * i_portal_action = ld_i_portal_action i_personal_number = ld_i_personal_number * i_trip_number = ld_i_trip_number * i_item_number = ld_i_item_number i_iata_location = ld_i_iata_location i_date_arrival = ld_i_date_arrival i_date_departure = ld_i_date_departure * i_hotel_chain = ld_i_hotel_chain * i_area_location = ld_i_area_location * i_hotel_name = ld_i_hotel_name * i_maximum_distance = ld_i_maximum_distance * i_hotel_preferences = ld_i_hotel_preferences * i_address = ld_i_address * i_geocoding = ld_i_geocoding * i_return_geocoding = ld_i_return_geocoding IMPORTING e_hotel_header = ld_e_hotel_header TABLES et_return = it_et_return et_hotel_list = it_et_hotel_list . " FITP_WEB_HOTEL_AVAIL
IF SY-SUBRC EQ 0. "All OK 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_e_hotel_header  TYPE FTPS_WEB_HOTEL_LIST_HEADER ,
ld_i_portal_action  TYPE FTPD_HOTEL_ACTION ,
it_et_return  TYPE STANDARD TABLE OF BAPIRETTAB ,
wa_et_return  LIKE LINE OF it_et_return,
ld_i_personal_number  TYPE PERNR_D ,
it_et_hotel_list  TYPE STANDARD TABLE OF FTPS_WEB_HOTEL_LIST_T ,
wa_et_hotel_list  LIKE LINE OF it_et_hotel_list,
ld_i_trip_number  TYPE REINR ,
ld_i_item_number  TYPE ITEMPOS_NR ,
ld_i_iata_location  TYPE HOTEL_SLOCATION ,
ld_i_date_arrival  TYPE HOTEL_DATE_ARR ,
ld_i_date_departure  TYPE HOTEL_DATE_DEP ,
ld_i_hotel_chain  TYPE HOTEL_PROVIDER ,
ld_i_area_location  TYPE HOTEL_AREA_LOC ,
ld_i_hotel_name  TYPE HOTEL_NAME ,
ld_i_maximum_distance  TYPE FTPD_WEB_DISTANCE ,
ld_i_hotel_preferences  TYPE PS0472 ,
ld_i_address  TYPE FTPS_WEB_ADDRESS ,
ld_i_geocoding  TYPE FTPS_WEB_GEOCODING ,
ld_i_return_geocoding  TYPE XFELD .

ld_i_portal_action = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.
ld_i_personal_number = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_hotel_list to it_et_hotel_list.
ld_i_trip_number = 'Check type of data required'.
ld_i_item_number = 'Check type of data required'.
ld_i_iata_location = 'Check type of data required'.
ld_i_date_arrival = 'Check type of data required'.
ld_i_date_departure = 'Check type of data required'.
ld_i_hotel_chain = 'Check type of data required'.
ld_i_area_location = 'Check type of data required'.
ld_i_hotel_name = 'Check type of data required'.
ld_i_maximum_distance = 'Check type of data required'.
ld_i_hotel_preferences = 'Check type of data required'.
ld_i_address = 'Check type of data required'.
ld_i_geocoding = 'Check type of data required'.
ld_i_return_geocoding = 'Check type of data required'.

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