Customizing Screen Headers

Objective

After completing this lesson, you will be able to change the display of an infotype by adjusting the screen header

Screen Headers

The screen header consists of the first three lines in single screens and list screens .

In the standard SAP S/4HANA system, a screen header is already assigned to each infotype. The system also contains information about whether the data for the system date or the start date of the Organizational Assignment infotype is valid. Each screen header is assigned a modifier that is dependent on the transaction class (A = Personnel Administration, B = was used for Recruitment in older system releases).

You can change the first three lines of the screen header.

In addition to infotype fields, you can also include passport photos of your employees in the Infotype Header Definition view. To do this, determine the document type in the system table (T77S0/ ADMIN PHOTO) that you want to use to create passport photographs in the visual archive.

Header Modifier

A screen header is already assigned to each infotype. In addition to the country grouping and transaction class, a header modifier is also assigned to each screen header. A header modifier defines the structure of the header.

In the Header Structure for Each Infotype view, a header is already assigned to each infotype.

The Choose data indicator is used to determine when the data is selected from the various infotypes used for creating the infotype header.

This is done in the following ways:

  • If you set the Choose Data indicator, the data that is valid on the start date of the infotype record which is currently being processed or displayed, is used to create infotype headers.
  • If you do not set the Choose Data indicator, the data that is valid for the system date is used for creating infotype headers.

Depending on the transaction class (A = Personnel Administration, B = Recruitment) and the country grouping, a header modifier is assigned to this infotype header in the Header Modification view (V_T588I).

In the Infotype Header Definition view, specify the names and positions of the field contents that are to be displayed in the header. The field type controls how the fields are formatted when used in infotype headers.

Once all table entries are created, save them. The / 1PAPAXX/HDR_mmmnnc reports are then generated, where mmm, nn, and c are – respectively – the client, the header modifier, and the transaction class.

How to Customize a Screen Header

Your company wants a specific header on your infotype. Use project IMG to create a new screen header for an infotype.

Create a new header for your infotype. Note: This demonstration is the same as the following exercise titled Customize a Screen Header. Group nmber 00 has been used as the instructor's group.

Use the following table for the infotype assigned to your group for the exercise:
GroupInfotype AssignmentHeader NumberHeader Modification
0000075051

Hint

