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 'Variant button' from Transaction.

Former Member
0 Likes
398

Hi guys!

I have a Ztransaction and I would like to exclude the 'Variant button' (ICON_VARIANTS) in the toolbar. I don't find anything in the forum so if somebody has an idea...

Tnaks in advance.

Best regards.

Ana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
341

Hi Ana,

please have a look at this wiki post: http://wiki.sdn.sap.com/wiki/display/Snippets/disablestandardececutebuttononselectionscreen

and try the following code:

data: l_program like sy-repid.
data: begin of t_excl_tab occurs 0,
        pfkey like sy-pfkey,
      end of t_excl_tab.

at selection-screen output.
  l_program = sy-cprog.
  append 'GET' to t_excl_tab.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status        = '%_00'
      P_PROGRAM       = l_program
    tables
      p_exclude       = t_excl_tab.

I hope this helps. Kind regards,

Alvaro

1 REPLY 1
Read only

Former Member
0 Likes
342

Hi Ana,

please have a look at this wiki post: http://wiki.sdn.sap.com/wiki/display/Snippets/disablestandardececutebuttononselectionscreen

and try the following code:

data: l_program like sy-repid.
data: begin of t_excl_tab occurs 0,
        pfkey like sy-pfkey,
      end of t_excl_tab.

at selection-screen output.
  l_program = sy-cprog.
  append 'GET' to t_excl_tab.

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status        = '%_00'
      P_PROGRAM       = l_program
    tables
      p_exclude       = t_excl_tab.

I hope this helps. Kind regards,

Alvaro