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

Exclude Application Toolbar button

Former Member
0 Likes
1,260

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

4 REPLIES 4
Read only

Former Member
0 Likes
817

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

Read only

Former Member
0 Likes
817

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

Read only

Former Member
0 Likes
817

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

Read only

Former Member
0 Likes
817

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