RunPlanningEngineInterfaceService macro at System level

This macro allows the import or export of data in the selected Planning Engine. The macro can be run at System level.

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

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

This table describes the parameters used for the macro:

Parameter Name Description
Planning Engine name The name of the Planning Engine.
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 "SPLS_APSCO" Planning Engine.

Use Default Data Source specified in Interface Service.

If an error is encountered, do not reject all.

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

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

Use alternative Data Source "SCO_Master".

If an error is encountered, reject all data.

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