Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Screen problem

Former Member
0 Likes
1,031

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........

8 REPLIES 8
Read only

Former Member
0 Likes
999

Hi;

Reinstall your SAP GUI .

Regards

Shashi

Read only

former_member209217
Active Contributor
0 Likes
999

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.

Read only

Former Member
0 Likes
999

Hi,

U can go with T.code SE41 'MANU PAINTER' u can try from there...

Thanks,

Neelima.

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
999

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

Read only

Former Member
0 Likes
999

Hi ,

try this.

Create a button using set pf-status and assign the function code 'BACK' to it.

Read only

Former Member
0 Likes
999

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

Read only

Former Member
0 Likes
999

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

Read only

Former Member
0 Likes
999

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.