Fonction SAP BARC_ADD_GRID - Create a Time Fence (Grid)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CALENDAR_ID BCGRIDS-CALEND_ID I 4 X Calendar ID
CHART_ID BCGRIDS-CHART_ID I 4 Chart ID
COLOR_TYPE BCGRIDS-COLOR_TYPE C 2 '00' X Color
GRID_TYPE BCGRIDS-TYPE C 1 'L' X Grid type
SECTION_ID BCGRIDS-SECTION_ID I 4 X Section ID
UNIT BCGRIDS-UNIT C 3 '3' X Time unit
WINID NET_GRAPH-WINID C 8 SPACE X Window ID

Paramètre Reférence Type Long. Description
ID BCGRIDS-ID I 4 Identification

Exception Description
INV_CALENDAR_ID Missing calendar ID
INV_TYPE Wrong grid type
INV_UNIT Wrong time unit
INV_WINID Incorrect window ID


A time grid is defined per section and chart for the diagram area ofthe relevant chart.
Identification of the time grid.
Identification of the calendar used for the time grid.
This identification need only be specified if the field'TYPE' contains a 'C'.
Identification of the chart in which the time grid is to be positioned.
Color type which determines the colors and patterns with which the timegrid is represented.
The color type is maintained in customizing.
If the color type specified here is not defined, the default color type(00) is used.
The grid type defines how the time grid will look in the bar chart.
Possible input values:
======================
Value|Meaning |Effect
|(Constant in LBARCCON) |
-----+-------------------------------+---------------------------------
'L' |Line grid |UNIT evaluated
|(BC_CONST-LINE_GRID) |CALENDER_ID unconsidered
'D' |Global line grid |UNIT evaluated
|(BC_CONST-GLOBAL_LINE_GRID) |CALENDER_ID unconsidered
| |SECTION_ID unconsidered
'C' |Calendar grid |CALENDER_ID evaluated
|(BC_CONST-CALENDAR_GRID) |UNIT unconsidered
'M' |Global calendar grid |CALENDER_ID evaluated
|(BC_CONST-GLOBAL_CALENDAR_GRID)|UNIT unconsidered
| |SECTION_ID unconsidered
'S' |Layer grid (with calendar) |CALENDER_ID evaluated
|(BC_CONST-SHIFT_GRID) |UNIT unconsidered
'N' |Global shift grid |CALENDER_ID evaluated
|(BC_CONST-GLOBAL_SHIFT_GRID) |UNIT unconsidered
| |SECTION_ID unconsidered
'R' |Horizontal grid for |UNIT, SECTION_ID evaluated
|numeric ribbons |CALENDER_ID unconsidered
|(BC_CONST-HORIZONTAL_GRID) |
'B' |Grid for folded time axis |UNIT, CALENDER_ID, COLOR_TYPE
|(BC_CONST-VERTICAL_TIMEAX_GRID)|unconsidered
'A' |Global grid for vertical |UNIT, SECTION_ID, CALENDER_ID,
|time axis |COLOR_TYPE unconsidered
|(BC_CONST-GLOBAL_VERTICAL_ |
| TIMEAX_GRID) |
Global grids are not restricted to a section.
Horizontal grids can only be inserted in lines with vertical sections(histograms). They are restricted to one line, which is set with'BARC_SET_GRID_ATTRIB'.
Identification of the section in which the time grid should bepositioned.
Time grid unit.
Possible input values:
======================
Value|Meaning |Constant in Include file LBARCCON
-----+-----------+---------------------------------
1 |Year |BC_CONST-YEAR_UNIT
2 |Quarter |BC_CONST-QUARTER_UNIT
3 |Month |BC_CONST-MONTH_UNIT
4 |Week |BC_CONST-WEEK_UNIT
5 |Day |BC_CONST-DAY_UNIT
6 |Hour |BC_CONST-HOUR_UNIT
7 |Minute |BC_CONST-MINUTE_UNIT
8 |Second |BC_CONST-SECOND_UNIT
If the grid is horizontal, GRID_TYPE = BC_CONST-HORIZONTAL_GRID, thisparameter specifies the distance between two lines inside the grid.
If the Window ID is set, it must be 'BARCx', where x must have thevalue SPACE, 1 to 9 or A to Z; see interactive programming.