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

Dates Error

Former Member
0 Likes
630

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

5 REPLIES 5
Read only

Former Member
0 Likes
607

Hi Chaaya,

Change

l_diff(3) TYPE c,

TO

<b>l_diff TYPE i.</b>

Regards,

Atish

Read only

harimanjesh_an
Active Participant
0 Likes
607

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

Read only

Former Member
0 Likes
607

i only modified the code as

l_diff(4) TYPE c,

Thx for all replies

Read only

0 Likes
607

Hi Chaaya,

Better make it a type I field.

Regards,

Atish

Read only

Former Member
0 Likes
607

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.