Generate Functions/ Mass Generation
Usually, you configure and generate functions using the SAP Profitability and Performance Management Web Dynpro UI.
However, if you want to generate a function with a cascading effect to include functions that are used by the selected function for generation as well, use transaction /NXI/P1_FW_ACTIVATE - Activate Function.
You can use a function or an environment ID as input.