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

Как скрыть часть линий в листе



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



Joined: 11 Oct 2007
Posts: 103

PostPosted: Fri Oct 22, 2010 3:03 pm    Post subject: Как скрыть часть линий в листе Reply with quote

Здравствуйте!
Пишу интерактивный отчет с возможностью скрывать - раскрывать области (кнопки + или - слевой стороны).

Как в Sap листе скрыть часть строк при нажатии на кнопку +?



hide_list.PNG
 Description:
 Filesize:  2.08 KB
 Viewed:  5302 Time(s)

hide_list.PNG


Back to top
View user's profile Send private message
Armann
Модератор
Модератор



Joined: 01 Jan 2008
Posts: 422
Location: Moscow

PostPosted: Fri Oct 22, 2010 5:00 pm    Post subject: Reply with quote

ИМХО - перерисовывать либо весь листинг, либо его часть - например текущую страницу
Back to top
View user's profile Send private message Blog
den
Старший специалист
Старший специалист



Joined: 11 Oct 2007
Posts: 103

PostPosted: Mon Oct 25, 2010 1:36 pm    Post subject: Reply with quote

Спасибо Armann. Решил отказаться от этой затеи, понял, что по простму не получится.

Когда данные не многострочные, можно использовать функции ниже, но для моего случая это не подошло.

Code:
*----------------------------------------------------------------------------------------------------------------------
* displayTree...
*----------------------------------------------------------------------------------------------------------------------
form displayTree using iLocTreeDisplay like iTreeDisplay[].

data: waTreeDisplay type snodetext.

* build up the tree from the internal table node
  call function 'RS_TREE_CONSTRUCT'
       tables
            nodetab            = iTreeDisplay
       exceptions
            tree_failure       = 1
            id_not_found       = 2
            wrong_relationship = 3
            others             = 4.

* get the first index and expand the whole tree
  read table iLoctreeDisplay into waTreeDisplay index 1.
  call function 'RS_TREE_EXPAND'
       exporting
            node_id   = waTreeDisplay-id
            all       = 'X'
       exceptions
            not_found = 1
            others    = 2.

* now display the tree
  call function 'RS_TREE_LIST_DISPLAY'
       exporting
            callback_program      = sy-cprog
            callback_user_command = 'CB_USER_COMMAND'
            callback_text_display = 'CB_text_DISPLAY'
            callback_top_of_page  = 'TOP_OF_PAGE'
       exceptions
            others                = 1.
endform.                                                                                                   "displayTree
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.