Ansicht
Dokumentation

OHAJAU425 - Set up data as fixed layout

OHAJAU425 - Set up data as fixed layout

BAL Application Log Documentation   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
Diese Dokumentation steht unter dem Copyright der SAP AG.
SAP E-Book

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

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

  • 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").

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 then 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 step "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, enterthe 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 Outputlength includes a default length for every listed field which you can then 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 the 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.

Example

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

  • 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

DISPLAYING AN ADDRESS

Addresses can only be displayed at fixed positions.

The procedure for setting up an address differs from the procedure described above with regard to the entries made in the field Field name. Only the following values are used in this field for addresses:

  • ADRS-LINE0
  • ADRS-LINE1
  • ADRS-LINE2
  • ADRS-LINE3
  • ADRS-LINE4
  • ADRS-LINE5
  • ADRS-LINE6
  • ADRS-LINE7
  • ADRS-LINE8
  • ADRS-LINE9
  • ADRS-LINEK

Each of these values represents an address line which cannot be determined any more precisely, rather than a specific piece of information. Several entries are required for a complete address. The entry for the first address line must have the value "ADRS-LINE0" in the field Field name. The entry for the second address line must have the value "ADRS-LINE1", and so on. The values for individual lines must, therefore, always start with "LINE0", be sequential and be assigned without gaps.

The number of entries required for an address depends on how many address lines should be printed on the payroll account. Up to 10 address lines can be defined. If you only require one address line, please use the value "ADRS-LINEK".

When creating a payroll account, SAP uses an internal address layout program which uses defined address lines to create the address format according to the postal regulations of the country in question.

The scope of the address layout depends on the number of address lines defined. If a single address line or only a few address lines are defined, the only address elements printed are those which are indispensible, such as NAME, STREET or P.O. BOX and CITY. Data may be suppressed. If a greater number of address lines is defined, address information, such as FORM OF ADDRESS and TITLE, can also be printed. Additional address lines also facilitate an address layout which is more pleasing to the eye, eg. by including blank lines.

The following is a guideline on the number of address lines that should be used:

For German-speaking countries (Germany, Switzerland, Austria), there should be 3 to 4 address lines.

  • Example 1
You want to create 3 address lines in lines 05 to 07, from column 01, for form "ZK01". The address is to be printed on each page of a payroll account. To do this, enter the following:
PType No Offs Length WType Field   Conv Rule Field offset
FP 05 001 30   ADRS-LINE0
FP 06 001 30   ADRS-LINE1
FP 07 001 30   ADRS-LINE2

Three address lines are defined by the values "ADRS-LINE0","ADRS-LINE1" and "ADRS-LINE2". Length 30 was chosen as the output length of these address lines.
The address could be printed as follows in this example (depending on the country in question):
or
  • Example 2
You want to create 5 address lines in lines 05 to 09, from column 01, for form "ZK01". The address 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
FP 05 001 30   ADRS-LINE0
FP 06 001 30   ADRS-LINE1
FP 07 001 30   ADRS-LINE2
FP 08 001 30   ADRS-LINE3
FP 09 001 30   ADRS-LINE4

Five address lines are defined by the values ADRS-LINE0 throughADRS-LINE5.
The address could be printed as follows in this example (depending on country):
or
Blank line

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

Activities

Set up fixed layout information, remembering to take account of the permitted field names and conversions.






General Data in Customer Master   PERFORM Short Reference  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Length: 28928 Date: 20240520 Time: 150212     sap01-206 ( 361 ms )