cancel
Showing results for 
Search instead for 
Did you mean: 

Planning sequence - Data not saved when executing through VBA

0 Kudos
1,011

Hello,

my goal is to execute a planning sequence in Analysis for Office through a VBA macro passing parameter values.

If I try to execute the planning sequence via ABAP code I have no problem, but if I try to execute it in AFO I have two different problems.

Problem 1:

If I try to execute the planning sequence using the VBA code below the planning sequence seems to be executed without errors (17 records read) but there aren't records generated or deleted and there aren't logs in BW.

I have seen debugging the planning sequence that the "save_mode" variable is empty. Is it correct or how can I valorise it?

Problem 2:

I want that the variables ZCVPS029, ZCVPD029, ZCVPS007 and ZCVPD007 that I need to pass to the planning sequence are the same of the variables ZCVMS002 and ZCVMS003 selected in the prompt of the workbook AFO.

If I try to execute the planning sequence using the VBA code below, I receive an error (screenshot below).

I've seen that seems that in this way I'm not able to pass the variables (screenshot highlighted).

Could you give me a suggestion?

Thank you

Accepted Solutions (0)

Answers (0)