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

Screen exit

Former Member
0 Likes
963

I have implemeted screen exit for IW51 transaction(for IS module MRO). I have added one table control and some buttons. Once your press scroll buttions its workin fine but those are not carring any ok-codes(i.e sy-ucomm is empty).

Problem:

If i press the button what i added in that screen, the functionality what i written for it is working fine. But after that if i go to scroll down/up , sy-ucomm is carreing same ok-code,that belogs to the button what i pressed before scroll.

So functionality that is written for that buttion is getting executed even i go for scroll down/up.

Please reply if you any solutions

Thanks in advance,

Sadasiva.

8 REPLIES 8
Read only

Former Member
0 Likes
941

HI sadasiva,

1. Probably u could CLEAR the okcode / sy-ucomm

after your functionality is over,

thru the code.

regards,

amit m.

Read only

0 Likes
941

I have cleared the sy-ucomm, but before displaying the screen , it is reassigning it to sy-ucomm , i think that is form standard transaction.

Even i tried by puttion the clear at PBO event, but i am getting the same problem.

Thanks,

Sadasiva.

Read only

0 Likes
941

Hi again,

1. Put this clear code

in PAI (not PBO)

after all the functionality gets completed.

regards,

amit m.

Read only

0 Likes
941

I have cleared the sy-ucomm at PAI, after functionality itself, also tried at PBO.

Thanks,

Sadasiva

Read only

0 Likes
941

Hi again,

1. Apart from sy-ucomm,

2. there will be another field,

something like OKCODE,

3. clear that also.

regards,

amit m.

Read only

0 Likes
941

w_code = sy-ucomm.

ok_code = w_code.

clear w_code.

and use case statement for ok_code values!!

reward points if it helps

gunjan

Read only

Former Member
0 Likes
941

Hi,

Try clearing SY-UCOMM after the functionlaity is executed .

When u scroll the table control, the PBO event is called.

Regards,

Tanveer.

Read only

Former Member
0 Likes
941

Hi,

Could you please explain how you implementes screen exit for IW51. reply please