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

select-options

Former Member
0 Likes
1,256

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,217

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.

10 REPLIES 10
Read only

Former Member
0 Likes
1,218

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.

Read only

Former Member
0 Likes
1,217

l_temp_ebeln = s_ebeln-low.

Read only

Former Member
0 Likes
1,217

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..

Read only

Former Member
0 Likes
1,217

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

Read only

Former Member
0 Likes
1,217

data: l_temp_ebeln type c(10) .

is this the right statement to declare the thing

Read only

0 Likes
1,217

data: l_temp_ebeln(10).

this will do

Read only

0 Likes
1,217

NO.

This is correct:

data: l_temp_ebeln(10) type c.

Regards,

Ravi

Read only

0 Likes
1,217

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

Read only

Former Member
0 Likes
1,217

yes

Read only

Former Member
0 Likes
1,217

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