Sie sind auf Seite 1von 3

Change screen modifications

Different entry screens are delivered for some infotypes. Depending on the transaction class ("A" for
employee, "B" for applicant) or the country grouping, a different screen can be used.
In addition to this, you can also change the characteristics of the individual screen fields: For example,
you can define fields as required-entry fields or suppress any fields that are not required.
You may want to suppress field attributes in accordance with certain employee control data.
Example

You want to suppress the field Foreman's area in the infotype Organizational
assignment (0001) and make the field Administrator HR master data into a required-entry
field.

Requirements
In the view "Screen assignment", a single screen and a list layout is assigned to every infotype.
Standard settings
These alternative screens are already preset by SAP depending on
transaction class and country grouping.
Activities

Screen modification is identical for all employees or all applicants.


o

Find the entry for the current screen. If necessary, create a new entry for the screen.
The variable key must be empty when you do this.

On the detail screen, determine which fields are to be modified.

Screen modification depends on the organizational assignment of the employee or on the


infotype's subtype.
o

Find the entry for the current screen. If necessary, create a new entry for the screen.
The variable key must always be empty for the first entry when you do this - this is the
basic entry.

Assign the name of a feature. The naming convention is "Pnnnn", where "nnnn" is the
number of the infotype.

Maintain the feature.


Use the structure "PME04", all fields are allowed.

Make a new entry per return value of the feature. By doing this, you include the return
value in the variable key.

Assign the number of an alternative screen, if applicable.

Determine the screen modification on the detail screen.

If you do not enter a return value of the feature, the entry for which the variable key is
empty, i.e. the basic entry, is valid.

An alternative screen should be used.


o

Determine a basic entry as above and predefine the feature Pnnnn.

Determine the variable key by using the feature and in accordance with the transaction
class, country grouping etc..

Make a new entry for the variable key.

Assign the number of the alternative screen.

The screen modification in the detail screen now applies to the alternative screen.

Infotype Screen Control

When you create single screens and list screens using the Screen Painter, you determine the
attributes of individual screens fields. However, the same screen is always used for different
functions such as creating, displaying, maintaining, and deleting infotype records. For this reason,
you cannot specify whether a screen field should be ready for input when you maintain the
screen. It is also possible that particular screen fields must be hidden, depending on the
employees organizational data.
In other words, some attributes are not specified to be generally applicable; instead, they are
specified during runtime. The appearance of the screens changes depending on the function
chosen by the user or the data being processed.

The same single screens are used for the Display HR Master Data and Maintain HR Master
Data functions. The screen fields must only be ready for input for the Maintain HR Master
Data function. For this reason, you should determine the ready-for-input status of the screen
fields according to the function to be carried out.

The screens used to enter company car data in the Internal Control infotype (0032) must be
hidden for employees assigned to the employee group for pensioners.

Screen control functions have already been implemented in the main infotype program. These
functions read the values from the modification groups for individual screen fields and set their
attributes in accordance with the values. The meaning of the values for modification groups is
determined in tables.
When you develop infotypes, you can effect screen control as follows:

You can determine whether entries can be made in fields, or you can choose to hide screen
fields, depending on the function to be carried out.

The value in Modification group 1 controls whether the screen fields are ready for input. You can
also hide individual screen fields.

The value for modification group 1 must be maintained for all input fields.

If the entry has not been made for a screen field, the field is not ready for input.

You can use alternative screens, determine whether entries can be made in fields, or hide screen
fields using control data and the Infotype Screen Control table (T588M).

Together with the Infotype Screen Control table (T588M), the value of Modification group
3determines the activity and whether entries can be made in fields.

If you use both of the above to effect screen control for a screen field, screen control using
the Infotype Screen Control table (T588M) has higher priority.
Modification group 2 is used internally.
Modification group 4 is not used in the SAP standard system since it is reserved for customers. If
you use this field, this counts as a modification of the SAP standard system

Das könnte Ihnen auch gefallen