"With generation methods, the display of elements can be influenced. Properties such as "Visible" or "Invisible", "Editable" or "Non-editable", as well as "Mandatory" or "Not mandatory" can be set. Methods that begin with a prefix defined in customizing (non-empty) are called "Screen Methods". These methods can only set the properties "Visible" or "Invisible" and "Editable" or "Non-editable".

In the superclass from the QPPD standard, /SCT/QP_CL_GEN_STD, methods exist that can set the aforementioned properties.

Setting the property "Editable"

"Setting the property "Visible"
set_visible( CHANGING param = <PARAMETER>).
 
"Setting the property "Not Visible"
set_not_visible( CHANGING param = <PARAMETER>).
 
"Setting the property "Editable"
set_editable( CHANGING param = <PARAMETER>).
 
"Setting the property "Not Editable"
set_non_editable( CHANGING param = <PARAMETER>).
 
"Setting the property "Mandatory"
set_mandatory( CHANGING param = <PARAMETER>).
 
"Setting the property "Not Mandatory"
set_non_mandatory( CHANGING param = <PARAMETER>).

Special features

The "Visible" and "Mandatory field" properties can also be controlled by customizing the elements of the object types. The following sequence applies to the object types:

  1. Settings from Customizing represent the default settings

  2. The generation can overwrite the default settings from Customizing, provided that the element can be changed via the generation

This results in the following combinations:

#

Maintenance type

Setting in Customizing

"Show initial" or "Mandatory field"

Generation method

"Visible" or "Mandatory field"

Result

"Visible" or "Mandatory field"

1

"automatic" or "automatic, but manually overrideable"

Yes

No

No, as the generation overwrites the setting from the CUST.

2

"automatic" or "automatic, but manually overrideable"

No

No

No, as the generation overwrites the setting from the CUST or neither the CUST nor the generation sets the corresponding property.

3

manually

Yes

No

Yes, because the generation cannot change the properties of the element.

4

manually

No

No

No, as the generation overwrites the setting from the CUST or neither the CUST nor the generation sets the corresponding property.

5

"automatic" or "automatic, but manually overrideable"

Yes

Yes

Yes, because the generation overwrites the setting from the CUST.

6

"automatic" or "automatic, but manually overrideable"

No

Yes

Yes, because the generation overwrites the setting from the CUST.

7

manually

Yes

Yes

Yes, because the generation cannot change the properties of the element.

8

manually

No

Yes

No, because the generation cannot change the properties of the element.