‎2010 Jan 22 3:42 AM
I am removing extended check warnings in my program :
I got warning as
1). " Suspicious conversion in V_BEG_PERIOD from ABAP type 'N' to NUMERIC"
So, I changed declaration as int4 as below
v_beg_period TYPE int4, " numc2,
CONCATENATE c_t_glt0 c_trans_lclcur v_beg_period INTO v_hslfld IN CHARACTER MODE .
Then My program got error as below while syntax check...Could you please suggest me how to elimate the warning ?
"V_BEG_PERIOD" must be a character-like data object (data type C, N, D, T, or STRING) STRING).
2).
"Suspicious conversion in RO_RPMAX-HIGH from ABAP type 'N' to NUMERIC"
DATA: v_sum_ctr TYPE INT4
TYPES: BEGIN OF type_s_rpmax,
sign TYPE rsdsselopt-sign,
option TYPE rsdsselopt-option,
low TYPE rpmax,
high TYPE rpmax,
END OF type_s_rpmax.
Getting warning at below stmt.
v_sum_ctr = RO_RPMAX-high - RO_RPMAX-low + 1.
Could you please suggest hwo to avoid this warning.
I know warnings are normally however my client is asking to remove.
YOUR help is appreciated.
‎2010 Jan 22 4:32 AM
Hi Kumar,
First , Move v_beg_period to character type field and then concatenate,
Second , Keep the type of below same.
v_sum_ctr , RO_RPMAX-high , RO_RPMAX-low.
And check.
Hope this helps you.
Edited by: Harsh Bhalla on Jan 22, 2010 10:03 AM
‎2010 Jan 22 3:48 AM
your high low values are of they are of DE type C(4) probably your woraning is for that
‎2010 Jan 22 4:32 AM
Hi Kumar,
First , Move v_beg_period to character type field and then concatenate,
Second , Keep the type of below same.
v_sum_ctr , RO_RPMAX-high , RO_RPMAX-low.
And check.
Hope this helps you.
Edited by: Harsh Bhalla on Jan 22, 2010 10:03 AM