RunPlanningEngineInterfaceService at Planning Engine level

This macro allows the import or export of data in the selected Planning Engine.

For executing the macro, the value in the Command field for the macro definition must be specified in this format:

RunPlanningEngineInterfaceService("Interface Service Name", [Reject all on error], [Data Source])
Note: The optional parameters are specified in [ ].

This table lists the parameters used for the macro:

Parameter Name Description
Interface Service Name

The name of the interface service

An Interface Service with a Data Entity = Planning Engine is required.

Note: The Planning Engine definition used in the Interface Service does not have to be the same as the one stored in the Planning Engine.
Reject all on error

Either set to "True" or "False". Null=False.

Note: Only applicable when Direction is set to Import.
Data Source

An alternate Data Source to execute the Interface Service.

Null = Use Data Source specified in the Interface Service

Note: The Data Source must be the same type as the original specified interface service.

This table lists the examples of the RunPlanningEngineInterfaceService macro:

Requirement Syntax

Execute the Interface Service "SPLS_ImportAPSCO" on the current Planning Engine.

Use Default Data Source specified in Interface Service.

If an error is encountered, do not reject all.

RunPlanningEngineInterfaceService("SPLS_ImportAPSCO","","")

Execute the Interface Service "SPLS_ImportAPSCO" on the current Planning Engine.

Use alternative Data Source "SCO_Master"

If an error is encountered, reject all data.

RunPlanningEngineInterfaceService("SPLS_ImportAPSCO","TRUE","SCO_Master")