Print Formats 

Use

Print formats determine whether a data field or an identifier should be aligned to the left or right when output in a given frame. The frame is denoted by the number of underscores (‘_’). The name of the data field or identifier does not count toward the size of the frame.

Left-aligned: this means that the value appears on the left of the frame specified.

Syntax:
[Identifier]_..._

[Identifier]
Data field or identifier
_..._

The number of underscores (‘_’) represents the length of the output.

Example:

The output row in the template file is as follows:

#1__________^~linefeed~

;#1 is the character string "301", which is to have an output length of 10 characters

^~linefeed~ is the character string "LF"

The output row in the file to be printed is as follows (blank space are shown as '*' here): 301*******LF

Right-aligned: blank spaces are inserted at the start so that the value appears on the right of the frame specified.

Syntax:
_.._[Identifier]

 

Example:

The output row in the template file is as follows:

__________#1^~linefeed~

The output row in the file to be printed is as follows:

#1 is the character string "301", which is to have an output length of 10 characters

^~linefeed~ is the character string "LF"

The output row in the file to be printed is as follows (blank space are shown as '*' here):

*******301LF

If the frame is too small for a value, the last character in the frame is the character ‘~’.

Example:

The output row in the template file is as follows:

#3____^~linefeed~

#3 is the character string " ME14B001", which is to have an output length of 4 characters

^~linefeed~ is the character string "LF"

The output row is as follows:

ME1~LF

For an overview of all the commands available for changing templates for BOM evaluation, please refer to Changing Templates for BOM Evaluation.