‎2009 Feb 19 9:06 AM
Hi,
I created a user defined screen( type Modal dialog box) and coded necessary functionality in PAI & PBO modules.
Everything is working fine.
But, on the screen at the top-right we have a small cross mark i.e., 'x'. Generally in SAP standard screens if we click cross mark 'x', screen gets closed.
But, in my screen its not happening.
Where should I write the code for this functionality?
Thanks,
Shivaa........
‎2009 Feb 19 9:07 AM
‎2009 Feb 19 9:09 AM
Hi,
You have to activate GUI status for that screen .Then only those buttons get enabled.
Use SET PF-STATUS 'ZMENU'.Double click on zmenu and assign function codes for the respective buttons.
Regards,
Lakshman.
‎2009 Feb 19 9:13 AM
Hi,
U can go with T.code SE41 'MANU PAINTER' u can try from there...
Thanks,
Neelima.
‎2009 Feb 19 9:16 AM
hi,
Create a PF-STATUS for the screen Modal Dialog Box.
While Creating PF-SATUS..select the type as Dialog Box.
Then in Function Key ...
For F12 assign function Code as 'CANCEL' or EXIT.
in pai of ur Model Dialog Screen.
if sy-ucomm = 'EXIT'. or sy-ucomm = 'CANCEL'
leave program.
endif.Thanks & REgards
‎2009 Feb 19 9:16 AM
Hi ,
try this.
Create a button using set pf-status and assign the function code 'BACK' to it.
‎2009 Feb 19 9:17 AM
go to SE41.
write name zxy_xx
click on the status list radio button
then click on create
After this a screen will pop up.
fill the enteries STATUS and SHORT TEXT and enter.
after that goto ur requred tool bar and in module pool do the following programing.
module status_0102 output.
set pf-status 'ZTN_SCREEN_PROG_ST'.
set titlebar '3'.
endmodule. " STATUS_0102 OUTPUT
‎2009 Feb 19 9:19 AM
hi,
SET PF-STATUS 'MENU'.
and then double click on MENU and create it and then assign BACK and CANCEL button and then write code for it in PAI of that screen
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
thanks
‎2009 Feb 19 12:50 PM
Hi Siva,
In pbo while u set the PF-STATUS goto function keys and
assign EXIT to red colored 'X' over there.
in pai....
MODULE user_command_<scrnumber> INPUT.
CASE sy-ucomm.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.
Regards,
Mdi.Deeba.