‎2007 Feb 08 10:21 AM
Hi,
My requirement is to call SM30 skiping the first screen in either display/maintain mode according to the logged in user. I make this check in a program and call VIEW_MAINTEINANCE_CALL in 'U'/'S' mode. but i see even when the screen of SM30 is opened in 'S' /Display mode , we have the Change button which will allow the user to make changes. So i require to exclude this button from the application toolbar. I think ihave to write something like
SET PF-STATUS 'ZSLG' excluding 'CHANGE'.
but i don't know where do i write this ? Can anyone please help ?
Thanks,
Asha
‎2007 Feb 08 10:29 AM
Hi Asha,
You can do this only inside the module pool program of the table maintenance screens.
If you do this, it will get affected in sm30 itself(No longer specific to your program).
Instead, restrict the user based on his role for cetrain transcations.
Regards,
Ravi
‎2007 Feb 08 8:06 PM
Hi Asha,
What you can do is, create a transaction on the table maintenance and then on that create transaction variants from SHDO. While maintaining the transaction variants just exclude the buttons you dont want and based on the user access rights (which you already seem to know) you can call the tranasction with the appropriate variant.
Hope this helps.
Rgds,
Aditya
‎2007 Feb 08 8:25 PM
Hi,
You can also create a new "maintenance view" in DDIC..And can say Read only..
Example
-
GO TO SE11
Select the radio button..View..
GIve a view name..
Press create button..
Choose the Maintenance view radio button..
Give the short text..
In the table/Join conditions tab..Give the table name..
IN the view fields tab..Give the field names..
In the Maint. status tab..Select the radio button "Read only".
Activate the view..Create a table maintenance for this view..
Thanks,
Naren
‎2007 Feb 09 12:23 AM
If you are calling the VIEW_MAINTENANCE_CALL function module, you can then fill in the tables parameter EXCL_CUA_FUNCT with the function code AEND of that button. That will take care of it. See below.
it_vimexclfun-function = 'AEND'. <---
APPEND it_vimexclfun.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = p_v_action
* CORR_NUMBER = ' '
* GENERATE_MAINT_TOOL_IF_MISSING = ' '
* SHOW_SELECTION_POPUP = ' '
view_name = p_table
* NO_WARNING_FOR_CLIENTINDEP = ' '
* RFC_DESTINATION_FOR_UPGRADE = ' '
* CLIENT_FOR_UPGRADE = ' '
* VARIANT_FOR_SELECTION = ' '
* COMPLEX_SELCONDS_USED = ' '
* CHECK_DDIC_MAINFLAG = ' '
* SUPPRESS_WA_POPUP = ' '
TABLES
* DBA_SELLIST =
excl_cua_funct = it_vimexclfun <---
EXCEPTIONS
client_reference = 1
foreign_lock = 2
invalid_action = 3
no_clientindependent_auth = 4
no_database_function = 5
no_editor_function = 6
no_show_auth = 7
no_tvdir_entry = 8
no_upd_auth = 9
only_show_allowed = 10
system_failure = 11
unknown_field_in_dba_sellist = 12
view_not_found = 13
maintenance_prohibited = 14
OTHERS = 15