Ansicht
Dokumentation
RSDMD_API_HI_STRUCTURE_UPDATE - Update of Hierarchies
CPI1466 during Backup CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
The hierarchy is written to the database. If errors are detected in the structure or in the content of the hierarchy, the corresponding error messages are passed to the message table E_T_MESSAGES. These messages are the same as those that appear in the monitor when a hierarchy is uploaded. The ID of the relevant node is usually specified, to make it easier to localize the error.
The ID of the hierarchy (HIEID) and the object version (OBJVERS) do not have to be filled in any of the structures. The system uses the fields in the structure I_S_HIEHEAD to identify the hierarchy to perform the update on. If the system does not find any hierarchies, a new hierarchy is created. In general, an M version of the hierarchy is created.
The BI-internal hierarchy structure can be used. Compounded values in the nodename are passed in composite form to the table I_T_HIERSTRUC. In the case of intervals, the interval table is filled. The table I_T_NODENAMES must be passed as initial.
If the table I_T_NODENAMES is used, the interval table must be passed as initial. Compounded values are entered individually in the table. If the value is not an interval, the field FROMTO must be initial. With an interval, the FROMTO field for the node itself is initial; The INFOOBJECT of this interval node in the hierarchy structure table should be either the hierarchy basic characteristic or 0HIER_NODE. The FROMTO field is filled with 1, for the value specifying the start of the interval. The field is filled with 2 for the value specifying the end of the interval.
In particular cases, a combination of the internal view (specify node name) and the table I_T_NODENAMES can be used.
Note that all data must be supplied in the internal format. Conversion exits in particular (for example, ALPHA) must first be executed on characteristic values.
Therefore, the field CHAVALUE of table I_T_NODENAMES must contain the values of InfoObjects that are of type NUMC, with the correct number of leading zeros for their length.
Subtree Update:
If the flag I_SUBTREES is set, the hierarchies passed to the structure table are saved as subtrees. The roots of the subtrees have a ParentID that is initial. The roots of the subtrees are the interface to the saved hierarchy. In other words, the root node of the subtree must be the original node in the target hierarchy. The initial ParentID of the root node is the only difference to the original node. The NodeIDs and levels of the subtrees are determined in the same way as when a normal hierarchy is updated and can always be selected, regardless of the target hierarchy.
Example
Notes
Further information
Parameters
E_HIEIDE_SUBRC
E_T_MESSAGES
I_EMPTY_HIER_ALLOWED
I_FORCE_TO_SAVE
I_SUBTREES
I_S_HIEHEAD
I_T_HIEDIRT
I_T_HIERINTVL
I_T_HIERSTRUC
I_T_LEVEL
I_T_NODEATTR
I_T_NODENAMES
I_T_THIERNODE
Exceptions
Function Group
RSDMD_API_HIrdisp/max_wprun_time - Maximum work process run time CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3270 Date: 20240523 Time: 123053 sap01-206 ( 89 ms )