SAP Function Modules

FITV_RD_EXPORT_PTC SAP Function module - Update Table







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

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


Pattern for FM FITV_RD_EXPORT_PTC - FITV RD EXPORT PTC





CALL FUNCTION 'FITV_RD_EXPORT_PTC' "Update Table
* EXPORTING
*   i_simulation = SPACE        " xfeld
  TABLES
    trip_aus_akt_reise =        " ptrv_trip_chain  Table of all Trip Destinations f. Processing Recurring Dest.
*   et_trip_chain_rerol =       " ptrv_trip_chain
*   et_trip_chain =             " ptrv_trip_chain
*   konti =                     " ptk17
*   kostr =                     " ptk14
*   kostz =                     " ptk16
*   ziel =                      " ptk05
    .  "  FITV_RD_EXPORT_PTC

ABAP code example for Function Module FITV_RD_EXPORT_PTC





The ABAP code below is a full code listing to execute function module FITV_RD_EXPORT_PTC 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_trip_aus_akt_reise  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN,"TABLES PARAM
wa_trip_aus_akt_reise  LIKE LINE OF it_trip_aus_akt_reise ,
it_et_trip_chain_rerol  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN,"TABLES PARAM
wa_et_trip_chain_rerol  LIKE LINE OF it_et_trip_chain_rerol ,
it_et_trip_chain  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN,"TABLES PARAM
wa_et_trip_chain  LIKE LINE OF it_et_trip_chain ,
it_konti  TYPE STANDARD TABLE OF PTK17,"TABLES PARAM
wa_konti  LIKE LINE OF it_konti ,
it_kostr  TYPE STANDARD TABLE OF PTK14,"TABLES PARAM
wa_kostr  LIKE LINE OF it_kostr ,
it_kostz  TYPE STANDARD TABLE OF PTK16,"TABLES PARAM
wa_kostz  LIKE LINE OF it_kostz ,
it_ziel  TYPE STANDARD TABLE OF PTK05,"TABLES PARAM
wa_ziel  LIKE LINE OF it_ziel .

DATA(ld_i_simulation) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_trip_aus_akt_reise to it_trip_aus_akt_reise.

"populate fields of struture and append to itab
append wa_et_trip_chain_rerol to it_et_trip_chain_rerol.

"populate fields of struture and append to itab
append wa_et_trip_chain to it_et_trip_chain.

"populate fields of struture and append to itab
append wa_konti to it_konti.

"populate fields of struture and append to itab
append wa_kostr to it_kostr.

"populate fields of struture and append to itab
append wa_kostz to it_kostz.

"populate fields of struture and append to itab
append wa_ziel to it_ziel. . CALL FUNCTION 'FITV_RD_EXPORT_PTC' * EXPORTING * i_simulation = ld_i_simulation TABLES trip_aus_akt_reise = it_trip_aus_akt_reise * et_trip_chain_rerol = it_et_trip_chain_rerol * et_trip_chain = it_et_trip_chain * konti = it_konti * kostr = it_kostr * kostz = it_kostz * ziel = it_ziel . " FITV_RD_EXPORT_PTC
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_i_simulation  TYPE XFELD ,
it_trip_aus_akt_reise  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN ,
wa_trip_aus_akt_reise  LIKE LINE OF it_trip_aus_akt_reise,
it_et_trip_chain_rerol  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN ,
wa_et_trip_chain_rerol  LIKE LINE OF it_et_trip_chain_rerol,
it_et_trip_chain  TYPE STANDARD TABLE OF PTRV_TRIP_CHAIN ,
wa_et_trip_chain  LIKE LINE OF it_et_trip_chain,
it_konti  TYPE STANDARD TABLE OF PTK17 ,
wa_konti  LIKE LINE OF it_konti,
it_kostr  TYPE STANDARD TABLE OF PTK14 ,
wa_kostr  LIKE LINE OF it_kostr,
it_kostz  TYPE STANDARD TABLE OF PTK16 ,
wa_kostz  LIKE LINE OF it_kostz,
it_ziel  TYPE STANDARD TABLE OF PTK05 ,
wa_ziel  LIKE LINE OF it_ziel.

ld_i_simulation = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_trip_aus_akt_reise to it_trip_aus_akt_reise.

"populate fields of struture and append to itab
append wa_et_trip_chain_rerol to it_et_trip_chain_rerol.

"populate fields of struture and append to itab
append wa_et_trip_chain to it_et_trip_chain.

"populate fields of struture and append to itab
append wa_konti to it_konti.

"populate fields of struture and append to itab
append wa_kostr to it_kostr.

"populate fields of struture and append to itab
append wa_kostz to it_kostz.

"populate fields of struture and append to itab
append wa_ziel to it_ziel.

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