2008 Oct 24 1:19 PM
hi,
i have 2 z-abaps, which are called in HTML-SAP-GUI
now i want to hide the buttons for 'BACK' and 'SAVE' in the selection screen.
how to handle this ? i am using FM RS_SET_SELSCREEN_STATUS
to hide other buttons, but is this also possible for the above mentioned ones ??
reg, Martin
2008 Oct 24 1:45 PM
check this sample
REPORT ztest_status.
DATA: it_ucomm TYPE TABLE OF sy-ucomm.
PARAMETERS: carrid TYPE sflight-carrid.
AT SELECTION-SCREEN OUTPUT.
APPEND :
'PRIN' TO it_ucomm, "for print
'SPOS' TO it_ucomm,
'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.
hi,
i have 2 z-abaps, which are called in HTML-SAP-GUI
now i want to hide the buttons for 'BACK' and 'SAVE' in the selection screen.
how to handle this ? i am using FM RS_SET_SELSCREEN_STATUS
to hide other buttons, but is this also possible for the above mentioned ones ??
reg, Martin
2008 Oct 24 1:22 PM
Use the SET PF-STATUS command with the EXCLUDING addition.
DATA fcode TYPE TABLE OF sy-ucomm.
...
MODULE status_0100 OUTPUT.
APPEND 'CHANGE' TO fcode.
APPEND 'SAVE' TO fcode.
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
ENDMODULE.
Where CHANGE and SAVE are the function codes.
2008 Oct 24 1:39 PM
thanks,
but how should my program know about MODULE status_0100 OUTPUT.
how to call this module ????
reg, Martin
2008 Oct 24 1:26 PM
2008 Oct 24 1:45 PM
check this sample
REPORT ztest_status.
DATA: it_ucomm TYPE TABLE OF sy-ucomm.
PARAMETERS: carrid TYPE sflight-carrid.
AT SELECTION-SCREEN OUTPUT.
APPEND :
'PRIN' TO it_ucomm, "for print
'SPOS' TO it_ucomm,
'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.
2008 Oct 24 1:49 PM
AT SELECTION-SCREEN OUTPUT.
APPEND :
'PRIN' TO it_ucomm, "for print
'SPOS' TO it_ucomm,
'ONLI' TO it_ucomm, "for execute
'E' TO it_ucomm, "for back
'ENDE' TO it_ucomm, "for exit
'ECAN' TO it_ucomm. "for cancelyeeeeeees, thats working !
but one thing left: how is the function code for SAVE ??? the save button is still there.
with 'E' i was able to hide the back-button ! thats fine.
reg, Martin
2008 Oct 24 1:54 PM
APPEND :
'PRIN' TO it_ucomm, "for print
'SPOS' TO it_ucomm, "is for saveFor me it s in Disable mode. what about you.
2008 Oct 24 1:58 PM
Vijay,
thanks a lot !!!! it is working !!!!
full points for you !!
reg, Martin
2014 Mar 25 7:10 AM
2014 Mar 29 9:59 AM
Dear VIjay,
How Did U Get the User Commands Like 'PRIN' and 'SPOS'.
I have analysed the above Code, I tried to Debug the FM: RS_SET_SELSCREEN_STATUS
But it is Not going into the FM.
Can U explain why it is Not going in to Debugging.
2015 Apr 10 11:48 AM
Actually, As per the requirement two selection screens are there. In the 2nd Screen, I want to disable back , exit and cancel button and your suggestion is not working for this scenario.
Could anyone suggest me some idea ?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |