‎2007 Oct 29 5:20 AM
Hai i am coding below statements
l_diff(3) TYPE c,
l_diff = ( i_final_table1-ftrmi - i_final_table1-gstrp ).
if l_diff > 0.
Endif.
But here i_final_table1-ftrmi = 28.08.2007
and i_final_table1-gstrp = 08.09.2006
and the l_diff is coming *4- and while checking in IF Condition it is going to Dump so can any one pls Help me in this
‎2007 Oct 29 5:24 AM
Hi Chaaya,
Change
l_diff(3) TYPE c,
TO
<b>l_diff TYPE i.</b>
Regards,
Atish
‎2007 Oct 29 5:28 AM
hi sen,
change the definition of I_diff.
do like this:
data : I_diff(8) type c.
or
data : I_diff type i_final_table1-ftrmi.
or
data : I_diff type sy-datum.
Reward me if useful........
Harimanjesh AN
‎2007 Oct 29 5:31 AM
i only modified the code as
l_diff(4) TYPE c,
Thx for all replies
‎2007 Oct 29 5:33 AM
‎2007 Oct 29 6:09 AM
hi chhaya,
check the format of all fields.
wat value you exactly want from that subtraction,plz clear me this.
we cannotperform operations on date fields directly,i suppose.
please explain me in detail what exactly output you are expecting.