Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

Re: Offline Planning with Analysis for Office

$
0
0

Hi Vamshi,

 

1. If you are supporting offline planning functionality only one time after opening of the workbook, then you can use the call back  Callback_BeforeFirstPromptDisplay() , where you actually set the inputs to the query/data sources like below:

 

Sub SAP_Workbook_Initialize()

 

     Register callback here

 

     Refresh Data source -->it will redirect you to the call back definition where you actually fill      required prompt inputs so prompt will not be shown for the user and store prompt in the workbook      is also not enabled.

 

end sub

 

Sub Callback_BeforeFirstPrompt_Display()

 

'Set prompt values for the query

Application.Run("SAPSetVariable","DS_1","Dimension_ID","Value",INPUT_STRING)

     '

     '

     '

end Sub

 

Note : for the values to be set for the prompt in callback, you can take these inputs from user only via some VB text fields and use in call back.

 

2. If you are supporting offline planning for more than once with different set of inputs each time , after opening of the workbook, then in addition to above coding please create a button with a macro assignned to it , and on clicking of this button use SAPSetVariable API to set inputs to prompt.Here again you are taking inputs from user only entered in text box.

 

Thanks,

Avinash

 

 

 

    

 

 

 

 

 

 

 

 

 

 

 

   If you want to open workbook

 

If you are not storing the prompt values then in some way you should give all the inputs required for the query/data source refresh ,


Viewing all articles
Browse latest Browse all 2069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>