The del command removes native screen elements from a SAP screen.
The basic syntax for del is shown below:
del("[screen_element]", {"option":true});
Screen elements that can be removed using del are shown in the following table. the element name is on the left and the syntax for the del command is on the right:
| Element | Syntax |
|---|---|
| Checkboxes | del("C[checkbox_name]"); |
| Inputfields | del("F[inputfield_name]"); |
| Group boxes | del("G[groupbox_name]"); |
| Menu labels | del("M[menu_label]"); |
| Menu function keys | del("M[/menuFunctionKey]"); |
| Pushbuttons | del("P[pushbutton_name]"); |
| Radiobuttons | del("R[radiobutton_name]"); |
| Tabs | del("P[tab_name]"); |
| Application Toolbar Buttons | del("P[application_toolbar_button]"); |
| Tab strips | del("S[tabstrip_name]"); |
| Tables | del("T[table_name]"); |
| Grids | del("X[grid_name]"); |
The del command takes the following options:
This option specifies that the groupbox around a group of elements will be deleted. Any screen elements contained within the box will remain on the screen. The syntax is shown below:
{"box":true}
Used only with inputfields. It specifies that the only the text associated with the field will be deleted. The syntax is as follows:
{"text":true}
Used only with inputfields. Specifies that the text will be copied from a native or user-created textbox on a SAP screen. Syntax is as follows:
{"triple":true}
Used only with inputfields. Specifies that only the actual entry field will be deleted. The syntax is shown below.
{"value":true}
Used only with tabstrips. Specifies that only elements associated with tabstrips will be removed The syntax is as follows.
{"withbox":true}
Used only with pushbuttons that contain a process. Can be used either with toolbar or onscreen pushbuttons. Enables you to delete pushbutton while retaining the linked function code. The syntax is shown below.
{"keepfunctioncode":true}
Please see the following examples for more information.