08022006 4:52 AM
In my zprogram i got the short dump in the below st.
"COMPUTE_BCD_OVERFLOW "
V_VERZ1 = P_KEYDT  IT_DATAFAEDT.
can u give suggestion.
08022006 5:07 AM
how are your variables defined and what values are causing this to happen? I suspect that v_verz1 is packed decimal and is too small to hold the result of the subtraction. The right fields look like dates which are 8 digits so the v_verz1 should be able to hold 8 digits in case p_keydt = 0.
try defining it as: data v_verz1(8) as type p.
08022006 5:13 AM
i declared like
FAEDT LIKE RFPOSFAEDT
V_VERZ1 LIKE RFPOSVERZ1

sydatum
08022006 6:03 AM
verz1 can only hold 5 decimal digits. faedt can hold 8. You didn't say but I guess p_keydt is a date and can therefore also hold 8 digits.
You need to declare verz1 so that it can hold 8 digits. This is because if p_keydat is 0 and faedt holds 20060802
then it will try to put 20060802 into a 5 digit variable and will fall over.
So, Declare v_verz1 as: data v_verz1(8) type p.