SAP TP_1A_ENC_FLIGHT_LF_INIT Function Module for









TP_1A_ENC_FLIGHT_LF_INIT is a standard tp 1a enc flight lf 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 tp 1a enc flight lf init FM, simply by entering the name TP_1A_ENC_FLIGHT_LF_INIT into the relevant SAP transaction such as SE37 or SE38.

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



Function TP_1A_ENC_FLIGHT_LF_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 'TP_1A_ENC_FLIGHT_LF_INIT'"
EXPORTING
VP_VARIANT = "Plan Variant Number (Sequential Number)
VP_VARIANTVRS = "Version of travel plan
VP_PROCESS = "
* VP_CURRENCY = "Currency Key
* SW_PORTAL = "Single-Character Indicator

IMPORTING
VP_RETURN = "
T_RETURN = "Table with BAPI Return Information
LF_OPTIONS = "

TABLES
ITEM = "Travel Service Request Item
* OPTION_VP = "
FLIGHT = "Travel Request Item - Flight Service
FLIGHT_TST = "Ticket information
REC_LIST = "
ITEM_RECTAB = "
FLIGHT_RECTAB = "
FLIGHT_LEG_RECTAB = "
CXRRBD_TAB = "
PENALTY_TAB = "

EXCEPTIONS
NO_PROPOSAL = 1 NO_DESTINATION_FOUND = 10 NO_ENTRY_IN_TABLE = 11 OVERLAPPING_FLIGHTS = 12 CONNECTION_ERROR = 2 NO_AUTHORISATION = 3 ITINERARY_ERROR = 4 DATE_TIME_ERROR = 5 PROCESS_ERROR = 6 TIME_IS_MANDATORY = 7 ERROR_FEATURE = 8 NO_VALID_VARIANT = 9
.



IMPORTING Parameters details for TP_1A_ENC_FLIGHT_LF_INIT

VP_VARIANT - Plan Variant Number (Sequential Number)

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

VP_VARIANTVRS - Version of travel plan

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

VP_PROCESS -

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

VP_CURRENCY - Currency Key

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

SW_PORTAL - Single-Character Indicator

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

EXPORTING Parameters details for TP_1A_ENC_FLIGHT_LF_INIT

VP_RETURN -

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

T_RETURN - Table with BAPI Return Information

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

LF_OPTIONS -

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

TABLES Parameters details for TP_1A_ENC_FLIGHT_LF_INIT

ITEM - Travel Service Request Item

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

OPTION_VP -

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

FLIGHT - Travel Request Item - Flight Service

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

FLIGHT_TST - Ticket information

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

REC_LIST -

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

ITEM_RECTAB -

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

FLIGHT_RECTAB -

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

FLIGHT_LEG_RECTAB -

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

CXRRBD_TAB -

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

PENALTY_TAB -

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

EXCEPTIONS details

NO_PROPOSAL -

Data type:
Optional: No
Call by Reference: Yes

NO_DESTINATION_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_ENTRY_IN_TABLE -

Data type:
Optional: No
Call by Reference: Yes

OVERLAPPING_FLIGHTS -

Data type:
Optional: No
Call by Reference: Yes

CONNECTION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORISATION -

Data type:
Optional: No
Call by Reference: Yes

ITINERARY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DATE_TIME_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PROCESS_ERROR -

Data type:
Optional: No
Call by Reference: Yes

TIME_IS_MANDATORY -

Data type:
Optional: No
Call by Reference: Yes

ERROR_FEATURE -

Data type:
Optional: No
Call by Reference: Yes

