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

Alignment

Former Member
0 Likes
563

hi all,

i have developed an ALV report,

the problem now is 2 fields local currency and document currency are right aligned ,while importing to excel , they are importing with leading spaces that need to be deleted.

so this 2 fields should aligned to left.

please help how to write code for this.

thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
529

write a left-alignment.

Read only

Former Member
0 Likes
529

When creating fieldcatalog for these fields ...

assign

JUST = 'L' .. means left justified ...

Read only

Former Member
0 Likes
529

Hello

This seems to be more of a problem related to Excel than SAP. In the excel speadsheet if the number is entered it will be always alligned to right and not left. To overcome this problem, basically you have make sure you are saving number as a text in excel. To achieve that while downloading to excel prefix the number with a apostrophe ( ' ), then the downloaded value will be number stored as text in excel and it will be alligned to left.

Regards

~ Ranganath

Read only

Former Member
0 Likes
529

Hi ,

check in the fieldcatalog there is an option for the left aligned

Regards

Lalit