Ansicht
Dokumentation

SIMG_OHAX425 - Set Up Data in Fixed Positions

SIMG_OHAX425 - Set Up Data in Fixed Positions

rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This step enables you to set up information at fixed positions.

Information can only be printed at fixed positions if it fulfils the following criteria:

  • The information is variable, that is, it is not the same on all payroll accounts for a period.
  • The information is located at the same position on every payroll account.

Information at fixed positions is generally information on persons and organizational data, such as:

  • Name of employee
  • Personnel number of employee
  • Address of employee
  • Date of birth of employee
  • Date employee joined or left company
  • Employee's pension insurance number
  • Date on which payroll account was created
  • Page number of payroll account

Besides variable information (such as personnel number, which is different on every payroll account), information which always appears unchanged at the same position on a payroll account (the words "personnel number", for instance, which normally come before the actual personnel number) can also be printed at fixed positions. However, this type of information can also be set up as a form background instead of at fixed positions. You should consider this option if you do not intend to make any future changes to the form layout. Remember: it is often easier to change the position of information at fixed positions than to change the position of information in the form background ( Set up form background: working with/without limited form background).

GENERAL PROCEDURE

You must make an entry for each piece of information that is printed at a fixed position. Each entry must include the following specifications:

  • Page type
  • Line number in form
  • Offset
  • Length of printout
  • Field name

You can also specify the following for each entry:

  • Conversion
  • Field offset for printout
  • Rule for form editing

Page type

The page type is used to determine whether information at a fixed position is printed only on certain pages or on every page of a payroll account. You can choose from the following page types:

  • "EP" ("Every Page")
Information marked with "EP" is printed on every page of a payroll account.
  • "FP" ("First Page")
Information marked with "FP" is printed only on the first page of a payroll account.
  • "LP" ("Last Page")
Information marked with "LP" is printed only on the last page of a payroll account.

Line number

The line number determines the line of the payroll account in which the information is printed.

Offset

This field is used to specify the column from which printing starts.

Field name

The information you want to print at a fixed position is stored in the field Field name. The entry in this field can be either a constant, a text module identifier, or a table field.

  • Constant
A constant is printed on a payroll account in exactly the same way as it is specified in the field Field name. Each constant must be preceded by an apostrophe, which identifies it as a constant.
Example:
You want to enter "/" in the field Field name as a constant. Enter the following:
'/
NB: Every piece of information that can be defined as a constant can also be defined as a text module. You must do this if the piece of data is greater than 10 characters in length and/or the information in question is required in several languages (see Set up text modules").
  • Text module identifier
You can specify a text module identifier which you have already set up in the IMG activity "Set up text modules" as a field name (eg. "TEXT01"). There must always be a hyphen between the character string "TEXT" and the respective number of the text module.
Example:
You want to define a text module with the identifier "TEXT05" in the field Field name. To do this, please enter the following:
TEXT-05
  • Table field
You can also specify a table field as a field name. You must always specify a table field if the information to be set up is variable information.
Table fields are specified in the field Field name by listing the table in which the field is stored, then a hyphen, and finally the field name itself.
Example:
You want to print an employee's personnel number. This is stored in the field PERNR in table "PERNR". Here, you must enter the following in the field Field name:
PERNR-PERNR
Fields from table "SCHLW" are an exception. They must always be entered in the field Field name without a hyphen and without the name of the table.
Example:
You want to print the date on which an employee was hired. This date is stored in the field PHIRE in table "SCHLW". Enter the following in the field Field name.
PHIRE
If you do not know that the employee's personnel number is stored in the field PERNR in table "PERNR" or that the date on which an employee is hired is stored in the field PHIRE in table "SCHLW", you can find out such information as follows:
  1. Call the "Permitted field names" overview using the Execute function.
  2. Use the menu option According to contents in the menu Choose.
  3. Select the field Description on the Field selection window, and press the Continue key.
  4. When the window Choose: according to contents is displayed, enter the operator CP in the Relational operator field, and the wording of the required information (generically, if necessary) in the Field contents field, and press Choose.
Has the required information been found?
YES: note the table and the field name of the information in question and go back to step e).
NO: repeat steps b) through d), using a synonymous search string if necessary.
  1. Call the "Permitted tables" overview.
  2. Check column "T512Q" to see whether the table that contains the specified field has been flagged and can, therefore, be used for information at fixed positions. If not, repeat the entire work process using a synonymous search string if necessary.
You can also do the following to determine the field that you require:
  1. Call the "Permitted tables" overview using the Execute function.
  2. Check the descriptions of the permitted tables to see whether they might contain the required information. Please note that the potential table(s) is/are flagged in the column "T512Q" so that it(they) is/are allowed for information at fixed positions.
  3. Note the name(s) of the potential table(s).
  4. Call the "Permitted field names" overview.
  5. Access the fields of the potential table(s) using the Position function. Use their descriptions to check whether they match the information that is required.
  6. Note the field names and the table of the field identified.

