SAP FITP_UTIL_HOTEL_RESERVE Function Module for
FITP_UTIL_HOTEL_RESERVE is a standard fitp util hotel reserve SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fitp util hotel reserve FM, simply by entering the name FITP_UTIL_HOTEL_RESERVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FITP_WEB_MAIN
Program Name: SAPLFITP_WEB_MAIN
Main Program: SAPLFITP_WEB_MAIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FITP_UTIL_HOTEL_RESERVE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FITP_UTIL_HOTEL_RESERVE'".
EXPORTING
I_DISPLAY_INDEX = "Character Field, 8 Characters Long
* I_DEPOSIT = "Deposit payment method for room reservation
* I_CCNAME = "Formatted Name of Employee or Applicant
* I_HOTEL_PROVIDER = "
* I_HOTEL_PROPERTY = "
* I_BEDS = "
* I_BED_TYPE = "
* I_ROOM_TYPE = "
* I_ROOM_RATE_CODE = "
* I_DEST_ADDRESS = "
* I_REASON_CODE = "Reason Code
* IT_INFO_TEXT = "Reason Text
* IT_NOTE_TO_AGENCY = "Additional Information on Travel Plan
* I_CATALOGUE_ID = "Hotel Catalog Item (enterprise-specific)
* I_MEMBSHIP = "Table Type for Structure PS0475 (Customer Program)
* I_FLIGHTMEM = "Table Type for Structure PS0475 (Customer Program)
* I_CORPORATE_ID = "Company Identification for Room Reservation
* I_GUARANTEE = "Guarantee for room reservation at booking
IMPORTING
ET_RETURN = "Table with BAPI Return Information
ET_PROVIDER_TEXT = "Table Type for FTPS_TEXT
E_LIMIT_TEXT = "Alternative Message When Maximum Amount Is Exceeded
EXCEPTIONS
ERROR_IN_RIR_CREATION = 1 NO_DESTINATION_FOUND = 2 NO_VALID_VARIANT = 3 CONNECTION_ERROR = 4 NO_ENTRY_IN_TABLE = 5 INFOTYPE_NOT_FOUND = 6 ERROR_SYNCHRO = 7 INFO_DATE_SYNCHRO = 8
IMPORTING Parameters details for FITP_UTIL_HOTEL_RESERVE
I_DISPLAY_INDEX - Character Field, 8 Characters Long
Data type: CHAR8Optional: No
Call by Reference: Yes
I_DEPOSIT - Deposit payment method for room reservation
Data type: HOTEL_DEPOSITOptional: Yes
Call by Reference: Yes
I_CCNAME - Formatted Name of Employee or Applicant
Data type: EMNAMOptional: Yes
Call by Reference: Yes
I_HOTEL_PROVIDER -
Data type: HOTEL_PROVIDEROptional: Yes
Call by Reference: Yes
I_HOTEL_PROPERTY -
Data type: HOTEL_PROPERTYOptional: Yes
Call by Reference: Yes
I_BEDS -
Data type: HOTEL_NUMBER_OF_BEDSOptional: Yes
Call by Reference: Yes
I_BED_TYPE -
Data type: HOTEL_BEDDING_TYPEOptional: Yes
Call by Reference: Yes
I_ROOM_TYPE -
Data type: HOTEL_ROOMTYPEOptional: Yes
Call by Reference: Yes
I_ROOM_RATE_CODE -
Data type: HOTEL_ROOM_RATE_CODEOptional: Yes
Call by Reference: Yes
I_DEST_ADDRESS -
Data type: FTPS_ADDRESSOptional: Yes
Call by Reference: Yes
I_REASON_CODE - Reason Code
Data type: FTPS_REASON_CODEOptional: Yes
Call by Reference: Yes
IT_INFO_TEXT - Reason Text
Data type: FTPS_TEXT_TOptional: Yes
Call by Reference: Yes
IT_NOTE_TO_AGENCY - Additional Information on Travel Plan
Data type: FTPS_WEB_INFO_TOptional: Yes
Call by Reference: Yes
I_CATALOGUE_ID - Hotel Catalog Item (enterprise-specific)
Data type: HOTEL_IDOptional: Yes
Call by Reference: Yes
I_MEMBSHIP - Table Type for Structure PS0475 (Customer Program)
Data type: PS0475Optional: Yes
Call by Reference: Yes
I_FLIGHTMEM - Table Type for Structure PS0475 (Customer Program)
Data type: PS0475Optional: Yes
Call by Reference: Yes
I_CORPORATE_ID - Company Identification for Room Reservation
Data type: HOTEL_CORPORATE_IDOptional: Yes
Call by Reference: Yes
I_GUARANTEE - Guarantee for room reservation at booking
Data type: HOTEL_GUARANTEEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FITP_UTIL_HOTEL_RESERVE
ET_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
ET_PROVIDER_TEXT - Table Type for FTPS_TEXT
Data type: FTPS_TEXT_TOptional: No
Call by Reference: Yes
E_LIMIT_TEXT - Alternative Message When Maximum Amount Is Exceeded
Data type: LIMIT_TEXTOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_IN_RIR_CREATION -
Data type:Optional: No
Call by Reference: Yes
NO_DESTINATION_FOUND - No RFC destination found
Data type:Optional: No
Call by Reference: Yes
NO_VALID_VARIANT -
Data type:Optional: No
Call by Reference: Yes
CONNECTION_ERROR - Error when setting up connection
Data type:Optional: No
Call by Reference: Yes
NO_ENTRY_IN_TABLE - No entry in table
Data type:Optional: No
Call by Reference: Yes
INFOTYPE_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
ERROR_SYNCHRO -
Data type:Optional: No
Call by Reference: Yes
INFO_DATE_SYNCHRO -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FITP_UTIL_HOTEL_RESERVE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_return | TYPE BAPIRETTAB, " | |||
| lv_i_display_index | TYPE CHAR8, " | |||
| lv_error_in_rir_creation | TYPE CHAR8, " | |||
| lv_i_deposit | TYPE HOTEL_DEPOSIT, " | |||
| lv_i_ccname | TYPE EMNAM, " | |||
| lv_i_hotel_provider | TYPE HOTEL_PROVIDER, " | |||
| lv_i_hotel_property | TYPE HOTEL_PROPERTY, " | |||
| lv_i_beds | TYPE HOTEL_NUMBER_OF_BEDS, " | |||
| lv_i_bed_type | TYPE HOTEL_BEDDING_TYPE, " | |||
| lv_i_room_type | TYPE HOTEL_ROOMTYPE, " | |||
| lv_i_room_rate_code | TYPE HOTEL_ROOM_RATE_CODE, " | |||
| lv_i_dest_address | TYPE FTPS_ADDRESS, " | |||
| lv_i_reason_code | TYPE FTPS_REASON_CODE, " | |||
| lv_et_provider_text | TYPE FTPS_TEXT_T, " | |||
| lv_no_destination_found | TYPE FTPS_TEXT_T, " | |||
| lv_e_limit_text | TYPE LIMIT_TEXT, " | |||
| lv_it_info_text | TYPE FTPS_TEXT_T, " | |||
| lv_no_valid_variant | TYPE FTPS_TEXT_T, " | |||
| lv_connection_error | TYPE FTPS_TEXT_T, " | |||
| lv_it_note_to_agency | TYPE FTPS_WEB_INFO_T, " | |||
| lv_i_catalogue_id | TYPE HOTEL_ID, " | |||
| lv_no_entry_in_table | TYPE HOTEL_ID, " | |||
| lv_i_membship | TYPE PS0475, " | |||
| lv_infotype_not_found | TYPE PS0475, " | |||
| lv_i_flightmem | TYPE PS0475, " | |||
| lv_error_synchro | TYPE PS0475, " | |||
| lv_i_corporate_id | TYPE HOTEL_CORPORATE_ID, " | |||
| lv_info_date_synchro | TYPE HOTEL_CORPORATE_ID, " | |||
| lv_i_guarantee | TYPE HOTEL_GUARANTEE. " |
|   CALL FUNCTION 'FITP_UTIL_HOTEL_RESERVE' " |
| EXPORTING | ||
| I_DISPLAY_INDEX | = lv_i_display_index | |
| I_DEPOSIT | = lv_i_deposit | |
| I_CCNAME | = lv_i_ccname | |
| I_HOTEL_PROVIDER | = lv_i_hotel_provider | |
| I_HOTEL_PROPERTY | = lv_i_hotel_property | |
| I_BEDS | = lv_i_beds | |
| I_BED_TYPE | = lv_i_bed_type | |
| I_ROOM_TYPE | = lv_i_room_type | |
| I_ROOM_RATE_CODE | = lv_i_room_rate_code | |
| I_DEST_ADDRESS | = lv_i_dest_address | |
| I_REASON_CODE | = lv_i_reason_code | |
| IT_INFO_TEXT | = lv_it_info_text | |
| IT_NOTE_TO_AGENCY | = lv_it_note_to_agency | |
| I_CATALOGUE_ID | = lv_i_catalogue_id | |
| I_MEMBSHIP | = lv_i_membship | |
| I_FLIGHTMEM | = lv_i_flightmem | |
| I_CORPORATE_ID | = lv_i_corporate_id | |
| I_GUARANTEE | = lv_i_guarantee | |
| IMPORTING | ||
| ET_RETURN | = lv_et_return | |
| ET_PROVIDER_TEXT | = lv_et_provider_text | |
| E_LIMIT_TEXT | = lv_e_limit_text | |
| EXCEPTIONS | ||
| ERROR_IN_RIR_CREATION = 1 | ||
| NO_DESTINATION_FOUND = 2 | ||
| NO_VALID_VARIANT = 3 | ||
| CONNECTION_ERROR = 4 | ||
| NO_ENTRY_IN_TABLE = 5 | ||
| INFOTYPE_NOT_FOUND = 6 | ||
| ERROR_SYNCHRO = 7 | ||
| INFO_DATE_SYNCHRO = 8 | ||
| . " FITP_UTIL_HOTEL_RESERVE | ||
ABAP code using 7.40 inline data declarations to call FM FITP_UTIL_HOTEL_RESERVE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects