Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Execute Logic Script from Excel Button

$
0
0

Hi All,

 

I try to execute the logic script from Excel Button (Macro), however every time I click on the button , there is nothing happened. The system doesn't prompt any screen for me to enter the variable and the logic file name.

 

I have done following:

  1. Activate the developer tabs ribbon
  2. Activate the "enable macro" and "trust access to the VBA project". Log off and then Log on again.
  3. Create the Excel Button and assign the  macro using following command:

Sub Button7_Click()

Application.Run "EPMExecuteAPI", "DataManagerRunPackage", "", "PACKAGE TO EXECUTE SCRIPT LOGIC", "OTHER FUNCTION", ""

End Sub

 

 

 

The logic script works perfectly when it is executed using online execution (include in "default.lgf") or when it is executed in data manager package.

 

I use /CPMB/ICData as the process chain and then modify the script in the data manager package as follow:

PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")

 

 

PROMPT(TEXT,%FILE_NAME%, "INPUT FILE NAME")

 

 

TASK(/CPMB/ICDATA_LOGIC,SUSER,%USER%)

TASK(/CPMB/ICDATA_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/ICDATA_LOGIC,SAPP,%APP%)

TASK(/CPMB/ICDATA_LOGIC,SELECTION,%SELECTION%)

TASK(/CPMB/ICDATA_LOGIC,LOGICFILENAME,%FILE_NAME%)

 

 

What do I miss?

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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