Ansicht
Dokumentation
BAPI_EXPENDITUREPROGTREE_REASS - Reassign Program Sub-Tree
General Data in Customer Master BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Function
Using this method, you can reassign the program sub-tree to a point of entry position you enter. You can reassign sub-trees only within the tree to which they belong. It is not possible, for example, for the sub-tree to become a separate tree with the point of entry position as its top position.
When you reassign a sub-tree that has positions that already have budget or plan values, the method automatically ensures that these values are transferred consistently within the tree.
If you set the TEST_RUN indicator, the system checks if the sub-tree can be reassigned without errors. However, the sub-tree is not reassigned.
Notes
You control the position, to which the sub-tree should be assigned, using these fields:
The consistent transfer and correlation of the values of the sub-tree with the values of those positions that already have plan or budget values is ensured as described below. Assume the following scenario:
X is the top position of the sub-tree being reassigned, and X has position A as the next position directly above it in the hierarchy before the reassignment. After the reassignment, the position directly above X in the hierarchy is B. Then the following takes place:
- The budget/plan values of A and all higher-level positions in the hierarchy anbove A are reduced by the budget/plan value of X.
- The budget/plan values of B and all higher-level positions in the hierarchy above B are increased by the budget/plan value of X.
This reduction/increase of budget/plan values takes place up to the first higher-level position that is common to both A and B.
The new parent position, to which the sub-tree is supposed to be reassigned, is not permitted to have measures. Measures are only allowed on end node positions. If the new parent position was an end node position before the reassignment, then it is no longer an end node after the reassignment.
If the TEST_RUN indicator is set, the system merely tests if the sub-tree can be reassigned without errors.
Parameters
APPROVALYEARPARENT_NEW
POSITION
PREDECESSOR_NEW
PROGRAM
RETURN
SUPPL_RET_INDIC
TEST_RUN
Exceptions
Function Group
1158ABAP Short Reference CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3464 Date: 20240523 Time: 115312 sap01-206 ( 56 ms )