Run Function

This tool helps you to run functions without having to access the modeling environment.

The following fields are available:

Field Description
Environment This is a 3-digit alphanumeric ID that is permanently assigned to the environment. Use the F4 help to display all the environments configured in the system and client. This field is used as a filter to specify an environment.
Version This is a 4-digit alphanumeric ID that is permanently assigned to the environment. You can use this field as a filter to reduce the number of records that the system checks to within a specified version of the environment.
Calculation Unit This is the ID of the calculation unit where the function relevant for execution is located. Choose F4 to display all the calculation units configured in the specified environment.
Process Calculation-unit-wide unique ID of a process template. This can be referred to in process management to instantiate processes.
Activity Process-template-wide unique ID of an activity. This can be referred to in report elements.
Function The ID of the function relevant for execution. Choose F4 to display all functions configured in the specified environment and version entered above.
Run ID The ID of the run relevant for execution.
Business Event The ID of the business event relevant for execution.
Run Type Allows you to select which run type to perform. You can choose from the following options:
  • Run (RUN)

    Executes the run of the chosen function in real time

  • Run Simulation (RUN_SIMU)

    Executes the run of function in test mode

Package The ID of the package of a function relevant for execution.
Package Parameter Specifies a finite value for the parameter to be incorporated in function execution.
Package Selection Specifies a field filter (selection) to be incorporated in function execution.
Run Mode Specifies the mode that a function is run in.

See Parallelization and Partitioning.

Synchronous Execution Defines whether the run is carried out in synchronous or asynchronous mode:
  • When set to “Yes” (checked):

    If synchronous execution of the same function is triggered by two users simultaneously, only one of both users will be logged into the application monitor. The other user will not be able to work on the user interface until the execution of the run is completed.

    However, if the two users run different functions, both execution threads are logged in the application monitor.

  • When set to “No” (unchecked):

    The asynchronous execution mode is activated. Once the caller starts the execution, the run is executed in a separate process. The caller does not have to wait until the run is completed before starting another activity.

    In modeling, the run is always asynchronous. Once it gets started, you can continue modeling in other functions.

You will see the run details on the application log.

Show Result Indicates whether the result of the run is displayed:
  • When set to “Yes” (checked):

    The system displays the results of the run in the SAP NetWeaver system.

  • When set to “No” (unchecked):

    Results do not appear in SAP NetWeaver system after execution

Procedure

In the client where SAP Profitability and Performance Management is installed, choose Start of the navigation pathSAP Menu Next navigation step Profitability and Performance Management Next navigation step Tools Next navigation step Run FunctionEnd of the navigation path or launch transaction code /NXI/P1_FW_RUN.

  1. The Performance Management Run window appears.

  2. Make entries in or selections for the following required (*) and optional fields:
    • *Environment
    • *Version
    • Calculation Unit
    • Process
    • Activity
    • Function
    • Run ID
    • Business Event
    • Run Type
    • Package
    • Package Parameter
    • Package Selection
    • Run Mode
  3. Choose one of the following options:
    • Synchronous Execution
    • Show Result

After you have made the relevant selections, the program can be executed immediately, either in the background or as a scheduled task. Continue with the following steps.

Execute Immediate (F8)

  1. Choose Execute or F8.

  2. The Display Logs window appears.

Execute in Background – Immediate

  1. Choose Start of the navigation pathMore Next navigation step Program Next navigation step Execute in BackgroundEnd of the navigation path.

  2. On the Background Print Parameters screen, choose Continue.

  3. On the Start Time screen, choose Immediate and Save consecutively to run the program in the background.

  4. To see the progress of the background run, launch transaction code SM37.

Execute in Background – Scheduled

  1. Choose Start of the navigation pathProgram Next navigation step Execute in BackgroundEnd of the navigation path on the main menu.

  2. On the Background Print Parameters screen, choose Continue.

  3. On the Start Time screen, choose Date/Time.

  4. The Date/Time section appears, where you can specify the date and time that you want to schedule for the run.

  5. To see the progress of the background run, launch transaction code SM37.