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

clear sy-ucomm

Former Member
0 Likes
3,558

I have a subscreen whose main screen is in some different function group so i have to handle the fcodes that are assigned to push button.

Subscreen has table control

My problem is after i used push button (say Delete) and then want to scroll down in table control since sy-ucomm still has previous F-code i am not able to scroll down.

Any help is appreciated.

Thanks in advance.

Alok

I have a subscreen whose main screen is in some different function group so i have to handle the fcodes that are assigned to push button.

Subscreen has table control

My problem is after i used push button (say Delete) and then want to scroll down in table control since sy-ucomm still has previous F-code i am not able to scroll down.

Any help is appreciated.

Thanks in advance.

Alok

6 REPLIES 6
Read only

Former Member
0 Likes
1,685

Hi Alok,

define your own variable for user command and assign it to your subscreen in "Element list" tab. Than You will have separately an user command for screen and for subscreen. Also it is better to always clear a value of variable used for user command let's say in every PBO.

Regards,

Adrian

Read only

0 Likes
1,685

Hi Adrian/Shailaja ,

But in case of subscreen ok code can not be assigned to user specific variable

@Shailaja

since sy-ucomm itself has previous values,so no point in assigning it to other variable and use that one or clear

regards

Alok

Edited by: alok patel on Feb 3, 2010 12:22 PM

Edited by: alok patel on Feb 3, 2010 12:23 PM

Read only

MarcinPciak
Active Contributor
0 Likes
1,685

You are looking for [this|http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/frameset.htm]

Regards

Marcin

Read only

Former Member
0 Likes
1,685

Hi,

Declare a variable for sy-ucomm and assign that to ok_code of evry screen ......then you wil have the unique .....ok_code which gets triggered

Thanks,

Shailaja Ainala.

Read only

Former Member
0 Likes
1,685

Hi,

What the others are trying to say I guess is that assign a OK_CODE to every screen and use the OK_CODE instead of the sy-ucomm.

And when you scroll down, the sy-ucomm is ' '. There is no designated sy-ucomm value for scrolling.

There should be some kinda bug in your code.

I would suggest you to debug thoroughly.

Read only

Former Member
0 Likes
1,685

Code bug.

Thanks All.