2008 Jul 22 4:40 PM
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.
2008 Jul 22 4:49 PM
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
2008 Jul 22 5:08 PM
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
2008 Jul 22 5:31 PM
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
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |