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

problem in work area while adding

Former Member
0 Likes
931

Hi ,

i am facing the problem in while adding wa inside loop.

sample code below ,

LOOP AT IT_BSEG_S into wa_bseg.

DEBIT = DEBIT + wa_bseg

ENDLOOP.

error message :

Arithmetic operations are only intended for operands that can be

converted to numbers (numeric operands). operands). - - - - - - - - - -

the above error message iam reciving ,

can any one guide me .

Regards,

Veera

5 REPLIES 5
Read only

Former Member
0 Likes
804

hi veerachamy

,

Do like this:

LOOP AT IT_BSEG_S into wa_bseg.

DEBIT = DEBIT + <b>wa_bseg-fieldname</b>

ENDLOOP.

Regards,

Sachin Bhatnagar.

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
804

Hi,

U should add the field of the work area to DEBIT. Not the whole wa.

Check the fields of IT_BSEG_S. u could have a field like debit.

now

it should be

DEBIT = DEBIT + wa_bseg-fieldname.

Regards

Vadivelan B

Read only

Former Member
0 Likes
804

Hi,

in line

DEBIT = DEBIT + wa_bseg.

specify the field name like wa_bseg-name.

Read only

former_member386202
Active Contributor
0 Likes
804

Hi,

Pass fieldname

LOOP AT IT_BSEG_S into wa_bseg.

DEBIT = DEBIT + wa_bseg-fieldname

ENDLOOP.

Regards,

Prashant

Read only

Former Member
0 Likes
804

Hi veerachamy ,

Please close the thread if your problem is solved.

Thanks,

Sachin Bhatnagar