SAP Function Modules

FVZK_SAVE_VZZKOPO SAP Function module







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

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


Pattern for FM FVZK_SAVE_VZZKOPO - FVZK SAVE VZZKOPO





CALL FUNCTION 'FVZK_SAVE_VZZKOPO' "
* EXPORTING
*   default_values = SPACE      "
*   dguel_kk = SPACE            " vzzkopo-dguel_kk
*   ohne_verbucher = SPACE      "
*   rkey1 = SPACE               " vzzkopo-rkey1
*   rkey2 = SPACE               " vzzkopo-rkey2
*   rkey3 = SPACE               " vzzkopo-rkey3
  IMPORTING
    e_result =                  "
  TABLES
    x_vzzkopo =                 "
    y_vzzkopo =                 "
  EXCEPTIONS
    NAMETAB_ERROR = 1           "
    UPDATE_ERROR = 2            "
    .  "  FVZK_SAVE_VZZKOPO

ABAP code example for Function Module FVZK_SAVE_VZZKOPO





The ABAP code below is a full code listing to execute function module FVZK_SAVE_VZZKOPO 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_result  TYPE STRING ,
it_x_vzzkopo  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_x_vzzkopo  LIKE LINE OF it_x_vzzkopo ,
it_y_vzzkopo  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_y_vzzkopo  LIKE LINE OF it_y_vzzkopo .

DATA(ld_default_values) = 'some text here'.

SELECT single DGUEL_KK
FROM VZZKOPO
INTO @DATA(ld_dguel_kk).

DATA(ld_ohne_verbucher) = 'some text here'.

SELECT single RKEY1
FROM VZZKOPO
INTO @DATA(ld_rkey1).


SELECT single RKEY2
FROM VZZKOPO
INTO @DATA(ld_rkey2).


SELECT single RKEY3
FROM VZZKOPO
INTO @DATA(ld_rkey3).


"populate fields of struture and append to itab
append wa_x_vzzkopo to it_x_vzzkopo.

"populate fields of struture and append to itab
append wa_y_vzzkopo to it_y_vzzkopo. . CALL FUNCTION 'FVZK_SAVE_VZZKOPO' * EXPORTING * default_values = ld_default_values * dguel_kk = ld_dguel_kk * ohne_verbucher = ld_ohne_verbucher * rkey1 = ld_rkey1 * rkey2 = ld_rkey2 * rkey3 = ld_rkey3 IMPORTING e_result = ld_e_result TABLES x_vzzkopo = it_x_vzzkopo y_vzzkopo = it_y_vzzkopo EXCEPTIONS NAMETAB_ERROR = 1 UPDATE_ERROR = 2 . " FVZK_SAVE_VZZKOPO
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_result  TYPE STRING ,
ld_default_values  TYPE STRING ,
it_x_vzzkopo  TYPE STANDARD TABLE OF STRING ,
wa_x_vzzkopo  LIKE LINE OF it_x_vzzkopo,
ld_dguel_kk  TYPE VZZKOPO-DGUEL_KK ,
it_y_vzzkopo  TYPE STANDARD TABLE OF STRING ,
wa_y_vzzkopo  LIKE LINE OF it_y_vzzkopo,
ld_ohne_verbucher  TYPE STRING ,
ld_rkey1  TYPE VZZKOPO-RKEY1 ,
ld_rkey2  TYPE VZZKOPO-RKEY2 ,
ld_rkey3  TYPE VZZKOPO-RKEY3 .

ld_default_values = 'some text here'.

"populate fields of struture and append to itab
append wa_x_vzzkopo to it_x_vzzkopo.

SELECT single DGUEL_KK
FROM VZZKOPO
INTO ld_dguel_kk.


"populate fields of struture and append to itab
append wa_y_vzzkopo to it_y_vzzkopo.
ld_ohne_verbucher = 'some text here'.

SELECT single RKEY1
FROM VZZKOPO
INTO ld_rkey1.


SELECT single RKEY2
FROM VZZKOPO
INTO ld_rkey2.


SELECT single RKEY3
FROM VZZKOPO
INTO ld_rkey3.

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