Length of printout and conversion

The length of printout of the field name can be chosen as follows:

  • Constant
The printout length of the field name is equal to the number of characters in the constant (the apostrophe that preceds a constant is not taken into account here).
Example:
"'/" is entered as a constant in the field Field name.
Therefore, the printout length of the field name is "01".
  • Text module identifier
The printout length of the field name is equal to the number of characters in the respective text module represented by the identifier.
Example:
The text module "personnel number" is represented by the identifier "TEXT05" in the field Field name. The printout length of field name is "14" in this case.
  • Field name
You can determine the printout length of a field name using the "Permitted field names" overview. In this overview, the field Output length includes a default length for every listed field which you can then copy as the output length.
You can always decide to choose an output length that is shorter or longer than the specified default length. The former option involves the risk of information being cut off at the right. As for the latter option, you must ensure that the information can be output in full within the predefined field length.
  • Conversion
For field names, it is possibile to specify a conversion for the output of information.
The "Permitted field names" overview contains a column "Conversion" which lists default conversions for certain fields. These conversions are included in the default length of the fields in question. If you choose a conversion that is not defined as a default, you must include this yourself in the output length of the field.
The conversions that are allowed for information at fixed positions are flagged in column "T512Q" in the overview "Permitted conversions". You can display explanations of the individual conversions by positioning the cursor on the number of the conversion in question within this overview and pressing the function key Help.

Field offset (part of a character string)

In certain instances, you may need a field to start being printed as of a specific character rather than from the very beginning. By making an appropriate entry in the field Field offset for printout, you can specify the character as of which the field is printed.

Example:
The field Account number has a default output length of 18 characters. The first three characters always consist of leading zeros which should not be printed. You should therefore enter "03" in the field Field offset for printout to ensure that the field is only printed as of the 4th character. You must also replace length 18 by length 15 in the field Output length

Please observe the following rules when specifying the field offset:

  • The field offset always starts with "00". Offset "01" means that a field is only printed as of the second character.
  • There is always a correlation between the field offset and the output length of the field.
  • The field offset and the output length must always be less than or equal to the predefined field length.
  • An entry can only be made in the field Offset if the related field is a character field.

If no entry is made in the field Offset, the default value "00" is set automatically by the system. This means that the field in question is always printed in full, i.e. as of the first character.

Rule for form editing

If information is not printed on a payroll account unless certain conditions have been met, this field enables you to specify the identifier of a rule which you must first define in the step "Set up special processing rules". The rule determines whether or not information is printed.

Examples

You will find a list of the abbreviations used in these examples under the heading "Abbreviations used" at the end of this IMG activity.

  • Example 1 (Constants)
You want to set up the information "/" for form "ZK01" as a constant in line 03 and column 80. It should be printed on every page of the payroll account. To do this, enter the following:
PType No Offs Length WType Field Conv Rule Field offset
EP 03 080 01   '/

The apostrophe preceding the information in the field Field name means that the information is a constant. The page type "EP" specifies that the information should be printed on every page of a payroll account.
The information appears as follows on the payroll account:
/
  • Example 2 (Text module identifier)
You want to set up the text module "personnel number", as defined by the identifier "TEXT01" in the step "Set up text modules", in line 07 as of column 52 for form "ZK01". The information should be printed on every page of the payroll account. To do this, please enter the following:
PType No Offs Length WType Field   Conv Rule Field offset
EP 03 001 14   TEXT-01

The text module "personnel number" is set up by specifying the respective identifier in the field "Field name". The output length of the text module equals the number of characters in the string. The page type "EP" specifies that the information should be printed on every page of the payroll account.
The information appears on the payroll account as follows:
Personnel number
  • Example 3 (Table field)
You want to specify that each employee's personnel number is printed in line 03 as of column 16 for form "ZK01". Each personnel number should be printed without leading zeros and on every page of the payroll account. Enter the following:
PType No Offs Length WType Field   Conv Rule Field offset
EP 03 016 08   PERNR-PERNR   10

Each employee's personnel number is stored in the PERNR field in table "PERNR". The hyphen separates the table name from the field name in the field Field name.
The default length listed in the overview "Permitted field names" for this field was chosen as the output length of the field. Conversion "10" which causes leading zeros to be suppressed, is already accounted for in the default length.
The page type "EP" specifies that information should be printed on every page of a payroll account.
Depending on the number in question, information appears on the payroll account as follows (for example):
12345678

ABBREVIATIONS USED

In the examples shown, the following abbreviations are used:

PType Page type in form
No Line number in form
Offs Offset
Length Output length
WType Wage type
Field Field name
Conv Conversion
Rule Rule for form editing
Field offset Offset of field for printout

ACTIVITY

Set up data in fixed positions, remembering to take account of the permitted field names and conversions.






CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 22082 Date: 20240523 Time: 220046     sap01-206 ( 223 ms )