SAP TP_1G_ROOM_AVAILABILITY Function Module for
TP_1G_ROOM_AVAILABILITY is a standard tp 1g room availability 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 tp 1g room availability FM, simply by entering the name TP_1G_ROOM_AVAILABILITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: FITP_GALILEO_GENERAL
Program Name: SAPLFITP_GALILEO_GENERAL
Main Program: SAPLFITP_GALILEO_GENERAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TP_1G_ROOM_AVAILABILITY 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 'TP_1G_ROOM_AVAILABILITY'".
EXPORTING
CONTEXT_NUMBER = "
INPUT_PARAMETER = "
IMPORTING
HOTEL_INFO_OUT = "
TABLES
* T_HOTEL_OPTION_IN = "
* T_ROOM_OUT = "
* T_ROOMS_ADD_INFO_OUT = "
* T_HOTEL_INFO_LIST_OUT = "
EXCEPTIONS
INVALID_CONTEXT = 1 NO_DESTINATION = 10 GENERAL_API_ERROR = 11 INVALID_LOCATION = 2 INVALID_DATE_RANGE = 3 SYSTEM_ERROR = 4 NO_ROOMS_AVAILABLE = 5 INVALID_RATE = 6 PARAMETER_ERROR = 7 RFC_ERROR = 8 CONNECTION_ERROR = 9
IMPORTING Parameters details for TP_1G_ROOM_AVAILABILITY
CONTEXT_NUMBER -
Data type: FTPT_VARIANT-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
INPUT_PARAMETER -
Data type: FTPS_ROOM_AVAIL_INOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TP_1G_ROOM_AVAILABILITY
HOTEL_INFO_OUT -
Data type: FTPS_HOTEL_INFOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TP_1G_ROOM_AVAILABILITY
T_HOTEL_OPTION_IN -
Data type: RSDS_FRANGE_TOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ROOM_OUT -
Data type: FTPS_ROOM_AVAIL_OUTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ROOMS_ADD_INFO_OUT -
Data type: FTPS_ROOM_AVAIL_INFO_OUTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_HOTEL_INFO_LIST_OUT -
Data type: TRPL_HOTELINFO_LISTTABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_CONTEXT - Invalid context
Data type:Optional: No
Call by Reference: Yes
NO_DESTINATION - No RFC Destination Available
Data type:Optional: No
Call by Reference: Yes
GENERAL_API_ERROR - General API error
Data type:Optional: No
Call by Reference: Yes
INVALID_LOCATION -
Data type:Optional: No
Call by Reference: Yes
INVALID_DATE_RANGE -
Data type:Optional: No
Call by Reference: Yes
SYSTEM_ERROR - System Error
Data type:Optional: No
Call by Reference: Yes
NO_ROOMS_AVAILABLE -
Data type:Optional: No
Call by Reference: Yes
INVALID_RATE -
Data type:Optional: No
Call by Reference: Yes
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: Yes
RFC_ERROR -
Data type:Optional: No
Call by Reference: Yes
CONNECTION_ERROR - Connection Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TP_1G_ROOM_AVAILABILITY 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_context_number | TYPE FTPT_VARIANT-VARIANT, " | |||
| lv_hotel_info_out | TYPE FTPS_HOTEL_INFO, " | |||
| lv_invalid_context | TYPE FTPS_HOTEL_INFO, " | |||
| lt_t_hotel_option_in | TYPE STANDARD TABLE OF RSDS_FRANGE_T, " | |||
| lv_no_destination | TYPE RSDS_FRANGE_T, " | |||
| lv_general_api_error | TYPE RSDS_FRANGE_T, " | |||
| lt_t_room_out | TYPE STANDARD TABLE OF FTPS_ROOM_AVAIL_OUT, " | |||
| lv_input_parameter | TYPE FTPS_ROOM_AVAIL_IN, " | |||
| lv_invalid_location | TYPE FTPS_ROOM_AVAIL_IN, " | |||
| lv_invalid_date_range | TYPE FTPS_ROOM_AVAIL_IN, " | |||
| lt_t_rooms_add_info_out | TYPE STANDARD TABLE OF FTPS_ROOM_AVAIL_INFO_OUT, " | |||
| lv_system_error | TYPE FTPS_ROOM_AVAIL_INFO_OUT, " | |||
| lt_t_hotel_info_list_out | TYPE STANDARD TABLE OF TRPL_HOTELINFO_LISTTAB, " | |||
| lv_no_rooms_available | TYPE TRPL_HOTELINFO_LISTTAB, " | |||
| lv_invalid_rate | TYPE TRPL_HOTELINFO_LISTTAB, " | |||
| lv_parameter_error | TYPE TRPL_HOTELINFO_LISTTAB, " | |||
| lv_rfc_error | TYPE TRPL_HOTELINFO_LISTTAB, " | |||
| lv_connection_error | TYPE TRPL_HOTELINFO_LISTTAB. " |
|   CALL FUNCTION 'TP_1G_ROOM_AVAILABILITY' " |
| EXPORTING | ||
| CONTEXT_NUMBER | = lv_context_number | |
| INPUT_PARAMETER | = lv_input_parameter | |
| IMPORTING | ||
| HOTEL_INFO_OUT | = lv_hotel_info_out | |
| TABLES | ||
| T_HOTEL_OPTION_IN | = lt_t_hotel_option_in | |
| T_ROOM_OUT | = lt_t_room_out | |
| T_ROOMS_ADD_INFO_OUT | = lt_t_rooms_add_info_out | |
| T_HOTEL_INFO_LIST_OUT | = lt_t_hotel_info_list_out | |
| EXCEPTIONS | ||
| INVALID_CONTEXT = 1 | ||
| NO_DESTINATION = 10 | ||
| GENERAL_API_ERROR = 11 | ||
| INVALID_LOCATION = 2 | ||
| INVALID_DATE_RANGE = 3 | ||
| SYSTEM_ERROR = 4 | ||
| NO_ROOMS_AVAILABLE = 5 | ||
| INVALID_RATE = 6 | ||
| PARAMETER_ERROR = 7 | ||
| RFC_ERROR = 8 | ||
| CONNECTION_ERROR = 9 | ||
| . " TP_1G_ROOM_AVAILABILITY | ||
ABAP code using 7.40 inline data declarations to call FM TP_1G_ROOM_AVAILABILITY
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.| "SELECT single VARIANT FROM FTPT_VARIANT INTO @DATA(ld_context_number). | ||||
Search for further information about these or an SAP related objects