Deleting the active tab: We want to make a prototype of GuiXT for the SAP CRM application of my client (a utility company) and we are facing a problem.

There are 3 tabs (P[T\TSRV_IC01], P[T\TSRV_IC02], P[T\TSRV_IC03]) and we want to hide the first one. We have tried using del P[T\TSRV_IC01]; the problem is that when we are on the screen it does not disappear until we have moved on to one of the following tabs P[T\TSRV_IC02] or P[T\TSRV_IC03]. How can we fix this?

There are two different "tab" modes in the SAP system, so this makes your goal a bit complicated. Normally SAP uses tabs that cause an application server interrupt when clicked.

In this case you can work with

if Q[Page=xxxxx]

   ...

endif

if Q[Page=yyyy]

  ...

endif

in your script in order to distinguish the tabs. If you want to delete the first tab you need to switch to a different tab when the transaction starts with this tab, since it is not possible to delete the active tab:

// 1st tab active?

if Q[Page=xxx first page]

Enter "=IC02"   // go to 2nd tab (example)

endif

The 2nd kind of tab is the "local" tab. These are rarely used in the SAP system, but transaction CIC0 uses them in some places. Here all fields are already on the frontend and the change between tabs is done locally without application server interrupt, and without processing the GuiXT script again. Please use the keyword "SetActiveTab" in this case.