SAP FVZ_GET_PARTNER Function Module for NOTRANSL: Auswählen und Bearbeiten von Partnerdaten









FVZ_GET_PARTNER is a standard fvz get partner SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Auswählen und Bearbeiten von Partnerdaten 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 fvz get partner FM, simply by entering the name FVZ_GET_PARTNER into the relevant SAP transaction such as SE37 or SE38.

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



Function FVZ_GET_PARTNER 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 'FVZ_GET_PARTNER'"NOTRANSL: Auswählen und Bearbeiten von Partnerdaten
EXPORTING
* ADRTYP_OBJ = ' ' "Address ID
* GSART_IN = ' ' "Product Type
* CUSTOMER = ' ' "Customer Number
* KNA1_IN = ' ' "Parameter string for structure of customer master
* KNB1_IN = ' ' "Parameter string for structure of customer master
* MULTI = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OBJNR = ' ' "Object number (virtual object)
* PARTTYP = ' ' "Partner category
* ROLETYP = ' ' "Role category
* ROLE = ' ' "Role Type
* SEARCH = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* APPL = ' ' "Application
* SELECT_ROLL = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FLG_ROLE = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FLG_NOCHECK_REFKONT = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_SNUMOBJ = 'VD' "Key for number range object
* I_SOBJEKT = ' ' "Internal key for object for business partner table
* IF_CHANGE = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* BP000_IN = ' ' "Business Partner Master (General Data)
* BUKRS = ' ' "Company Code
* DATE_IN = SY-DATUM "ABAP System Field: Current Date of Application Server
* FLG_BP_GROUP = ' ' "BP: Collective Business Partner Indicator
* FLG_DEFAULT_CUSTOMER = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FLG_SAVE_IN_UPDT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* FUNCTION = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
FLG_CHANGED = "DE-EN-LANG-SWITCH-NO-TRANSLATION
BP000_OUT = "Business Partner Master (General Data)
BP030_OUT = "BP: Business partner - address
BPDADR_OUT = "BP Structure: Address
BP1000_OUT = "BP: Business Partner - Role

TABLES
* BP000_TAB = "Business Partner Master (General Data)
* BP030_TAB = "BP: Business partner - address
* BP1000_TAB = "BP: Business Partner - Role
* BPDADR_TAB = "BP Structure: Address
* KNB5_TAB = "Parameter string for structure of customer master

EXCEPTIONS
ERROR = 1 NO_PARTNER_SELECTED = 2
.



IMPORTING Parameters details for FVZ_GET_PARTNER

ADRTYP_OBJ - Address ID

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

GSART_IN - Product Type

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

CUSTOMER - Customer Number

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

KNA1_IN - Parameter string for structure of customer master

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

KNB1_IN - Parameter string for structure of customer master

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

MULTI - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

OBJNR - Object number (virtual object)

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

PARTTYP - Partner category

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

ROLETYP - Role category

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

ROLE - Role Type

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

SEARCH - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

APPL - Application

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

SELECT_ROLL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FLG_ROLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FLG_NOCHECK_REFKONT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_SNUMOBJ - Key for number range object

Data type: VZGPO-SNUMOBJ
Default: 'VD'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SOBJEKT - Internal key for object for business partner table

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

IF_CHANGE - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

BP000_IN - Business Partner Master (General Data)

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

BUKRS - Company Code

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

DATE_IN - ABAP System Field: Current Date of Application Server

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

FLG_BP_GROUP - BP: Collective Business Partner Indicator

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

FLG_DEFAULT_CUSTOMER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FLG_SAVE_IN_UPDT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FUNCTION - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for FVZ_GET_PARTNER

FLG_CHANGED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

BP000_OUT - Business Partner Master (General Data)

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

BP030_OUT - BP: Business partner - address

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

BPDADR_OUT - BP Structure: Address

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

BP1000_OUT - BP: Business Partner - Role

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

TABLES Parameters details for FVZ_GET_PARTNER

BP000_TAB - Business Partner Master (General Data)

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

BP030_TAB - BP: Business partner - address

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

BP1000_TAB - BP: Business Partner - Role

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

BPDADR_TAB - BP Structure: Address

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

KNB5_TAB - Parameter string for structure of customer master

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

