Текущее время: Сб, июн 21 2025, 13:41

Часовой пояс: UTC + 3 часа




Начать новую тему Ответить на тему  [ Сообщений: 2 ] 
Автор Сообщение
 Заголовок сообщения: Как создать группу видов работ посредством ABAP
СообщениеДобавлено: Ср, янв 30 2008, 11:44 
Младший специалист
Младший специалист

Зарегистрирован:
Пт, фев 04 2005, 10:52
Сообщения: 94
Нужно автоматически создавать группу видов работ. Попробовал пакетным вводом, так KLH1 не поддаётся. Кто нибудь создает группы видов работ автоматически?


Принять этот ответ
Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Как создать группу видов работ посредством ABAP
СообщениеДобавлено: Чт, янв 31 2008, 08:39 
Почетный гуру
Почетный гуру
Аватара пользователя

Зарегистрирован:
Пт, авг 04 2006, 20:56
Сообщения: 1006
Откуда: 37 МИКРОРАЙОН
Пол: Мужской
Шрек написал(а):
Нужно автоматически создавать группу видов работ. Попробовал пакетным вводом, так KLH1 не поддаётся. Кто нибудь создает группы видов работ автоматически?


Цитата:
FU BAPI_ACTIVITYTYPEGRP_CREATE
____________________________________________________
Text
Object BUS1115 (Activity Type Group) - Method Create

Creating or changing an activity type group

All the groups from the table HierarchyNodes are created in the system. The controlling area of the groups is entered in the ControllingAreaImp parameter, any existing groups are overwritten.

Information about the nodes of a hierarchy is transferred to the table HierarchyNodes. This table contains the group names and the description for each node in the hierarchy. The hierarchy structure is portrayed via the order of the nodes in the table and the level of the node in the HIERLEVEL field.

If values or value intervals are assigned to a node, then the entry in the VALCOUNT field shows the number of assigned values or value intervals. These are transfered to the HierarchyValues table in the order in which these appear in the hierarchy.

Example
The group 'GROUP1' has the following structure:


GROUP1
|
|---- GROUP11
| |
| |---- GROUP111
| |
| |---- VALUE1
|
|---- GROUP12
|
|---- VALUE2
|---- VALUE3 - VALUE9

The HierarchyNodes table thus contains the following entries:

GROUPNAME HIERLEVEL VALCOUNT
GROUP1 0 0
GROUP11 1 0
GROUP111 2 1
GROUP12 1 2

Only the nodes GROUP111 and GROUP12 contain values or intervals, the HierarchyValues table therefore contains the following entries:

VALFROM VALTO
VALUE1 VALUE1
VALUE2 VALUE2
VALUE3 VALUE9

Groups can contain either values or other groups, i.e. only the end nodes of the hierarchy contain values.

If the optional parameter TopNodeOnly is set to 'X', only the first node in the hierarchy table can be created or changed. In this case the table HierarchyNodes, in addition to these nodes, may only contain level 1 nodes. These nodes must already exist in the system, here they are merely attached to the first node. In this way, for example, an existing large hierarchy can be extended by attaching a new sub-tree without the hierarchy having to be completely recreated.

If an error occurs when you create a group, the error message is issued in the parameter Return.

Notes
You require the authorization for object K_CSLA_SET.

Parameters
CONTROLLINGAREAIMP
TOPNODEONLY
CONTROLLINGAREA
GROUPNAME
RETURN
HIERARCHYNODES
HIERARCHYVALUES


Exceptions
Function Group
KGR2


Принять этот ответ
Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 2 ] 

Часовой пояс: UTC + 3 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Русская поддержка phpBB