SAP FITP_ENC_FLIGHT_LOW_FARE_INIT Function Module for









FITP_ENC_FLIGHT_LOW_FARE_INIT is a standard fitp enc flight low fare init 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 enc flight low fare init FM, simply by entering the name FITP_ENC_FLIGHT_LOW_FARE_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FITP_FLIGHT
Program Name: SAPLFITP_FLIGHT
Main Program: SAPLFITP_FLIGHT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FITP_ENC_FLIGHT_LOW_FARE_INIT 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_ENC_FLIGHT_LOW_FARE_INIT'"
EXPORTING
WORK_CURR = "Currency Key
ANSWER_CHANGE_VARIANT = "Change variant yes(J) or no(N) (vp_process = D or C)
* SW_AFTER_SELL = ' ' "Checkbox
* NO_MSG = ' ' "Checkbox
* SW_PORTAL = "Single-character flag
* OFFICE_FIND = ' ' "Grouping for Sales Office Determination
* PROCESS_VARIANTS = ' ' "Multi-Variants supported?
P0002 = "HR Master Record: Infotype 0002 (Personal Data)
ANSWER_REBOOK = "Rebook yes(J) or no(N) (vp_process = E or C)
ANSWER_CANCEL_BOOK = "Cancel + new book yes(J) or no(N) (vp_process = D or C)

IMPORTING
T_RETURN = "Table with BAPI Return Information
LF_OPTIONS = "Transfer Options for Best-Price Determination in a Screen
ASK_REBOOK = "Rebook necessary? (vp_process=E)
ASK_CANCEL_BOOK = "Cancel + new book necessary? (vp_process=D)
ASK_CHANGE_VARIANT = "Change variant or copy variant necessary
COPY_VARIANT = "Copy this variant to new one
SW_CANCELED_ITEM = "Item cancelled
SW_CANCELED_NON_GDS_ITEM = "
PRICED_IN_SESSION = "

CHANGING
WA_PLAN = "General Plan Data
WA_VARIANT = "Table of Travel Plan Variants
* PTRP_AAA_WORKAREA = ' ' "Retrieve Workarea
* CAT_RESYS_CTRL_PARAMS = "Control Parameters for Determination of Category-Specific Reservation System

TABLES
T_HEAD = "General Trip Data
T_FLIGHT_LEG = "Leg of flight
T_FLIGHT_TST = "Ticket Information
T_FARE_COMP = "Rate components
* T_FARE_NOTE = "Rate Rules
T_PNR_ADDRESS = "PNR delivery / billing addresses
T_PNR_NAME = "Name element of PNR
T_PNR_OSI = "Other PNR service information
T_PNR_PHONE = "PNR telephone references
T_PNR_REMARKS = "PNR remarks
T_PNR_SSR = "Special PNR service requests
T_PERIO = "Period Data of a Trip
T_ITEM_STATUS = "ITEM STATUS for External Access: Portal Integration
T_CAR = "Travel Request Item - Car Rental Service
T_CAR_PREF = "Rental car service preferences of a travel plan
T_HOTEL = "Travel Request Item - Hotel Service
T_HOTEL_PREF = "Hotel service preferences of a travel plan
T_TRAIN = "Travel Request Item - Train Service
T_TRAIN_PREF = "Train service preferences of a travel plan
* T_OTHER = "Travel Reservation Request Item - Other Service
T_SYNC_DATA = "Data Synchronization: SAP - External System
T_INFO = "Info texts for travel plan variants
T_PLAN = "General Plan Data
T_ADVISORIES = "Info texts for travel plan variants
T_TA20NEGOF = "Negotiated Flight Fares (Corporate Nego Fares)
T_TA20REBF = "Discount Agreement for Flights
* T_FLIGHT_AVAIL = "
* T_ALTERNATIVE_LOC = "
* T_TIME_WINDOW = "
T_VARIANT = "Table of Travel Plan Variants
T_ITEM = "Travel service request item
T_PNR = "Elements of passenger name records of travel plan variant
T_FLIGHT = "Travel request item - flight service
T_FLIGHT_FARE = "Assignment table: flights <-> rate components
T_FLIGHT_PREF = "Flight service preferences of a travel plan

