SAP FITP_ENC_FLIGHT_COPY2 Function Module for









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

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



Function FITP_ENC_FLIGHT_COPY2 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_COPY2'"
EXPORTING
VARIANT = "Plan Variant Number (Sequential Number)
PROFILE_NAME = "Travel Profile
ACTIVITY_TYPE = "Trip Activity Type
TRANSACTION_MODE = "Single-Character Indicator

TABLES
T_ITEM = "Travel Request Item - Flight Service
T_PROFILE_ENTRIES = "
T_TEXT_TO = "Information Text
T_TEXT_BACK = "Information Text
* T_RT_CXR = "
T_REAL_FLIGHT = "Quicktrip Travel Request Item - Flight Service
T_BOOKED_FLIGHT = "
T_PROF_FLIGHT_PROV = "

EXCEPTIONS
NO_FLIGHT_AVAILABLE = 1 NO_RESERVATION = 2 NO_DESTINATION_FOUND = 3 NO_VALID_VARIANT = 4 NO_CONNECTION = 5 NO_PNR_FOUND = 6 RFC_ERRORS = 7 GENERAL_API_ERROR = 8 APPLICATION_API__ERROR = 9
.



IMPORTING Parameters details for FITP_ENC_FLIGHT_COPY2

VARIANT - Plan Variant Number (Sequential Number)

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

PROFILE_NAME - Travel Profile

Data type: TA20P-PROFILE
Optional: No
Call by Reference: Yes

ACTIVITY_TYPE - Trip Activity Type

Data type: TA20PPI-KZTKT
Optional: No
Call by Reference: Yes

TRANSACTION_MODE - Single-Character Indicator

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

TABLES Parameters details for FITP_ENC_FLIGHT_COPY2

T_ITEM - Travel Request Item - Flight Service

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

T_PROFILE_ENTRIES -

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

T_TEXT_TO - Information Text

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

T_TEXT_BACK - Information Text

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

T_RT_CXR -

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

T_REAL_FLIGHT - Quicktrip Travel Request Item - Flight Service

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

T_BOOKED_FLIGHT -

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

T_PROF_FLIGHT_PROV -

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

EXCEPTIONS details

NO_FLIGHT_AVAILABLE -

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

NO_RESERVATION -

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)

NO_VALID_VARIANT -

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

NO_CONNECTION -

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)

RFC_ERRORS - RFC Error

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

GENERAL_API_ERROR - 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_ENC_FLIGHT_COPY2 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_item  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_variant  TYPE FTPT_VARIANT-VARIANT, "   
lv_no_flight_available  TYPE FTPT_VARIANT, "   
lv_profile_name  TYPE TA20P-PROFILE, "   
lv_no_reservation  TYPE TA20P, "   
lt_t_profile_entries  TYPE STANDARD TABLE OF PROFL_FLIGHTTAB, "   
lt_t_text_to  TYPE STANDARD TABLE OF FTPS_TEXT, "   
lv_activity_type  TYPE TA20PPI-KZTKT, "   
lv_no_destination_found  TYPE TA20PPI, "   
lt_t_text_back  TYPE STANDARD TABLE OF FTPS_TEXT, "   
lv_no_valid_variant  TYPE FTPS_TEXT, "   
lv_transaction_mode  TYPE CHAR1, "   
lt_t_rt_cxr  TYPE STANDARD TABLE OF TRPL_CARRIER_TABLE, "   
lv_no_connection  TYPE TRPL_CARRIER_TABLE, "   
lv_no_pnr_found  TYPE TRPL_CARRIER_TABLE, "   
lt_t_real_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lv_rfc_errors  TYPE FTPT_FLIGHT, "   
lt_t_booked_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lv_general_api_error  TYPE FTPT_FLIGHT, "   
lt_t_prof_flight_prov  TYPE STANDARD TABLE OF PROFL_FLIGHT_PROVIDERSTAB, "   
lv_application_api__error  TYPE PROFL_FLIGHT_PROVIDERSTAB. "   

  CALL FUNCTION 'FITP_ENC_FLIGHT_COPY2'  "
    EXPORTING
         VARIANT = lv_variant
         PROFILE_NAME = lv_profile_name
         ACTIVITY_TYPE = lv_activity_type
         TRANSACTION_MODE = lv_transaction_mode
    TABLES
         T_ITEM = lt_t_item
         T_PROFILE_ENTRIES = lt_t_profile_entries
         T_TEXT_TO = lt_t_text_to
         T_TEXT_BACK = lt_t_text_back
         T_RT_CXR = lt_t_rt_cxr
         T_REAL_FLIGHT = lt_t_real_flight
         T_BOOKED_FLIGHT = lt_t_booked_flight
         T_PROF_FLIGHT_PROV = lt_t_prof_flight_prov
    EXCEPTIONS
        NO_FLIGHT_AVAILABLE = 1
        NO_RESERVATION = 2
        NO_DESTINATION_FOUND = 3
        NO_VALID_VARIANT = 4
        NO_CONNECTION = 5
        NO_PNR_FOUND = 6
        RFC_ERRORS = 7
        GENERAL_API_ERROR = 8
        APPLICATION_API__ERROR = 9
. " FITP_ENC_FLIGHT_COPY2




ABAP code using 7.40 inline data declarations to call FM FITP_ENC_FLIGHT_COPY2

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 PROFILE FROM TA20P INTO @DATA(ld_profile_name).
 
 
 
 
"SELECT single KZTKT FROM TA20PPI INTO @DATA(ld_activity_type).
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!