09-22-2008 3:01 PM
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
09-22-2008 3:03 PM
>
> IF sy-ucomm EQ 'Percentage 001'
My guess this statement always failed.
09-22-2008 3:04 PM
Common IF. Just checking if the function code is equal to 'Percentage 001'.
No more info can be provided from that.
09-22-2008 3:07 PM
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...
09-22-2008 3:16 PM
09-22-2008 3:17 PM
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
09-22-2008 3:17 PM
IF sy-ucomm EQ 'Percentage 001'
means
If system variable sy-ucomm's value is equal to 'Percentage 001'
With lucK,
Pritam.