SAP FITP_PRICE_FLIGHT_ITEMS_2 Function Module for









FITP_PRICE_FLIGHT_ITEMS_2 is a standard fitp price flight items 2 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 price flight items 2 FM, simply by entering the name FITP_PRICE_FLIGHT_ITEMS_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function FITP_PRICE_FLIGHT_ITEMS_2 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_PRICE_FLIGHT_ITEMS_2'"
EXPORTING
VARIANT = "
WORK_CURR = "
CUR_PLAN = "
TXN_MODE = "
* SW_PORTAL = "Single-Character Indicator

IMPORTING
PRICING_RETURN = "
T_RETURN = "Table with BAPI Return Information

CHANGING
WA_VARIANT = "

TABLES
FLIGHT = "
REBATES = "
NEGOS = "
GEO_COVERAGE = "
HOTEL = "
CAR = "
ITEM_FOR_PRICING = "
ITEM_FLIGHT = "
ITEM_CAR = "
ITEM_HOTEL = "
FARE_COMP = "
FLIGHT_TST = "
FLIGHT_FARE = "Assignment table: flights <-> rate components
FARE_NOTE = "

EXCEPTIONS
NO_ENTRY_IN_TABLE = 1 ERROR_FEATURE = 2 NO_PNR_FOUND = 3 NO_VALIDE_VARIANT = 4 NO_DESTINATION_FOUND = 5 CONNECTION_ERROR = 6 GENERAL_API_ERROR = 7 APPLICATION_API_ERROR = 8
.



IMPORTING Parameters details for FITP_PRICE_FLIGHT_ITEMS_2

VARIANT -

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

WORK_CURR -

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

CUR_PLAN -

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

TXN_MODE -

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

SW_PORTAL - Single-Character Indicator

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

EXPORTING Parameters details for FITP_PRICE_FLIGHT_ITEMS_2

PRICING_RETURN -

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

T_RETURN - Table with BAPI Return Information

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

CHANGING Parameters details for FITP_PRICE_FLIGHT_ITEMS_2

WA_VARIANT -

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

TABLES Parameters details for FITP_PRICE_FLIGHT_ITEMS_2

FLIGHT -

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

REBATES -

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

NEGOS -

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

GEO_COVERAGE -

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

HOTEL -

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

CAR -

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

ITEM_FOR_PRICING -

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

ITEM_FLIGHT -

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

ITEM_CAR -

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

ITEM_HOTEL -

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

FARE_COMP -

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

FLIGHT_TST -

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

FLIGHT_FARE - Assignment table: flights <-> rate components

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

FARE_NOTE -

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

EXCEPTIONS details

NO_ENTRY_IN_TABLE -

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

ERROR_FEATURE -

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

NO_PNR_FOUND -

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

NO_VALIDE_VARIANT -

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

NO_DESTINATION_FOUND - No RFC destination found

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

CONNECTION_ERROR - Error when setting up connection

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)

APPLICATION_API_ERROR -

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

Copy and paste ABAP code example for FITP_PRICE_FLIGHT_ITEMS_2 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_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lv_variant  TYPE FTPT_VARIANT-VARIANT, "   
lv_wa_variant  TYPE FTPT_VARIANT, "   
lv_pricing_return  TYPE INT4, "   
lv_no_entry_in_table  TYPE INT4, "   
lt_rebates  TYPE STANDARD TABLE OF TA20REBF, "   
lt_negos  TYPE STANDARD TABLE OF TA20NEGOF, "   
lt_geo_coverage  TYPE STANDARD TABLE OF NEGOS_FARE_COVER_TABLE, "   
lt_hotel  TYPE STANDARD TABLE OF FTPT_HOTEL, "   
lt_car  TYPE STANDARD TABLE OF FTPT_CAR, "   
lv_t_return  TYPE BAPIRETTAB, "   
lv_work_curr  TYPE PTRV_PERIO-WAERS, "   
lv_error_feature  TYPE PTRV_PERIO, "   
lt_item_for_pricing  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_cur_plan  TYPE FTPT_PLAN, "   
lt_item_flight  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_no_pnr_found  TYPE FTPT_ITEM, "   
lt_item_car  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_txn_mode  TYPE C, "   
lv_no_valide_variant  TYPE C, "   
lv_sw_portal  TYPE CHAR1, "   
lt_item_hotel  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_no_destination_found  TYPE FTPT_ITEM, "   
lt_fare_comp  TYPE STANDARD TABLE OF FTPT_FARE_COMP, "   
lv_connection_error  TYPE FTPT_FARE_COMP, "   
lt_flight_tst  TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK, "   
lv_general_api_error  TYPE FTPT_FLIGHT_TSTK, "   
lt_flight_fare  TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP, "   
lv_application_api_error  TYPE FTPT_FLIGHT_FCMP, "   
lt_fare_note  TYPE STANDARD TABLE OF FTPT_FARE_NOTE. "   

  CALL FUNCTION 'FITP_PRICE_FLIGHT_ITEMS_2'  "
    EXPORTING
         VARIANT = lv_variant
         WORK_CURR = lv_work_curr
         CUR_PLAN = lv_cur_plan
         TXN_MODE = lv_txn_mode
         SW_PORTAL = lv_sw_portal
    IMPORTING
         PRICING_RETURN = lv_pricing_return
         T_RETURN = lv_t_return
    CHANGING
         WA_VARIANT = lv_wa_variant
    TABLES
         FLIGHT = lt_flight
         REBATES = lt_rebates
         NEGOS = lt_negos
         GEO_COVERAGE = lt_geo_coverage
         HOTEL = lt_hotel
         CAR = lt_car
         ITEM_FOR_PRICING = lt_item_for_pricing
         ITEM_FLIGHT = lt_item_flight
         ITEM_CAR = lt_item_car
         ITEM_HOTEL = lt_item_hotel
         FARE_COMP = lt_fare_comp
         FLIGHT_TST = lt_flight_tst
         FLIGHT_FARE = lt_flight_fare
         FARE_NOTE = lt_fare_note
    EXCEPTIONS
        NO_ENTRY_IN_TABLE = 1
        ERROR_FEATURE = 2
        NO_PNR_FOUND = 3
        NO_VALIDE_VARIANT = 4
        NO_DESTINATION_FOUND = 5
        CONNECTION_ERROR = 6
        GENERAL_API_ERROR = 7
        APPLICATION_API_ERROR = 8
. " FITP_PRICE_FLIGHT_ITEMS_2




ABAP code using 7.40 inline data declarations to call FM FITP_PRICE_FLIGHT_ITEMS_2

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_variant).
 
 
 
 
 
 
 
 
 
 
"SELECT single WAERS FROM PTRV_PERIO INTO @DATA(ld_work_curr).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!