Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Hide a tray in web dynpro abap


I am building a webdynpro application in which i have a table inside a tray. I have to hide the tray when there is no data to display within the table.

Could someone please let me know how to hide a tray when there is no data to be displayed.




bind the TRAY property visible to a context attribute of type wdui_visibility.

Fill the attribute based on your condition like

tr_visible = cl_wd_tray=>e_visible-visible

tr_visible = cl_wd_tray=>e_visible-none

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question