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

Function TP_1W_FLIGHT_FARE_NOTES 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_1W_FLIGHT_FARE_NOTES'".
EXPORTING
CONTEXT_NUMBER = "Plan variant number
* FARE_BASIS = "Complete basis code of rate component
* CARRIER_CODE = "Carrier code
* DEPARTURE_LOCATION = "Departure Location
* ARRIVAL_LOCATION = "Flight arrival location
* FIRST_TRAVEL_DATE = "First travel date
* TICKETING_DATE = "Last ticketing date. If n/a, date of last pricing
IMPORTING
VP_RETURN = "
TABLES
T_FARE_NOTES = "Rate Rules
EXCEPTIONS
FFE_BAD_CLIENT_INPUT = 1 ERROR_NO_PNR = 10 ERROR_PROCESSING = 11 ERROR_SABRE_FAILURE = 12 ERROR_BAD_CITYPAIR = 13 ERROR_BAD_DATE = 14 ERROR_INVALID_CARRIER = 15 NO_DESTINATION = 16 INVALID_CONTEXT = 17 CONNECTION_ERROR = 18 RFC_ERROR = 19 FFE_BAD_COLUMN = 2 FFE_BAD_COLUMN_LIST = 3 FFE_BAD_DB_OUTPUT = 4 FFE_BAD_SABRE_OUTPUT = 5 FFE_INVALID_IN_ROWLIST = 6 ERROR_FARE_DOES_NOT_EXIST = 7 ERROR_FARE_BASIS_REQUIRED = 8 ERROR_FARE_BASIS = 9
IMPORTING Parameters details for TP_1W_FLIGHT_FARE_NOTES
CONTEXT_NUMBER - Plan variant number
Data type: VARIANT_NROptional: No
Call by Reference: Yes
FARE_BASIS - Complete basis code of rate component
Data type: FARE_BASIS_CODEOptional: Yes
Call by Reference: Yes
CARRIER_CODE - Carrier code
Data type: FLIGHT_AIRLINEOptional: Yes
Call by Reference: Yes
DEPARTURE_LOCATION - Departure Location
Data type: FLIGHT_SLOC_DEPOptional: Yes
Call by Reference: Yes
ARRIVAL_LOCATION - Flight arrival location
Data type: FLIGHT_SLOC_ARROptional: Yes
Call by Reference: Yes
FIRST_TRAVEL_DATE - First travel date
Data type: SYDATUMOptional: Yes
Call by Reference: Yes
TICKETING_DATE - Last ticketing date. If n/a, date of last pricing
Data type: SYDATUMOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TP_1W_FLIGHT_FARE_NOTES
VP_RETURN -
Data type: IOptional: No
Call by Reference: Yes
TABLES Parameters details for TP_1W_FLIGHT_FARE_NOTES
T_FARE_NOTES - Rate Rules
Data type: FTPT_FARE_NOTEOptional: No
Call by Reference: Yes
EXCEPTIONS details
FFE_BAD_CLIENT_INPUT - message - bad client input
Data type:Optional: No
Call by Reference: Yes
ERROR_NO_PNR - message - no pnr
Data type:Optional: No
Call by Reference: Yes
ERROR_PROCESSING - message - error procesing
Data type:Optional: No
Call by Reference: Yes
ERROR_SABRE_FAILURE - message - Sabre failure
Data type:Optional: No
Call by Reference: Yes
ERROR_BAD_CITYPAIR - message - bad city pair
Data type:Optional: No
Call by Reference: Yes
ERROR_BAD_DATE - message - bad date
Data type:Optional: No
Call by Reference: Yes
ERROR_INVALID_CARRIER - message - invalid carrier
Data type:Optional: No
Call by Reference: Yes
NO_DESTINATION -
Data type:Optional: No
Call by Reference: Yes
INVALID_CONTEXT - Invalid context
Data type:Optional: No
Call by Reference: Yes
CONNECTION_ERROR - Connection Error
Data type:Optional: No
Call by Reference: Yes
RFC_ERROR - RFC Connection Error
Data type:Optional: No
Call by Reference: Yes
FFE_BAD_COLUMN - message - bad column
Data type:Optional: No
Call by Reference: Yes
FFE_BAD_COLUMN_LIST - message - bad column list
Data type:Optional: No
Call by Reference: Yes
FFE_BAD_DB_OUTPUT - message - bad DB output
Data type:Optional: No
Call by Reference: Yes
FFE_BAD_SABRE_OUTPUT - message - bad Sabre output
Data type:Optional: No
Call by Reference: Yes
FFE_INVALID_IN_ROWLIST - message - invalid data in rowlist
Data type:Optional: No
Call by Reference: Yes
ERROR_FARE_DOES_NOT_EXIST - message - fare does not exist
Data type:Optional: No
Call by Reference: Yes
ERROR_FARE_BASIS_REQUIRED - message - fare basis code required
Data type:Optional: No
Call by Reference: Yes
ERROR_FARE_BASIS - message - fare basis
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TP_1W_FLIGHT_FARE_NOTES 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_vp_return | TYPE I, " | |||
| lt_t_fare_notes | TYPE STANDARD TABLE OF FTPT_FARE_NOTE, " | |||
| lv_context_number | TYPE VARIANT_NR, " | |||
| lv_ffe_bad_client_input | TYPE VARIANT_NR, " | |||
| lv_error_no_pnr | TYPE VARIANT_NR, " | |||
| lv_error_processing | TYPE VARIANT_NR, " | |||
| lv_error_sabre_failure | TYPE VARIANT_NR, " | |||
| lv_error_bad_citypair | TYPE VARIANT_NR, " | |||
| lv_error_bad_date | TYPE VARIANT_NR, " | |||
| lv_error_invalid_carrier | TYPE VARIANT_NR, " | |||
| lv_no_destination | TYPE VARIANT_NR, " | |||
| lv_invalid_context | TYPE VARIANT_NR, " | |||
| lv_connection_error | TYPE VARIANT_NR, " | |||
| lv_rfc_error | TYPE VARIANT_NR, " | |||
| lv_fare_basis | TYPE FARE_BASIS_CODE, " | |||
| lv_ffe_bad_column | TYPE FARE_BASIS_CODE, " | |||
| lv_carrier_code | TYPE FLIGHT_AIRLINE, " | |||
| lv_ffe_bad_column_list | TYPE FLIGHT_AIRLINE, " | |||
| lv_ffe_bad_db_output | TYPE FLIGHT_AIRLINE, " | |||
| lv_departure_location | TYPE FLIGHT_SLOC_DEP, " | |||
| lv_arrival_location | TYPE FLIGHT_SLOC_ARR, " | |||
| lv_ffe_bad_sabre_output | TYPE FLIGHT_SLOC_ARR, " | |||
| lv_first_travel_date | TYPE SYDATUM, " | |||
| lv_ffe_invalid_in_rowlist | TYPE SYDATUM, " | |||
| lv_ticketing_date | TYPE SYDATUM, " | |||
| lv_error_fare_does_not_exist | TYPE SYDATUM, " | |||
| lv_error_fare_basis_required | TYPE SYDATUM, " | |||
| lv_error_fare_basis | TYPE SYDATUM. " |
|   CALL FUNCTION 'TP_1W_FLIGHT_FARE_NOTES' " |
| EXPORTING | ||
| CONTEXT_NUMBER | = lv_context_number | |
| FARE_BASIS | = lv_fare_basis | |
| CARRIER_CODE | = lv_carrier_code | |
| DEPARTURE_LOCATION | = lv_departure_location | |
| ARRIVAL_LOCATION | = lv_arrival_location | |
| FIRST_TRAVEL_DATE | = lv_first_travel_date | |
| TICKETING_DATE | = lv_ticketing_date | |
| IMPORTING | ||
| VP_RETURN | = lv_vp_return | |
| TABLES | ||
| T_FARE_NOTES | = lt_t_fare_notes | |
| EXCEPTIONS | ||
| FFE_BAD_CLIENT_INPUT = 1 | ||
| ERROR_NO_PNR = 10 | ||
| ERROR_PROCESSING = 11 | ||
| ERROR_SABRE_FAILURE = 12 | ||
| ERROR_BAD_CITYPAIR = 13 | ||
| ERROR_BAD_DATE = 14 | ||
| ERROR_INVALID_CARRIER = 15 | ||
| NO_DESTINATION = 16 | ||
| INVALID_CONTEXT = 17 | ||
| CONNECTION_ERROR = 18 | ||
| RFC_ERROR = 19 | ||
| FFE_BAD_COLUMN = 2 | ||
| FFE_BAD_COLUMN_LIST = 3 | ||
| FFE_BAD_DB_OUTPUT = 4 | ||
| FFE_BAD_SABRE_OUTPUT = 5 | ||
| FFE_INVALID_IN_ROWLIST = 6 | ||
| ERROR_FARE_DOES_NOT_EXIST = 7 | ||
| ERROR_FARE_BASIS_REQUIRED = 8 | ||
| ERROR_FARE_BASIS = 9 | ||
| . " TP_1W_FLIGHT_FARE_NOTES | ||
ABAP code using 7.40 inline data declarations to call FM TP_1W_FLIGHT_FARE_NOTES
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