SAP Function Modules

FITP_ITINERARY_TRIP_HTML SAP Function module - Display Travel Plan (HTML)







FITP_ITINERARY_TRIP_HTML is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FITP_ITINERARY_TRIP_HTML into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FITP_ITINERARY
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FITP_ITINERARY_TRIP_HTML - FITP ITINERARY TRIP HTML





CALL FUNCTION 'FITP_ITINERARY_TRIP_HTML' "Display Travel Plan (HTML)
  EXPORTING
    pernr =                     " ftpt_plan-pernr
    reinr =                     " ftpt_plan-reinr
    plannr = '01'               " ftpt_plan-plannr
*   variant_nr =                " ftpt_variant-variant
*   variantvrs =                " ftpt_variant-variantvrs
    plan_request =              " char1         Indicator: Plan/Request
*   req_head =                  " ftpt_req_head  Framework Data of Travel Request
*   all_actual_variants = ' '   " char1
*   no_dynpro =                 " char1
*   parent =                    " cl_gui_container
*   html_viewer =               " cl_gui_html_viewer
*   dialog =                    " char1         Indicator whether the function model is called from within the dialog
*   docking_control =           " char1         Indicator for displaying in a docking container
*   print =                     " char1         Print or Display
*   reuse_control =             " sdydo_flag    HTML Control Reused
* TABLES
*   variant =                   " ftpt_variant
*   fare_comp =                 " ftpt_fare_comp
*   flight_tst =                " ftpt_flight_tstk
*   item =                      " ftpt_item
*   flight =                    " ftpt_flight
*   flight_leg =                " ftpt_flight_leg
*   flight_pref =               " ftpt_flight_pref
*   flight_fare =               " ftpt_flight_fcmp  Assignment table: flights <-> rate components
*   fare_note =                 " ftpt_fare_note
*   hotel =                     " ftpt_hotel
*   hotel_pref =                " ftpt_hotel_pref
*   car =                       " ftpt_car
*   car_pref =                  " ftpt_car_pref
*   train =                     " ftpt_train
*   train_pref =                " ftpt_train_pref
*   pnr_name =                  " ftpt_pnr_name
*   plan =                      " ftpt_plan
*   pnr_address =               " ftpt_pnr_address
*   var_info =                  " ftpt_var_info
*   request =                   " ftpt_request  Travel Plan Requests
*   req_advance =               " ftpt_req_advance  Travel Request Advance
*   req_reason =                " ftpt_req_reason  Reason for Travel Request
*   req_account =               " ftpt_req_account  Travel Request Cost Assignment
*   e_html_table =              " w3html        Generated HTML code of the dynamic document
    .  "  FITP_ITINERARY_TRIP_HTML

ABAP code example for Function Module FITP_ITINERARY_TRIP_HTML





