09-28-2005 7:25 AM
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
09-28-2005 9:36 AM
i have already tried all the options given by u,but none is working.
abhishek
09-28-2005 7:29 AM
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
09-28-2005 7:33 AM
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
09-28-2005 7:32 AM
09-28-2005 7:34 AM
i have tried with leave to scree 6500
but it also exits from the whole programe.
abhishek
09-28-2005 8:42 AM
09-28-2005 8:45 AM
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
09-28-2005 8:55 AM
09-28-2005 9:36 AM
i have already tried all the options given by u,but none is working.
abhishek
09-28-2005 9:38 AM
just go thru the souce of function moodule
POPUP_TO_DECIDE_INFO
POPUP_WITH_TABLE_DISPLAY
popup_.....
to achive this....
regards
gv
09-28-2005 9:44 AM
Hi
which kind of screen is 6500?
and how do you call screen 6555?
Max
Message was edited by: max bianchi
09-28-2005 9:53 AM
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
09-28-2005 9:55 AM
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
09-28-2005 10:18 AM
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
09-28-2005 10:23 AM
09-28-2005 10:29 AM
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
09-28-2005 10:55 AM
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
09-28-2005 11:12 AM
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
09-28-2005 11:17 AM
hi,
check with screen attributes of screen 6555.
what is the next screen ( try with next screen 6500 )
sasi
09-28-2005 1:08 PM
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