SAP Function Modules

FVD_KOKO_CHANGES_GET SAP Function module - Read VZZKOKO Change History for a Loan







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

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


Pattern for FM FVD_KOKO_CHANGES_GET - FVD KOKO CHANGES GET





CALL FUNCTION 'FVD_KOKO_CHANGES_GET' "Read VZZKOKO Change History for a Loan
  EXPORTING
    i_wrk_vdarl =               " vdarl         Loan
    i_date =                    " dats          Datum zum dem der historische Stand ermittelt wird
*   i_time =                    " tims          Uhrzeit zur der selektiert wird
*   i_tab_cdhdr =               " cdhdr_tab     Internal Table CDHDR
*   i_flg_timefields =          " xfeld         Checkbox
*   i_sort_descending = 'X'     " xfeld         X = neueste KOKO ist in die 1. Zeil
  IMPORTING
    e_tab_vzzkoko_all =         " trty_rvzzkoko_cd  Änderungsbelege für VZZKOKO (neuester in der 1. Zeile)
  EXCEPTIONS
    ERROR_FOUND = 1             "               interne fehler
    NO_KOKOS_FOUND = 2          "               Kein KOKO gefunden
    .  "  FVD_KOKO_CHANGES_GET

ABAP code example for Function Module FVD_KOKO_CHANGES_GET





The ABAP code below is a full code listing to execute function module FVD_KOKO_CHANGES_GET 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_e_tab_vzzkoko_all  TYPE TRTY_RVZZKOKO_CD .

DATA(ld_i_wrk_vdarl) = 'Check type of data required'.
DATA(ld_i_date) = 'Check type of data required'.
DATA(ld_i_time) = 'Check type of data required'.
DATA(ld_i_tab_cdhdr) = 'Check type of data required'.
DATA(ld_i_flg_timefields) = 'Check type of data required'.
DATA(ld_i_sort_descending) = 'Check type of data required'. . CALL FUNCTION 'FVD_KOKO_CHANGES_GET' EXPORTING i_wrk_vdarl = ld_i_wrk_vdarl i_date = ld_i_date * i_time = ld_i_time * i_tab_cdhdr = ld_i_tab_cdhdr * i_flg_timefields = ld_i_flg_timefields * i_sort_descending = ld_i_sort_descending IMPORTING e_tab_vzzkoko_all = ld_e_tab_vzzkoko_all EXCEPTIONS ERROR_FOUND = 1 NO_KOKOS_FOUND = 2 . " FVD_KOKO_CHANGES_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_e_tab_vzzkoko_all  TYPE TRTY_RVZZKOKO_CD ,
ld_i_wrk_vdarl  TYPE VDARL ,
ld_i_date  TYPE DATS ,
ld_i_time  TYPE TIMS ,
ld_i_tab_cdhdr  TYPE CDHDR_TAB ,
ld_i_flg_timefields  TYPE XFELD ,
ld_i_sort_descending  TYPE XFELD .

ld_i_wrk_vdarl = 'Check type of data required'.
ld_i_date = 'Check type of data required'.
ld_i_time = 'Check type of data required'.
ld_i_tab_cdhdr = 'Check type of data required'.
ld_i_flg_timefields = 'Check type of data required'.
ld_i_sort_descending = '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 FVD_KOKO_CHANGES_GET or its description.