Show TOC

SAPExecutePlanningSequenceLocate this document in the navigation structure

With this API method, you can execute a planning sequence. Planning sequences are maintained in the Components tab in the design panel.

To call the method, use Application.Run and specify the following input parameters:

  • Planning Sequence Alias

    Enter the formula alias of the planning sequence. You can set the alias when configuring the planning sequence on the Components tab in the design panel.

The system returns one of the following output parameters for each function execution:
  • 0 = execution failed.
  • 1 = execution successful.

Example

Dim lResult As Long

lResult= Application.Run("SAPExecutePlanningSequence","PS_1")

If you select this command, planning sequence PS_1 is executed.