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.
Associated Function Group:
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
SELECT single ACTIVITY
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) = '20190818'. . 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.
|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_SAPMJKWWW04_011 - IS-M/SD: IAC Change to Payment Data; Preassign Form EXIT_SAPMJKCOMPL_002 - IS-M/SD: Complaint - Preassign Complaint Data EXIT_SAPMJHA6_001 - IS-M/AM: Default Setting for Initial Central Access Screen EXIT_SAPMJGWWWIU1_015 - IS-M: IAC Create Internet User, Further Checks EXIT_SAPMJG01_011 - IS-M: Define Default Payment Method