2023 Jul 04 6:39 AM
how to restric a program with authorization in sap by providing the message that you are not authorized.
Example if a user having a program that would be while he execute the program the message should come as you are not athorized & he cant able to move to next step that means he should just see the code but not authorized to execute the program through O9 data services in SAP
2023 Jul 05 10:17 AM
Hello Afgan Mohammed Yaser,
Please check the below link to understand the process.
Regards,
Naveen Kumar Chikkanna.
2023 Jul 04 7:23 AM
Hello yasu_1096
yasu_1096Use AUTHORITY-CHECK and then MESSAGE if the authorization check fails.
Best regards
Dominik Tylczynski
2023 Jul 04 7:32 AM
2023 Jul 04 12:58 PM
Hi
3a9e4ce873a94034b33dc62b0ce600eeeveryone is telling this one can i know the process how to create it?
2023 Jul 05 10:48 AM
2023 Jul 28 6:48 AM
2023 Jul 04 11:47 AM
Usually users don't execute program but transactions.
Are your users allowed to a transaction such as SA38 to execute reports.
Of course you can add and handle a customer AUTHORITY-CHECK in your program in the LOAD-OF-PROGRAM event or initial dynpro (Many standard programs use an AUTHORITY-CHECK on their default transaction, often in initial dynpro logic)
NB: You could also notice in authorizaton object S_PROGRAM a P_GROUP field, that can also be handled in authorization. Manage the group list in table TPGP[T] with SM30 and use the group code in program attributes. (Using group to require less maintenance on user roles)
2023 Jul 05 11:53 AM
2023 Jul 06 3:04 PM
dominik-tylczynski , so often the first authorization check is performed in INITIALIZATION step for reports when the start values for parameter and selection criteria are initially set.
2023 Jul 05 10:17 AM
Hello Afgan Mohammed Yaser,
Please check the below link to understand the process.
Regards,
Naveen Kumar Chikkanna.
2023 Jul 28 6:49 AM
2023 Jul 05 4:14 PM
If you get unprecise answers, it's normal, because you are saying "through O9 data services" only at the very end as if it had no importance...
People answered generically to the rest of your question.
Could you explain how it's integrated with SAP system, which ABAP program or service is called by O9?