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

Иeрархия в alv



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



Joined: 18 Jan 2008
Posts: 59

PostPosted: Mon Mar 16, 2009 1:59 pm    Post subject: Иeрархия в alv Reply with quote

Здравствуйте, можно подобное (как на картинке, при нажатии на плюс раскрываются элементы, при нажатии на Минус - скрываются) реализовать в alv? Пример из table view.


hier.PNG
 Description:
 Filesize:  2.46 KB
 Viewed:  11172 Time(s)

hier.PNG


Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Mon Mar 16, 2009 3:22 pm    Post subject: Reply with quote

1.С помощью группировки (см.параметр IT_SORT в методе SET_TABLE_FOR_FIRST_DISPLAY)
2.С помощью класса CL_GUI_ALV_TREE.
См. примеры в программах BCALV*TREE*

_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
z01
Специалист
Специалист



Joined: 18 Jan 2008
Posts: 59

PostPosted: Mon Mar 16, 2009 6:16 pm    Post subject: Reply with quote

Спасибо, но скорей больше вопросов, чем ответов по предложенным вариантам:
1) Группировка раскроет все элементы одного уровня в списке, а нужна, что бы + / - сворачивал / разворачивал свой блок, а не весь список.
2) Tree раскрывает (возможно ошибаюсь) детализацию только по самому нижнему уровню, а нужно показывать в правой части детализацию по каждому уровню (см. пример).



tree.PNG
 Description:
 Filesize:  13.16 KB
 Viewed:  11149 Time(s)

tree.PNG


Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Mon Mar 16, 2009 8:37 pm    Post subject: Reply with quote

1)Да, в отличии от ALV-Grid в ALV-List можно по отдельности уровни раскрывать... Попробуйте нажать кнопку "Вывод списка".
2)Суммирование в Tree для узлов нормально делается Wink



ALV-Tree.PNG
 Description:
 Filesize:  40.98 KB
 Viewed:  11143 Time(s)

ALV-Tree.PNG



_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
z01
Специалист
Специалист



Joined: 18 Jan 2008
Posts: 59

PostPosted: Wed Mar 18, 2009 10:32 am    Post subject: Reply with quote

Удав wrote:
2)Суммирование в Tree для узлов нормально делается Wink


Возможно, что бы в верхних уровнях отображались не суммы, а заданные пользователем значения?
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.