SAP Function Modules

FDT_DEMO_FLIGHT_SET2 SAP Function module







FDT_DEMO_FLIGHT_SET2 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 FDT_DEMO_FLIGHT_SET2 into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FDT_DEMO_FLIGHT_SET2 - FDT DEMO FLIGHT SET2





CALL FUNCTION 'FDT_DEMO_FLIGHT_SET2' "
* EXPORTING
*   iv_carrid =                 " s_carr_id
*   iv_connid =                 " s_conn_id
*   iv_fldate =                 " s_date
*   iv_bookid =                 " s_book_id
*   iv_index =                  " int1
*   is_sflight =                " sflight
*   is_sbook =                  " sbook
    .  "  FDT_DEMO_FLIGHT_SET2

ABAP code example for Function Module FDT_DEMO_FLIGHT_SET2





The ABAP code below is a full code listing to execute function module FDT_DEMO_FLIGHT_SET2 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(ld_iv_carrid) = 'Check type of data required'.
DATA(ld_iv_connid) = 'Check type of data required'.
DATA(ld_iv_fldate) = 'Check type of data required'.
DATA(ld_iv_bookid) = 'Check type of data required'.
DATA(ld_iv_index) = 'Check type of data required'.
DATA(ld_is_sflight) = 'Check type of data required'.
DATA(ld_is_sbook) = 'Check type of data required'. . CALL FUNCTION 'FDT_DEMO_FLIGHT_SET2' * EXPORTING * iv_carrid = ld_iv_carrid * iv_connid = ld_iv_connid * iv_fldate = ld_iv_fldate * iv_bookid = ld_iv_bookid * iv_index = ld_iv_index * is_sflight = ld_is_sflight * is_sbook = ld_is_sbook . " FDT_DEMO_FLIGHT_SET2
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_iv_carrid  TYPE S_CARR_ID ,
ld_iv_connid  TYPE S_CONN_ID ,
ld_iv_fldate  TYPE S_DATE ,
ld_iv_bookid  TYPE S_BOOK_ID ,
ld_iv_index  TYPE INT1 ,
ld_is_sflight  TYPE SFLIGHT ,
ld_is_sbook  TYPE SBOOK .

ld_iv_carrid = 'Check type of data required'.
ld_iv_connid = 'Check type of data required'.
ld_iv_fldate = 'Check type of data required'.
ld_iv_bookid = 'Check type of data required'.
ld_iv_index = 'Check type of data required'.
ld_is_sflight = 'Check type of data required'.
ld_is_sbook = 'Check type of data required'.

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 FDT_DEMO_FLIGHT_SET2 or its description.