Example: sapgui_is_object_changeable

The following example uses sapgui_is_object_changeable to check if a tree control can be modified.

sapgui_tree_select_item("SAP Column Tree, REPTITLE", 
    "shellcont/shell", // Component ID
    "000712", 
    "REPTITLE", LAST );  
// Check if tree can be modified
// Output = "Tree is changeable"
if (sapgui_is_object_changeable("shellcont/shell", LAST))
    lr_output_message("Tree is changeable");
    else
    lr_output_message("Tree is not changeable");