Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Where to do coding part for authorization object with Table Maintenance

Former Member
0 Likes
526

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

3 REPLIES 3
Read only

Former Member
0 Likes
492

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).

Read only

0 Likes
492

but when assign authorization object its not asking any coding part yar.

where to do coding pls, suggest me.

Read only

Former Member
0 Likes
492

You can user table maintainence events also .