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

Regarding SAP Script

Former Member
0 Likes
657

Hey Guys,

One problem I am facing in SAP Script.. thing is numeric values are printed it in some different way..

I mean to say KOMVD-KBETR(12) contains value " <b>12,000.00</b>" But it contains values <b>12.000,00</b>. Which is wrong. Cause the instead of comma(,) Dot is coming(.) and Instead of dot(.) comma (,) is comming.. Please suggest how to solve it in SAP Script

5 REPLIES 5
Read only

JozsefSzikszai
Active Contributor
0 Likes
631

hi Mike,

you have to go like this:

DATA : lv_kbetr TYPE komvd-kbter.

WRITE : komvd-kbter TO lv_kbetr.

now you have to print lv_kbter instead of komvd-kbetr, but it will be fine

hope this helps

ec

Read only

0 Likes
631

Hi Eric,

I am passing the correct value from the driver program but in debugging mode the format get changed.....

Read only

0 Likes
631

It picks up the user settings, I guess. If that is the case than you either change the user settings, or modify the printout during program run, i.e. move the value to a character type field and replace dots and comas with each other.

Read only

Former Member
0 Likes
631

Hi Mike,

write ur field value in this format.

Suppose Bsega-wrshb is the currency field u wanna write.

So use this extension for it.

write:/ BSEGA-WRSHB CURRENCY BSID-WAERS.

This will definately help u out.

Kindly reward points.......

Regards,

Sapna A.

Read only

varma_narayana
Active Contributor
0 Likes
631

Hi ..

The Decimal values are formatted as per the USER PROFILE default settings.

To change this:

Menu path: SYSTEM -> USER PROFILE -> OWN DATA -> Defaults Tab

Select the Decimal Format as needed.

Now check the Form..

<b>reward if Helpful.</b>