Application Development and Automation 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: 
Read only

Currency format problem

Former Member
0 Likes
1,077

Hi,

I am working on a SAP script. The problem is : The display format of the field is erroneous.

Actual requirement is : 99.999.999,00

What is actually coming as output is as follows:

Current format got : 99999.999,00

What could be the cause of error? Please help. (Points will be awarded)

5 REPLIES 5
Read only

Former Member
0 Likes
692

Hi,

Check the User Settings in Su01 T code (defaults).

and use the Command SET COUNTRY <Country name> and see.

reward if sueful

regards,A

nji

Read only

Former Member
0 Likes
692

Try this

Declare any variable of type NETWR (or any curr type)

Then try WRITE <ur variable> TO W_NETPR.

Then WRITE: W_NETPR

DATA:

w_netpr type netpr.

w_netpr = '99999999'.

write: w_netpr.

Reward if helpful...

Read only

Former Member
0 Likes
692

Hi..,

In OPEN_FORM function module u will have one parameter called OPTIONS.. this is of structure ITCPO.

take a fieldstring of type ITCPO.

for this structure pass the corresponding country key to the parameter TDTELELAND , and now assign this to OPTIONS of the FM OPEN_FORM...

reward if it helps u..

sai ramesh

Read only

Former Member
0 Likes
692

s,

a) use the Command SET COUNTRY <Country name>

b)also check systen->user profile->owndata -> selsct 'Defaults' tab strip ->Check Decimal Notation assign properly or not

Read only

Former Member
0 Likes
692

Hi,

This is simple. This can be done by setting correct currency reference, using database structures that have amount field with currency references. Let's say you are trying to print amount from bseg structure. Check if the same structure has currency field, if yes set the currency field with your prefrence and display the amount.

<u>EX:</u>

DATA: WF_AMOUNT LIKE BSEG-FKWRT

BSEG-PSWSL = ‘KRW’.

WF_AMOUNT = BSEG-WRBTR.

Note: Reward Points if useful

Regards,

Sekhar.