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

Несколько ALV-списков



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Aen Sidhe
Участник
Участник



Joined: 15 Sep 2008
Posts: 11

PostPosted: Mon Nov 24, 2008 4:30 pm    Post subject: Несколько ALV-списков Reply with quote

Доброго времени суток.

Делаю, как написано здесь

Один из списков, который надо отобразить вторым шире, чем первый. Если второй список отображать отдельно от всех - он показывается нормально, на всю ширину. Если его отображать вкупе с остальными, то тогда он отображается с переносом строк, а ширина равна ширине первого списка (первый список раза в 2.5 уже второго).

Возможно ли победить это? Если да, то как?
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Mon Nov 24, 2008 8:31 pm    Post subject: Reply with quote

Из примера, комментирую строку
* m_fieldcat 'NAME1' 'KNA1' 'GT_KNA1'.

второй список шире первого и не обрезается. Что не так?
Back to top
View user's profile Send private message Blog Visit poster's website
Aen Sidhe
Участник
Участник



Joined: 15 Sep 2008
Posts: 11

PostPosted: Tue Nov 25, 2008 9:22 am    Post subject: Reply with quote

То, что он всё-таки недостаточно широк. У меня список гораздо шире. Замените в FORM end_of_list добавление колонок на:

Code:

  m_fieldcat 'MATNR' 'MARA' 'GT_MARA'.
  m_fieldcat 'ERNAM' 'MARA' 'GT_MARA'.
  m_fieldcat 'ERSDA' 'MARA' 'GT_MARA'.
  m_fieldcat 'MTART' 'MARA' 'GT_MARA'.
  m_fieldcat 'MATKL' 'MARA' 'GT_MARA'.
  m_fieldcat 'MATNR' 'MARA' 'GT_MARA'.
  m_fieldcat 'ERNAM' 'MARA' 'GT_MARA'.
  m_fieldcat 'ERSDA' 'MARA' 'GT_MARA'.
  m_fieldcat 'MTART' 'MARA' 'GT_MARA'.
  m_fieldcat 'MATKL' 'MARA' 'GT_MARA'.


Список станет достаточно широким, для демонстрации моей проблемы.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Tue Nov 25, 2008 12:36 pm    Post subject: Reply with quote

Понятно, ситуация возникла, потому что второй лист разместили в end_of_list.

Для основного листа укажите:
Code:
FORM f_display_data.
...
  gs_layout-min_linesize      = 132.
Back to top
View user's profile Send private message Blog Visit poster's website
Aen Sidhe
Участник
Участник



Joined: 15 Sep 2008
Posts: 11

PostPosted: Tue Nov 25, 2008 12:42 pm    Post subject: Reply with quote

Нда. Решение было на поверхности.

Спасибо.

Кстати, вопрос. А как более правильно вывести несколько списков юзверю? Drilldown и master-detail в моём случае не сильно подходят.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


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

PostPosted: Tue Nov 25, 2008 1:53 pm    Post subject: Reply with quote

A чем этот вариант не устраивает?
Back to top
View user's profile Send private message Blog Visit poster's website
Aen Sidhe
Участник
Участник



Joined: 15 Sep 2008
Posts: 11

PostPosted: Tue Nov 25, 2008 1:58 pm    Post subject: Reply with quote

Всем устраивает. Просто вдруг есть какие-либо более правильные решения.

Я то нуб в САПе, поэтому и спрашиваю.
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.