SAP CUSTOMER_CONTROL_AREA_DATA Function Module for









CUSTOMER_CONTROL_AREA_DATA is a standard customer control area data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 control area data FM, simply by entering the name CUSTOMER_CONTROL_AREA_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: F035
Program Name: SAPLF035
Main Program: SAPLF035
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CUSTOMER_CONTROL_AREA_DATA 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_CONTROL_AREA_DATA'"
EXPORTING
I_KUNNR = "Customer
I_KKBER = "Credit Control Area
* I_REGUL = "
* I_ERLTA = '01' "Permitted ageing in days
* I_ERLST = '00' "Permitted Ageing in Hours
* I_XCRCV = ' ' "

IMPORTING
E_KNKKR4 = "Master data
E_KNKK = "
E_XODAT = "
E_XNDAT = "
E_VERTA = "
E_VERST = "
E_XDATAAKT = "

EXCEPTIONS
INVALID_CALL = 1 NO_KNKK_DATA = 2
.



IMPORTING Parameters details for CUSTOMER_CONTROL_AREA_DATA

I_KUNNR - Customer

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

I_KKBER - Credit Control Area

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

I_REGUL -

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

I_ERLTA - Permitted ageing in days

Data type: RF035-ERLTA
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ERLST - Permitted Ageing in Hours

Data type: RF035-ERLST
Default: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XCRCV -

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

EXPORTING Parameters details for CUSTOMER_CONTROL_AREA_DATA

E_KNKKR4 - Master data

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

E_KNKK -

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

E_XODAT -

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

E_XNDAT -

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

E_VERTA -

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

E_VERST -

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

E_XDATAAKT -

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

EXCEPTIONS details

INVALID_CALL -

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

NO_KNKK_DATA -

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

Copy and paste ABAP code example for CUSTOMER_CONTROL_AREA_DATA 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_kunnr  TYPE KNKK-KUNNR, "   
lv_e_knkkr4  TYPE KNKKR4, "   
lv_invalid_call  TYPE KNKKR4, "   
lv_e_knkk  TYPE KNKK, "   
lv_i_kkber  TYPE T014-KKBER, "   
lv_no_knkk_data  TYPE T014, "   
lv_e_xodat  TYPE RF035-XODAT, "   
lv_i_regul  TYPE T691F-REGUL, "   
lv_e_xndat  TYPE RF035-XNDAT, "   
lv_i_erlta  TYPE RF035-ERLTA, "   '01'
lv_e_verta  TYPE RF035-ERLTA, "   
lv_i_erlst  TYPE RF035-ERLST, "   '00'
lv_e_verst  TYPE RF035-ERLST, "   
lv_i_xcrcv  TYPE BOOLE-BOOLE, "   ' '
lv_e_xdataakt  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'CUSTOMER_CONTROL_AREA_DATA'  "
    EXPORTING
         I_KUNNR = lv_i_kunnr
         I_KKBER = lv_i_kkber
         I_REGUL = lv_i_regul
         I_ERLTA = lv_i_erlta
         I_ERLST = lv_i_erlst
         I_XCRCV = lv_i_xcrcv
    IMPORTING
         E_KNKKR4 = lv_e_knkkr4
         E_KNKK = lv_e_knkk
         E_XODAT = lv_e_xodat
         E_XNDAT = lv_e_xndat
         E_VERTA = lv_e_verta
         E_VERST = lv_e_verst
         E_XDATAAKT = lv_e_xdataakt
    EXCEPTIONS
        INVALID_CALL = 1
        NO_KNKK_DATA = 2
. " CUSTOMER_CONTROL_AREA_DATA




ABAP code using 7.40 inline data declarations to call FM CUSTOMER_CONTROL_AREA_DATA

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 KUNNR FROM KNKK INTO @DATA(ld_i_kunnr).
 
 
 
 
"SELECT single KKBER FROM T014 INTO @DATA(ld_i_kkber).
 
 
"SELECT single XODAT FROM RF035 INTO @DATA(ld_e_xodat).
 
"SELECT single REGUL FROM T691F INTO @DATA(ld_i_regul).
 
"SELECT single XNDAT FROM RF035 INTO @DATA(ld_e_xndat).
 
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_i_erlta).
DATA(ld_i_erlta) = '01'.
 
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_e_verta).
 
"SELECT single ERLST FROM RF035 INTO @DATA(ld_i_erlst).
DATA(ld_i_erlst) = '00'.
 
"SELECT single ERLST FROM RF035 INTO @DATA(ld_e_verst).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xcrcv).
DATA(ld_i_xcrcv) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_xdataakt).
 


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!