2009 Nov 20 8:20 AM
Hello All,
I need to configure a cancel button beside the execute button on my selcetion screen.
i used the statement :
selection-screen function key 1.
i got a button beside the execute button.but how do i assign the functionality of the cancel to button to this button
Regrads,
varun
Hello All,
I need to configure a cancel button beside the execute button on my selcetion screen.
i used the statement :
selection-screen function key 1.
i got a button beside the execute button.but how do i assign the functionality of the cancel to button to this button
Regrads,
varun
2009 Nov 20 8:28 AM
Hi Varun,
Just do as below :-
CASE SY-UCOMM
WHEN 'CANCEL'
LEAVE TO SCREEN 0Or erlse you have to do as below using AT EXIT COMMAND.
1) Define SET PF-status statement in your program.
2) While designing a button select CANCEL button from the STANDARD TOOL BAR. On double clicking on it, you have to assign the *FUNCTIONAL TYPE as E *
So whenever you execute your program & select that button it will work as you expected.
Kindly set to resolved if it helps you.
Regards
Abhii
2009 Nov 20 8:33 AM
Hi,
Try this
if sy-ucomm eq 'FC01'. "Code for the button assigned using Function Key 1
leave to screen 0.
endif.
2009 Nov 20 8:39 AM
Hi Varun,
Check this link:
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/frameset.htm
Regards,
Swarna Munukoti.