SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Вертикальное выравнивание в Smartform



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Garik
Специалист
Специалист



Joined: 11 Oct 2007
Posts: 60

PostPosted: Wed May 19, 2010 2:58 pm    Post subject: Вертикальное выравнивание в Smartform Reply with quote

Коллеги, добавил новую ячейку в Table Footer.
Какое свойство задает вертикальное выравнивание, чтобы текст в первой ячейке последней строки был выравнен как остальные ячейки? Голову уже сломал изучая свойства ячеек с нужным выравниванием, помогите.

ps: Стиль параграфа и фонта одинаковый.



smartform_footer.PNG
 Description:
 Filesize:  5.77 KB
 Viewed:  8875 Time(s)

smartform_footer.PNG


Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 180
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Thu May 20, 2010 10:38 am    Post subject: Reply with quote

Какой тип данных в первой ячейке?
Может быть полное число не влезает в ячейку и спереди вы видите лидирующие пробелы (в сартформе пробелы не удалются, размер ячейки не увеличивается в ширину)? Попробуйте длину ограничить g_index(2).

_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
Sed0Y
Специалист
Специалист


Age: 41
Joined: 17 Mar 2010
Posts: 88
Location: Ukraine - Kiev

PostPosted: Thu May 20, 2010 11:35 am    Post subject: Reply with quote

vga wrote:
Попробуйте длину ограничить g_index(2).


или выставите выравнивание по центру, у меня была такая же ситуация, помогло как писал VGA &g_index(2)& и выровнял по центру!
Back to top
View user's profile Send private message
Garik
Специалист
Специалист



Joined: 11 Oct 2007
Posts: 60

PostPosted: Thu May 20, 2010 12:29 pm    Post subject: Reply with quote

Тип был определен sy-tabix, то есть 8 символов длиной. Горизонтальное выравнивание по центру стояло.
g_index(2) помогло, спасибо всем!!!
Back to top
View user's profile Send private message
july7
Старший специалист
Старший специалист



Joined: 10 Oct 2007
Posts: 109
Location: Киров

PostPosted: Mon May 24, 2010 2:21 pm    Post subject: Reply with quote

Может, лучше не ограничивать длину выводимых данных (а если количество позиций превысит 99, то длина будет уже 3, а не 2), а убрать лишние пробелы: &g_index(C)&?
Вот еще несколько полезных опций форматирования:
Code:
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.