cancel
Showing results for 
Search instead for 
Did you mean: 

Cheque problem

former_member630092
Participant
0 Kudos

I am working on cheque printing. Single page upper side shows date/transn

and amount and then g-total. Lower part shows cheque.

When i execute T-code f-58 and fill comp code , payment method c , house bank etc.

some times it give exact result. but some times it gives some junk value or '*' sign in amount.

but in both cases the g-total is always correct.

what could be the reason.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member630092
Participant
0 Kudos

Answered

Former Member
0 Kudos

Just a guess... if a value will not fit in a SAPscript field, it will add an "*" on the left. Is it possible the value is larger than the size on the layout set will allow?

former_member630092
Participant
0 Kudos

hi

My cheque problem is not solved. as mentioned earlier : it gives exact result like

sno ! refdoc. no ! mrr date ! amount

here display all entries

-


total 12344.00

But in some cases it gives the only total

no entry is didplayed.

and debugeer shows this error

{concatenate '(-)' gamount into itab_main-amount .

condense itab_main-amount no-gaps .

ibseg-WRBTR = ibseg-WRBTR * -1 .

else .

write ibseg-WRBTR to itab_main-amount.

endif.

BREAK-POINT.

itab_main-invdt = ibsik-bUdat.

*write ibseg-WRBTR to itab_main-amount .

  • itab_main-amount = ibseg-WRBTR.

total = total + ibseg-WRBTR.

itab_main-mrnno = ibseg-EBELN .

itab_main-refdoc = ibsik-XBLNR.

*REPLACE ',' IN itab_main-amount WITH '?'.

*REPLACE ALL OCCURENCES OF '.' IN itab_main-amount WITH ','.

*REPLACE '?' IN itab_main-amount WITH '.'.

append itab_main.

clear itab_main.

endloop.

endif.

write total to totald.}

Plese let me know the fault.

thanks