Skip to Content
0

Analysis for Office - IP planning sequence messages

Aug 22, 2017 at 09:20 AM

117

avatar image
Former Member

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

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
0

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

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

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,

Martin

0

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

0