SAP CUSTOMER_MAINTAIN_XD01 Function Module for NOTRANSL: Zugriff Debitor Hinzufügen









CUSTOMER_MAINTAIN_XD01 is a standard customer maintain xd01 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: Zugriff Debitor Hinzufügen 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 customer maintain xd01 FM, simply by entering the name CUSTOMER_MAINTAIN_XD01 into the relevant SAP transaction such as SE37 or SE38.

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



Function CUSTOMER_MAINTAIN_XD01 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 'CUSTOMER_MAINTAIN_XD01'"NOTRANSL: Zugriff Debitor Hinzufügen
EXPORTING
* I_T001W = ' ' "
* I_DEBI_CALL = "
* I_DEBI_UPDA = "
* I_ADDR_UPD = ' ' "
* I_HANDLE = "
* I_SADR = ' ' "
* I_RF02D = ' ' "
* I_FIRST_DARK = "
* I_TCODE = "
* I_WERK_XCHNG = "
* I_SADR_CHNG = "
* I_KTOKD = "
* I_ALL_DARK = "

IMPORTING
A_DEBI_XCHNG = "
A_DEBI_CALL = "
A_DEBI_EXIST = "
A_KNA1 = "
A_RF02D = "
A_OK_CODE = "
A_CLASS_KZ = "
A_KNVV = "

TABLES
* PI_T_FIELDTAB = "
* PI_T_XKNVA = "
* PI_T_XKNVP = "
.



IMPORTING Parameters details for CUSTOMER_MAINTAIN_XD01

I_T001W -

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

I_DEBI_CALL -

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

I_DEBI_UPDA -

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

I_ADDR_UPD -

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

I_HANDLE -

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

I_SADR -

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

I_RF02D -

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

I_FIRST_DARK -

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

I_TCODE -

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

I_WERK_XCHNG -

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

I_SADR_CHNG -

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

I_KTOKD -

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

I_ALL_DARK -

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

EXPORTING Parameters details for CUSTOMER_MAINTAIN_XD01

A_DEBI_XCHNG -

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

A_DEBI_CALL -

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

A_DEBI_EXIST -

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

A_KNA1 -

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

A_RF02D -

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

A_OK_CODE -

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

A_CLASS_KZ -

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

A_KNVV -

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

TABLES Parameters details for CUSTOMER_MAINTAIN_XD01

PI_T_FIELDTAB -

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

PI_T_XKNVA -

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

PI_T_XKNVP -

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

Copy and paste ABAP code example for CUSTOMER_MAINTAIN_XD01 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_t001w  TYPE T001W, "   SPACE
lv_a_debi_xchng  TYPE T001W, "   
lt_pi_t_fieldtab  TYPE STANDARD TABLE OF T001W, "   
lv_i_debi_call  TYPE T001W, "   
lv_i_debi_upda  TYPE T001W, "   
lv_i_addr_upd  TYPE T001W, "   SPACE
lv_i_handle  TYPE ADDR1_VAL-ADDRHANDLE, "   
lv_i_sadr  TYPE SADR, "   SPACE
lt_pi_t_xknva  TYPE STANDARD TABLE OF FKNVA, "   
lv_a_debi_call  TYPE FKNVA, "   
lv_i_rf02d  TYPE RF02D, "   SPACE
lt_pi_t_xknvp  TYPE STANDARD TABLE OF FKNVP, "   
lv_a_debi_exist  TYPE FKNVP, "   
lv_a_kna1  TYPE KNA1, "   
lv_i_first_dark  TYPE RF02D-D0110, "   
lv_a_rf02d  TYPE RF02D, "   
lv_i_tcode  TYPE SY-TCODE, "   
lv_a_ok_code  TYPE WR02D-OK_CODE, "   
lv_i_werk_xchng  TYPE WR02D, "   
lv_a_class_kz  TYPE WR02D, "   
lv_i_sadr_chng  TYPE WR02D, "   
lv_a_knvv  TYPE KNVV, "   
lv_i_ktokd  TYPE KNA1-KTOKD, "   
lv_i_all_dark  TYPE KNA1. "   

  CALL FUNCTION 'CUSTOMER_MAINTAIN_XD01'  "NOTRANSL: Zugriff Debitor Hinzufügen
    EXPORTING
         I_T001W = lv_i_t001w
         I_DEBI_CALL = lv_i_debi_call
         I_DEBI_UPDA = lv_i_debi_upda
         I_ADDR_UPD = lv_i_addr_upd
         I_HANDLE = lv_i_handle
         I_SADR = lv_i_sadr
         I_RF02D = lv_i_rf02d
         I_FIRST_DARK = lv_i_first_dark
         I_TCODE = lv_i_tcode
         I_WERK_XCHNG = lv_i_werk_xchng
         I_SADR_CHNG = lv_i_sadr_chng
         I_KTOKD = lv_i_ktokd
         I_ALL_DARK = lv_i_all_dark
    IMPORTING
         A_DEBI_XCHNG = lv_a_debi_xchng
         A_DEBI_CALL = lv_a_debi_call
         A_DEBI_EXIST = lv_a_debi_exist
         A_KNA1 = lv_a_kna1
         A_RF02D = lv_a_rf02d
         A_OK_CODE = lv_a_ok_code
         A_CLASS_KZ = lv_a_class_kz
         A_KNVV = lv_a_knvv
    TABLES
         PI_T_FIELDTAB = lt_pi_t_fieldtab
         PI_T_XKNVA = lt_pi_t_xknva
         PI_T_XKNVP = lt_pi_t_xknvp
. " CUSTOMER_MAINTAIN_XD01




ABAP code using 7.40 inline data declarations to call FM CUSTOMER_MAINTAIN_XD01

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_i_t001w) = ' '.
 
 
 
 
 
DATA(ld_i_addr_upd) = ' '.
 
"SELECT single ADDRHANDLE FROM ADDR1_VAL INTO @DATA(ld_i_handle).
 
DATA(ld_i_sadr) = ' '.
 
 
 
DATA(ld_i_rf02d) = ' '.
 
 
 
 
"SELECT single D0110 FROM RF02D INTO @DATA(ld_i_first_dark).
 
 
"SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode).
 
"SELECT single OK_CODE FROM WR02D INTO @DATA(ld_a_ok_code).
 
 
 
 
 
"SELECT single KTOKD FROM KNA1 INTO @DATA(ld_i_ktokd).
 
 


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!