NO_VALID_VARIANT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TP_1A_ENC_FLIGHT_LF_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_item  TYPE STANDARD TABLE OF FTPT_ITEM, "   
lv_vp_return  TYPE I, "   
lv_vp_variant  TYPE FTPT_VARIANT-VARIANT, "   
lv_no_proposal  TYPE FTPT_VARIANT, "   
lt_option_vp  TYPE STANDARD TABLE OF TRPL_LFS_OPTION_TAB, "   
lv_no_destination_found  TYPE TRPL_LFS_OPTION_TAB, "   
lv_no_entry_in_table  TYPE TRPL_LFS_OPTION_TAB, "   
lv_overlapping_flights  TYPE TRPL_LFS_OPTION_TAB, "   
lt_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT, "   
lv_t_return  TYPE BAPIRETTAB, "   
lv_vp_variantvrs  TYPE FTPT_VARIANT-VARIANTVRS, "   
lv_connection_error  TYPE FTPT_VARIANT, "   
lt_flight_tst  TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK, "   
lv_lf_options  TYPE FTPS_FLIGHT_LF_OPTIONS, "   
lv_vp_process  TYPE C, "   
lv_no_authorisation  TYPE C, "   
lt_rec_list  TYPE STANDARD TABLE OF TRPL_REC_LIST, "   
lv_vp_currency  TYPE PTRV_PERIO-WAERS, "   
lv_itinerary_error  TYPE PTRV_PERIO, "   
lv_sw_portal  TYPE CHAR1, "   
lt_item_rectab  TYPE STANDARD TABLE OF TRPL_ITEM_RECTAB, "   
lv_date_time_error  TYPE TRPL_ITEM_RECTAB, "   
lt_flight_rectab  TYPE STANDARD TABLE OF TRPL_FLIGHT_RECTAB, "   
lv_process_error  TYPE TRPL_FLIGHT_RECTAB, "   
lt_flight_leg_rectab  TYPE STANDARD TABLE OF TRPL_FLIGHT_LEG_RECTAB, "   
lv_time_is_mandatory  TYPE TRPL_FLIGHT_LEG_RECTAB, "   
lt_cxrrbd_tab  TYPE STANDARD TABLE OF TRPL_CXRRBD_TAB, "   
lv_error_feature  TYPE TRPL_CXRRBD_TAB, "   
lt_penalty_tab  TYPE STANDARD TABLE OF TRPL_PENALTY_TAB, "   
lv_no_valid_variant  TYPE TRPL_PENALTY_TAB. "   

  CALL FUNCTION 'TP_1A_ENC_FLIGHT_LF_INIT'  "
    EXPORTING
         VP_VARIANT = lv_vp_variant
         VP_VARIANTVRS = lv_vp_variantvrs
         VP_PROCESS = lv_vp_process
         VP_CURRENCY = lv_vp_currency
         SW_PORTAL = lv_sw_portal
    IMPORTING
         VP_RETURN = lv_vp_return
         T_RETURN = lv_t_return
         LF_OPTIONS = lv_lf_options
    TABLES
         ITEM = lt_item
         OPTION_VP = lt_option_vp
         FLIGHT = lt_flight
         FLIGHT_TST = lt_flight_tst
         REC_LIST = lt_rec_list
         ITEM_RECTAB = lt_item_rectab
         FLIGHT_RECTAB = lt_flight_rectab
         FLIGHT_LEG_RECTAB = lt_flight_leg_rectab
         CXRRBD_TAB = lt_cxrrbd_tab
         PENALTY_TAB = lt_penalty_tab
    EXCEPTIONS
        NO_PROPOSAL = 1
        NO_DESTINATION_FOUND = 10
        NO_ENTRY_IN_TABLE = 11
        OVERLAPPING_FLIGHTS = 12
        CONNECTION_ERROR = 2
        NO_AUTHORISATION = 3
        ITINERARY_ERROR = 4
        DATE_TIME_ERROR = 5
        PROCESS_ERROR = 6
        TIME_IS_MANDATORY = 7
        ERROR_FEATURE = 8
        NO_VALID_VARIANT = 9
. " TP_1A_ENC_FLIGHT_LF_INIT




ABAP code using 7.40 inline data declarations to call FM TP_1A_ENC_FLIGHT_LF_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 VARIANT FROM FTPT_VARIANT INTO @DATA(ld_vp_variant).
 
 
 
 
 
 
 
 
"SELECT single VARIANTVRS FROM FTPT_VARIANT INTO @DATA(ld_vp_variantvrs).
 
 
 
 
 
 
 
"SELECT single WAERS FROM PTRV_PERIO INTO @DATA(ld_vp_currency).
 
 
 
 
 
 
 
 
 
 
 
 
 


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!