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

Disabling the fields in table maintainance

Former Member
0 Likes
475

Hi,

Can anyone tell me how to disable some of the fields in table maintaince (SM30) using events or with any other functionality based on the authoizations.

Please let me know in detail.

Thanks.

Hi,

Can anyone tell me how to disable some of the fields in table maintaince (SM30) using events or with any other functionality based on the authoizations.

Please let me know in detail.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
444

hi,

OPen the table in SM30 in your dev.client. Go to the screen where you want to validate the fields.

Write a module in the PAI routine. Dbl click and create the module..endmodule.

Write the code there for testing the authorizations.

Regards,

Subramanian

Read only

Former Member
0 Likes
444

When you Generate the Table maintenance in SE11.

You will mention the Function Group and screen number.

So use the Function group and go to se80, and change the screen

in that screen in PBO you can use the logic to make it Disable using the LOOP AT SCREEN.

if authorization check fails

LOOP AT SCREEN.

if screen-name = 'XYZ'.

screen-input = 0.

modify screen.

endif.

ENDLOOP.

endif.

But careful when you are regenerating the Tablemaintenace, it will be deleted. So again you need to add the logic the screen inorder to make the fields disable

Read only

Former Member
0 Likes
444

Hi,

You can try this

in SE11 , utilities --> Table Maintenance Generator

You will have the screen numbers ,

Double click on the screen numbers, u will get screen

Double click on the field you want in display mode and in the attributes of that field change that to display only