on 09-18-2007 8:45 AM
Dear Gurus,
We have created one authorization object which has 7 fields. This object will be assigned to roles and roles in turn will be assigned t users.
Now when the user goes In the Interactive Demand Planning (/SAPAPO/SDP94) transaction he will be seeing the first screen. Suppose the user clicks on the shuffler and makes some selection and tries to save, at that time it should check the <b>authorization object</b> and if the values are there in those fields<b>(Authorization Object Fields)</b> then only he should be allowed to save that, otherwise it should show NO AUTHORIZATION.
How is this possible. Is there any Enhancement available for this, if yes please explain how to use that.
Thanks & Regards
Rajiv Roshan
Hi Rakesh,
AUTHORITY-CHECK OBJECT '<object>'
ID '<name1>' FIELD <f1>
ID '<name2>' FIELD <f2>
.............
ID '<name10>' FIELD <f10>.
by using above syntax we can check authorization suppose if you want to create authorization object go with su21 tcode.
If the above statement fails then populate the parameter CV_INVALID_SELECTION and CT_MESSAGE as below.
cv_invalid_selection = 'X' .
ct_message-type = 'E'.
ct_message-id = 'ZTEST'.
ct_message-number = 946.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv,
The BADI which I gave you will be triggered when u click the save button in the object selection.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajiv,
Implement the BADI definition /SAPAPO/SDP_SELECTOR (Method: SELECTION_CHECK) .You can do ur validation in this method. If condition fails then populate the parameter CT_MESSAGE.
Example:
ct_message-type = 'I'.
ct_message-id = 'Z08OU_DP'.
ct_message-number = 945.
ct_message-message_v1 = <ls_sel>-low.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there...did you already try the exit /SAPAPO/SAPLMCPR_015...not sure if this might help you...let us know if it does!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.