SAP SINGLE_VZZKOPO_SELECT Function Module for Read Unique KOPO Record for KOKO and for KOART









SINGLE_VZZKOPO_SELECT is a standard single vzzkopo select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Unique KOPO Record for KOKO and for KOART processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for single vzzkopo select FM, simply by entering the name SINGLE_VZZKOPO_SELECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVP6
Program Name: SAPLFVP6
Main Program: SAPLFVP6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SINGLE_VZZKOPO_SELECT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SINGLE_VZZKOPO_SELECT'"Read Unique KOPO Record for KOKO and for KOART
EXPORTING
* I_BUKRS = ' ' "
* I_NULLKON = ' ' "Indicator: Condition Form
* I_STUFE = "
* I_FIXED = ' ' "
* I_STATISTICAL = ' ' "
* I_DATUM = ' ' "
* I_DBSELECT = 'X' "
* I_DGUEL_KK = ' ' "
* I_NLFD_ANG = ' ' "
* I_RKEY1 = ' ' "
* I_SANLF = ' ' "
* I_SBEWZITI = ' ' "
* I_SKOART = ' ' "

IMPORTING
E_VZZKOPO = "
N_STUFE = "

TABLES
I_VZZKOPO = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for SINGLE_VZZKOPO_SELECT

I_BUKRS -

Data type: VZZKOPO-BUKRS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NULLKON - Indicator: Condition Form

Data type: JNULLKON
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_STUFE -

Data type: VZZKOPO-NSTUFE
Optional: Yes
Call by Reference: Yes

I_FIXED -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_STATISTICAL -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_DATUM -

Data type: SY-DATUM
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DBSELECT -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DGUEL_KK -

Data type: VZZKOPO-DGUEL_KK
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NLFD_ANG -

Data type: VZZKOPO-NLFD_ANG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RKEY1 -

Data type: VZZKOPO-RKEY1
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SANLF -

Data type: VZZKOPO-SANLF
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SBEWZITI -

Data type: TZK01-SBEWZITI
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SKOART -

Data type: VZZKOPO-SKOART
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SINGLE_VZZKOPO_SELECT

E_VZZKOPO -

Data type: VZZKOPO
Optional: No
Call by Reference: No ( called with pass by value option)

N_STUFE -

Data type: NSTUFE
Optional: No
Call by Reference: Yes

TABLES Parameters details for SINGLE_VZZKOPO_SELECT

I_VZZKOPO -

Data type: VZZKOPO
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SINGLE_VZZKOPO_SELECT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_bukrs  TYPE VZZKOPO-BUKRS, "   ' '
lv_e_vzzkopo  TYPE VZZKOPO, "   
lt_i_vzzkopo  TYPE STANDARD TABLE OF VZZKOPO, "   
lv_not_found  TYPE VZZKOPO, "   
lv_i_nullkon  TYPE JNULLKON, "   SPACE
lv_i_stufe  TYPE VZZKOPO-NSTUFE, "   
lv_i_fixed  TYPE XFELD, "   SPACE
lv_i_statistical  TYPE XFELD, "   SPACE
lv_i_datum  TYPE SY-DATUM, "   ' '
lv_n_stufe  TYPE NSTUFE, "   
lv_i_dbselect  TYPE NSTUFE, "   'X'
lv_i_dguel_kk  TYPE VZZKOPO-DGUEL_KK, "   ' '
lv_i_nlfd_ang  TYPE VZZKOPO-NLFD_ANG, "   ' '
lv_i_rkey1  TYPE VZZKOPO-RKEY1, "   ' '
lv_i_sanlf  TYPE VZZKOPO-SANLF, "   ' '
lv_i_sbewziti  TYPE TZK01-SBEWZITI, "   ' '
lv_i_skoart  TYPE VZZKOPO-SKOART. "   ' '

  CALL FUNCTION 'SINGLE_VZZKOPO_SELECT'  "Read Unique KOPO Record for KOKO and for KOART
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_NULLKON = lv_i_nullkon
         I_STUFE = lv_i_stufe
         I_FIXED = lv_i_fixed
         I_STATISTICAL = lv_i_statistical
         I_DATUM = lv_i_datum
         I_DBSELECT = lv_i_dbselect
         I_DGUEL_KK = lv_i_dguel_kk
         I_NLFD_ANG = lv_i_nlfd_ang
         I_RKEY1 = lv_i_rkey1
         I_SANLF = lv_i_sanlf
         I_SBEWZITI = lv_i_sbewziti
         I_SKOART = lv_i_skoart
    IMPORTING
         E_VZZKOPO = lv_e_vzzkopo
         N_STUFE = lv_n_stufe
    TABLES
         I_VZZKOPO = lt_i_vzzkopo
    EXCEPTIONS
        NOT_FOUND = 1
. " SINGLE_VZZKOPO_SELECT




ABAP code using 7.40 inline data declarations to call FM SINGLE_VZZKOPO_SELECT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single BUKRS FROM VZZKOPO INTO @DATA(ld_i_bukrs).
DATA(ld_i_bukrs) = ' '.
 
 
 
 
DATA(ld_i_nullkon) = ' '.
 
"SELECT single NSTUFE FROM VZZKOPO INTO @DATA(ld_i_stufe).
 
DATA(ld_i_fixed) = ' '.
 
DATA(ld_i_statistical) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datum).
DATA(ld_i_datum) = ' '.
 
 
DATA(ld_i_dbselect) = 'X'.
 
"SELECT single DGUEL_KK FROM VZZKOPO INTO @DATA(ld_i_dguel_kk).
DATA(ld_i_dguel_kk) = ' '.
 
"SELECT single NLFD_ANG FROM VZZKOPO INTO @DATA(ld_i_nlfd_ang).
DATA(ld_i_nlfd_ang) = ' '.
 
"SELECT single RKEY1 FROM VZZKOPO INTO @DATA(ld_i_rkey1).
DATA(ld_i_rkey1) = ' '.
 
"SELECT single SANLF FROM VZZKOPO INTO @DATA(ld_i_sanlf).
DATA(ld_i_sanlf) = ' '.
 
"SELECT single SBEWZITI FROM TZK01 INTO @DATA(ld_i_sbewziti).
DATA(ld_i_sbewziti) = ' '.
 
"SELECT single SKOART FROM VZZKOPO INTO @DATA(ld_i_skoart).
DATA(ld_i_skoart) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!