SAP FVVM_ACCOUNTREF_SEARCH Function Module for Determine Account Asisgnment Ref. Based on Master Data and Entr. in TZKNn









FVVM_ACCOUNTREF_SEARCH is a standard fvvm accountref search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Account Asisgnment Ref. Based on Master Data and Entr. in TZKNn 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 fvvm accountref search FM, simply by entering the name FVVM_ACCOUNTREF_SEARCH into the relevant SAP transaction such as SE37 or SE38.

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



Function FVVM_ACCOUNTREF_SEARCH 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 'FVVM_ACCOUNTREF_SEARCH'"Determine Account Asisgnment Ref. Based on Master Data and Entr. in TZKNn
EXPORTING
* BUKRS = ' ' "Der betreffende Buchungskreis
* STRUKTUR_4 = ' ' "siehe oben
* STRUKTUR_5 = ' ' "..'..
* STRUKTUR_6 = ' ' "..'..
* STRUKTUR_7 = ' ' "..'..
* STRUKTUR_8 = ' ' "..'..
* STRUKTUR_9 = ' ' "..'..
* STRUKT_NAME_1 = ' ' "Der Name der ersten Struktur
* STRUKT_NAME_10 = ' ' "... '...
* STRUKT_NAME_11 = ' ' "... ' ...
* STRUKT_NAME_12 = ' ' "... ' ... ( referenz
* RANTYP = ' ' "Die betr. Produktart
* STRUKT_NAME_2 = ' ' "der Name der zweiten Struktur usw..
* STRUKT_NAME_3 = ' ' "... ' ...
* STRUKT_NAME_4 = ' ' "... ' ...
* STRUKT_NAME_5 = ' ' "... '...
* STRUKT_NAME_6 = ' ' "... '...
* STRUKT_NAME_7 = ' ' "... '...
* STRUKT_NAME_8 = ' ' "... '...
* STRUKT_NAME_9 = ' ' "... '...
* SANLF = ' ' "Die betr. Anlageform
* STRUKTUR_1 = ' ' "Die erste Struktur, der Name muss sich in
* STRUKTUR_10 = ' ' "struct_name_1 befinden
* STRUKTUR_11 = ' ' ".. ' ..
* STRUKTUR_12 = ' ' ".. ' ..
* STRUKTUR_2 = ' ' " Strukt_name_01 befinden
* STRUKTUR_3 = ' ' "siehe oben

IMPORTING
RREFKONT = "Die aus den Strukturdaten ermittelte Kontierungs

EXCEPTIONS
KONTREF_NICHT_GEF = 1 STAMMDATEN_NICHT_AUSREICHEND = 2 STRUKTUR_NICHT_GEF = 3
.



IMPORTING Parameters details for FVVM_ACCOUNTREF_SEARCH

BUKRS - Der betreffende Buchungskreis

Data type: TRCA_COMPANY-COMPANYCODE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STRUKTUR_4 - siehe oben

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

STRUKTUR_5 - ..'..

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

STRUKTUR_6 - ..'..

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

STRUKTUR_7 - ..'..

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

STRUKTUR_8 - ..'..

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

STRUKTUR_9 - ..'..

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

STRUKT_NAME_1 - Der Name der ersten Struktur

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

STRUKT_NAME_10 - ... '...

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

STRUKT_NAME_11 - ... ' ...

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

STRUKT_NAME_12 - ... ' ... ( referenz

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

RANTYP - Die betr. Produktart

Data type: TZAF-RANTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STRUKT_NAME_2 - der Name der zweiten Struktur usw..

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

STRUKT_NAME_3 - ... ' ...

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

STRUKT_NAME_4 - ... ' ...

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

STRUKT_NAME_5 - ... '...

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

STRUKT_NAME_6 - ... '...

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

STRUKT_NAME_7 - ... '...

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

STRUKT_NAME_8 - ... '...

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

STRUKT_NAME_9 - ... '...

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

SANLF - Die betr. Anlageform

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

STRUKTUR_1 - Die erste Struktur, der Name muss sich in

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

STRUKTUR_10 - struct_name_1 befinden

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

STRUKTUR_11 - .. ' ..

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

STRUKTUR_12 - .. ' ..

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

STRUKTUR_2 - Strukt_name_01 befinden

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

STRUKTUR_3 - siehe oben

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

EXPORTING Parameters details for FVVM_ACCOUNTREF_SEARCH

RREFKONT - Die aus den Strukturdaten ermittelte Kontierungs

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

EXCEPTIONS details

KONTREF_NICHT_GEF - Kontierungsreferenz nicht vorhanden

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

STAMMDATEN_NICHT_AUSREICHEND - Es fehlen Stammdaten fur die Referenzermittlung

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

STRUKTUR_NICHT_GEF - Die übergebende Struktur ist nicht implementiert

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

