Skip to Content
avatar image
Former Member

Analysis for Office - IP planning sequence messages

Hello,

Is there an option in Analysis for Office, to show messages for all planning sequences that were executed.

I have several planning sequences executed in one step (using VBA macro) and just last executed sequence message is shown.

Thank you for tips.

Best regards,

Martin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 22, 2017 at 02:39 PM

    Hey Martin,

    you can get to know with below code whether Planning function executed or not

    Dim lResult As Long

    lResult= Application.Run("SAPExecutePlanningFunction","PF_1")

    The system returns one of the following output parameters for each function execution:

    • 0 = execution failed.
    • 1 = execution successful.

    you can use below to display the messages

    Dim lResult As Long

    lResult= Application.Run("SAPAddMessage", "This is a new error message!", "ERROR")

    Thanks & Regards,

    Subhash

    Add comment
    10|10000 characters needed characters exceeded