Application Development 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: 

hide standard toolbar buttons

Former Member
0 Kudos

Hi All

I am working on transaction VA02 (change sales order). I add my own screen at Additional Data B screen at header level. Now i want to hide or disable the SAVE functionality if user is at Additional Data B screen (my custom screen). SAVE is a standard functionality available at that time.

I can add the code in the PBO of my custom screen but don't know how to do that.

Please suggest.

Thanks and Regards

Aditya

4 REPLIES 4

Former Member
0 Kudos

for that screen maintain your own menu. using set pf-status.

Former Member
0 Kudos

Hello,

Use this piece of code to get pointers to your issue.


DATA: it_ucomm TYPE TABLE OF sy-ucomm.
 
AT SELECTION-SCREEN OUTPUT.
  APPEND :
    'PRIN' TO it_ucomm,  "for print
    'SPOS' TO it_ucomm,	 "for SAVE
    'ONLI' TO it_ucomm,  "for execute
    'E' TO it_ucomm,    "for back
    'ENDE' TO it_ucomm,  "for exit
    'ECAN' TO it_ucomm.  "for cancel
 
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = sy-pfkey
    TABLES
      p_exclude = it_ucomm.

Regards,

Mansi.

Former Member
0 Kudos

Hi,

define the save button with the following ok code in your Pf-status ie with SVE.

lv_ucomm = 'SVE'.

Use the SET PF-STATUS 'URNME' excluding lv_ucomm.

revert back if u still need any clarity..

Edited by: ReddyKK on Apr 17, 2009 8:10 AM

I355602
Advisor
Advisor
0 Kudos

Hi,

Check the function code for the standard SAVE buttton in the transaction using debugging.

Say it is SAVE, so use code:-


SET PF-STATUS '<pf_status_name>' EXCLUDING 'SAVE'. "<--disables SAVE button

Hope this helps you.

Regards,

Tarun