Application Development 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: 

smartforms-currency formatting.

Former Member
0 Kudos

hai Abapers,

In report we print a value from a field which is of type CURR, we write the statement 'WRITE: W_VALUE CURRENCY W_CURRENCY

WHERE W_CURRENCY WILL be USD or YEN or EUR and the value will be formatted accordingly.

Is there any similar code in smartforms or sapscripts. plz post the message asap.

plzzzz give some tech info its urgent

Thank u one and all.

Message was edited by: Ateeq K

3 REPLIES 3

Former Member
0 Kudos

Hi,

My proposal is to convert it to another variable.

data MYSTRING(20).

WRITE W_VALUE TO MYSTRING CURRENCY W_CURRENCY.

Svetlin

christian_wohlfahrt
Active Contributor
0 Kudos

Hi,

in smartforms you can define a reference field. In header, fields have to be defined. For quantities and currencies a reference field can be added.

When filled at runtime, corresponding output option is used automatically.

Regards,

Christian

Former Member
0 Kudos

The option said above ( definiting reference fields ) is in 4.7. But in 4.6c, you don't have such option. So you have to use another method, define a char field and then use wrtie to field with currency.

regards,

Gagan