TestRun Parameters 

Use

The parameter TestRun is used in write BAPIs, for example, Create() or CreateFromData(), to check the entries for the object instance in the database before actually creating the object instance. The generation of the instance, for example, creating master data, is only simulated and the data is not written to the database.

To simulate the creation of the object instance and to supply the relevant return messages, the BAPI should carry out all the necessary checks (excluding technical checks, such as, establishing the connection to the R/3 System), without actually updating the database.

For BAPIs used in an ALE distributed environment, this parameter must be available in the interface.

Updating can be switched on or off using the TestRun parameter. The parameter is based on the data element TESTRUN. This can have the following values:

No value means that the data will be posted. This is the default setting.

This value means that the BAPI is being called only in simulation mode and updating will not take place.

Keep in mind the following as you are programming: