Show TOC

Procedure documentationSimulating a Function

 

The simulation tool works similar to function module testing in the ABAP workbench. The tool allows you to provide input for all kinds of data objects, processes the input, and returns a result.

Prerequisites

The function is activated.

Procedure

  1. Open the function in the Object Manager panel.

  2. Choose the Start Simulation button.

    The Start Simulation button is active only with an activated function.

  3. In the Simulation dialog box that appears, under Maintain Context Data Object Values section, enter values next to the context field.

    You can also import values from an excel file.

    For more information, see Importing Values from an Excel File during Simulation

  4. Under the Simulation Mode section, you can choose Show only Result or Show also Results of Intermediate Steps.

  5. Choose Run Simulation.

    The result appears in the simulation page.

Note Note

Note that not only the function has to be activated, but also the expressions and other objects that are processed. If the simulation yields unexpected results or error messages, chances are that this is due to a correction you may have made to one of the involved objects without having activated that object afterwards.

End of the note.