2008 Jun 30 12:26 PM
Hi all,
I have to write the IF condtiton based on the field in the internal table
that is if the field ITAB-COUNT is greater than 20 and Less than 30 only
Then the control should go into the IF conditon
How to write this
Regards
Ajay
2008 Jun 30 12:30 PM
Try
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
else.
do something else
endif.
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
endif.
Regards
J
Try
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
else.
do something else
endif.
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
endif.
Regards
J
2008 Jun 30 12:29 PM
Hi Ajay,
U can do this way...
IF ITAB-COUNT > 20.
IF ITAB-COUNT < 30.
........
ENDIF.
ENDIF.Best regards,
raam
2008 Jun 30 12:30 PM
Try
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
else.
do something else
endif.
If itab-count gt 20 and
i_tab-count lt 30.
do condition of your choice.
endif.
Regards
J
2008 Jun 30 12:30 PM
2008 Jun 30 12:31 PM
Hi Ajay,
Loop at itab .
if itab-count gt 20 and itab-count lt 30.
< Your statements>
endif.
endloop.
Regards,
Rajitha.
2008 Jun 30 12:31 PM
hi,
do this way ...
loop at itab.
if itab-count > 20 and itab-count < 30.
* Do something
endif.
endloop.
2008 Jun 30 12:32 PM
Hi Ajay,
Try this :
Loop at itab.
If itab-count > 20
And itab-count < 30.
Write 😕 <fields to display>
Endif.
Endloop.
Regards,
Swapna.
2008 Jun 30 12:32 PM
Hi,
IF itab-count GT 20 AND itab-count LT 30.
......
ENDIF.
or
IF itab-count > 20 AND itab-count < 30.
......
ENDIF.Regards
Adil
2008 Jun 30 12:34 PM
hi,
Code
DATA : ITAB LIKE MARA OCCURS 0.
DATA : N TYPE I.
DESCRIBE TABLE ITAB LINES N.
IF ( ( N > 20 ) AND ( N < 30 ) ).
--
--
--
ENDIF.
reward points if useful
Regards,
Mansi.
Edited by: SAP USER on Jun 30, 2008 1:35 PM
2008 Jun 30 12:36 PM
Hi,
Try the below code
IF 10 BETWEEN 5 AND 15.
MESSAGE 'TT' TYPE 'I'.
ENDIF.
Regards,
SB
2008 Jun 30 12:39 PM
Hi
Hey this piece of code will help to get the idea
PARAMETERS :
p_count TYPE i.
IF p_count BETWEEN 20 AND 30 .
write :
/ 'Yes'.
ENDIF
Regards
Pavan
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |