Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Formatting Error with thr currency fields.

Hi,

I am modifying a smartform and am printing the currency field whose type is WRBTR. When I try to print the line item value using w_item-wrbtr having type as WRBTR it gives me formatting error and when I change the field type to CHAR it prints the values. But this isnot what I want. I want to use the tupe as WRBTR and still print the values as they are.

Can any one tell me what is the solution to this. This should also be the problem with the Qty fields.

Any Solution..??

replied

hi,

to resolve ur problem regarding amount field,

1. in smartform-> global definition, give the following definitions:

v_curr type waers

v_wrbtr type wrbtr

2. in smartform -> global definition -> currency/quantity fields:

give the reference field v_curr for v_wrbtr.

after doing this, before displaying the data, copy the itab-wrbtr into v_wrbtr, now print v_wrbtr, u'll get the amount field correctly.

hope this solves ur problem.

if any doubt, plz revert back.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question