Liquid UI - Documentation - 6.09 del()

6.09 del()


Purpose

Using the del() you can remove native SAP screen elements. This command allows you to delete unnecessary native SAP screen elements such as push buttons, fields, groupbox, radiobutton, etc., on an SAP screen. In this article, you will learn about various formats to use the checkbox command

Syntax

 
del("[screen_element]",{"option":true..});
 

Properties

  • screen_element - Element code and name

Supported Elements

You can use del() with the following element types:

Element

Syntax

Description

Checkboxes
del("C[checkbox_name]");
Deletes a checkbox.
Inputfields
del("F[inputfield_name]");
Deletes an input field.
Group boxes
del("G[groupbox_name]");
Deletes a groupbox.
Menu labels
del("M[menu_label]");
Deletes menu label.
Menu function keys
del("M[/menuFunctionKey]");
Deletes the menu function name.
Pushbuttons
del("P[pushbutton_name]");
Deletes a push button.
Radiobuttons
del("R[radiobutton_name]");
Deletes a radiobutton.
Tabs
del("P[tab_name]");
Delete a tab.
Application Toolbar Buttons
del("P[application_toolbar_button]");
Deletes an application toolbar.
Tab strips
del("S[tabstrip_name]");
Deletes a complete tabstrip.
Tables
del("T[table_name]");
Deletes a table.
Grids
del("X[grid_name]");
Deletes a grid.

Available Options

You can use the following options with the del:

"box":".."

"box":true - Removes the box element, while keeping its contents.

"keepfunctioncode":".."

"keepfunctioncode":true -   Deletes the push buttons but keeps its function code accessible.

"text":".."

"text":true - Deletes only the text label of a field.

"triple":".."

"triple":true - Deletes label, textfield, and description box of an input field.

"value":".."

"value":true - Deletes the value of an input field.

"withbox":".."

"withbox":true - Deletes a tabstrip and its associated elements.

Options Detail

box

  1. Deletes the group box but retains the inner elements.
     
    // Deletes group box
    del("G[Organizational Data]",{"box":true});
     
    Deletes the group box
     
  2. Removes the Organizational Data while leaving its fields untouched.

keepfunctioncode

  1. The keepfunctioncode option is used only with toolbar or onscreen pushbuttons that contain a process.
     
    // Deletes the push button
    del("P[Item overview]",{"keepfunctioncode":true});
     
    Deletes the push button
     
  2. According to the code, the Item overview push button is deleted, but its functionality remains accessible.

text

  1. Deletes only the text label of an input field.
     
    // Deletes the text label of input field
    del("F[Order Type]",{"text":true});
     
    Deletes only the text label
     
  2. The Order Type field label is removed, but the input box remains same.

triple

  1. Deletes the label, textfield, and the description box of an input field.
     
    // Deletes label, textfield and description box
    del("F[Order Type]",{"triple":true});
     
    Deletes label, textfield and description box
     
  2. The Order Type label, field, and description are removed.
 

Note: This option is only applicable for input fields.

 

value

  1. Deletes only the actual entry field, keeping the label and description box.
     
    // Deletes the value entry field
    del("F[Order Type]",{"value":true});
     
    Deletes the value entry field
     
  2. As per the code, the value option of an Order Type inputfield is deleted.

withbox

  1. Removes a tabstrip along with all associated elements.
     
    del("P[Sales]",{"withbox":true});
     
    Removes a tabstrip
     
  2. As per the code, the Item overview tabstrip is removed from the screen.

Example 1: Delete push button and groupbox

This example demonstrates the removal of the Organizational Data group box, the Order Type input field, and the Item overview button from the Create Sales Order: Initial Screen.

 
// Deletes push button and groupbox
del("G[Organizational Data]",{"box":true}); del("F[Order Type]",{"value":true}); del("P[Item overview]");
 
Deletes push button and groupbox
 

Example 2: Delete only the tabstrip

This example deletes a tabstrip without removing its surrounding box.

 
// Deletes tabstrip
del('S[TAXI_TABSTRIP_OVERVIEW]',{"box":true});
 
Deletes tabstrip
 

Example 3: Delete toolbar push button using fkey

This example deletes a toolbar push button by specifying its function key.

 
// Deletes toolbar push button
del('P[17]');
 
Deletes toolbar push button
 

Usage Details


Can't find the answers you're looking for?