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

filtering data

Former Member
0 Likes
649

Hi,

i am new to abap. i want to de-select the data which have vale- blank-space or character vale. only integer type of data need to be selected. plz help me in writing the expression .

regards

vivek

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

You can give a condition for that

v_val IS NOT INITIAL.

Hope this solves your purpose.

Award points if it helps.

-Gaurang

Hi,

i am new to abap. i want to de-select the data which have vale- blank-space or character vale. only integer type of data need to be selected. plz help me in writing the expression .

regards

vivek

5 REPLIES 5
Read only

Former Member
0 Likes
630

You can give a condition for that

v_val IS NOT INITIAL.

Hope this solves your purpose.

Award points if it helps.

-Gaurang

Read only

Former Member
0 Likes
629

select * from dbtable into itab where vale <> ' ' and ca 'abcdefghijklmnopqrstuvwxyz'

Read only

0 Likes
629

hi,

this statement is showing error.

regards

vivek

Read only

Former Member
0 Likes
629

check this sample..

data : begin of itab occurs 0,

f1(5) type c,

end of itab.

itab-f1 = 'ABC1'.

append itab.

itab-f1 = '111'.

append itab.

itab-f1 = 'ABC1'.

append itab.

itab-f1 = '221'.

append itab.

loop at itab.

if itab-f1 ca sy-abcde or itab-f1 = ''.

delete itab index sy-tabix.

endif.

endloop.

loop at itab.

write : / itab-f1.

endloop.

regards

shiba dutta

Message was edited by:

SHIBA DUTTA

Read only

Former Member
0 Likes
629

hi vivek,

just try this,

select * from dbtable where field NE ' ',

and field GE '0'

and field LE '99999999999999'.

this code can solve your problem.

regards...

seshu.