﻿if V[bomTreeActive]
  Clear V[bomTree*]
  
else
  Clear V[bomTree*]
  
  // create BOM tree table
  Process bomTreeTable = bom_create_tree  "&F[Material]" "&F[Plant]"  "&F[BOM Usage]"   "&F[Valid From]" 
  
  if V[bomTreeTable]
    // indicate: create webview
    Set V[bomTreeActive] "C"
  endif
endif

Return
