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

data type

Former Member
0 Likes
1,325

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
Read only

Former Member
0 Likes
1,301

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
Read only

Former Member
0 Likes
1,301

Hello Amit,

Use the addition NO-GROUPING with the WRITE statement.

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

Manoj

Read only

0 Likes
1,301

thanks manoj.

but this is in a list(report).

Read only

0 Likes
1,301

You can use the WRITE statement in a report..

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

Read only

Former Member
0 Likes
1,302

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

Read only

0 Likes
1,301

REUSE_ALV_LIST_DISPLAY is being used to display the results

Read only

0 Likes
1,301

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

Read only

0 Likes
1,301

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

wa_fcat-datatype = 'CHAR'.

Read only

0 Likes
1,301

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.

Read only

Former Member
0 Likes
1,301

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

Read only

Former Member
0 Likes
1,301

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

Reward if usefull..