SAP SD_DETERMINE_KKBER Function Module for NOTRANSL: Prüfen, ob eingegebener Kreditkontrollbereich zum Buchungskreis
SD_DETERMINE_KKBER is a standard sd determine kkber 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: Prüfen, ob eingegebener Kreditkontrollbereich zum Buchungskreis 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 sd determine kkber FM, simply by entering the name SD_DETERMINE_KKBER into the relevant SAP transaction such as SE37 or SE38.
Function Group: VKMP
Program Name: SAPLVKMP
Main Program: SAPLVKMP
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_DETERMINE_KKBER 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 'SD_DETERMINE_KKBER'"NOTRANSL: Prüfen, ob eingegebener Kreditkontrollbereich zum Buchungskreis.
EXPORTING
* I_KKBER_TVTA = "
* I_KKBER_KNVV = "
* I_KKBER_T001 = "
* I_VKORG = "
* I_VTWEG = "
* I_SPART = "
* XVBAK = "
* I_KUNNR = "Sold-To Party
IMPORTING
RC = "
E_KNVV_FLG = "
CHANGING
I_KKBER = "
TABLES
XVBPA = "
* XVBKD = "
EXCEPTIONS
ERROR_KKBER = 1
IMPORTING Parameters details for SD_DETERMINE_KKBER
I_KKBER_TVTA -
Data type: KNVV-KKBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KKBER_KNVV -
Data type: KNVV-KKBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_KKBER_T001 -
Data type: KNVV-KKBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_VKORG -
Data type: TVTA-VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VTWEG -
Data type: TVTA-VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SPART -
Data type: TVTA-SPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
XVBAK -
Data type: VBAKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KUNNR - Sold-To Party
Data type: VBAK-KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_DETERMINE_KKBER
RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_KNVV_FLG -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SD_DETERMINE_KKBER
I_KKBER -
Data type: KNVV-KKBEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_DETERMINE_KKBER
XVBPA -
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
XVBKD -
Data type: VBKDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_KKBER -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SD_DETERMINE_KKBER 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_rc | TYPE SY-SUBRC, " | |||
| lt_xvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_i_kkber | TYPE KNVV-KKBER, " | |||
| lv_error_kkber | TYPE KNVV, " | |||
| lv_i_kkber_tvta | TYPE KNVV-KKBER, " | |||
| lt_xvbkd | TYPE STANDARD TABLE OF VBKD, " | |||
| lv_e_knvv_flg | TYPE C, " | |||
| lv_i_kkber_knvv | TYPE KNVV-KKBER, " | |||
| lv_i_kkber_t001 | TYPE KNVV-KKBER, " | |||
| lv_i_vkorg | TYPE TVTA-VKORG, " | |||
| lv_i_vtweg | TYPE TVTA-VTWEG, " | |||
| lv_i_spart | TYPE TVTA-SPART, " | |||
| lv_xvbak | TYPE VBAK, " | |||
| lv_i_kunnr | TYPE VBAK-KUNNR. " |
|   CALL FUNCTION 'SD_DETERMINE_KKBER' "NOTRANSL: Prüfen, ob eingegebener Kreditkontrollbereich zum Buchungskreis |
| EXPORTING | ||
| I_KKBER_TVTA | = lv_i_kkber_tvta | |
| I_KKBER_KNVV | = lv_i_kkber_knvv | |
| I_KKBER_T001 | = lv_i_kkber_t001 | |
| I_VKORG | = lv_i_vkorg | |
| I_VTWEG | = lv_i_vtweg | |
| I_SPART | = lv_i_spart | |
| XVBAK | = lv_xvbak | |
| I_KUNNR | = lv_i_kunnr | |
| IMPORTING | ||
| RC | = lv_rc | |
| E_KNVV_FLG | = lv_e_knvv_flg | |
| CHANGING | ||
| I_KKBER | = lv_i_kkber | |
| TABLES | ||
| XVBPA | = lt_xvbpa | |
| XVBKD | = lt_xvbkd | |
| EXCEPTIONS | ||
| ERROR_KKBER = 1 | ||
| . " SD_DETERMINE_KKBER | ||
ABAP code using 7.40 inline data declarations to call FM SD_DETERMINE_KKBER
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 SUBRC FROM SY INTO @DATA(ld_rc). | ||||
| "SELECT single KKBER FROM KNVV INTO @DATA(ld_i_kkber). | ||||
| "SELECT single KKBER FROM KNVV INTO @DATA(ld_i_kkber_tvta). | ||||
| "SELECT single KKBER FROM KNVV INTO @DATA(ld_i_kkber_knvv). | ||||
| "SELECT single KKBER FROM KNVV INTO @DATA(ld_i_kkber_t001). | ||||
| "SELECT single VKORG FROM TVTA INTO @DATA(ld_i_vkorg). | ||||
| "SELECT single VTWEG FROM TVTA INTO @DATA(ld_i_vtweg). | ||||
| "SELECT single SPART FROM TVTA INTO @DATA(ld_i_spart). | ||||
| "SELECT single KUNNR FROM VBAK INTO @DATA(ld_i_kunnr). | ||||
Search for further information about these or an SAP related objects