SAP CUSTOMER_HIGHEST_DUNNING_LEVEL Function Module for









CUSTOMER_HIGHEST_DUNNING_LEVEL is a standard customer highest dunning level 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 highest dunning level FM, simply by entering the name CUSTOMER_HIGHEST_DUNNING_LEVEL 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_HIGHEST_DUNNING_LEVEL 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_HIGHEST_DUNNING_LEVEL'"
EXPORTING
I_KKBER = "Control area
I_KUNNR = "Customer
* I_REGUL = 'X' "Only read payer data?
I_DUNNG = "Maximum Dunning Level
* I_ERLTA = '01' "Permitted ageing in days
* I_ERLST = '00' "Permitted Ageing in Hours
* I_XCRCV = ' ' "

IMPORTING
E_BUKRS = "Company code
E_KUNNR = "Customer at with dunning data is managed
E_MABER = "Dunning area
E_MAHNS = "Dunning level
E_XODAT = "
E_XNDAT = "
E_VERTA = "
E_VERST = "
E_XDATAAKT = "

EXCEPTIONS
INVALID_CALL = 1 MISSING_KNB1 = 2
.



IMPORTING Parameters details for CUSTOMER_HIGHEST_DUNNING_LEVEL

I_KKBER - Control area

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

I_KUNNR - Customer

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

I_REGUL - Only read payer data?

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

I_DUNNG - Maximum Dunning Level

Data type: T691F-DUNNG
Optional: No
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_HIGHEST_DUNNING_LEVEL

E_BUKRS - Company code

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

E_KUNNR - Customer at with dunning data is managed

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

E_MABER - Dunning area

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

E_MAHNS - Dunning level

Data type: KNB5-MAHNS
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 - Invalid call up of the function module

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

MISSING_KNB1 - Customer not created in company code

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

Copy and paste ABAP code example for CUSTOMER_HIGHEST_DUNNING_LEVEL 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_e_bukrs  TYPE BSID-BUKRS, "   
lv_i_kkber  TYPE T014-KKBER, "   
lv_invalid_call  TYPE T014, "   
lv_e_kunnr  TYPE BSID-KUNNR, "   
lv_i_kunnr  TYPE KNKK-KUNNR, "   
lv_missing_knb1  TYPE KNKK, "   
lv_e_maber  TYPE KNB5-MABER, "   
lv_i_regul  TYPE T691F-REGUL, "   'X'
lv_e_mahns  TYPE KNB5-MAHNS, "   
lv_i_dunng  TYPE T691F-DUNNG, "   
lv_e_xodat  TYPE RF035-XODAT, "   
lv_i_erlta  TYPE RF035-ERLTA, "   '01'
lv_e_xndat  TYPE RF035-XNDAT, "   
lv_i_erlst  TYPE RF035-ERLST, "   '00'
lv_e_verta  TYPE RF035-ERLTA, "   
lv_i_xcrcv  TYPE BOOLE-BOOLE, "   ' '
lv_e_verst  TYPE RF035-ERLST, "   
lv_e_xdataakt  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'CUSTOMER_HIGHEST_DUNNING_LEVEL'  "
    EXPORTING
         I_KKBER = lv_i_kkber
         I_KUNNR = lv_i_kunnr
         I_REGUL = lv_i_regul
         I_DUNNG = lv_i_dunng
         I_ERLTA = lv_i_erlta
         I_ERLST = lv_i_erlst
         I_XCRCV = lv_i_xcrcv
    IMPORTING
         E_BUKRS = lv_e_bukrs
         E_KUNNR = lv_e_kunnr
         E_MABER = lv_e_maber
         E_MAHNS = lv_e_mahns
         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
        MISSING_KNB1 = 2
. " CUSTOMER_HIGHEST_DUNNING_LEVEL




ABAP code using 7.40 inline data declarations to call FM CUSTOMER_HIGHEST_DUNNING_LEVEL

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 BUKRS FROM BSID INTO @DATA(ld_e_bukrs).
 
"SELECT single KKBER FROM T014 INTO @DATA(ld_i_kkber).
 
 
"SELECT single KUNNR FROM BSID INTO @DATA(ld_e_kunnr).
 
"SELECT single KUNNR FROM KNKK INTO @DATA(ld_i_kunnr).
 
 
"SELECT single MABER FROM KNB5 INTO @DATA(ld_e_maber).
 
"SELECT single REGUL FROM T691F INTO @DATA(ld_i_regul).
DATA(ld_i_regul) = 'X'.
 
"SELECT single MAHNS FROM KNB5 INTO @DATA(ld_e_mahns).
 
"SELECT single DUNNG FROM T691F INTO @DATA(ld_i_dunng).
 
"SELECT single XODAT FROM RF035 INTO @DATA(ld_e_xodat).
 
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_i_erlta).
DATA(ld_i_erlta) = '01'.
 
"SELECT single XNDAT FROM RF035 INTO @DATA(ld_e_xndat).
 
"SELECT single ERLST FROM RF035 INTO @DATA(ld_i_erlst).
DATA(ld_i_erlst) = '00'.
 
"SELECT single ERLTA FROM RF035 INTO @DATA(ld_e_verta).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xcrcv).
DATA(ld_i_xcrcv) = ' '.
 
"SELECT single ERLST FROM RF035 INTO @DATA(ld_e_verst).
 
"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!