‎2007 Dec 12 11:41 AM
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
‎2007 Dec 12 11:43 AM
hi veerachamy
,
Do like this:
LOOP AT IT_BSEG_S into wa_bseg.
DEBIT = DEBIT + <b>wa_bseg-fieldname</b>
ENDLOOP.
Regards,
Sachin Bhatnagar.
‎2007 Dec 12 11:45 AM
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
‎2007 Dec 12 11:53 AM
Hi,
in line
DEBIT = DEBIT + wa_bseg.
specify the field name like wa_bseg-name.
‎2007 Dec 12 11:58 AM
Hi,
Pass fieldname
LOOP AT IT_BSEG_S into wa_bseg.
DEBIT = DEBIT + wa_bseg-fieldname
ENDLOOP.
Regards,
Prashant
‎2007 Dec 12 1:27 PM
Hi veerachamy ,
Please close the thread if your problem is solved.
Thanks,
Sachin Bhatnagar