Ansicht
Dokumentation

RSNDI_SHIE_STRUCTURE_UPDATE4 - Update of Hierarchies

RSNDI_SHIE_STRUCTURE_UPDATE4 - Update of Hierarchies

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

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_HIEID
E_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

RSNDI_SHIE

TXBHW - Original Tax Base Amount in Local Currency   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3268 Date: 20240523 Time: 123219     sap01-206 ( 86 ms )