SAP CREDIT_AUTHORITYCHECK_DOCUMENT Function Module for NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse









CREDIT_AUTHORITYCHECK_DOCUMENT is a standard credit authoritycheck document 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 document FM, simply by entering the name CREDIT_AUTHORITYCHECK_DOCUMENT 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_DOCUMENT 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_DOCUMENT'"NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse
EXPORTING
* ACTVT = '23' "Activity: '03' display, '23' maintain
* KKBER = ' ' "Credit control area
* KWKKB = 0 "Credit value
* SIZEC = ' ' "Document value class
* CMWAE = ' ' "

IMPORTING
RSIZEC = "Document value class, if not imported
SUBRC = "SY-SUBRC of the AUTHORITY-CHECK
.



IMPORTING Parameters details for CREDIT_AUTHORITYCHECK_DOCUMENT

ACTVT - Activity: '03' display, '23' maintain

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

KKBER - Credit control area

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

KWKKB - Credit value

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

SIZEC - Document value class

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

CMWAE -

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

EXPORTING Parameters details for CREDIT_AUTHORITYCHECK_DOCUMENT

RSIZEC - Document value class, if not imported

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

SUBRC - SY-SUBRC of the AUTHORITY-CHECK

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

Copy and paste ABAP code example for CREDIT_AUTHORITYCHECK_DOCUMENT 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_rsizec  TYPE VBKRED-SIZEC, "   
lv_kkber  TYPE VBKRED-KKBER, "   SPACE
lv_subrc  TYPE SY-SUBRC, "   
lv_kwkkb  TYPE VBKRED-KWKKB, "   0
lv_sizec  TYPE VBKRED-SIZEC, "   SPACE
lv_cmwae  TYPE VBKRED-CMWAE. "   SPACE

  CALL FUNCTION 'CREDIT_AUTHORITYCHECK_DOCUMENT'  "NOTRANSL: Kreditmanagement: Berechtigungsprüfung Belegwertklasse
    EXPORTING
         ACTVT = lv_actvt
         KKBER = lv_kkber
         KWKKB = lv_kwkkb
         SIZEC = lv_sizec
         CMWAE = lv_cmwae
    IMPORTING
         RSIZEC = lv_rsizec
         SUBRC = lv_subrc
. " CREDIT_AUTHORITYCHECK_DOCUMENT




ABAP code using 7.40 inline data declarations to call FM CREDIT_AUTHORITYCHECK_DOCUMENT

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 SIZEC FROM VBKRED INTO @DATA(ld_rsizec).
 
"SELECT single KKBER FROM VBKRED INTO @DATA(ld_kkber).
DATA(ld_kkber) = ' '.
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
"SELECT single KWKKB FROM VBKRED INTO @DATA(ld_kwkkb).
 
"SELECT single SIZEC FROM VBKRED INTO @DATA(ld_sizec).
DATA(ld_sizec) = ' '.
 
"SELECT single CMWAE FROM VBKRED INTO @DATA(ld_cmwae).
DATA(ld_cmwae) = ' '.
 


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!