‎2007 Sep 27 7:41 AM
Hi experts
I have created authorization fields and assigned in objects properly.
My case is i am calling the transaction ZMAST which is create through table maintenance(ZMASTER) of the table ZMASTER.
Now where to implement this coding part and how to do.
Please explain me clearly the steps , the following coding part i put in dialog programming right now and can you tell me will this code work fine.
WHEN 'MAST'.
AT SELECTION-SCREEN.
AUTHORITY-CHECK OBJECT 'ZRAJ_TEST1'
0 ID 'ACTVT' FIELD '03'.
IF sy-subrc <> 0.
MESSAGE 'No authorization' TYPE 'E'.
ENDIF.
CALL TRANSACTION 'ZMAST'.
Thanks in advance.
Regards
Rajaram
‎2007 Sep 27 7:55 AM
I am not too sure if you have to write code for this.
When you are creating the table maintenance you have an option to put the auth object.
Can you check if that will automatically handle all the auth issues?
If that does not help, go to the function group of the table maintenance screen, you probably find a place where you can put in your code. (The code will get deleted each time you regenerate the table maintenance screen).
‎2007 Sep 27 8:03 AM
but when assign authorization object its not asking any coding part yar.
where to do coding pls, suggest me.
‎2007 Sep 27 8:13 AM