04-17-2009 6:30 AM
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
04-17-2009 6:37 AM
04-17-2009 6:42 AM
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.
04-17-2009 7:10 AM
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
04-17-2009 7:19 AM
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