Fonction SAP BARC_ADD_LAYER - Create a layer (graphical element)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COLOR_TYPE TBCC-TYPE C 2 '00' X Color
FIRSTDATE TBCL-FIRSTDATE I 4 1 X Index of the start date
FORM_TYPE TBCF-TYPE C 2 SPACE X Format type
HEIGHT TBCL-HEIGHT I 4 400 X Length
LAYER_KIND TBCL-LAYER_TYPE C 1 'R' X Bar type
LAYER_TYPE TBCL-TYPE C 2 '00' X Layer type
LAYPRIO TBCL-LAYPRIO N 3 '0' X Drawing level, priority
OFFSET TBCL-OFFSET I 4 0 X Offset
SECONDDATE TBCL-SECONDDATE I 4 2 X Index of the end date
SYMBOLTYPE TBCL-SYMBOLTYPE N 2 '01' X Symbol type
WINID NET_GRAPH-WINID C 8 SPACE X Window ID

Exception Description
INVALID_TYPE Invalid layer type
INV_WINID Incorrect window ID


The color type defining the colors and pattern with which the layershould be represented.
The color type is defined in customizing.
If the color type specified here is not defined, the default color type(00) is used.
Index of the starting date of the layer in table NODE_VALS.
Each layer has a starting date. This starting date is entered in thetable NODE_VALS of the node belonging to the layer. The index definedhere refers to field FL in table NODE_VALS.
A square and line layer have both a starting and and end date. A symbollayer has only a starting date.
Form type which determines the form of the inscription of the layer.
The color type is defined in customizing.
If the form type specified here is not defined, no text is output.
The layout of the format assigned to the form type specified here cancontain a maximum of five fields and is as follows:$a[$c[$e]$d]$b. The text assigned to the layer appears as followswith this format.
Text in field c
+--------------------------+
| |
Text in field a | Text in field a | Text in field b
| |
+--------------------------+
Text in field d
The text itself is stored in the graphic with the table NVALS.
Height of the layer in 1/100 mm.
Defines the layer type.
Possible values:
---------------
Value |Meaning |Constants in LBARCCON
------+---------+------------------------------------------------------
'R' |Square |(BC_CONST-RECTANGLE_LAYER)
'L' |Line |(BC_CONST-SYMBOL_LAYER)
'S' |Symbol |(BC_CONST-LINE_LAYER)
(The above-specified constants are provided in the Include 'LBARCCON'.)
Layer type.
Layer types can also be maintained in customizing.
The type defined here may not overlap with a type already defined incustomizing.
The drawing level or layer priority defines the sequence in which thelayers are drawn. If, for example, two layers are drawn on a node atthe same location, the layer priority defines which layer will bedisplayed above.
Set of values: 0 - 128
0 here means the lowest and 128 the highest priority.
The offset of a layer defines the distance between the reference pointof a line (=middle of the line) and the reference point of the layer.
This distance should be defined in 1/100 mm.
Both positive and negative values are permitted for the offset.
If there is a positive offset, the reference point of the layer liesbelow the reference point of the line.
If the offset is negative, the reference point of the layer lies abovethe reference point of the line.
Index of the end date of the layer in table NODE_VALS.
If a layer has an end date, it is in table NODE_VALS at the node towhich the layer belongs. The index defined here refers to field FL intable NODE_VALS.
A square and line layer have both a starting and an end date. A symbollayer has only a starting date.
The symbol type defines the symbol to be displayed if the layer to bedefined is a symbol layer.
All the possible input values and their meaning as well as theconstants provided in the include file LBARCCON are listed below.
Type| Meaning
|(Constant in LBARCCON)
----+------------------------------------------------------------------
1 |Filled-in arrow pointing downwards
|(BC_CONST-VC_POINTER_DOWN)
2 |Filled-in equilateral triangle pointing downwards
|(BC_CONST-VC_TRIANGLE_DOWN)
3 |Arrow to the right (in the form of a greater than sign)
|(BC_CONST-VC_GREATER_SIGN)
4 |Slim triangle pointing upwards
|(BC_CONST-VC_SLIM_TRIANGLE_UP)
5 |Slim triangle pointing to the right
|(BC_CONST-VC_TRIANGLE_RIGHT)
6 |Slim triangle pointing to the left
|(BC_CONST-VC_TRIANGLE_LEFT)
7 |Rhombus
|(BC_CONST-VC_RHOMB)
8 |Two triangles pointing to each other (fly/hour-glass lying down)
|(BC_CONST-VC_DOUBLE_TRIANGLE)
9 |Slim triangle pointing downwards
|(BC_CONST-VC_SLIM_TRIANGLE_DOWN)
10 |Square
|(BC_CONST-VC_SQUARE)
11 |Circle
|(BC_CONST-VC_CIRCLE)
12 |Filled-in arrow pointing downwards in circle
|(BC_CONST-VC_POINTER_DOWN_IC)
13 |Equilateral triangle pointing downwards in circle
|(BC_CONST-VC_TRIANGLE_DOWN_IC)
14 |Arrow to the right (in the form of a greater than sign) in circle
|(BC_CONST-VC_GREATER_SIGN_IC)
15 |Slim triangle pointing upwards in circle
|(BC_CONST-VC_SLIM_TRIANGLE_UP_IC)
16 |Slim triangle pointing to the right in circle
|(BC_CONST-VC_TRIANGLE_RIGHT_IC)
17 |Slim triangle pointing to the left in circle
|(BC_CONST-VC_TRIANGLE_LEFT_IC)
18 |Rhombus in circle
|(BC_CONST-VC_RHOMB_IC)
19 |Two triangles pointing to each other in circle
|(BC_CONST-VC_DOUBLE_TRIANGLE_IC)
20 |Slim triangle pointing downwards in circle
|(BC_CONST-VC_SLIM_TRIANGLE_DOWN_IC)
21 |Square in circle
|(BC_CONST-VC_SQUARE_IC)
If the Window ID is set, it must be 'BARCx', where x can have the valueSPACE, 1 to 9 or A to Z; see interactive programming.