SAP CLM01_AUTH_CODE Function Module for NOTRANSL: Berechtigung für Code des Langtextes
CLM01_AUTH_CODE is a standard clm01 auth code 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: Berechtigung für Code des Langtextes 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 clm01 auth code FM, simply by entering the name CLM01_AUTH_CODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLM01
Program Name: SAPLCLM01
Main Program: SAPLCLM01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLM01_AUTH_CODE 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 'CLM01_AUTH_CODE'"NOTRANSL: Berechtigung für Code des Langtextes.
EXPORTING
I_QMART = "Message Type
I_LONGTEXTID = "ID for a Claim Long Text
I_UNAME = "Logon Name of User
EXCEPTIONS
NO_AUTHORITY = 1
IMPORTING Parameters details for CLM01_AUTH_CODE
I_QMART - Message Type
Data type: QMARTOptional: No
Call by Reference: No ( called with pass by value option)
I_LONGTEXTID - ID for a Claim Long Text
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
I_UNAME - Logon Name of User
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLM01_AUTH_CODE 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_i_qmart | TYPE QMART, " | |||
| lv_no_authority | TYPE QMART, " | |||
| lv_i_longtextid | TYPE I, " | |||
| lv_i_uname | TYPE SY-UNAME. " |
|   CALL FUNCTION 'CLM01_AUTH_CODE' "NOTRANSL: Berechtigung für Code des Langtextes |
| EXPORTING | ||
| I_QMART | = lv_i_qmart | |
| I_LONGTEXTID | = lv_i_longtextid | |
| I_UNAME | = lv_i_uname | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| . " CLM01_AUTH_CODE | ||
ABAP code using 7.40 inline data declarations to call FM CLM01_AUTH_CODE
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 UNAME FROM SY INTO @DATA(ld_i_uname). | ||||
Search for further information about these or an SAP related objects