Skip to Content

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

TabStrip - set a Tab dynamically in an Action

Hi Experts,

I'm building an application for flat file Uploads into alv. The view contains one TabStrip with two Tabs, one with the Content of flat file in an  ALV grid, the other tab with Messages. Depending on Content of flat file, I like to show tab with messages (in case of errors), or tab with flat file Content (successful load).

Has anyone an idea regarding coding?

Best regards, Thomas

Former Member

Hi Thomas,

lo_view ?= wd_this->wd_get_api( ).

That statement works for nw7.3 and above. Hope your system is not meeting that requirement.

Any way ...  please follow the below steps

  • Go to attributes tab of your view and create an attribute GO_VIEW .. type ref to IF_WD_VIEW
  • Now go to wddomodify ( ) method and save view reference into global Attribute GO_VIEW  as below


       If first_time = abap_true.

          Wd_this-> GO_VIEW = view.


  • In your action do_upload replace lo_view by wd_this->GO_VIEW

Hope this should work for u.



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