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

GUI status problem

Former Member
0 Likes
1,060

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,029

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.

Read only

Former Member
0 Likes
1,029

Hi Kaki,

Can we have the code please...:)

Regards,

Ravi

Read only

Former Member
0 Likes
1,029

Hi Kaki,

Check whether you are clearing ok_code.

And alos can you post your code.

Thanks & Regards,

Siri.

Read only

0 Likes
1,029

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.

Read only

0 Likes
1,029

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.

Read only

0 Likes
1,029

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.

Read only

Former Member
0 Likes
1,029

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

Read only

Former Member
0 Likes
1,029

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.