cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in check sapscripts printing

Former Member
0 Kudos

Hi friends,

I am getting this error (The program attempted to interpret the value "*81145.00-" as a number, but since the value contravenes the rules for correct number formats,

this was not possible.)

while printing only this doc no 1200425

throught tcode fbz5 .

i had used this code

for calculating TDS.

SELECT belnr

wt_qbshb

FROM with_item

INTO TABLE i_with_item

WHERE belnr = v_belnr.

LOOP AT i_with_item.

V_WT_QBSBH = V_WT_QBSBH + I_WITH_ITEM-WT_QBSHB.

ENDLOOP.

V_TDSVAL = V_WT_QBSBH.

CLEAR V_WT_QBSBH.

IF V_TDSVAL < 0.

V_WT_QBSBH = -1 * V_TDSVAL.

V_TDSVAL = V_WT_QBSBH.

SHIFT V_TDSVAL RIGHT CIRCULAR.

ENDIF.

Can any one help me.

points will be rewarded for helpful answers.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The field WT_QBSHB is of type currency

Because of the filler *, youre getting a number format exception.

You can try removing the * before processing

Former Member
0 Kudos

Hi,

'Shift' statement can be used on data objects of type string.

Check what type did you declare the variable V_TDSVAL.

Regards.