EXCEPTIONS details

ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_PARTNER_SELECTED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for FVZ_GET_PARTNER 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_error  TYPE STRING, "   
lt_bp000_tab  TYPE STANDARD TABLE OF BP000, "   
lv_adrtyp_obj  TYPE BP030-ADR_REF_K, "   SPACE
lv_flg_changed  TYPE BP030, "   
lv_gsart_in  TYPE TZPA-GSART, "   SPACE
lv_customer  TYPE BP000-CUSTOMER, "   SPACE
lv_kna1_in  TYPE VZXKNA1, "   SPACE
lv_knb1_in  TYPE VZXKNB1, "   SPACE
lv_multi  TYPE VZXKNB1, "   SPACE
lv_objnr  TYPE SANO1-OBJNR, "   SPACE
lv_parttyp  TYPE BP000-TYPE, "   SPACE
lv_roletyp  TYPE TPZ3-ROLETYP, "   SPACE
lv_role  TYPE TPZ6-ROLE, "   SPACE
lv_search  TYPE TPZ6, "   SPACE
lv_appl  TYPE TPZ12-APPL, "   SPACE
lv_bp000_out  TYPE BP000, "   
lt_bp030_tab  TYPE STANDARD TABLE OF BP030, "   
lv_no_partner_selected  TYPE BP030, "   
lv_select_roll  TYPE BP030, "   'X'
lv_flg_role  TYPE BP030, "   SPACE
lv_flg_nocheck_refkont  TYPE BP030, "   'X'
lv_i_snumobj  TYPE VZGPO-SNUMOBJ, "   'VD'
lv_i_sobjekt  TYPE VZGPO-SOBJEKT, "   SPACE
lv_if_change  TYPE BOOLE-BOOLE, "   SPACE
lv_bp000_in  TYPE BP000, "   SPACE
lv_bp030_out  TYPE BP030, "   
lt_bp1000_tab  TYPE STANDARD TABLE OF BP1000, "   
lv_bukrs  TYPE T001-BUKRS, "   SPACE
lv_bpdadr_out  TYPE BPDADR, "   
lt_bpdadr_tab  TYPE STANDARD TABLE OF BPDADR, "   
lv_date_in  TYPE SY-DATUM, "   SY-DATUM
lt_knb5_tab  TYPE STANDARD TABLE OF VZXKNB5, "   
lv_bp1000_out  TYPE BP1000, "   
lv_flg_bp_group  TYPE BP000-BP_GROUP, "   SPACE
lv_flg_default_customer  TYPE BP000, "   SPACE
lv_flg_save_in_updt  TYPE BP000, "   SPACE
lv_function  TYPE BP000. "   SPACE

  CALL FUNCTION 'FVZ_GET_PARTNER'  "NOTRANSL: Auswählen und Bearbeiten von Partnerdaten
    EXPORTING
         ADRTYP_OBJ = lv_adrtyp_obj
         GSART_IN = lv_gsart_in
         CUSTOMER = lv_customer
         KNA1_IN = lv_kna1_in
         KNB1_IN = lv_knb1_in
         MULTI = lv_multi
         OBJNR = lv_objnr
         PARTTYP = lv_parttyp
         ROLETYP = lv_roletyp
         ROLE = lv_role
         SEARCH = lv_search
         APPL = lv_appl
         SELECT_ROLL = lv_select_roll
         FLG_ROLE = lv_flg_role
         FLG_NOCHECK_REFKONT = lv_flg_nocheck_refkont
         I_SNUMOBJ = lv_i_snumobj
         I_SOBJEKT = lv_i_sobjekt
         IF_CHANGE = lv_if_change
         BP000_IN = lv_bp000_in
         BUKRS = lv_bukrs
         DATE_IN = lv_date_in
         FLG_BP_GROUP = lv_flg_bp_group
         FLG_DEFAULT_CUSTOMER = lv_flg_default_customer
         FLG_SAVE_IN_UPDT = lv_flg_save_in_updt
         FUNCTION = lv_function
    IMPORTING
         FLG_CHANGED = lv_flg_changed
         BP000_OUT = lv_bp000_out
         BP030_OUT = lv_bp030_out
         BPDADR_OUT = lv_bpdadr_out
         BP1000_OUT = lv_bp1000_out
    TABLES
         BP000_TAB = lt_bp000_tab
         BP030_TAB = lt_bp030_tab
         BP1000_TAB = lt_bp1000_tab
         BPDADR_TAB = lt_bpdadr_tab
         KNB5_TAB = lt_knb5_tab
    EXCEPTIONS
        ERROR = 1
        NO_PARTNER_SELECTED = 2
. " FVZ_GET_PARTNER




ABAP code using 7.40 inline data declarations to call FM FVZ_GET_PARTNER

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 ADR_REF_K FROM BP030 INTO @DATA(ld_adrtyp_obj).
DATA(ld_adrtyp_obj) = ' '.
 
 
"SELECT single GSART FROM TZPA INTO @DATA(ld_gsart_in).
DATA(ld_gsart_in) = ' '.
 
"SELECT single CUSTOMER FROM BP000 INTO @DATA(ld_customer).
DATA(ld_customer) = ' '.
 
DATA(ld_kna1_in) = ' '.
 
DATA(ld_knb1_in) = ' '.
 
DATA(ld_multi) = ' '.
 
"SELECT single OBJNR FROM SANO1 INTO @DATA(ld_objnr).
DATA(ld_objnr) = ' '.
 
"SELECT single TYPE FROM BP000 INTO @DATA(ld_parttyp).
DATA(ld_parttyp) = ' '.
 
"SELECT single ROLETYP FROM TPZ3 INTO @DATA(ld_roletyp).
DATA(ld_roletyp) = ' '.
 
"SELECT single ROLE FROM TPZ6 INTO @DATA(ld_role).
DATA(ld_role) = ' '.
 
DATA(ld_search) = ' '.
 
"SELECT single APPL FROM TPZ12 INTO @DATA(ld_appl).
DATA(ld_appl) = ' '.
 
 
 
 
DATA(ld_select_roll) = 'X'.
 
DATA(ld_flg_role) = ' '.
 
DATA(ld_flg_nocheck_refkont) = 'X'.
 
"SELECT single SNUMOBJ FROM VZGPO INTO @DATA(ld_i_snumobj).
DATA(ld_i_snumobj) = 'VD'.
 
"SELECT single SOBJEKT FROM VZGPO INTO @DATA(ld_i_sobjekt).
DATA(ld_i_sobjekt) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_if_change).
DATA(ld_if_change) = ' '.
 
DATA(ld_bp000_in) = ' '.
 
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs).
DATA(ld_bukrs) = ' '.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date_in).
DATA(ld_date_in) = SY-DATUM.
 
 
 
"SELECT single BP_GROUP FROM BP000 INTO @DATA(ld_flg_bp_group).
DATA(ld_flg_bp_group) = ' '.
 
DATA(ld_flg_default_customer) = ' '.
 
DATA(ld_flg_save_in_updt) = ' '.
 
DATA(ld_function) = ' '.
 


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!