Application Development 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: 

Exit Screen

Former Member
0 Kudos

hi,

i have made Screen 6500, on this screen i am calling another screen 6555 (which is just a help screen) on certaion input i have made 6555 as modal dialog,

but when i exit on 6555 screen it doesn't come back to screen 6500, i have written this code on Exit command of 6555.

set screen 0.

leave screen.

i have tried various combinations but not able to resolve help me out.

abhishek

1 ACCEPTED SOLUTION

Former Member
0 Kudos

i have already tried all the options given by u,but none is working.

abhishek

19 REPLIES 19

Former Member
0 Kudos

did u set the fucntion type in pf-status for ok-code back

double click pf-status and in function keys, standard toolbar double click back and set the functional tyre to E

regards

gv

0 Kudos

i don't have any PF status in my screen, i have made a button Exit on this i am writing the leave screen code

but it justs leaves me out of the programme.

abhishek

Former Member
0 Kudos

hi,

try with Leave to screen 6500.

sasi

0 Kudos

i have tried with leave to scree 6500

but it also exits from the whole programe.

abhishek

0 Kudos

just try like this

SET SCREEN 0.

LEAVE SCREEN.

Former Member
0 Kudos

Hi Abishek,

It should work for u.

Try this,write this code in the PAI module of the Screen 6555.

CASE OK-CODE.

WHEN 'EXIT'.

SET SCREEN 0.

LEAVE SCREEN.

ENDCASE.

Thanks&Regards

Ruthra.R

Former Member
0 Kudos

hello,

have you try with

set screen 6500.

leave screen?

bye enzo

Former Member
0 Kudos

i have already tried all the options given by u,but none is working.

abhishek

0 Kudos

just go thru the souce of function moodule

POPUP_TO_DECIDE_INFO

POPUP_WITH_TABLE_DISPLAY

popup_.....

to achive this....

regards

gv

0 Kudos

Hi

which kind of screen is 6500?

and how do you call screen 6555?

Max

Message was edited by: max bianchi

0 Kudos

6500 is normal screen

6555 is modal dialog screen

i am calling 6555 in 6500

with

call screen 6555 starting at 10 10 ending at 20 20

abhishek

0 Kudos

at the user command of screen 6555

set screen 0.

leave screen.

this shd work...

if not can u post the source code of 6500 and 6555

0 Kudos

dear venkat i have tried this i m also shocked why it s not working

at 6500

i have validate pbdnr and put this code to call 6555

*&---------------------------------------------------------------------*
*&      Module  f_validate_pbdnr  INPUT
*&---------------------------------------------------------------------*
MODULE f_validate_pbdnr INPUT.
  SELECT werks matnr bdzei INTO TABLE i_pbim
    FROM pbim WHERE pbdnr = wa_header_pir-pbdnr.

  IF sy-subrc <> 0 .
    MESSAGE e045(zsd) WITH wa_header_pir-pbdnr.
  else.
    CALL SCREEN 6555 STARTING AT 40 2  ENDING AT 60 12.
  ENDIF.
ENDMODULE.                 " f_validate_pbdnr  INPUT

and at 6555 user command this one.


*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_6555  INPUT
*&---------------------------------------------------------------------*
MODULE user_command_6555 INPUT.
  CASE sy-ucomm .
    WHEN 'EXIT' .
*      LEAVE SCREEN .
*set screen 6500.
*      set screen 0.
*      LEAVE SCREEN .
  ENDCASE .
  CLEAR sy-ucomm .
ENDMODULE.                 " USER_COMMAND_6555  INPUT

i have made a button in 6555 with function code EXIT, no pf is there in 6555, the type of the two screens i have mentioned earlier, if i do

set screen 6500.

leave screen.

then the screen 6500 opens in the 6555 it self,

but i want to close 6555.

abhishek

Message was edited by: Abhishek Suppal

0 Kudos

leave screen.

set screen 6500.

did u try like this ?

0 Kudos

Hi

I seem the code is right, now another question where do you insert the module MODULE f_validate_pbdnr?

Have you try to run your popup in debug after pushing the button fo exit?

Max

0 Kudos

i have put set screen 6500 and then leave screen,

and i have put f_validate_pbdnr on my sceen where pai and pbo are called.

abhishek

0 Kudos

Hi

I suppose you insert this module MODULE f_validate_pbdnr is PAI of 6500, don't you?

One thing is sure, if 6555 is dialog modal: you have to call it by CALL SCREEN and you have to leave it by SET SCREEN 0. LEAVE SCREEN.

You haven't use SET SCREEN 6500. LEAVE SCREEN.

If use it the system'll open 6500 into 6555.

In a user command of 6555, at the point of code where stataments SET SCREEN 0, set a break point: now you can run program in debug.

You should see the program to back to the point where the popup was called, so to module f_validate_pbdnr after CALL SCREEN 6555.

Max

0 Kudos

hi,

check with screen attributes of screen 6555.

what is the next screen ( try with next screen 6500 )

sasi

Former Member
0 Kudos

You can use


  call screen 'XXXX' starting at  5  5
                     ending   at 45  8.

to call the screen.

In the PAI of screen XXXX you use to return to the previous screen.


module user_command_XXXX input.
  case ok_code.
    when 'OK'.
"     Some code     "
      set screen 0.
    when 'AB'.
      set screen 0.
  endcase.
endmodule.

Good luck

Message was edited by: Ronald Groennou