Need your help

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Guest

Need your help

Post by Guest » Wed Nov 27, 2002 5:03 am

Hi all.

I am having strange problem during printing an invoice. I want to print item price from the billing item data.
for eq: item price VBRP-CMPRE: 23,000.00. It is printed out as 23,000.00 all the time. I want to print that amount as : 2,300,000.00.

Does anybody know how to cope?

Thanks a lot.
*_*

Ratman
Posts: 1514
Joined: Mon Oct 21, 2002 5:03 am
Location: Reading
Contact:

Re: Need your help.. please very urgent

Post by Ratman » Wed Nov 27, 2002 5:15 am

Anonymous wrote:for eq: item price VBRP-CMPRE: 23,000.00. It is printed out as 23,000.00 all the time. I want to print that amount as : 2,300,000.00.
What is the AMOUNT stored in VBRP-CMPRE?
and what do you want to print?

Ratman.

Guest

Post by Guest » Wed Nov 27, 2002 5:30 am

Hi!

the amount is stored in VBRP-CMPRE is 23,000.00. I want to print it as 2,300,000.00 as seen in the item pricing of billing document (transaction code VF03).

This amount 23,000.00 can be printed as 2,300,000.00 using statement WRITE ... CURRENCY 'IDR' in a report but I do not know in the layout set.

Please do you ever deal with this problem?

Alia*_*

Ratman
Posts: 1514
Joined: Mon Oct 21, 2002 5:03 am
Location: Reading
Contact:

Post by Ratman » Wed Nov 27, 2002 5:57 am

I dont know if this will work but...

try the set country command before you print the amount.
/: set country 'CAN' <--- example for Canada.

Otherwise you may have to go out of the form to do a calculation.

Ratman.

Guest

Post by Guest » Fri Nov 29, 2002 4:17 am

Hi


The simplest way u can use


VBRP-CMPRE = VBRP-CMPRE * 100.

enjoy


Neelu

TwoABAPers
Posts: 990
Joined: Sun Oct 20, 2002 9:16 pm
Location: web
Contact:

Post by TwoABAPers » Sun Dec 01, 2002 8:48 am

Hi !!
We think the country option as specified by Ratman should work.

Other wise

In print program achieve it by write statement and print the variable.

Code: Select all

data : v(20) type c.
write:/ vbrp-cmpre to v currency 'IDR'.
And in layout set use &V& instead of &VBRP-CMPRE&

Regards,
Sudhir/Mohit

Guest

Post by Guest » Mon Dec 02, 2002 4:16 pm

Hi,
The easiest option is to assign a variable Z_CMPRE in the print program as
Z_CMPRE = VBRP-CMPRE * 100
and, in the sapscript, use this variable (&Z_CMPRE &) instead of VBRP-CMPRE.

Kiran

Post Reply