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

Regarding subscreen

Former Member
0 Likes
365

I've created a subscreen but when pressing on the 'X' button, its not getting closed.PLease advise me about the coding.

2 REPLIES 2
Read only

Former Member
0 Likes
349

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.

Read only

Former Member
0 Likes
349

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