‎2005 Nov 18 9:48 AM
Hi,
I have two screens 1000 & 2000.
I have given execute button ('STRT') in screen 1000.
Once exectued, it is going to screen 2000.
When iam coming back to 2000 to 1000 & execute again(in 1000 screen)...it is not working(not going to screen 2000).That means it is working only one time...
What i have to do to execute always...
points guarnateed
kaki
‎2005 Nov 18 9:55 AM
Try to Debug and check .
Try to Handle BACk properly and Clear the OK-codes set the PF_status differently.
and fcodes too..
Regards
Vijay.
‎2005 Nov 18 9:55 AM
‎2005 Nov 18 9:59 AM
Hi Kaki,
Check whether you are clearing ok_code.
And alos can you post your code.
Thanks & Regards,
Siri.
‎2005 Nov 18 10:04 AM
PBO screen 1000
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'G1000'.
SET TITLEBAR 'G1000'.
CASE OK_CODE.
when 'BACK' or 'EXIT'.
clear ok_code.
set screen 0.
leave screen.
when 'STRT'.
LEAVE TO SCREEN 2000.
ENDCASE.
clear ok_code.
ENDMODULE.
‎2005 Nov 18 10:20 AM
Hi Kaki,
After coming back to screen 1000 and press 'STRT' and
check the ok_code in the debugging. it contains any value?
Thanks & Regards,
Siri.
‎2005 Nov 18 10:20 AM
Checking should be in PAI
MODULE USER_COMMAND_0100.
CASE OK_CODE.
when 'BACK' or 'EXIT'.
clear ok_code.
set screen 0.
leave screen.
when 'STRT'.
LEAVE TO SCREEN 2000.
ENDCASE.
clear ok_code.
ENDMODULE.
‎2005 Nov 18 10:17 AM
Hi Kaki,
Firstly your code to process the user input (Pressing the button) should be in PAI..not PBO.
And sometimes ok_code doesnt have the pressed key code.. Use SY-UCOMM instead.
Regards,
Raj
‎2005 Nov 18 10:18 AM
HI,
In every screen you have to set pf-status,
and handle back and exit in module user_command
when you use
call screen 2000
in screen 2000 you have to use leave to screen 1000, this will destroy 2000 screen and goes to 1000.
so check what you r using
leave to screen 1000
or
call screen 2000.
just to come back to previous screen you also other option
just say
leave to screen 0.