Copy and paste ABAP code example for FVVM_ACCOUNTREF_SEARCH 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_bukrs  TYPE TRCA_COMPANY-COMPANYCODE, "   SPACE
lv_rrefkont  TYPE T037S-RREFKONT, "   
lv_kontref_nicht_gef  TYPE T037S, "   
lv_struktur_4  TYPE T037S, "   SPACE
lv_struktur_5  TYPE T037S, "   SPACE
lv_struktur_6  TYPE T037S, "   SPACE
lv_struktur_7  TYPE T037S, "   SPACE
lv_struktur_8  TYPE T037S, "   SPACE
lv_struktur_9  TYPE T037S, "   SPACE
lv_strukt_name_1  TYPE T037S, "   SPACE
lv_strukt_name_10  TYPE T037S, "   SPACE
lv_strukt_name_11  TYPE T037S, "   SPACE
lv_strukt_name_12  TYPE T037S, "   SPACE
lv_rantyp  TYPE TZAF-RANTYP, "   SPACE
lv_stammdaten_nicht_ausreichend  TYPE TZAF, "   
lv_strukt_name_2  TYPE TZAF, "   SPACE
lv_strukt_name_3  TYPE TZAF, "   SPACE
lv_strukt_name_4  TYPE TZAF, "   SPACE
lv_strukt_name_5  TYPE TZAF, "   SPACE
lv_strukt_name_6  TYPE TZAF, "   SPACE
lv_strukt_name_7  TYPE TZAF, "   SPACE
lv_strukt_name_8  TYPE TZAF, "   SPACE
lv_strukt_name_9  TYPE TZAF, "   SPACE
lv_sanlf  TYPE VWPANLA-SANLF, "   SPACE
lv_struktur_nicht_gef  TYPE VWPANLA, "   
lv_struktur_1  TYPE VWPANLA, "   SPACE
lv_struktur_10  TYPE VWPANLA, "   SPACE
lv_struktur_11  TYPE VWPANLA, "   SPACE
lv_struktur_12  TYPE VWPANLA, "   SPACE
lv_struktur_2  TYPE VWPANLA, "   SPACE
lv_struktur_3  TYPE VWPANLA. "   SPACE

  CALL FUNCTION 'FVVM_ACCOUNTREF_SEARCH'  "Determine Account Asisgnment Ref. Based on Master Data and Entr. in TZKNn
    EXPORTING
         BUKRS = lv_bukrs
         STRUKTUR_4 = lv_struktur_4
         STRUKTUR_5 = lv_struktur_5
         STRUKTUR_6 = lv_struktur_6
         STRUKTUR_7 = lv_struktur_7
         STRUKTUR_8 = lv_struktur_8
         STRUKTUR_9 = lv_struktur_9
         STRUKT_NAME_1 = lv_strukt_name_1
         STRUKT_NAME_10 = lv_strukt_name_10
         STRUKT_NAME_11 = lv_strukt_name_11
         STRUKT_NAME_12 = lv_strukt_name_12
         RANTYP = lv_rantyp
         STRUKT_NAME_2 = lv_strukt_name_2
         STRUKT_NAME_3 = lv_strukt_name_3
         STRUKT_NAME_4 = lv_strukt_name_4
         STRUKT_NAME_5 = lv_strukt_name_5
         STRUKT_NAME_6 = lv_strukt_name_6
         STRUKT_NAME_7 = lv_strukt_name_7
         STRUKT_NAME_8 = lv_strukt_name_8
         STRUKT_NAME_9 = lv_strukt_name_9
         SANLF = lv_sanlf
         STRUKTUR_1 = lv_struktur_1
         STRUKTUR_10 = lv_struktur_10
         STRUKTUR_11 = lv_struktur_11
         STRUKTUR_12 = lv_struktur_12
         STRUKTUR_2 = lv_struktur_2
         STRUKTUR_3 = lv_struktur_3
    IMPORTING
         RREFKONT = lv_rrefkont
    EXCEPTIONS
        KONTREF_NICHT_GEF = 1
        STAMMDATEN_NICHT_AUSREICHEND = 2
        STRUKTUR_NICHT_GEF = 3
. " FVVM_ACCOUNTREF_SEARCH




ABAP code using 7.40 inline data declarations to call FM FVVM_ACCOUNTREF_SEARCH

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 COMPANYCODE FROM TRCA_COMPANY INTO @DATA(ld_bukrs).
DATA(ld_bukrs) = ' '.
 
"SELECT single RREFKONT FROM T037S INTO @DATA(ld_rrefkont).
 
 
DATA(ld_struktur_4) = ' '.
 
DATA(ld_struktur_5) = ' '.
 
DATA(ld_struktur_6) = ' '.
 
DATA(ld_struktur_7) = ' '.
 
DATA(ld_struktur_8) = ' '.
 
DATA(ld_struktur_9) = ' '.
 
DATA(ld_strukt_name_1) = ' '.
 
DATA(ld_strukt_name_10) = ' '.
 
DATA(ld_strukt_name_11) = ' '.
 
DATA(ld_strukt_name_12) = ' '.
 
"SELECT single RANTYP FROM TZAF INTO @DATA(ld_rantyp).
DATA(ld_rantyp) = ' '.
 
 
DATA(ld_strukt_name_2) = ' '.
 
DATA(ld_strukt_name_3) = ' '.
 
DATA(ld_strukt_name_4) = ' '.
 
DATA(ld_strukt_name_5) = ' '.
 
DATA(ld_strukt_name_6) = ' '.
 
DATA(ld_strukt_name_7) = ' '.
 
DATA(ld_strukt_name_8) = ' '.
 
DATA(ld_strukt_name_9) = ' '.
 
"SELECT single SANLF FROM VWPANLA INTO @DATA(ld_sanlf).
DATA(ld_sanlf) = ' '.
 
 
DATA(ld_struktur_1) = ' '.
 
DATA(ld_struktur_10) = ' '.
 
DATA(ld_struktur_11) = ' '.
 
DATA(ld_struktur_12) = ' '.
 
DATA(ld_struktur_2) = ' '.
 
DATA(ld_struktur_3) = ' '.
 


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!