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: 

need to print with out comma

Former Member
0 Kudos

Hi all,

my table loaded like this 12,345.00 (curreny field).i need to print this data like 1234.00 .can any one help me

to resolve this issue?

7 REPLIES 7

Manohar2u
Active Contributor
0 Kudos

Move this field to character or WRITE into char variable with EDIT MASK.

Regds

Manohar

Former Member
0 Kudos

HI,

Goto t.code SU3, Select the tab <b>Default</b>, there maintain Decimal notation, whatever you select here that data will be appear to you

if you want to this one only for this program then use translate with condense.

translate str using ','.

condense str no-gaps.

Thanks

Sudheer

0 Kudos

You can do it like this.



report zrich_0001.

data: str(15) type c value '1,234.00'.


<b>translate str using ', '.
condense str no-gaps.</b>

write:/ str.

Regards,

Rich Heilman

former_member181962
Active Contributor
0 Kudos

data: v_str(15) type c.

write v_amt to v_str.

replace all occurances of ',' with '' in v_str.

write:/ v_str.

Regards,

Ravi

Former Member
0 Kudos

Hi

Assign the value to a variable (type P with decimal 2) then write the variable.

DATA: VAR type P decimals 2.

VAR = your amount value.

WRITE VAR.

You can do this same way in SAP script or Smart form also.

Bala

Note: Award points if helpful

Manohar2u
Active Contributor
0 Kudos
REPORT  YMANO_TEST1  .
tables bseg.                          .
data : wa_test like bseg-dmbtr value '124443'.

data wa_test1(30).
wa_test1 = wa_test.
write 😕 wa_test.
write 😕 wa_test1.

Former Member
0 Kudos

Hi priya,

move the currency field into another char field n try displaying that.

hope this helps.

regards,

keerthi.