EXCEPTIONS
ERROR_FEATURE = 1 DATE_INPUT_ERROR = 10 GENERAL_API_ERROR = 11 NO_DESTINATION_FOUND = 12 INVALID_VARIANT = 13 ERROR_READING_PNR = 14 NO_ITEM_IN_PLAN = 15 SERVICE_FOR_LINE_NOT_FOUND = 16 LINE_FOR_SERVICE_NOT_FOUND = 17 BOOKING_NOT_REACHABLE = 18 SEGMENT_SELL_UNSTABLE = 19 NO_ENTRY_IN_TABLE = 2 NO_DESTINATION = 20 CANCELLATION_FAILED = 21 NO_VALID_VARIANT = 22 SYNCHRO_ERROR = 23 INVALID_ITEM = 24 SET_CAT_RESYS_MESSAGE = 25 SET_CAT_RESYS_CTRL_PARAM = 26 FUNCTION_NOT_AVAILABLE = 3 NO_FLIGHT_RECOMMENDATION = 4 NO_SEAT_SELECTION_SUPPORTED = 5 NO_RECOMMENDATION_FOUND = 6 CONNECTION_ERROR = 7 TRANSACTION_NOT_AUTHORISED = 8 ITINERARY_TOO_COMPLEX = 9
.



IMPORTING Parameters details for FITP_ENC_FLIGHT_LOW_FARE_INIT

WORK_CURR - Currency Key

Data type: PTRV_PERIO-WAERS
Optional: No
Call by Reference: Yes

ANSWER_CHANGE_VARIANT - Change variant yes(J) or no(N) (vp_process = D or C)

Data type: CHAR1
Optional: No
Call by Reference: Yes

SW_AFTER_SELL - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

NO_MSG - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

SW_PORTAL - Single-character flag

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

OFFICE_FIND - Grouping for Sales Office Determination

Data type: OFFICE_FIND
Default: SPACE
Optional: Yes
Call by Reference: Yes

PROCESS_VARIANTS - Multi-Variants supported?

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

P0002 - HR Master Record: Infotype 0002 (Personal Data)

Data type: P0002
Optional: No
Call by Reference: Yes

ANSWER_REBOOK - Rebook yes(J) or no(N) (vp_process = E or C)

Data type: CHAR1
Optional: No
Call by Reference: Yes

ANSWER_CANCEL_BOOK - Cancel + new book yes(J) or no(N) (vp_process = D or C)

Data type: CHAR1
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FITP_ENC_FLIGHT_LOW_FARE_INIT

T_RETURN - Table with BAPI Return Information

Data type: BAPIRETTAB
Optional: No
Call by Reference: Yes

LF_OPTIONS - Transfer Options for Best-Price Determination in a Screen

Data type: FTPS_FLIGHT_LF_OPTIONS
Optional: No
Call by Reference: Yes

ASK_REBOOK - Rebook necessary? (vp_process=E)

Data type: CHAR1
Optional: No
Call by Reference: Yes

ASK_CANCEL_BOOK - Cancel + new book necessary? (vp_process=D)

Data type: CHAR1
Optional: No
Call by Reference: Yes

ASK_CHANGE_VARIANT - Change variant or copy variant necessary

Data type: CHAR1
Optional: No
Call by Reference: Yes

COPY_VARIANT - Copy this variant to new one

Data type: CHAR1
Optional: No
Call by Reference: Yes

SW_CANCELED_ITEM - Item cancelled

Data type: CHAR1
Optional: No
Call by Reference: Yes

SW_CANCELED_NON_GDS_ITEM -