The ABAP code below is a full code listing to execute function module FITP_ITINERARY_TRIP_HTML including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_variant  TYPE STANDARD TABLE OF FTPT_VARIANT,"TABLES PARAM
wa_variant  LIKE LINE OF it_variant ,
it_fare_comp  TYPE STANDARD TABLE OF FTPT_FARE_COMP,"TABLES PARAM
wa_fare_comp  LIKE LINE OF it_fare_comp ,
it_flight_tst  TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK,"TABLES PARAM
wa_flight_tst  LIKE LINE OF it_flight_tst ,
it_item  TYPE STANDARD TABLE OF FTPT_ITEM,"TABLES PARAM
wa_item  LIKE LINE OF it_item ,
it_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT,"TABLES PARAM
wa_flight  LIKE LINE OF it_flight ,
it_flight_leg  TYPE STANDARD TABLE OF FTPT_FLIGHT_LEG,"TABLES PARAM
wa_flight_leg  LIKE LINE OF it_flight_leg ,
it_flight_pref  TYPE STANDARD TABLE OF FTPT_FLIGHT_PREF,"TABLES PARAM
wa_flight_pref  LIKE LINE OF it_flight_pref ,
it_flight_fare  TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP,"TABLES PARAM
wa_flight_fare  LIKE LINE OF it_flight_fare ,
it_fare_note  TYPE STANDARD TABLE OF FTPT_FARE_NOTE,"TABLES PARAM
wa_fare_note  LIKE LINE OF it_fare_note ,
it_hotel  TYPE STANDARD TABLE OF FTPT_HOTEL,"TABLES PARAM
wa_hotel  LIKE LINE OF it_hotel ,
it_hotel_pref  TYPE STANDARD TABLE OF FTPT_HOTEL_PREF,"TABLES PARAM
wa_hotel_pref  LIKE LINE OF it_hotel_pref ,
it_car  TYPE STANDARD TABLE OF FTPT_CAR,"TABLES PARAM
wa_car  LIKE LINE OF it_car ,
it_car_pref  TYPE STANDARD TABLE OF FTPT_CAR_PREF,"TABLES PARAM
wa_car_pref  LIKE LINE OF it_car_pref ,
it_train  TYPE STANDARD TABLE OF FTPT_TRAIN,"TABLES PARAM
wa_train  LIKE LINE OF it_train ,
it_train_pref  TYPE STANDARD TABLE OF FTPT_TRAIN_PREF,"TABLES PARAM
wa_train_pref  LIKE LINE OF it_train_pref ,
it_pnr_name  TYPE STANDARD TABLE OF FTPT_PNR_NAME,"TABLES PARAM
wa_pnr_name  LIKE LINE OF it_pnr_name ,
it_plan  TYPE STANDARD TABLE OF FTPT_PLAN,"TABLES PARAM
wa_plan  LIKE LINE OF it_plan ,
it_pnr_address  TYPE STANDARD TABLE OF FTPT_PNR_ADDRESS,"TABLES PARAM
wa_pnr_address  LIKE LINE OF it_pnr_address ,
it_var_info  TYPE STANDARD TABLE OF FTPT_VAR_INFO,"TABLES PARAM
wa_var_info  LIKE LINE OF it_var_info ,
it_request  TYPE STANDARD TABLE OF FTPT_REQUEST,"TABLES PARAM
wa_request  LIKE LINE OF it_request ,
it_req_advance  TYPE STANDARD TABLE OF FTPT_REQ_ADVANCE,"TABLES PARAM
wa_req_advance  LIKE LINE OF it_req_advance ,
it_req_reason  TYPE STANDARD TABLE OF FTPT_REQ_REASON,"TABLES PARAM
wa_req_reason  LIKE LINE OF it_req_reason ,
it_req_account  TYPE STANDARD TABLE OF FTPT_REQ_ACCOUNT,"TABLES PARAM
wa_req_account  LIKE LINE OF it_req_account ,
it_e_html_table  TYPE STANDARD TABLE OF W3HTML,"TABLES PARAM
wa_e_html_table  LIKE LINE OF it_e_html_table .


SELECT single PERNR
FROM FTPT_PLAN
INTO @DATA(ld_pernr).


SELECT single REINR
FROM FTPT_PLAN
INTO @DATA(ld_reinr).


SELECT single PLANNR
FROM FTPT_PLAN
INTO @DATA(ld_plannr).


SELECT single VARIANT
FROM FTPT_VARIANT
INTO @DATA(ld_variant_nr).


SELECT single VARIANTVRS
FROM FTPT_VARIANT
INTO @DATA(ld_variantvrs).

DATA(ld_plan_request) = 'Check type of data required'.
DATA(ld_req_head) = 'Check type of data required'.
DATA(ld_all_actual_variants) = 'Check type of data required'.
DATA(ld_no_dynpro) = 'Check type of data required'.
DATA(ld_parent) = 'Check type of data required'.
DATA(ld_html_viewer) = 'Check type of data required'.
DATA(ld_dialog) = 'Check type of data required'.
DATA(ld_docking_control) = 'Check type of data required'.
DATA(ld_print) = 'Check type of data required'.
DATA(ld_reuse_control) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_variant to it_variant.

"populate fields of struture and append to itab
append wa_fare_comp to it_fare_comp.

"populate fields of struture and append to itab
append wa_flight_tst to it_flight_tst.

"populate fields of struture and append to itab
append wa_item to it_item.

"populate fields of struture and append to itab
append wa_flight to it_flight.

"populate fields of struture and append to itab
append wa_flight_leg to it_flight_leg.

"populate fields of struture and append to itab
append wa_flight_pref to it_flight_pref.

"populate fields of struture and append to itab
append wa_flight_fare to it_flight_fare.

"populate fields of struture and append to itab
append wa_fare_note to it_fare_note.

"populate fields of struture and append to itab
append wa_hotel to it_hotel.

"populate fields of struture and append to itab
append wa_hotel_pref to it_hotel_pref.

"populate fields of struture and append to itab
append wa_car to it_car.

"populate fields of struture and append to itab
append wa_car_pref to it_car_pref.

"populate fields of struture and append to itab
append wa_train to it_train.

