2008 Apr 18 9:14 AM
hi i have problem with if statement
how to give date range in if stmt.
i mean.
if wa_out-fkdat <= v_10 and wa_out-fkdat > v_30.
then some abap code.
endif,
is it right
if not tell me correct one.
because this stmt not working
2008 Apr 18 12:45 PM
Using this statement will not work.
FKDAT cannot be less than 10 and greater than 30. Its impossible. Maybe u need: -
if wa_out-fkdat <= v_10 or wa_out-fkdat > v_30.
then some abap code.
endif,
hi i have problem with if statement
how to give date range in if stmt.
i mean.
if wa_out-fkdat <= v_10 and wa_out-fkdat > v_30.
then some abap code.
endif,
is it right
if not tell me correct one.
because this stmt not working
2008 Apr 18 9:18 AM
Using this statement will never work.
How could FKDAT be less than 10 and greater than 30. Its impossible. Maybe u need: -
if wa_out-fkdat <= v_10 or wa_out-fkdat > v_30.
then some abap code.
endif,
2008 Apr 18 9:28 AM
hi let us say
v_10 = 19.03.2008
v_30 = 18.02.2008
and i have to satisfy those two conditions so, how can i procedd.
2008 Apr 18 10:15 AM
When you need a range you have to use the BETWEEN operator.
if wa_xxx between v10 and v30.
do something.
endif.
2008 Apr 18 9:18 AM
2008 Apr 18 9:23 AM
hi this is correct .
if wa_out-fkdat <= v_10
or wa_out-fkdat > v_30.
endif.
regards,
venkat.
2008 Apr 18 9:23 AM
Hi,
run this code it is working fine.
Data: s_date type sy-datum,
s_date2 type sy-datum.
s_date = '20080420'.
s_date2 = '20080415'.
if sy-datum <= s_date
and sy-datum > s_date2.
break-point.
endif.
if it works then reward points
2008 Apr 18 10:33 AM
Hi Chaityana,
if wa_out-fkdat <= v_10
or wa_out-fkdat > v_30.
Follwed By our code
endif.
Reward If Helpfull,
Naresh
2008 Apr 18 12:45 PM
Using this statement will not work.
FKDAT cannot be less than 10 and greater than 30. Its impossible. Maybe u need: -
if wa_out-fkdat <= v_10 or wa_out-fkdat > v_30.
then some abap code.
endif,
2008 Aug 01 11:51 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |