SAP FVZ_DEBITOR Function Module for NOTRANSL: Bearbeiten der Debitorendaten eines Geschäftspartners









FVZ_DEBITOR is a standard fvz debitor 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: Bearbeiten der Debitorendaten eines Geschäftspartners 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 debitor FM, simply by entering the name FVZ_DEBITOR 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_DEBITOR 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_DEBITOR'"NOTRANSL: Bearbeiten der Debitorendaten eines Geschäftspartners
EXPORTING
* CUSTOMER_CONNECT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* APPL_IN = ' ' "Application
* DISPL_KZ = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* BUKRS_IN = ' ' "Company Code
* FLG_CHANGE_DARK = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* DATE_IN = SY-DATUM "ABAP System Field: Current Date of Application Server
* KNA1_IN = ' ' "Parameter string for structure of customer master
* KNB1_IN = ' ' "Parameter string for structure of customer master
* KUNNR_IN = ' ' "Customer Number
* ROLETYP_IN = ' ' "Role category of partner
* PARTNR = ' ' "Partner Number

IMPORTING
FLG_CHANGED = "Data has been changed
KUNNR_OUT = "Customer Number

TABLES
* KNB5_IN = "Parameter string for structure of customer master
* T_MESG = "Message collector

EXCEPTIONS
BUKRS_NOT_FOUND = 1 ERROR = 2 DEBITOR_NOT_CHANGED = 3 DEBITOR_NOT_FOUND = 4 PARTNER_NOT_FOUND = 5
.



IMPORTING Parameters details for FVZ_DEBITOR

CUSTOMER_CONNECT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

APPL_IN - Application

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

DISPL_KZ - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

BUKRS_IN - Company Code

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

FLG_CHANGE_DARK - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
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)

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)

KUNNR_IN - Customer Number

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

ROLETYP_IN - Role category of partner

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

PARTNR - Partner Number

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

EXPORTING Parameters details for FVZ_DEBITOR

FLG_CHANGED - Data has been changed

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

KUNNR_OUT - Customer Number

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

TABLES Parameters details for FVZ_DEBITOR

KNB5_IN - Parameter string for structure of customer master

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

T_MESG - Message collector

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

EXCEPTIONS details

BUKRS_NOT_FOUND - Company code not in table T001

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

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

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

DEBITOR_NOT_CHANGED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

DEBITOR_NOT_FOUND - Customer does not exist

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

PARTNER_NOT_FOUND - Partner does not exist

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

Copy and paste ABAP code example for FVZ_DEBITOR 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:
lt_knb5_in  TYPE STANDARD TABLE OF VZXKNB5, "   
lv_flg_changed  TYPE VZXKNB5, "   
lv_bukrs_not_found  TYPE VZXKNB5, "   
lv_customer_connect  TYPE VZXKNB5, "   SPACE
lv_appl_in  TYPE TPZ12-APPL, "   SPACE
lv_displ_kz  TYPE TPZ12, "   SPACE
lv_error  TYPE TPZ12, "   
lt_t_mesg  TYPE STANDARD TABLE OF MESG, "   
lv_bukrs_in  TYPE T001-BUKRS, "   SPACE
lv_kunnr_out  TYPE BP000-CUSTOMER, "   
lv_flg_change_dark  TYPE BP000, "   SPACE
lv_debitor_not_changed  TYPE BP000, "   
lv_date_in  TYPE SY-DATUM, "   SY-DATUM
lv_debitor_not_found  TYPE SY, "   
lv_kna1_in  TYPE VZXKNA1, "   SPACE
lv_partner_not_found  TYPE VZXKNA1, "   
lv_knb1_in  TYPE VZXKNB1, "   SPACE
lv_kunnr_in  TYPE BP000-CUSTOMER, "   SPACE
lv_roletyp_in  TYPE TPZ3-ROLETYP, "   SPACE
lv_partnr  TYPE BP000-PARTNR. "   SPACE

  CALL FUNCTION 'FVZ_DEBITOR'  "NOTRANSL: Bearbeiten der Debitorendaten eines Geschäftspartners
    EXPORTING
         CUSTOMER_CONNECT = lv_customer_connect
         APPL_IN = lv_appl_in
         DISPL_KZ = lv_displ_kz
         BUKRS_IN = lv_bukrs_in
         FLG_CHANGE_DARK = lv_flg_change_dark
         DATE_IN = lv_date_in
         KNA1_IN = lv_kna1_in
         KNB1_IN = lv_knb1_in
         KUNNR_IN = lv_kunnr_in
         ROLETYP_IN = lv_roletyp_in
         PARTNR = lv_partnr
    IMPORTING
         FLG_CHANGED = lv_flg_changed
         KUNNR_OUT = lv_kunnr_out
    TABLES
         KNB5_IN = lt_knb5_in
         T_MESG = lt_t_mesg
    EXCEPTIONS
        BUKRS_NOT_FOUND = 1
        ERROR = 2
        DEBITOR_NOT_CHANGED = 3
        DEBITOR_NOT_FOUND = 4
        PARTNER_NOT_FOUND = 5
. " FVZ_DEBITOR




ABAP code using 7.40 inline data declarations to call FM FVZ_DEBITOR

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.

 
 
 
DATA(ld_customer_connect) = ' '.
 
"SELECT single APPL FROM TPZ12 INTO @DATA(ld_appl_in).
DATA(ld_appl_in) = ' '.
 
DATA(ld_displ_kz) = ' '.
 
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs_in).
DATA(ld_bukrs_in) = ' '.
 
"SELECT single CUSTOMER FROM BP000 INTO @DATA(ld_kunnr_out).
 
DATA(ld_flg_change_dark) = ' '.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date_in).
DATA(ld_date_in) = SY-DATUM.
 
 
DATA(ld_kna1_in) = ' '.
 
 
DATA(ld_knb1_in) = ' '.
 
"SELECT single CUSTOMER FROM BP000 INTO @DATA(ld_kunnr_in).
DATA(ld_kunnr_in) = ' '.
 
"SELECT single ROLETYP FROM TPZ3 INTO @DATA(ld_roletyp_in).
DATA(ld_roletyp_in) = ' '.
 
"SELECT single PARTNR FROM BP000 INTO @DATA(ld_partnr).
DATA(ld_partnr) = ' '.
 


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!