Application Development 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: 

problem regarding sy-ucomm

Former Member
0 Kudos

hi all,

i want to know what does this statement mean?

IF sy-ucomm EQ 'Percentage 001'

thanks,

Poonam

Edited by: Poonam Naik on Sep 22, 2008 4:02 PM

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos

>

> IF sy-ucomm EQ 'Percentage 001'

My guess this statement always failed.

Former Member
0 Kudos

Common IF. Just checking if the function code is equal to 'Percentage 001'.

No more info can be provided from that.

Former Member
0 Kudos

may be before this statement there are other statements thru which sy-ucomm is getting filled.

so, if sy-ucomm gets filled with a value then the IF condition is been checked and further processing is done...

0 Kudos

syucomm = %100 i am telling,

Former Member
0 Kudos

Hi poonam,

In UI programming Sy-Ucomm is the system field which always holds the User Command(Function Code).

So in your code segment the If condition is checking whether the user has performed the action mentioned by function code '% 100'. If its true the statements inside the If will be executed , otherwise the next statement after the corresponding ENDIF will be executed.

Suppose, If Fcode '% 100' is assigned to a button which calculates percentage then the given code check whether the user has pressed that button.

Hope i have cleared your doubt.

Regards

Karthik D

Edited by: Karthik D on Sep 22, 2008 7:49 PM

Former Member
0 Kudos

IF sy-ucomm EQ 'Percentage 001'

means

If system variable sy-ucomm's value is equal to 'Percentage 001'

With lucK,

Pritam.