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: 

data type

Former Member
0 Kudos
157

there is a field in the report which has data type CURR length 8 and dec place 2.

because of this the value displayed has commas in between (like 100,000.00). how to do away with the commas?

thanks,

amit

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos
133

Try this.

data: v_new(20).

write v_val to v_new. "V_val is your curr field

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

write:/ v_new.

Regards,

ravi

10 REPLIES 10

Former Member
0 Kudos
133

Hello Amit,

Use the addition NO-GROUPING with the WRITE statement.

E.g: WRITE field CURRENCY curr NO-GROUPING.

Manoj

0 Kudos
133

thanks manoj.

but this is in a list(report).

0 Kudos
133

You can use the WRITE statement in a report..

E.g: WRITE <field> CURRENCY <curr> NO-GROUPING.

former_member181962
Active Contributor
0 Kudos
134

Try this.

data: v_new(20).

write v_val to v_new. "V_val is your curr field

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

write:/ v_new.

Regards,

ravi

0 Kudos
133

REUSE_ALV_LIST_DISPLAY is being used to display the results

0 Kudos
133

Of course, it can be a list program you have to mode the contents of the curr type field into a char type variable(Include another field in the internal table that is being displyed) and change the field catalog as well.

Regards,

Ravi

0 Kudos
133

in the fieldcatalog for that field , change the datatype to CHAR

wa_fcat-datatype = 'CHAR'.

0 Kudos
133

the data in the internal table is in the format 537863.39 . but when it is passed to REUSE_ALV_LIST_DISPLAY it is displayed with commas.

Former Member
0 Kudos
133

You mean.. you want decimal in place of comma? whats your query..

Former Member
0 Kudos
133

To change the settings, Go to system-> userprofiles->owndata. Select defaults tab and change the format..

Reward if usefull..