"populate fields of struture and append to itab
append wa_train_pref to it_train_pref.

"populate fields of struture and append to itab
append wa_pnr_name to it_pnr_name.

"populate fields of struture and append to itab
append wa_plan to it_plan.

"populate fields of struture and append to itab
append wa_pnr_address to it_pnr_address.

"populate fields of struture and append to itab
append wa_var_info to it_var_info.

"populate fields of struture and append to itab
append wa_request to it_request.

"populate fields of struture and append to itab
append wa_req_advance to it_req_advance.

"populate fields of struture and append to itab
append wa_req_reason to it_req_reason.

"populate fields of struture and append to itab
append wa_req_account to it_req_account.

"populate fields of struture and append to itab
append wa_e_html_table to it_e_html_table. . CALL FUNCTION 'FITP_ITINERARY_TRIP_HTML' EXPORTING pernr = ld_pernr reinr = ld_reinr plannr = ld_plannr * variant_nr = ld_variant_nr * variantvrs = ld_variantvrs plan_request = ld_plan_request * req_head = ld_req_head * all_actual_variants = ld_all_actual_variants * no_dynpro = ld_no_dynpro * parent = ld_parent * html_viewer = ld_html_viewer * dialog = ld_dialog * docking_control = ld_docking_control * print = ld_print * reuse_control = ld_reuse_control * TABLES * variant = it_variant * fare_comp = it_fare_comp * flight_tst = it_flight_tst * item = it_item * flight = it_flight * flight_leg = it_flight_leg * flight_pref = it_flight_pref * flight_fare = it_flight_fare * fare_note = it_fare_note * hotel = it_hotel * hotel_pref = it_hotel_pref * car = it_car * car_pref = it_car_pref * train = it_train * train_pref = it_train_pref * pnr_name = it_pnr_name * plan = it_plan * pnr_address = it_pnr_address * var_info = it_var_info * request = it_request * req_advance = it_req_advance * req_reason = it_req_reason * req_account = it_req_account * e_html_table = it_e_html_table . " FITP_ITINERARY_TRIP_HTML
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pernr  TYPE FTPT_PLAN-PERNR ,
it_variant  TYPE STANDARD TABLE OF FTPT_VARIANT ,
wa_variant  LIKE LINE OF it_variant,
ld_reinr  TYPE FTPT_PLAN-REINR ,
it_fare_comp  TYPE STANDARD TABLE OF FTPT_FARE_COMP ,
wa_fare_comp  LIKE LINE OF it_fare_comp,
ld_plannr  TYPE FTPT_PLAN-PLANNR ,
it_flight_tst  TYPE STANDARD TABLE OF FTPT_FLIGHT_TSTK ,
wa_flight_tst  LIKE LINE OF it_flight_tst,
ld_variant_nr  TYPE FTPT_VARIANT-VARIANT ,
it_item  TYPE STANDARD TABLE OF FTPT_ITEM ,
wa_item  LIKE LINE OF it_item,
it_flight  TYPE STANDARD TABLE OF FTPT_FLIGHT ,
wa_flight  LIKE LINE OF it_flight,
ld_variantvrs  TYPE FTPT_VARIANT-VARIANTVRS ,
it_flight_leg  TYPE STANDARD TABLE OF FTPT_FLIGHT_LEG ,
wa_flight_leg  LIKE LINE OF it_flight_leg,
ld_plan_request  TYPE CHAR1 ,
it_flight_pref  TYPE STANDARD TABLE OF FTPT_FLIGHT_PREF ,
wa_flight_pref  LIKE LINE OF it_flight_pref,
ld_req_head  TYPE FTPT_REQ_HEAD ,
it_flight_fare  TYPE STANDARD TABLE OF FTPT_FLIGHT_FCMP ,
wa_flight_fare  LIKE LINE OF it_flight_fare,
ld_all_actual_variants  TYPE CHAR1 ,
it_fare_note  TYPE STANDARD TABLE OF FTPT_FARE_NOTE ,
wa_fare_note  LIKE LINE OF it_fare_note,
ld_no_dynpro  TYPE CHAR1 ,
ld_parent  TYPE CL_GUI_CONTAINER ,
it_hotel  TYPE STANDARD TABLE OF FTPT_HOTEL ,
wa_hotel  LIKE LINE OF it_hotel,
it_hotel_pref  TYPE STANDARD TABLE OF FTPT_HOTEL_PREF ,
wa_hotel_pref  LIKE LINE OF it_hotel_pref,
ld_html_viewer  TYPE CL_GUI_HTML_VIEWER ,
it_car  TYPE STANDARD TABLE OF FTPT_CAR ,
wa_car  LIKE LINE OF it_car,
ld_dialog  TYPE CHAR1 ,
it_car_pref  TYPE STANDARD TABLE OF FTPT_CAR_PREF ,
wa_car_pref  LIKE LINE OF it_car_pref,
ld_docking_control  TYPE CHAR1 ,
ld_print  TYPE CHAR1 ,
it_train  TYPE STANDARD TABLE OF FTPT_TRAIN ,
wa_train  LIKE LINE OF it_train,
ld_reuse_control  TYPE SDYDO_FLAG ,
it_train_pref  TYPE STANDARD TABLE OF FTPT_TRAIN_PREF ,
wa_train_pref  LIKE LINE OF it_train_pref,
it_pnr_name  TYPE STANDARD TABLE OF FTPT_PNR_NAME ,
wa_pnr_name  LIKE LINE OF it_pnr_name,
it_plan  TYPE STANDARD TABLE OF FTPT_PLAN ,
wa_plan  LIKE LINE OF it_plan,
it_pnr_address  TYPE STANDARD TABLE OF FTPT_PNR_ADDRESS ,
wa_pnr_address  LIKE LINE OF it_pnr_address,
it_var_info  TYPE STANDARD TABLE OF FTPT_VAR_INFO ,
wa_var_info  LIKE LINE OF it_var_info,
it_request  TYPE STANDARD TABLE OF FTPT_REQUEST ,
wa_request  LIKE LINE OF it_request,
it_req_advance  TYPE STANDARD TABLE OF FTPT_REQ_ADVANCE ,
wa_req_advance  LIKE LINE OF it_req_advance,
it_req_reason  TYPE STANDARD TABLE OF FTPT_REQ_REASON ,
wa_req_reason  LIKE LINE OF it_req_reason,
it_req_account  TYPE STANDARD TABLE OF FTPT_REQ_ACCOUNT ,
wa_req_account  LIKE LINE OF it_req_account,
it_e_html_table  TYPE STANDARD TABLE OF W3HTML ,
wa_e_html_table  LIKE LINE OF it_e_html_table.


