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

Comma

Former Member
0 Likes
502

Hi folks,

How to include a comma in an amount? Also i want to delete the leading space between currency sign($) and the amount?

what i mean is, my present o/p in the SAPscript form is:

$ 16500.00

but i want as

$16,500.00

regards,

vishwanath

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
480

If you want to move the $ sign next to the amount, I believe that you need to do this in the print program and pass the entire value as a character field.

[code]

data: some_amount type p decimals 2 value '156000.12'.

data: char_amount(15) type c.

write some_amount to char_amount.

CONCATENATE '$' char_amount into char_amount.

CONDENSE char_amount no-gaps.

shift char_amount right DELETING TRAILING space.

[/code]

REgards,

Rich Heilman

Read only

0 Likes
480

I am trying. Meanwhile, i have created an element in the paragraph formats as LI with tab alignments as centre,left,right,right for four tabs. But, system is throwing message- Unable to call PC editor(unkown paragraph format <LI>).What could be the reason in your view?

Message was edited by: vishwanath vedula

Read only

0 Likes
480

Have you misspelled the paragraph format, is it LI or L1(L, one)?

REgards

Rich Heilman

Read only

0 Likes
480

No. It is LI only. Only window's word kind of editor is not opening, the other editor is fine where the message is thrown.

Message was edited by: vishwanath vedula