Before you start the exercise, create a record for your employee Winnie Chung (whose employee number is 540991## ) in your infotype.

On the SAP Easy Access screen, choose Human ResourcesPersonnel ManagementAdministrationHR Master DataMaintain.

In the Personnel no . field, enter 540991## (the employee number of Winnie Chung ), and in the Infotype field, enter your infotype number. Choose the Create button. Depending on the infotype you are editing, you may also have to select a subtype.

Note the sequence of the fields in the header.

Choose Cancel (you do not have to save the infotype).

Steps

  1. Assign a new screen header to your infotype. Assign the number ##+50 (where ## is the group number) to the screen header (so that group 01 corresponds to 51 and group 12 to 62, for example). Use the data that is valid at the start date of the infotype to build the header.

    1. In the Project IMG, choose Personnel ManagementPersonnel AdministrationCustomizing User InterfacesChange Screen Header.

    2. Choose Header structure per infotype .

    3. On the line for your infotype, enter the value ##+50 in the Screen header field. Check that the Choose data indicator is set. This ensures that the values that are valid on the start date of the infotype record are displayed in the header.

    4. Choose Back to return to the list of infotype header activities.

  2. Define a new header modifier as per the table for your screen header ##+50 . This header modifier should apply only to employees, that is, to Transaction Class A.

    1. In the Choose Activity dialog box, select Header modification.

    2. Choose New Entries .

    3. Enter the following values:

      Screen HeaderTransaction ClassHeader Modification
      ##+50A50

      Hint

      You can use different header modifiers for each screen header for applicants and employees.
    4. Save the values and return to the list of infotype header activities.

  3. Create a definition for your header with the following structure:

     DescriptionField ContentsField TextDescriptionField ContentsField Text
    Line 1NameWinnie Chung    
    Line 2Employee Group1ActivePersonnel AreaCABBCAB Company
    Line 3Personnel Number540991##    

    All fields of the Organizational Assignment infotype (0001) should be read. Use the DD1 or DD2 field type for the name (in other words, the short field text or the middle field text for the field), the DAT field type for the field contents, and the DTX field type for the field content text. Copy these values from the header modification 00 since this modification has similar fields, which you can add to if necessary.

    You can save these entries, but do not generate the structure.

    1. Choose the INFOTYPE HEADER DEFINITION.

    2. The aim is to display the following entries:

      Header ModificationLineColumnITTypeField NameField Type
      501010001 ENAMEDD1
      501140001 ENAMEDAT
      502010001 PERSGDD2
      502140001 PERSGDAT
      502170001 PERSGDTX
      502330001 WERKSDD1
      502460001 WERKSDAT
      502510001 WERKSDTX
      503010001 PERNRDD2
      503140001 PERNRDAT
    3. With the cursor, select suitable lines in the table for the header modification 00 .

    4. Choose Copy .

    5. In the Header modification field in each line to be copied, enter the header modification value 50 ).

    6. Choose Enter and Save .

    7. If necessary, select New Entries to add missing lines.

    8. Save your entries.

    Caution

    Do not generate any headers yourself . You may destroy or damage the data of other course participants.
  4. Try to create a new infotype for your employee (with employee number 540991## ) for today (you do not have to save the infotype) and note the changed header.

    1. Now create a record of your infotype for your employee Winnie Chung whose employee number is 540991## .

    2. On the SAP Easy Access screen, choose Human ResourcesPersonnel ManagementAdministrationHR Master DataMaintain.

    3. In the Personnel number field, enter 540991## (the employee number of Winnie Chung ), and in the Infotype field, enter your infotype number.

    4. Choose the Create button. If necessary, specify a subtype (of your choice).

    5. Your infotype should now have a new header. Choose Cancel (you do not have to save the infotype).

Result

Customize a Screen Header

Business Example

You need to create a new screen header for an infotype in your company. This header should contain the following information: personnel number, employee name, personnel area, employee group, and employee subgroup.

Your company wants a specific header on your infotype. Use project IMG to create a new screen header for an infotype.

Create a new header for your infotype.

Use the following table for the infotype assigned to your group for the exercise:

GroupInfotype AssignmentScreen HeaderHeader Modification
0000075030
0100095131
0200015251
0300225333
0400155452
0500275535
0600025636
0700145737
0800085838
0900175939
1000196053
1100406154
1200416255
1300776356
1401056457
1500166543
1600506646
1700316747
1800046848
1920506949
2020517058
2120017190
2220027291
2320037393
2420047495
2520057596
2620067697
2720077798
2820107899
2920127989
3020138085

Hint

Before you start the exercise, create a record for your employee with employee number 305991## in your infotype.

On the SAP Easy Access screen, choose Human ResourcesPersonnel ManagementAdministrationHR Master DataMaintain.

In the Personnel no . field, enter 305991##, and in the Infotype field, enter your infotype number. Choose the Create button. Depending on the infotype you are editing, you may also have to select a subtype.

Note the sequence of the fields in the header!

Choose Cancel. You do not have to save the infotype.

Steps

  1. Assign a new screen header to your infotype. Assign the number ##+50 (where ## is the group number) to the screen header (so that group 01 corresponds to 51 and group 12 to 62, for example). Use the data that is valid at the start date of the infotype to build the header.

    1. In the Project IMG, choose Personnel ManagementPersonnel AdministrationCustomizing User InterfacesChange Screen Header.

    2. Choose Header structure per infotype .

    3. On the line for your infotype, enter the value ##+50 in the Screen header field. Check that the Choose data indicator is set. This ensures that the values that are valid on the start date of the infotype record are displayed in the header.

    4. Choose Back to return to the list of infotype header activities.

  2. Define a new header modifier as provided in the table for your screen header ##+50 . This header modifier should apply only to employees, that is, to Transaction Class A.

    1. In the Choose Activity dialog box, select Header modification.

    2. Choose New Entries .

    3. Enter the following values:

      Screen HeaderTransaction ClassHeader Modification
      ##+50AAs provided in the table

      Hint

      You can use different header modifiers for each screen header for applicants and employees.
    4. Save the values and return to the list of infotype header activities.

  3. Create a definition for your header with the following structure:

     DescriptionField ContentsField TextDescriptionField ContentsField Text
    Line 1NameName of employee with the pers. ID 305991##    
    Line 2Employee Group1ActivePersonnel AreaCABBCAB Company
    Line 3Personnel Number305991##    

    All fields of the Organizational Assignment infotype (0001) should be read. Use the DD1 or DD2 field type for the name (in other words, the short field text or the middle field text for the field), the DAT field type for the field contents, and the DTX field type for the field content text. Copy these values from the header modification 00 since this modification has similar fields, which you can add to if necessary.

    You can save these entries, but do not generate the structure.

    1. Choose the INFOTYPE HEADER DEFINITION.

    2. The aim is to display the following entries:

      Header ModificationLineColumnITTypeField NameField Type
      As provided in the table1010001 ENAMEDD1
      As provided in the table1140001 ENAMEDAT
      As provided in the table2010001 PERSGDD2
      As provided in the table2140001 PERSGDAT
      As provided in the table2170001 PERSGDTX
      As provided in the table2330001 WERKSDD1
      As provided in the table2460001 WERKSDAT
      As provided in the table2510001 WERKSDTX
      As provided in the table3010001 PERNRDD2
      As provided in the table3140001 PERNRDAT
    3. With the cursor, select suitable lines in the table for the header modification 00 .

    4. Choose Copy .

    5. In the Header modification field in each line to be copied, enter the header modification value provided in the table.

    6. Choose Enter and Save .

    7. If necessary, select New Entries to add missing lines.

    8. Save your entries.

  4. Create a new infotype for your employee (with employee number 305991## ) for today, you do not have to save the infotype, and note the changed header.

    1. Now create a record of your infotype for your employee whose employee number is 305991##.

    2. On the SAP Easy Access screen, choose Human ResourcesPersonnel ManagementAdministrationHR Master DataMaintain.

    3. In the Personnel number field, enter 305991##, and in the Infotype field, enter your infotype number.

    4. Choose the Create button. If necessary, specify a subtype of your choice.

    5. Your infotype should now have a new header. Choose Cancel. You do not have to save the infotype.