EXIT_SAPMKAL1_001 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name EXIT_SAPMKAL1_001 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
XK01
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'EXIT_SAPMKAL1_001' "Customer Exit for Authorization Check (Cycle Maintenance) * EXPORTING * actvt = " tact-actvt * vrgng = " t022-activity * cycle = " rkal1-kscyc * kokrs = " rkal1-kokrs * lednr = " rkal1-rldnr * erkrs = " rkal1-erkrs * sdate = " sy-datum Date and Time, Current (Application Server) Date EXCEPTIONS NO_AUTHORITY = 1 " . " EXIT_SAPMKAL1_001
The ABAP code below is a full code listing to execute function module EXIT_SAPMKAL1_001 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
SELECT single ACTVT
FROM TACT
INTO @DATA(ld_actvt).
SELECT single ACTIVITY
FROM T022
INTO @DATA(ld_vrgng).
DATA(ld_cycle) = some text here
DATA(ld_kokrs) = some text here
DATA(ld_lednr) = some text here
DATA(ld_erkrs) = some text here
DATA(ld_sdate) = '20210129'. . CALL FUNCTION 'EXIT_SAPMKAL1_001' * EXPORTING * actvt = ld_actvt * vrgng = ld_vrgng * cycle = ld_cycle * kokrs = ld_kokrs * lednr = ld_lednr * erkrs = ld_erkrs * sdate = ld_sdate EXCEPTIONS NO_AUTHORITY = 1 . " EXIT_SAPMKAL1_001
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
ld_actvt | TYPE TACT-ACTVT , |
ld_vrgng | TYPE T022-ACTIVITY , |
ld_cycle | TYPE RKAL1-KSCYC , |
ld_kokrs | TYPE RKAL1-KOKRS , |
ld_lednr | TYPE RKAL1-RLDNR , |
ld_erkrs | TYPE RKAL1-ERKRS , |
ld_sdate | TYPE SY-DATUM . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EXIT_SAPMKAL1_001 or its description.
EXIT_SAPMKAL1_001 - Customer Exit for Authorization Check (Cycle Maintenance) EXIT_SAPMJWAK_002 - IS-M: Customer Sales Act.Attributes Transfer from Cust.Subs. 0200 (PAI EXIT_SAPMJWAK_001 - IS-M: Customer Sales Act.Attributes Transfer to Cust.Subs. 0200 for PB EXIT_SAPMJV41_001 - Determine Further Output Partners EXIT_SAPMJKWWW05_024 - IS-M/SD: IAC Create Complaint, Assign Default Confirmation Data EXIT_SAPMJKWWW05_023 - IS-M/SD: IAC Create Complaint; Further Checks on Form