SAP Function Modules

FVPH_GET_DEFAULT_ZV SAP Function module







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

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


Pattern for FM FVPH_GET_DEFAULT_ZV - FVPH GET DEFAULT ZV





CALL FUNCTION 'FVPH_GET_DEFAULT_ZV' "
  EXPORTING
    i_sanlf =                   " vdarl-sanlf
    i_bukrs =                   " vdarl-bukrs
    i_sarchiv =                 " vdarl-sarchiv
    i_ranl =                    " vdarl-ranl
    i_waers =                   " vdarl-santwhr
    i_gsart =                   " vdarl-gsart
    i_sbuhal =                  " tzpab-sbuhal
    i_jpaymentreq =             " tzpab-jpaymentreq
  TABLES
    i_vzgpodeb =                " vdgpodeb
    e_vdzv_new =                " vdzv
  CHANGING
    c_rpzahl =                  " vdarl-rpzahl
    .  "  FVPH_GET_DEFAULT_ZV

ABAP code example for Function Module FVPH_GET_DEFAULT_ZV





The ABAP code below is a full code listing to execute function module FVPH_GET_DEFAULT_ZV 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_i_vzgpodeb  TYPE STANDARD TABLE OF VDGPODEB,"TABLES PARAM
wa_i_vzgpodeb  LIKE LINE OF it_i_vzgpodeb ,
it_e_vdzv_new  TYPE STANDARD TABLE OF VDZV,"TABLES PARAM
wa_e_vdzv_new  LIKE LINE OF it_e_vdzv_new .


SELECT single RPZAHL
FROM VDARL
INTO @DATA(ld_c_rpzahl).


SELECT single SANLF
FROM VDARL
INTO @DATA(ld_i_sanlf).


SELECT single BUKRS
FROM VDARL
INTO @DATA(ld_i_bukrs).


SELECT single SARCHIV
FROM VDARL
INTO @DATA(ld_i_sarchiv).


SELECT single RANL
FROM VDARL
INTO @DATA(ld_i_ranl).


SELECT single SANTWHR
FROM VDARL
INTO @DATA(ld_i_waers).


SELECT single GSART
FROM VDARL
INTO @DATA(ld_i_gsart).


SELECT single SBUHAL
FROM TZPAB
INTO @DATA(ld_i_sbuhal).


SELECT single JPAYMENTREQ
FROM TZPAB
INTO @DATA(ld_i_jpaymentreq).


"populate fields of struture and append to itab
append wa_i_vzgpodeb to it_i_vzgpodeb.

"populate fields of struture and append to itab
append wa_e_vdzv_new to it_e_vdzv_new. . CALL FUNCTION 'FVPH_GET_DEFAULT_ZV' EXPORTING i_sanlf = ld_i_sanlf i_bukrs = ld_i_bukrs i_sarchiv = ld_i_sarchiv i_ranl = ld_i_ranl i_waers = ld_i_waers i_gsart = ld_i_gsart i_sbuhal = ld_i_sbuhal i_jpaymentreq = ld_i_jpaymentreq TABLES i_vzgpodeb = it_i_vzgpodeb e_vdzv_new = it_e_vdzv_new CHANGING c_rpzahl = ld_c_rpzahl . " FVPH_GET_DEFAULT_ZV
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_c_rpzahl  TYPE VDARL-RPZAHL ,
ld_i_sanlf  TYPE VDARL-SANLF ,
it_i_vzgpodeb  TYPE STANDARD TABLE OF VDGPODEB ,
wa_i_vzgpodeb  LIKE LINE OF it_i_vzgpodeb,
ld_i_bukrs  TYPE VDARL-BUKRS ,
it_e_vdzv_new  TYPE STANDARD TABLE OF VDZV ,
wa_e_vdzv_new  LIKE LINE OF it_e_vdzv_new,
ld_i_sarchiv  TYPE VDARL-SARCHIV ,
ld_i_ranl  TYPE VDARL-RANL ,
ld_i_waers  TYPE VDARL-SANTWHR ,
ld_i_gsart  TYPE VDARL-GSART ,
ld_i_sbuhal  TYPE TZPAB-SBUHAL ,
ld_i_jpaymentreq  TYPE TZPAB-JPAYMENTREQ .


SELECT single RPZAHL
FROM VDARL
INTO ld_c_rpzahl.


SELECT single SANLF
FROM VDARL
INTO ld_i_sanlf.


"populate fields of struture and append to itab
append wa_i_vzgpodeb to it_i_vzgpodeb.

SELECT single BUKRS
FROM VDARL
INTO ld_i_bukrs.


"populate fields of struture and append to itab
append wa_e_vdzv_new to it_e_vdzv_new.

SELECT single SARCHIV
FROM VDARL
INTO ld_i_sarchiv.


SELECT single RANL
FROM VDARL
INTO ld_i_ranl.


SELECT single SANTWHR
FROM VDARL
INTO ld_i_waers.


SELECT single GSART
FROM VDARL
INTO ld_i_gsart.


SELECT single SBUHAL
FROM TZPAB
INTO ld_i_sbuhal.


SELECT single JPAYMENTREQ
FROM TZPAB
INTO ld_i_jpaymentreq.

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