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

extended check warning

Former Member
0 Likes
590

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
554

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

2 REPLIES 2
Read only

anup_deshmukh4
Active Contributor
0 Likes
554

your high low values are of they are of DE type C(4) probably your woraning is for that

Read only

Former Member
0 Likes
555

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