EXIT_SAPLKAL1_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_SAPLKAL1_001' "Customer Exit for Authorization Check (Cycle Maintenance) * EXPORTING * actvt = " tact-actvt Activity * vrgng = " t022-activity FI-SL Business Activity * cycle = " rkal1-kscyc Cycle: Per. Reposting, Assessment, Distrib., Ind.Act .Alloc. * kokrs = " rkal1-kokrs Controlling Area * lednr = " rkal1-rldnr Ledger * erkrs = " rkal1-erkrs Operating Concern * sdate = " t811c-sdate EXCEPTIONS NO_AUTHORITY = 1 " . " EXIT_SAPLKAL1_001
The ABAP code below is a full code listing to execute function module EXIT_SAPLKAL1_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
SELECT single SDATE
. CALL FUNCTION 'EXIT_SAPLKAL1_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_SAPLKAL1_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 T811C-SDATE .|
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_SAPLKAL1_001 or its description.
EXIT_SAPLKAL1_001 - Customer Exit for Authorization Check (Cycle Maintenance) EXIT_SAPLKAEP_009 - Line Item Reports: Customer-Specific Preparation of Lists EXIT_SAPLKAEP_008 - Line Item Reports Budget: Customer-Specific Authorization Check EXIT_SAPLKAEP_007 - Line Item Reports in Commitment: Customer-Specific Authorization Check EXIT_SAPLKAEP_006 - Line Item Reports in Plan: Customer-Specific Authorization Check EXIT_SAPLKAEP_005 - Line Item Reports in Actual: Customer-Specific Authorization Check