Fonction SAP BARC_SET_LAYER_ATTRIB - Set layer attributes

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FL BCVALS-FL C 2 Attribute type
LAYER_TYPE TBCL-TYPE C 2 Layer type
VAL BCVALS-VAL C 80 Attribute value
WINID NET_GRAPH-WINID C 8 SPACE X Window ID

Exception Description
INVALID_LAYER_TYPE Invalid layer type
INVALID_VAL Incorrect value
INV_WINID Incorrect window ID


This module is also available as form routine 'SET_LAYER_ATTRIB'. Thecustomizing data must already have been read when calling the module,before the module is used.
If layer attributes are changed at a point in time when the customizingdata has not been read, use the form routine SET_LAYER_ATTRIB_TO_TYPE.
The type of attribute determines the use of the value.
In the following all permitted types are shown and the correspondingconstants.
The valid values can be determined in customizing.
Type|Value/Meaning |Constants in Include file LBARCCON
----+------------------------------+-----------------------------------
'f' |Index for the start date |BC_CONST-LAYER_FIRST_DATE
's' |Index for the end date |BC_CONST-LAYER_SECOND_DATE
'h' |Layer height in 1/100 mm |BC_CONST-LAYER_HEIGHT
'o' |Layer offset in 1/100 mm |BC_CONST-LAYER_OFFSET
'c' |Color type |BC_CONST-COLOR_FOR_LAYER
'l' |Format type |BC_CONST-FORMAT_FOR_LAYER
't' |Type of symbol layer |BC_CONST-LAYER_TYPE
'p' |Priority or drawing level |BC_CONST-LAYER_PRIORITY
'M' |Macro |BC_CONST-ADD_MAKRO
'r' |Horizontal offset |BC_CONST-LAYER_HOR_OFFSET
'y' |Position overlapping layer |
'a' |Conversion layer type |
'w' |Width of the legend layer |
'v' |Visibility with length = 0 |BC_CONST-VISIBILITY
Note:
Horizontal offset:
For symbol layers realized as a bitmap you can specify whether thebitmap should be shifted centrally over its date, or to the left orright.
Negative values are a percentage shift to the left, positive values tothe right. The set of values ranges from -50 to +50.
Overlapping layers:
can be positioned on the upper edge of the line with FL = 'y' and VAL ='t', and on the lower edge of the line with FL = 'y' and VAL = 'b'. Inthe options profile the 'line edge spacing' must be set large enoughbeforehand.
Visibility:
Layers with length = 0 are invisible by default. If FL = 'v' and VAL ='X' or 'x', they can be switched to visible; VAL = SPACE switches themto invisible again.
Layer type.
The layer type is normally defined in customizing but can also be
defined in the function module 'BARC_ADD_LAYER'.
The value specified here depends on the type of attribute (comp. field'FL').
When the window ID is set, it must be called 'BARCx'. You can substitutex with the values SPACE, 1 thru to 9 and A thru to Z; comp. dialogprogramming.