
Checks whether the user has authorization to display or change the specified text module. This function can only be used with texts of the type TEXT (texts which can be processed using transaction SO10 - standard texts). If the user has no authorization, the system terminates the function module with the exception NO_AUTHORITY. The system checks the user authorization in the authorization object S_SCRP_TXT.
Function call:
CALL FUNCTION 'CHECK_TEXT_AUTHORITY'
EXPORTING OBJECT = 'TEXT'
NAME = ?...
ID = ?...
LANGUAGE = ?...
ACTIVITY = ?...
EXCEPTIONS NO_AUTHORITY =
Export parameters:
|
OBJECT |
Enter the name of the text object allocated to the text. At present, only TEXT (standard texts) is allowed. Reference field: THEAD-TDOBJECT |
|
NAME |
Enter the name of the text module for which to execute the check. Reference field: THEAD-TDNAME |
|
ID |
This parameter contains the ID of the text. Reference field: THEAD-TDID |
|
LANGUAGE |
Using this parameter you define the language key of the text module to be checked. Reference field: THEAD-TDSPRAS |
|
ACTIVITY |
In the parameter ACTIVITY, you should specify the functions in the application program with which the text module should be processed. Possible values:
|
Exceptions:
|
NO_AUTHORITY |
The user is not authorized to edit the specified standard text (object TEXT) using the chosen function. The system checks the authorization against the object S_SCRP_TXT with the fields text name, text ID within the text object TEXT, text language, and chosen activity. Possible causes:
If none of these reasons is the cause of the error, the reason could be:
|