‎2007 Feb 02 12:04 PM
in select options i need to compare the entred data with a character, this is the code
l_temp_ebeln = s_ebeln.
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
the 0(1) value is picking IEQ instead of po no can any one tell me how i need to avoid IEQ and compare the number
‎2007 Feb 02 12:04 PM
Make it this way
<b>l_temp_ebeln = s_ebeln-low.</b>
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
‎2007 Feb 02 12:04 PM
Make it this way
<b>l_temp_ebeln = s_ebeln-low.</b>
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
‎2007 Feb 02 12:05 PM
‎2007 Feb 02 12:05 PM
Hi,
Use
l_temp_ebeln = s_ebeln-low
(l_temp_ebeln = s_ebeln . )
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
Award if helpful
Thanks
Rajiv..
‎2007 Feb 02 12:13 PM
Hi,
You need to compare the values of selcet table by usig either s_ebeln-low or s_ebeln-high.
l_temp_ebeln = s_ebeln-low.
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
OR
l_temp_ebeln = s_ebeln-high.
if l_temp_ebeln+0(1) ca SY-ABCDE.
message i001(zcommon).
endif.
Ashvender
‎2007 Feb 02 12:16 PM
data: l_temp_ebeln type c(10) .
is this the right statement to declare the thing
‎2007 Feb 02 12:17 PM
‎2007 Feb 02 12:17 PM
NO.
This is correct:
data: l_temp_ebeln(10) type c.
Regards,
Ravi
‎2007 Feb 02 12:19 PM
Hi,
Declare like this because this is a standard method:
DATA: l_temp_ebeln(10) TYPE c.
Even this will also work
DATA: l_temp_ebeln(10).
Ashvender
‎2007 Feb 02 12:20 PM
‎2007 Feb 02 12:20 PM
may be ur trying to validate teh entered value on selection screen with a character
Execute this .
tables : ekko.
select-options : so_ebeln for ekko-ebeln.
if not so_ebeln is initial.
loop at so_ebeln.
if so_ebeln-low ca sy-abcde.
write:/ 'Hi'.
endif.
endloop.
endif.regards,
vijay