‎2007 Oct 15 7:37 AM
I've created a subscreen but when pressing on the 'X' button, its not getting closed.PLease advise me about the coding.
‎2007 Oct 15 7:41 AM
hi,
for sub screens u cant have application or menu or standard tool bar buttons. in ur case u try writing code in AT USER-COMMAND event as
in pbo module of sub screen
AT USER-COMMAND on EXIT.
leave to list-processing.
endmodule..........
if helpful reward some points.
with regards,
Suresh Aluri.
‎2007 Oct 15 7:41 AM
Hi,
U need to define the PF-STATUS for the subscreen.
This can be done in the PBO of the subscreen.
On the PF-STATUS, u need to define the 'X' button. and in the PAI of the subscreen, u need to do the coding for it.
in THE PAI, code u can use is:
case sy-ucomm.
when 'CANCEL'.
LEAVE TO SCREEN 0.
or any other LEAVE statement as per ur requirement.
endcase.
Regards,
Himanshu