Data type: CHAR1
Optional: No
Call by Reference: Yes

PRICED_IN_SESSION -

Data type: CHAR1
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FITP_ENC_FLIGHT_LOW_FARE_INIT

WA_PLAN - General Plan Data

Data type: FTPT_PLAN
Optional: No
Call by Reference: Yes

WA_VARIANT - Table of Travel Plan Variants

Data type: FTPT_VARIANT
Optional: No
Call by Reference: Yes

PTRP_AAA_WORKAREA - Retrieve Workarea

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: Yes

CAT_RESYS_CTRL_PARAMS - Control Parameters for Determination of Category-Specific Reservation System

Data type: FTPS_CTRL_PARAM_CAT_RES_SYS
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FITP_ENC_FLIGHT_LOW_FARE_INIT

T_HEAD - General Trip Data

Data type: PTRV_HEAD
Optional: No
Call by Reference: No ( called with pass by value option)

T_FLIGHT_LEG - Leg of flight

Data type: FTPT_FLIGHT_LEG
Optional: No
Call by Reference: No ( called with pass by value option)

T_FLIGHT_TST - Ticket Information

Data type: FTPT_FLIGHT_TSTK
Optional: No
Call by Reference: No ( called with pass by value option)

T_FARE_COMP - Rate components

Data type: FTPT_FARE_COMP
Optional: No
Call by Reference: No ( called with pass by value option)

T_FARE_NOTE - Rate Rules

Data type: FTPT_FARE_NOTE
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_PNR_ADDRESS - PNR delivery / billing addresses

Data type: FTPT_PNR_ADDRESS
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR_NAME - Name element of PNR

Data type: FTPT_PNR_NAME
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR_OSI - Other PNR service information

Data type: FTPT_PNR_OSI
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR_PHONE - PNR telephone references

Data type: FTPT_PNR_PHONE
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR_REMARKS - PNR remarks

Data type: FTPT_PNR_REMARKS
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR_SSR - Special PNR service requests

Data type: FTPT_PNR_SSR
Optional: No
Call by Reference: No ( called with pass by value option)

T_PERIO - Period Data of a Trip

Data type: PTRV_PERIO
Optional: No
Call by Reference: No ( called with pass by value option)

T_ITEM_STATUS - ITEM STATUS for External Access: Portal Integration

Data type: FTPS_ITEM_STATUS
Optional: No
Call by Reference: Yes

T_CAR - Travel Request Item - Car Rental Service

Data type: FTPT_CAR
Optional: No
Call by Reference: No ( called with pass by value option)

T_CAR_PREF - Rental car service preferences of a travel plan

Data type: FTPT_CAR_PREF
Optional: No
Call by Reference: No ( called with pass by value option)

T_HOTEL - Travel Request Item - Hotel Service

Data type: FTPT_HOTEL
Optional: No
Call by Reference: No ( called with pass by value option)

T_HOTEL_PREF - Hotel service preferences of a travel plan

Data type: FTPT_HOTEL_PREF
Optional: No
Call by Reference: No ( called with pass by value option)

T_TRAIN - Travel Request Item - Train Service

Data type: FTPT_TRAIN
Optional: No
Call by Reference: Yes

T_TRAIN_PREF - Train service preferences of a travel plan

Data type: FTPT_TRAIN_PREF
Optional: No
Call by Reference: Yes

T_OTHER - Travel Reservation Request Item - Other Service

Data type: FTPT_OTHER
Optional: Yes
Call by Reference: Yes

T_SYNC_DATA - Data Synchronization: SAP - External System

Data type: FTPT_SYNC_DATA
Optional: No
Call by Reference: Yes

T_INFO - Info texts for travel plan variants

Data type: FTPT_VAR_INFO
Optional: No
Call by Reference: Yes

T_PLAN - General Plan Data

Data type: FTPT_PLAN
Optional: No
Call by Reference: No ( called with pass by value option)

