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

OK CODE

Former Member
0 Likes
388

Hi ,

I have 4 push butons with 4 okcode , If first time i click one ok code the screen moves to corresponding PBO , When i come back from that PBO and click other Push Button The screen again moves to same PBO first Displayed .

I want to solve this How To solve ?

2 REPLIES 2
Read only

Former Member
0 Likes
359

Hello Kumar,

Move the OK Code to another variable in the User Command in the PAI of the screen and clear the original OK Code. Use the second variable for operations.

e.g:

ok_code_sav = ok_code.

clear ok_code.

case ok_code_sav.

...

endcase.

Manoj

Read only

Former Member
0 Likes
359

Hi,

You need to write the code as like this ...

CASE SY-UCOMM.

When 'First'.

Do this .

when 'SECOND'

Do this

ENDCASE.

the above code will be in the PAI, so the PBO will be trigger for every click, so you do not want that then take a flag in the TOP include and write the accordingly.

Regards

Sudheer