Create Macro Report
You can define macros for characteristic propagation in a report that you can then use in several plans. However, you can only use one report for each plan.
...
When creating a macro report for characteristic propagation, be aware of the following conditions:
· You must use include INCLUDE /sapapo/mc01_macros_cdp in the report.
· Start the macro coding with a statement macro_cdp <macro_name> and finish the coding with a statement endmacro_cdp..
· You must specify the name used in the macro interface description for the macro parameter in the report as a local variable (category definitions and include /SAPAPO/MC01_CLB_MACRO_TYPES).

If there is no corresponding variable in the report for a macro parameter specified in the plan, the system ignores this parameter.
If you want to use a macro report in characteristics propagation, it must have the following format:
REPORT <customer-specific report name>. .
INCLUDE /sapapo/mc01_macros_cdp.
macro_cdp <customer-specific macro name_1>.
DATA: <list of parameters>.
[...] <customer-specific macro coding in ABAP>
endmacro_cdp.
macro_cdp <customer-specific macro name_2>.
DATA: <list of parameters>.
[...] <customer-specific macro coding in ABAP>
endmacro_cdp.
<further macros>
1. If you want to derive characteristic values using a macro, specify Use Macro as the source type in the characteristics propagation in the PPM plan.
The Macro field is now ready for input.
2. Enter the name of the macro. You have already defined the macro in a report.
3. Double-click on the Macro field.
The Mapping – Define Parameters dialog box appears.
4. Set the indicator Macros Frm Report and enter the name of the report.
5. Set the Use Characteristics indicator for the characteristics whose values are to be used in the macro.
6. Set the Set Characteristics indicator for the characteristics whose values are to be derived from the macro.
If the macro was also assigned additional components, activities, operations, or the plan itself, the system will also display these.

You can use macros for valuations or requirements at different nodes of a PPM plan. You can only use macros for parameters at one node.
7. Check the variable descriptions.
These are proposed by the system and must be adjusted to the descriptions in the corresponding macro in the report.
8. Choose Adopt to return to the characteristics propagation.