TP_1W_DISPLAY_FARE_QUOTE_WS 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 TP_1W_DISPLAY_FARE_QUOTE_WS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FITP_SABRE_WS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TP_1W_DISPLAY_FARE_QUOTE_WS' "
EXPORTING
context = " int4 Natural Number
* lp = " srt_lp_name Logical Port Name
* show_xml_request = " boolean Boolean Variable (X=True, -=False, Space=Unknown)
* show_xml_response = " boolean Boolean Variable (X=True, -=False, Space=Unknown)
* log_xml = " boolean Boolean Variable (X=True, -=False, Space=Unknown)
IMPORTING
required_ticketing_date = " sy-datum Date and Time, Current (Application Server) Date
sw_refundable = " xfeld Checkbox
endorsable = " char1 Single-Character Indicator
cancellation_fee = " cancellation_fee
full_fare = " full_fare Best Unrestricted Fare in Same Cabin Class
error_string = " string
xml_request = " string
xml_response = " string
TABLES
* t_flight = " ftpt_flight
* t_fare_comp = " ftpt_fare_comp
* t_flight_fcmp = " ftpt_flight_fcmp
t_flight_tstk = " ftpt_flight_tstk
* t_advisories = " ftpt_var_info
* t_pnr_tst = " ftps_pnr_flight_tst_out Output of Flight Reservations in PNR
EXCEPTIONS
PRICE_NOT_AVAILABLE = 1 "
WS_SOAP_ERROR = 2 "
. " TP_1W_DISPLAY_FARE_QUOTE_WS
The ABAP code below is a full code listing to execute function module TP_1W_DISPLAY_FARE_QUOTE_WS 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).
| ld_required_ticketing_date | TYPE SY-DATUM , |
| ld_sw_refundable | TYPE XFELD , |
| ld_endorsable | TYPE CHAR1 , |
| ld_cancellation_fee | TYPE CANCELLATION_FEE , |
| ld_full_fare | TYPE FULL_FARE , |
| ld_error_string | TYPE STRING , |
| ld_xml_request | TYPE STRING , |
| ld_xml_response | TYPE STRING , |
| it_t_flight | TYPE STANDARD TABLE OF FTPT_FLIGHT,"TABLES PARAM |
| wa_t_flight | LIKE LINE OF it_t_flight , |
| it_t_fare_comp | TYPE STANDARD TABLE OF FTPT_FARE_COMP,"TABLES PARAM |
| wa_t_fare_comp | LIKE LINE OF it_t_fare_comp , |
| it_t_flight_fcmp | TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP,"TABLES PARAM |
| wa_t_flight_fcmp | LIKE LINE OF it_t_flight_fcmp , |
| it_t_flight_tstk | TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK,"TABLES PARAM |
| wa_t_flight_tstk | LIKE LINE OF it_t_flight_tstk , |
| it_t_advisories | TYPE STANDARD TABLE OF FTPT_VAR_INFO,"TABLES PARAM |
| wa_t_advisories | LIKE LINE OF it_t_advisories , |
| it_t_pnr_tst | TYPE STANDARD TABLE OF FTPS_PNR_FLIGHT_TST_OUT,"TABLES PARAM |
| wa_t_pnr_tst | LIKE LINE OF it_t_pnr_tst . |
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_required_ticketing_date | TYPE SY-DATUM , |
| ld_context | TYPE INT4 , |
| it_t_flight | TYPE STANDARD TABLE OF FTPT_FLIGHT , |
| wa_t_flight | LIKE LINE OF it_t_flight, |
| ld_sw_refundable | TYPE XFELD , |
| ld_lp | TYPE SRT_LP_NAME , |
| it_t_fare_comp | TYPE STANDARD TABLE OF FTPT_FARE_COMP , |
| wa_t_fare_comp | LIKE LINE OF it_t_fare_comp, |
| ld_endorsable | TYPE CHAR1 , |
| ld_show_xml_request | TYPE BOOLEAN , |
| it_t_flight_fcmp | TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP , |
| wa_t_flight_fcmp | LIKE LINE OF it_t_flight_fcmp, |
| ld_cancellation_fee | TYPE CANCELLATION_FEE , |
| ld_show_xml_response | TYPE BOOLEAN , |
| it_t_flight_tstk | TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK , |
| wa_t_flight_tstk | LIKE LINE OF it_t_flight_tstk, |
| ld_full_fare | TYPE FULL_FARE , |
| ld_log_xml | TYPE BOOLEAN , |
| it_t_advisories | TYPE STANDARD TABLE OF FTPT_VAR_INFO , |
| wa_t_advisories | LIKE LINE OF it_t_advisories, |
| ld_error_string | TYPE STRING , |
| it_t_pnr_tst | TYPE STANDARD TABLE OF FTPS_PNR_FLIGHT_TST_OUT , |
| wa_t_pnr_tst | LIKE LINE OF it_t_pnr_tst, |
| ld_xml_request | TYPE STRING , |
| ld_xml_response | TYPE STRING . |
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 TP_1W_DISPLAY_FARE_QUOTE_WS or its description.