SAP CREDIT_AUTHORITYCHECK_CUSTOMER Function Module for NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse
CREDIT_AUTHORITYCHECK_CUSTOMER is a standard credit authoritycheck customer 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: Kreditmanagement: Berechtigungsprüfung Belegwertklasse 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 credit authoritycheck customer FM, simply by entering the name CREDIT_AUTHORITYCHECK_CUSTOMER 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 CREDIT_AUTHORITYCHECK_CUSTOMER 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 'CREDIT_AUTHORITYCHECK_CUSTOMER'"NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse.
EXPORTING
* ACTVT = '23' "Activity: '03' display, '23' maintain
* CTLPC = ' ' "Risk Category
* KKBER = ' ' "Credit control area
* KLPRZ = ' ' "Percentage rate exhaustion percentage
* SBGRP = ' ' "Credit representative group
IMPORTING
SUBRC = "SY-SUBRC of the AUTHORITY-CHECK
IMPORTING Parameters details for CREDIT_AUTHORITYCHECK_CUSTOMER
ACTVT - Activity: '03' display, '23' maintain
Data type: TACT-ACTVTDefault: '23'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CTLPC - Risk Category
Data type: VBKRED-CTLPCDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KKBER - Credit control area
Data type: VBKRED-KKBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KLPRZ - Percentage rate exhaustion percentage
Data type: VBKRED-KLPRZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SBGRP - Credit representative group
Data type: VBKRED-SBGRPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CREDIT_AUTHORITYCHECK_CUSTOMER
SUBRC - SY-SUBRC of the AUTHORITY-CHECK
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CREDIT_AUTHORITYCHECK_CUSTOMER 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_actvt | TYPE TACT-ACTVT, " '23' | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lv_ctlpc | TYPE VBKRED-CTLPC, " SPACE | |||
| lv_kkber | TYPE VBKRED-KKBER, " SPACE | |||
| lv_klprz | TYPE VBKRED-KLPRZ, " SPACE | |||
| lv_sbgrp | TYPE VBKRED-SBGRP. " SPACE |
|   CALL FUNCTION 'CREDIT_AUTHORITYCHECK_CUSTOMER' "NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse |
| EXPORTING | ||
| ACTVT | = lv_actvt | |
| CTLPC | = lv_ctlpc | |
| KKBER | = lv_kkber | |
| KLPRZ | = lv_klprz | |
| SBGRP | = lv_sbgrp | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| . " CREDIT_AUTHORITYCHECK_CUSTOMER | ||
ABAP code using 7.40 inline data declarations to call FM CREDIT_AUTHORITYCHECK_CUSTOMER
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 ACTVT FROM TACT INTO @DATA(ld_actvt). | ||||
| DATA(ld_actvt) | = '23'. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| "SELECT single CTLPC FROM VBKRED INTO @DATA(ld_ctlpc). | ||||
| DATA(ld_ctlpc) | = ' '. | |||
| "SELECT single KKBER FROM VBKRED INTO @DATA(ld_kkber). | ||||
| DATA(ld_kkber) | = ' '. | |||
| "SELECT single KLPRZ FROM VBKRED INTO @DATA(ld_klprz). | ||||
| DATA(ld_klprz) | = ' '. | |||
| "SELECT single SBGRP FROM VBKRED INTO @DATA(ld_sbgrp). | ||||
| DATA(ld_sbgrp) | = ' '. | |||
Search for further information about these or an SAP related objects