‎2006 Jun 05 9:23 AM
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.
‎2006 Jun 05 9:28 AM
HI sadasiva,
1. Probably u could CLEAR the okcode / sy-ucomm
after your functionality is over,
thru the code.
regards,
amit m.
‎2006 Jun 05 9:32 AM
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.
‎2006 Jun 05 9:34 AM
Hi again,
1. Put this clear code
in PAI (not PBO)
after all the functionality gets completed.
regards,
amit m.
‎2006 Jun 05 9:37 AM
I have cleared the sy-ucomm at PAI, after functionality itself, also tried at PBO.
Thanks,
Sadasiva
‎2006 Jun 05 9:38 AM
Hi again,
1. Apart from sy-ucomm,
2. there will be another field,
something like OKCODE,
3. clear that also.
regards,
amit m.
‎2006 Jun 05 10:23 AM
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
‎2006 Jun 05 9:32 AM
Hi,
Try clearing SY-UCOMM after the functionlaity is executed .
When u scroll the table control, the PBO event is called.
Regards,
Tanveer.
‎2008 Oct 23 12:31 PM
Hi,
Could you please explain how you implementes screen exit for IW51. reply please