T_ADVISORIES - Info texts for travel plan variants

Data type: FTPT_VAR_INFO
Optional: No
Call by Reference: Yes

T_TA20NEGOF - Negotiated Flight Fares (Corporate Nego Fares)

Data type: TA20NEGOF
Optional: No
Call by Reference: Yes

T_TA20REBF - Discount Agreement for Flights

Data type: TA20REBF
Optional: No
Call by Reference: Yes

T_FLIGHT_AVAIL -

Data type: FTPT_FLIGHT
Optional: Yes
Call by Reference: Yes

T_ALTERNATIVE_LOC -

Data type: FTPS_WEB_ALTERNATIVE_LOC
Optional: Yes
Call by Reference: Yes

T_TIME_WINDOW -

Data type: FTPS_WEB_TIME_WINDOW
Optional: Yes
Call by Reference: Yes

T_VARIANT - Table of Travel Plan Variants

Data type: FTPT_VARIANT
Optional: No
Call by Reference: No ( called with pass by value option)

T_ITEM - Travel service request item

Data type: FTPT_ITEM
Optional: No
Call by Reference: No ( called with pass by value option)

T_PNR - Elements of passenger name records of travel plan variant

Data type: FTPT_PNR
Optional: No
Call by Reference: No ( called with pass by value option)

T_FLIGHT - Travel request item - flight service

Data type: FTPT_FLIGHT
Optional: No
Call by Reference: No ( called with pass by value option)

T_FLIGHT_FARE - Assignment table: flights <-> rate components

Data type: FTPT_FLIGHT_FCMP
Optional: No
Call by Reference: No ( called with pass by value option)

T_FLIGHT_PREF - Flight service preferences of a travel plan

Data type: FTPT_FLIGHT_PREF
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_FEATURE - Fehler in Feature

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DATE_INPUT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

GENERAL_API_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_DESTINATION_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_VARIANT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_READING_PNR - Der externe Buchungssatz konnte nicht gelesen werden

Data type:
Optional: No
Call by Reference: Yes

NO_ITEM_IN_PLAN - Plan enthält keine Items

Data type:
Optional: No
Call by Reference: Yes

SERVICE_FOR_LINE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

LINE_FOR_SERVICE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

BOOKING_NOT_REACHABLE -

Data type:
Optional: No
Call by Reference: Yes

SEGMENT_SELL_UNSTABLE -

Data type:
Optional: No
Call by Reference: Yes

NO_ENTRY_IN_TABLE - No Entry in Table

Data type:
Optional: No
Call by Reference: Yes

NO_DESTINATION -

Data type:
Optional: No
Call by Reference: Yes

CANCELLATION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

NO_VALID_VARIANT -

Data type:
Optional: No
Call by Reference: Yes

SYNCHRO_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INVALID_ITEM -

Data type:
Optional: No
Call by Reference: Yes

SET_CAT_RESYS_MESSAGE -

Data type:
Optional: No
Call by Reference: Yes

SET_CAT_RESYS_CTRL_PARAM -

Data type:
Optional: No
Call by Reference: Yes

FUNCTION_NOT_AVAILABLE - Function not available

Data type:
Optional: No
Call by Reference: Yes

