Fonction SAP BARC_ADD_TIME_OBJECT - Create a time object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
D_VAL SYST-UZEIT T 6 SPACE X Time
FL BCTIMEOBJ-FL C 1 SPACE X Attribute type
R_VAL BCTIMEOBJ-R_VAL C 1 SPACE X Attribute value
TIMEOBJECT_TYPE BCTIMEOBJ-TYPE C 1 'U' X Time object type
U_VAL BCTIMEOBJ-U_VAL C 20 SPACE X Attribute value
WINID NET_GRAPH-WINID C 8 SPACE X Window ID

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

Exception Description
INV_TYPE Incorrect time object type
INV_VAL Missing entry for R_VAL or U_VAL
INV_WINID Incorrect window ID


This module creates time objects that are used again in the intervals.Due to the large amount of data an administration was installed tocheck whether an time object has already been created. If this is thecase then the ID of this time object is returned.
Identification of the time object.

Description
Time for defining a time object that repeats itself on different days.A time object is used to represent rolling time profiles.

Value range
Time between '000000' and '240000'.
The type specifies the category of the time object. It depends directlyon the time object category.
The following table shows the relationship existing between these twotypes and the values which are permitted here.
TIMEOBJECT_TYPE/ |FL |Meaning or permitted values for
Constants in LBARCON | | U_VAL/R_VAL/D_VAL
------------------------+---+-------------------------------------------
'U' |' '|Unique time object which is identified by
BC_CONST-UNIQUE | |date and time
'R' |'0'|Identifies a day of the week:
BC_CONST-RECURRENT | |R_VAL| Constant in Include file LBARCCON
| |-----+---------------------------------
| |'1' |BC_CONST-MONDAY
| |'2' |BC_CONST-TUESDAY
| |'3' |BC_CONST-WEDNESDAY
| |'4' |BC_CONST-THURSDAY
| |'5' |BC_CONST-FRIDAY
| |'6' |BC_CONST-SATURDAY
| |'7' |BC_CONST-SUNDAY
|'1'|Identifies a day of the month
| |Input interval for R_VAL: 1 - 31
| |depends on month
'D' |' '|Identifies a time of day;
BC_CONST-DAILY_RECURRENT| |the time should be passed to
| |parameter D_VAL in the format of SY-UZEIT
Value of a recurrent time object.
This field is only evaluated if the field TIMEOBJECT_TYPE contains thevalue 'R'.
Furthermore, the valid input values depend on the contents of field'FL'.
The dependencies and possible input values are listed in the belowtable:
TIMEOBJECT_TYPE |FL |Possible values for R_VAL/Meaning/Constant
-------------------+---+-----------------------------------------------
'R' |'0'|'1'/Monday /BC_CONST-MONDAY
BC_CONST-RECURRENT | |'2'/Tuesday /BC_CONST-TUESDAY
| |'3'/Wednesday /BC_CONST-WEDNESDAY
| |'4'/Thursday /BC_CONST-THURSDAY
| |'5'/Friday /BC_CONST-FRIDAY
| |'6'/Saturday /BC_CONST-SATURDAY
| |'7'/Sunday /BC_CONST-SUNDAY
|'1'|Identifies a day of the month
| |Input interval for R_VAL: 1 - 31
| |depending on the month
Type which distinguishes the time objects according to the frequencywith which they occur.
The valid input values for the time object type, their meaning, theireffect and the constants reserved for them in the Include file arelisted below.
Type|Meaning/ Constants for the |Effect
|Type in Include file LBARCCON |
----+---------------------------------+---------------------------------
'U' |Unique objects, e.g. | Field 'U_VALS' is evaluated
|to define holidays |
|BC_CONST-UNIQUE |
'R' |Recurring time objects | Field 'R_VALS' is evaluated
|e.g. to define weekends |
|BC_CONST-RECURRENT |
'D' |Daily recurrent time objects | Field 'D_VALS' is evaluted
|e.g. to display shift schedules |
|BC_CONST-DAILY_RECURRENT |
Value of a time object which recurs once.
This field is only evaluated if the time object type contains the value'U'. The date to be passed must be formatted either according to themacro CONVERT_DATE or CONVERT_DATE_TO_INT (Include IBARCMAK).
If the Window ID is set, it must be 'BARCx', where x must have the valueSPACE, 1 to 9 or A to Z; see interactive programming.