Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Analysis, edition for Microsoft Office
Viewing all articles
Browse latest Browse all 1521

Analysis Office: - Pass from & to Variable values for planning sequence in Macro code

$
0
0

Hi Experts,

 

I wonder how to call the pass from & to values for planning sequence variables in Analysis office workbook.

 

For instance, I have a Distribution by refernce planning function with Sender cost center variable [single value mandatory input variable] & Receiver cost center variable [Multiple single value mandatory input variable].

these two variables are part of input ready query designer on cost center infoobjects.

 

when workbook is opening, both Sender & Receiver cost center variables will be filled along with other variable values.

 

1.can we pass same variable values into macro code before execution of planning sequence as below ?

ex:

 

Sub onExecuteFYDistribute()

    IResult = Application.Run("SAPSetPlanParamert", "FY_ALLOC", "ZCC_FROM", "XUSOMCA01", "INPUT_STRING")

    IResult = Application.Run("SAPSetPlanParamert", "FY_ALLOC", "ZRECEIVER_CC", "XUSFICH01;XUSHOCA01;XUSHOCH01", "INPUT_STRING")

    IResult = Application.Run("SAPExecutePlanningSequence", "FY_ALLOC")

End Sub

 

this is giving error.

 

Planning Sequence Variables.JPGVariable Values.JPG

 

2.  Both Sender and Receiver variable parameter can be passed in same "SAPSetPlanParamert" ?

 

  IResult = Application.Run("SAPSetPlanParamert", "FY_ALLOC", "ZCC_FROM", "XUSOMCA01", "ZRECEIVER_CC", "XUSFICH01;XUSHOCA01;XUSHOCH01", "INPUT_STRING")

 

 

 

3. In Analysis Office user guide

Example:

Dim lResult as long
lResult= Application.Run("SAPSetPlanParameter", "PF_1", "0TARGET_YEAR", "2013", "INPUT_STRING")

 

for 0TARGET_YEAR variable, value 2013 is mentioned;

 

how to pass variable value dynamically instead of maintaining value like 2013 ?

 

could you please help on how to pass from and to variable values for executing planning sequence.

I checked in SCN, but did not get clue to resolve this issue.

 

 

Thank you.

 

Best Regards,

Daya Sagar


Viewing all articles
Browse latest Browse all 1521

Trending Articles