NO_FLIGHT_RECOMMENDATION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SEAT_SELECTION_SUPPORTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECOMMENDATION_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CONNECTION_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TRANSACTION_NOT_AUTHORISED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ITINERARY_TOO_COMPLEX -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FITP_ENC_FLIGHT_LOW_FARE_INIT 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:
lt_t_head  TYPE STANDARD TABLE OF PTRV_HEAD, "   
lv_wa_plan  TYPE FTPT_PLAN, "   
lv_t_return  TYPE BAPIRETTAB, "   
lv_work_curr  TYPE PTRV_PERIO-WAERS, "   
lv_error_feature  TYPE PTRV_PERIO, "   
lt_t_flight_leg  TYPE STANDARD TABLE OF FTPT_FLIGHT_LEG, "   
lv_date_input_error  TYPE FTPT_FLIGHT_LEG, "   
lv_answer_change_variant  TYPE CHAR1, "   
lt_t_flight_tst  TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK, "   
lv_general_api_error  TYPE FTPT_FLIGHT_TSTK, "   
lt_t_fare_comp  TYPE STANDARD TABLE OF FTPT_FARE_COMP, "   
lv_no_destination_found  TYPE FTPT_FARE_COMP, "   
lt_t_fare_note  TYPE STANDARD TABLE OF FTPT_FARE_NOTE, "   
lv_invalid_variant  TYPE FTPT_FARE_NOTE, "   
lt_t_pnr_address  TYPE STANDARD TABLE OF FTPT_PNR_ADDRESS, "   
lv_error_reading_pnr  TYPE FTPT_PNR_ADDRESS, "   
lt_t_pnr_name  TYPE STANDARD TABLE OF FTPT_PNR_NAME, "   
lv_no_item_in_plan  TYPE FTPT_PNR_NAME, "   
lt_t_pnr_osi  TYPE STANDARD TABLE OF FTPT_PNR_OSI, "   
lv_service_for_line_not_found  TYPE FTPT_PNR_OSI, "   
lt_t_pnr_phone  TYPE STANDARD TABLE OF FTPT_PNR_PHONE, "   
lv_line_for_service_not_found  TYPE FTPT_PNR_PHONE, "   
lt_t_pnr_remarks  TYPE STANDARD TABLE OF FTPT_PNR_REMARKS, "   
lv_booking_not_reachable  TYPE FTPT_PNR_REMARKS, "   
lt_t_pnr_ssr  TYPE STANDARD TABLE OF FTPT_PNR_SSR, "   
lv_segment_sell_unstable  TYPE FTPT_PNR_SSR, "   
lt_t_perio  TYPE STANDARD TABLE OF PTRV_PERIO, "   
lv_lf_options  TYPE FTPS_FLIGHT_LF_OPTIONS, "   
lv_wa_variant  TYPE FTPT_VARIANT, "   
lv_sw_after_sell  TYPE XFELD, "   SPACE
lv_no_entry_in_table  TYPE XFELD, "   
lt_t_item_status  TYPE STANDARD TABLE OF FTPS_ITEM_STATUS, "   
lv_no_destination  TYPE FTPS_ITEM_STATUS, "   
lt_t_car  TYPE STANDARD TABLE OF FTPT_CAR, "   
lv_cancellation_failed  TYPE FTPT_CAR, "   
lt_t_car_pref  TYPE STANDARD TABLE OF FTPT_CAR_PREF, "   
lv_no_valid_variant  TYPE FTPT_CAR_PREF, "   
lt_t_hotel  TYPE STANDARD TABLE OF FTPT_HOTEL, "   
lv_synchro_error  TYPE FTPT_HOTEL, "   
lv_invalid_item  TYPE FTPT_HOTEL, "   
lt_t_hotel_pref  TYPE STANDARD TABLE OF FTPT_HOTEL_PREF, "   
lt_t_train  TYPE STANDARD TABLE OF FTPT_TRAIN, "   
lv_set_cat_resys_message  TYPE FTPT_TRAIN, "   
lt_t_train_pref  TYPE STANDARD TABLE OF FTPT_TRAIN_PREF, "   
lv_set_cat_resys_ctrl_param  TYPE FTPT_TRAIN_PREF, "   
lt_t_other  TYPE STANDARD TABLE OF FTPT_OTHER, "   
lt_t_sync_data  TYPE STANDARD TABLE OF FTPT_SYNC_DATA, "   
lt_t_info  TYPE STANDARD TABLE OF FTPT_VAR_INFO, "   
lv_no_msg  TYPE XFELD, "   SPACE
lt_t_plan  TYPE STANDARD TABLE OF FTPT_PLAN, "   
lv_ask_rebook  TYPE CHAR1, "   
lv_ptrp_aaa_workarea  TYPE CHAR1, "   SPACE
lv_function_not_available  TYPE CHAR1, "   
lt_t_advisories  TYPE STANDARD TABLE OF FTPT_VAR_INFO, "   
lt_t_ta20negof  TYPE STANDARD TABLE OF TA20NEGOF, "   
lt_t_ta20rebf  TYPE STANDARD TABLE OF TA20REBF, "   
lt_t_flight_avail  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lt_t_alternative_loc  TYPE STANDARD TABLE OF FTPS_WEB_ALTERNATIVE_LOC, "   
lt_t_time_window  TYPE STANDARD TABLE OF FTPS_WEB_TIME_WINDOW, "   
lv_sw_portal  TYPE CHAR1, "   
lt_t_variant  TYPE STANDARD TABLE OF FTPT_VARIANT, "   
lv_ask_cancel_book  TYPE CHAR1, "   
lv_cat_resys_ctrl_params  TYPE FTPS_CTRL_PARAM_CAT_RES_SYS, "   
lv_no_flight_recommendation  TYPE FTPS_CTRL_PARAM_CAT_RES_SYS, "   
lt_t_item  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_office_find  TYPE OFFICE_FIND, "   SPACE
lv_ask_change_variant  TYPE CHAR1, "   
lv_no_seat_selection_supported  TYPE CHAR1, "   
lt_t_pnr  TYPE STANDARD TABLE OF FTPT_PNR, "   
lv_copy_variant  TYPE CHAR1, "   
lv_process_variants  TYPE CHAR1, "   SPACE
lv_no_recommendation_found  TYPE CHAR1, "   
lv_p0002  TYPE P0002, "   
lt_t_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lv_connection_error  TYPE FTPT_FLIGHT, "   
lv_sw_canceled_item  TYPE CHAR1, "   
lv_answer_rebook  TYPE CHAR1, "   
lt_t_flight_fare  TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP, "   
lv_sw_canceled_non_gds_item  TYPE CHAR1, "   
lv_transaction_not_authorised  TYPE CHAR1, "   
lt_t_flight_pref  TYPE STANDARD TABLE OF FTPT_FLIGHT_PREF, "   
lv_priced_in_session  TYPE CHAR1, "   
lv_answer_cancel_book  TYPE CHAR1, "   
lv_itinerary_too_complex  TYPE CHAR1. "   

  CALL FUNCTION 'FITP_ENC_FLIGHT_LOW_FARE_INIT'  "
    EXPORTING
         WORK_CURR = lv_work_curr
         ANSWER_CHANGE_VARIANT = lv_answer_change_variant
         SW_AFTER_SELL = lv_sw_after_sell
         NO_MSG = lv_no_msg
         SW_PORTAL = lv_sw_portal
         OFFICE_FIND = lv_office_find
         PROCESS_VARIANTS = lv_process_variants
         P0002 = lv_p0002
         ANSWER_REBOOK = lv_answer_rebook
         ANSWER_CANCEL_BOOK = lv_answer_cancel_book
    IMPORTING
         T_RETURN = lv_t_return
         LF_OPTIONS = lv_lf_options
         ASK_REBOOK = lv_ask_rebook
         ASK_CANCEL_BOOK = lv_ask_cancel_book
         ASK_CHANGE_VARIANT = lv_ask_change_variant
         COPY_VARIANT = lv_copy_variant
         SW_CANCELED_ITEM = lv_sw_canceled_item
         SW_CANCELED_NON_GDS_ITEM = lv_sw_canceled_non_gds_item
         PRICED_IN_SESSION = lv_priced_in_session
    CHANGING
         WA_PLAN = lv_wa_plan
         WA_VARIANT = lv_wa_variant
         PTRP_AAA_WORKAREA = lv_ptrp_aaa_workarea
         CAT_RESYS_CTRL_PARAMS = lv_cat_resys_ctrl_params
    TABLES
         T_HEAD = lt_t_head
         T_FLIGHT_LEG = lt_t_flight_leg
         T_FLIGHT_TST = lt_t_flight_tst
         T_FARE_COMP = lt_t_fare_comp
         T_FARE_NOTE = lt_t_fare_note
         T_PNR_ADDRESS = lt_t_pnr_address
         T_PNR_NAME = lt_t_pnr_name
         T_PNR_OSI = lt_t_pnr_osi
         T_PNR_PHONE = lt_t_pnr_phone
         T_PNR_REMARKS = lt_t_pnr_remarks
         T_PNR_SSR = lt_t_pnr_ssr
         T_PERIO = lt_t_perio
         T_ITEM_STATUS = lt_t_item_status
         T_CAR = lt_t_car
         T_CAR_PREF = lt_t_car_pref
         T_HOTEL = lt_t_hotel
         T_HOTEL_PREF = lt_t_hotel_pref
         T_TRAIN = lt_t_train
         T_TRAIN_PREF = lt_t_train_pref
         T_OTHER = lt_t_other
         T_SYNC_DATA = lt_t_sync_data
         T_INFO = lt_t_info
         T_PLAN = lt_t_plan
         T_ADVISORIES = lt_t_advisories
         T_TA20NEGOF = lt_t_ta20negof
         T_TA20REBF = lt_t_ta20rebf
         T_FLIGHT_AVAIL = lt_t_flight_avail
         T_ALTERNATIVE_LOC = lt_t_alternative_loc
         T_TIME_WINDOW = lt_t_time_window
         T_VARIANT = lt_t_variant
         T_ITEM = lt_t_item
         T_PNR = lt_t_pnr
         T_FLIGHT = lt_t_flight
         T_FLIGHT_FARE = lt_t_flight_fare
         T_FLIGHT_PREF = lt_t_flight_pref
    EXCEPTIONS
        ERROR_FEATURE = 1
        DATE_INPUT_ERROR = 10
        GENERAL_API_ERROR = 11
        NO_DESTINATION_FOUND = 12
        INVALID_VARIANT = 13
        ERROR_READING_PNR = 14
        NO_ITEM_IN_PLAN = 15
        SERVICE_FOR_LINE_NOT_FOUND = 16
        LINE_FOR_SERVICE_NOT_FOUND = 17
        BOOKING_NOT_REACHABLE = 18
        SEGMENT_SELL_UNSTABLE = 19
        NO_ENTRY_IN_TABLE = 2
        NO_DESTINATION = 20
        CANCELLATION_FAILED = 21
        NO_VALID_VARIANT = 22
        SYNCHRO_ERROR = 23
        INVALID_ITEM = 24
        SET_CAT_RESYS_MESSAGE = 25
        SET_CAT_RESYS_CTRL_PARAM = 26
        FUNCTION_NOT_AVAILABLE = 3
        NO_FLIGHT_RECOMMENDATION = 4
        NO_SEAT_SELECTION_SUPPORTED = 5
        NO_RECOMMENDATION_FOUND = 6
        CONNECTION_ERROR = 7
        TRANSACTION_NOT_AUTHORISED = 8
        ITINERARY_TOO_COMPLEX = 9
. " FITP_ENC_FLIGHT_LOW_FARE_INIT




ABAP code using 7.40 inline data declarations to call FM FITP_ENC_FLIGHT_LOW_FARE_INIT

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 WAERS FROM PTRV_PERIO INTO @DATA(ld_work_curr).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_sw_after_sell) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_no_msg) = ' '.
 
 
 
DATA(ld_ptrp_aaa_workarea) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_office_find) = ' '.
 
 
 
 
 
DATA(ld_process_variants) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!