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

field alignment

Former Member
0 Likes
605

Dear friends

I have a Alv grid report, after running the report i am downloading the file to excel sheet by local download method. after downloading to excel sheet one field(Currency field) is center aligned.

I need to make the field left alligned, Pls suggest me how to make this.

thanks in advance

karthik

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

If you want to do it manulay, then select that column in excel and click on the Left Alignment button in the toolbar

If you want to do it in program , then in fieldcatalog ,

wa_fieldcat-fieldname = 'CUUR_FIELD'.
wa_fieldcat-just = 'L'.

Message was edited by:

Chandrasekhar Jagarlamudi

3 REPLIES 3
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
569

Hi

At the time of creation of the report itself you have to do this.

Default all are left aligned only.

Regards,

Sreeram

Read only

Former Member
0 Likes
570

If you want to do it manulay, then select that column in excel and click on the Left Alignment button in the toolbar

If you want to do it in program , then in fieldcatalog ,

wa_fieldcat-fieldname = 'CUUR_FIELD'.
wa_fieldcat-just = 'L'.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
569

Instead of using a CUrrency type field in the itab, use a normal char type variable in the itab declaration.

Regards,

Ravi