Ansicht
Dokumentation
Flexible Planning: Change to Logic of Macro Calculation ( RELN40A_PP_SOP_MACROS )
Addresses (Business Address Services) ABAP Short ReferenceThis documentation is copyright by SAP AG.
Short text
Flexible Planning: Change to Logic of Macro Calculation
Description
In Releases 3.0 and 3.1 macros were always calculated at the detailed level. In Release 4.0 this logic
has changed. In background processing, the system now calculates the results at the planning level defined in the variant. In online processing, the system calculates the results in one of two ways:
- At the level of the planning table at which you currently find yourself.
- The Aggr. planning indicator in the planning type is switched on.
- At the detailed level.
- The Aggr. planning indicator in the planning type is switched off.
The planning level at which you execute the macro affects the results, as the following example illustrates.
Example
The planned sales values of your company are as follows:
Sales organization ,, $ 100
,, / \
Plants ,, $50,, $50
/ \,, / \
Materials ,, $10 $40,, $20 $30
You record the following macro:
Operand | Operator | Operand | Result |
Sales | + | 1 | Revised sales |
Scenario 1. You execute this macro at the sales organizational level and get the following result:
Operand | Operator | Operand | Result |
100 | + | 1 | 101 |
The total is 101. This total is disaggregated to the detailed level.
Scenario 2. You execute the macro at the material level (that is, the detailed level) and get the following result:
Operand | Operator | Operand | Result |
10 | + | 1 | 11 |
40 | + | 1 | 41 |
20 | + | 1 | 21 |
30 | + | 1 | 31 |
The results are aggregated to the total level. The total is 104.
Software/hardware requirements
Effects on Customizing
Changes in procedure
Dependent functions
Planning
Further notes
If you wish the macro results to be calculated online at the detailed level, you must switch off the Aggr. planning indicator in the planning type. Any planing types that you created in Release 3.0 or 3.1 will have this indicator automatically switched on. To find out about the full functionality of this indicator, see its F1 Help.
ABAP Short Reference ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 4142 Date: 20240419 Time: 211013 sap01-206 ( 43 ms )