Skip to Content

Analysis for Office - IP planning sequence messages

Aug 22, 2017 at 09:20 AM


avatar image


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,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Venkata Subhash Medisetty
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,


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Subhash,

thank you for your answer. Yes, I should check if planning sequences was executed, but it is not enough. I need to know if planning sequence finished with error or not and then write somewhere list of failed sequences.

Because at the moment, I always see last message (Data was saved), but when one or more sequences failed, I do not know about it.

Best regards,



You can also use =SAPListOf() to get the list of messages