SELECT single PERNR
FROM FTPT_PLAN
INTO ld_pernr.


"populate fields of struture and append to itab
append wa_variant to it_variant.

SELECT single REINR
FROM FTPT_PLAN
INTO ld_reinr.


"populate fields of struture and append to itab
append wa_fare_comp to it_fare_comp.

SELECT single PLANNR
FROM FTPT_PLAN
INTO ld_plannr.


"populate fields of struture and append to itab
append wa_flight_tst to it_flight_tst.

SELECT single VARIANT
FROM FTPT_VARIANT
INTO ld_variant_nr.


"populate fields of struture and append to itab
append wa_item to it_item.

"populate fields of struture and append to itab
append wa_flight to it_flight.

SELECT single VARIANTVRS
FROM FTPT_VARIANT
INTO ld_variantvrs.


"populate fields of struture and append to itab
append wa_flight_leg to it_flight_leg.
ld_plan_request = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_flight_pref to it_flight_pref.
ld_req_head = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_flight_fare to it_flight_fare.
ld_all_actual_variants = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_fare_note to it_fare_note.
ld_no_dynpro = 'Check type of data required'.
ld_parent = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_hotel to it_hotel.

"populate fields of struture and append to itab
append wa_hotel_pref to it_hotel_pref.
ld_html_viewer = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_car to it_car.
ld_dialog = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_car_pref to it_car_pref.
ld_docking_control = 'Check type of data required'.
ld_print = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_train to it_train.
ld_reuse_control = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_train_pref to it_train_pref.

"populate fields of struture and append to itab
append wa_pnr_name to it_pnr_name.

"populate fields of struture and append to itab
append wa_plan to it_plan.

"populate fields of struture and append to itab
append wa_pnr_address to it_pnr_address.

"populate fields of struture and append to itab
append wa_var_info to it_var_info.

"populate fields of struture and append to itab
append wa_request to it_request.

"populate fields of struture and append to itab
append wa_req_advance to it_req_advance.

"populate fields of struture and append to itab
append wa_req_reason to it_req_reason.

"populate fields of struture and append to itab
append wa_req_account to it_req_account.

"populate fields of struture and append to itab
append wa_e_html_table to it_e_html_table.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FITP_ITINERARY_TRIP_HTML or its description.