‎2010 May 29 12:13 PM
hi all,
what is the code for cancel button meance without process of current screen leave to another transaction.
thanx in advance.
‎2010 May 29 12:19 PM
hi,
you have write the code In the User-command form .
Case sy-ucomm.
When 'CANC'.
call the transaction what you want.
endcase.
regards,
Aj
‎2010 May 29 12:19 PM
hi,
you have write the code In the User-command form .
Case sy-ucomm.
When 'CANC'.
call the transaction what you want.
endcase.
regards,
Aj
‎2010 May 29 12:45 PM
HI Ajay,
i did the same but there is requird field and whenever i press for cancel is give red meassage Fill in all required entry fields
‎2010 May 29 1:18 PM
‎2010 May 29 2:01 PM
Hi ,
in the gui status set the Functional Type to E, write a module in PAI with
MODULE EXIT AT EXIT-COMMAND.
and in exit module write
if okcode eq 'CANC'.
call transaction
endif.
this will work chk it
‎2010 May 29 2:22 PM
Define functional type = E for this 'CANCEL' button in gui status.
In the PAI of the screen add MODULE EXIT_SCREEN at EXIT_COMMAND.
Inside this module you should enter the following code:
case sy-ucomm.
when ''CANC'.
If you want you can add a warning here
set screen 0. " This will take you back to the calling screen
leave screen.
when others.
endcase.
if you overwrote old values (from previous screen) in the current screen (that you are exiting) then make sure these changes are reverted. I am guessing this happends automatically, its been a while since I worked on screen ...
Raj