Pls check the calc script requirment
Pls check this calc reqirement and do the needful help
we have got 700000/- INR in your bank You can spend the money but there are rules of spending.
1. we can start withdrawing Rs 1000 only in each month.
2. The Money can be withdrawn only from November 2011
3. This facility is only valid upto next 7 months.
At the end of the seventh month your bank Pass book must show:
Jan Feb Mar Apr May June July Aug Sep Oct Nov Dec Jan Feb Mar Apr May June July
1 1 1 1 1 1 1
(1 = 1000 Rupees as required)
Note : Year changes here after December. Take care of this in logic.
You can think of standard dimensions a planning application has :
1. Accounts
2. Period
3. Scenario
4. Version
5. Entity
6. Year
7. And Many more if you wish
GG what do you think is the cause of the error of this code below which i used for testing.....
declare
v_alltables varchar2(10000);
begin
for rec in (select TABLE_NAME from all_tables where owner = 'APPS' AND ROWNUM =1)
loop
execute immediate 'SELECT DBMS_METADATA.GET_DDL( '|| '''TABLE'',' ||rec.table_name||',''APPS'') FROM DUAL' into v_alltables;
dbms_output.put_line(v_alltables);
end loop;
end;
it gives this error message when run:
Error report:
ORA-00904: "ADX_PRE_AUTOCONFIG": invalid identifier
ORA-06512: at line 7
00904. 00000 - "%s: invalid identifier"But when i change the rec.table_name into '''ADX_PRE_AUTOCONFIG''' the code works properly.
so i decided to have this code and it works.
SET SERVEROUTPUT ON
declare
v_alltables varchar2(10000);
begin
for rec in (select TABLE_NAME from all_tables where owner = 'APPS' AND ROWNUM =1)
loop
execute immediate 'SELECT DBMS_METADATA.GET_DDL( '|| '''TABLE'',' ||''''||rec.table_name||''''||',''APPS'') FROM DUAL' into v_alltables;
dbms_output.put_line(v_alltables);
end loop;
end;for you newbie, this must also work
SET SERVEROUTPUT ON
declare
v_alltables varchar2(10000);
begin
for i in (select table_name from all_tables where rownum<2)
loop
execute immediate 'SELECT DBMS_METADATA.GET_DDL( '|| '''TABLE'',' ||''''||i.table_name||''''||',''TRNG8305_GC'') FROM DUAL' into v_alltables;
dbms_output.put_line(v_alltables);
end loop;
end;hope it helps.....
Similar Messages
-
Hello Gurus,
I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
For example:
X=EssVCalculate("Sheetname","Calc_Script name",True)
In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
Thanks in advance
SaurabhHi Todd,
This is the situation:
I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
x = EssVCalculate("Sheet2", "CalcBC", False)
CalcBC is my calc script which is present in Essbase
So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
For example:
I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
I don't know how calc scripts can be executed dynamically in the VBA code itself.
Thanks in Advance
Saurabh -
Can not run the calc scripts by mxl, if the first character is Number
I found that if you create the calc scrpt like 1abc.csc. You can not run it by mxl. I tried for times but do not know the reason for that. I found that you can use number in the name of the calc scripts(like abc1.csc, a1bc.csc), but not for the first character(like 1abc.csc).
Below is my mxl scripts:
×××××××××××××××××××××××××××××××××××
login admin identified by password on localhost;
spool on to 'C:\abc.log' ;
execute calculation sample.basic.1abc;
spool off;
logout;
×××××××××××××××××××××××××××××××××××
I write a bat file below:
×××××××××××××××××××××××××××××××××××
D:\Hyperion\AnalyticServices\bin\essmsh C:\abc.mxl
×××××××××××××××××××××××××××××××××××
I can run the scripts if I change the name "1abc" to "abc1"or "a1bc".
Of course I can run this calc in EAS, no matter the name is "1abc" or "abc1".
Anybody find the same problem with me?I agree, if ever there was a "best practice" to developing scripts (especially when using variables) it is to enclose in single quotes. I actually use double quote, single quote.
execute calculation "'$4'"."'$5'"."'$6'"; -
Why does the calc script screen freezes after executing the script
Hello Everyone:
When a calc script gets executed, the calc Script in the ASS freezes even though the calc script has finished it´s execution. Does anybody knows why? How can i prevent these to happen?
Hope someone could help me, thanks in advanced
Best Regardsif you execute the calc script in foreground, console will freezes and it will not allow any thing to do.
Once script is completed, console will be freed.
You can execute the calc script in back ground so that you can continue your work and you can track the progress in the sessions. -
My Essbase db corrupting when i terminate the calc script why?
Hi All,
i got the problem with essbase db..It is corrupting the data when i terminating the any running calc script.
So that every time i m taking the back up for that...
Please let me know how to avoid this...and why it is corrupting ?...
Is anything wrong with my Essbase?
Regards,
PrabhasIf by "corrupting" you mean that essbase crashes and you can't restart the db then yes this is unusual and something is wrong with the environment. On the other hand, if you mean that the data is not the same as it was prior to starting the script then no there is nothing wrong. Essbase does not have a rollback feature that undo's the calc script processed up to the point where you killed it.
Dave -
How do I check the java script is up to date?
When I am on facebook or any site like that it takes for ever to load the pages.
"How do I check the Java script is up to date?"
You can visit these two sites and check updates for your plug-ins:
1. http://www.mozilla.com/en-US/plugincheck/
2. http://www.java.com/en/download/installed.jsp -
Using VB API in VBA to edit the Calc Scripts
Guys,
Does anyone of you have VBA source code/examples utilizing Essbase API for the following operation.
I want to copy Calc Script from Server to the client, edit the Script using VBA and copy back the Script to the Server. Any kind of info is appreciated.
Thanks in advance
HYPuserI posted some real sample code a while back for a completely different function (member renames).
Renaming Existing Member Names
So while you'll have to write the calc modification code yourself (or ask Glenn his rate ;-)), this at least shows you how the initialization / login / termination of the API would work. That's probably the most confusing aspect of using the VB API for the first time anyway.
All that said, if this is from Excel and the user will already be logged in via the Excel Add-In, I believe that you can make life much easier and grab the hCtx directly without any initialization / login/ termination worries. I probably should have done that myself in the example I gave. See Tim Tow's posts in this thread:
API
EDIT: Two things I just noticed - first, the code sample I gave even has an example of polling for ProcState, so that gets you closer than I thought! Second, remembered that the line that reads...
While ProcState.State ESB_STATE_DONE
...should actually have a 'less than / greater than' symbol between ProcState.State and ESB_STATE_DONE. Can't get the forum to display them correctly, even in code tags...
Edited by: TimG on May 16, 2011 2:55 PM -
Will block size effect the calc script performance?
Hi Experts,
I have a cube called RCI_LA:RCI_LA, now I have created calc scripts and working fine. But those calc scripts are taking too much time than expected (normally it should not take more than 15 min but those are taking nearly 1 hr or more some calc scripts.)
In database properties I found that block size is 155896 B i.e. 152.KB but this size should be 8 to 100 KB & Block density is 0.72%
If block size exceeds more than 100 KB will it impact the performance of Calc scripts?
I think answer to the above question is “yes”. In this case what should I need to do to improve calc scripts performance?
Could you please share your experience here with me to come out of this problem?
Thanks in advance.
RamI believe Sandeep was trying to say "Dynamic" rather than "Intelligent".
The ideal block size is a factor in all calcs, but the contributing reasons are many (The main three are CPU caching, Data I/O overhead, Index I/O overhead).
Generally speaking, the ideal block size is achieved when you can minimize the combination of Data I/O overhead and Index I/O overhead. For this reason a block size that is too large will incur too much Data I/O, while a block size that is too small will incur too much Index I/O. If your Index file is small, increasing your block size may help, although the commonly acceptible block size is between 8K and 64K in size, this is just a guideline.
In other words, if you test it with something right in the middle and your index file is tiny, you might want to test it with a smaller block size. If your index file is very large (i.e. 400 MB or more), you may want to increase the block size and retest.
Ways to increase/decrease it are also many. Obviously, changing the dense/sparse settings is the main way, but there are some considerations that make this a touchy process. Other ways are to use dynamic calc in the dense dimensions. I say start at the top of your smallest dense dimension and keep the number of DIMENSIONS that you use D-C on limited. Using D-C members in a dense dimension does NOT increase the index file, so it could be considered a "free" reduction in block size -- the penulty is paid on the retrieve side (there is no free ride). -
Fixing the calc script in FDM Planning adaptor
Hi All,
I have run into a issue with the load action in the planning adaptor ES9x-G4-A. By default, when the adaptor loads data into essbase it fixes using the script
'*** CALC SCRIPT ***
'NOTE: CALC SCRIPT CAN BE MODIFIED For Each CUSTOMER
'Clear the intersection of (Category, Period, Entity)
strClear = "Fix(""" & strTCat & """,@Idescendants(""" & strCurEnt & """))" & vbcrlf
strClear = strClear & "CLEARDATA """ & strTPer(0) & """;" & vbcrlf
strClear = strClear & "EndFix"
The issue with this is that it doesn't fix on year, meaning that data loaded with a replace will wipe the same period across every year. Does anyone know what the year variable is to set the fix correctly? I can't find it in any of the documentation, for 9.3.1 or 9.2
Thanks.
KMacintoshHi,
{color:#000000}Try updating the load script to be :-
{color}{color:#ff0000}strTargYear = API.POVMgr.fPeriodKey(CStr(strPer(0))).strTargetYear
'*** CALC SCRIPT ***
'NOTE: CALC SCRIPT CAN BE MODIFIED For Each CUSTOMER
'Clear the intersection of (Category, Period, Entity)
strClear = "Fix(""" & strTargYear & """,""" & strTCat & """,@Idescendants(""" & strCurEnt & """))" & vbcrlf
strClear = strClear & "CLEARDATA """ & strTper(0) & """;" & vbcrlf
strClear = strClear & "EndFix"
Cheers
John
[http://john-goodwin.blogspot.com/]{color} -
Why the Calc Script runs 15 hours?
Every week, we empty the BSO essbase CUBE, and reload with new data from flat file and make a Calculation. It takes 15 hours to finish, that's too long a time, how to improve the running speed? What is the most possible reason for the bottleneck?
Hi,
1. One has to take a look at your outline , calculation scripts and also other DB settings to recommend any changes for improvement.
2. There are many parameters like parallel calculation, caches, cfg settings..etc which play a role in it.
3. We never know , it might be due to hardware issue sometimes.
Get essbase consultants to fix this issue .
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/ -
I HAVING A PROBLEM ABOUT THE PHOTO APPS. THIS ISSUE CAUSE ME A LOT PROBLEM IN PRESENTATION, AND I DID CALL TO YOUR SERVICES CENTRE TO COMPLIANT ABOUT THIS ISSUE. PLS CHECK THE CASE NUMBER 530618429.
I'M WAITING FOR THE NEW IOS UPDATE, BUT EVERYTIME UPDATED DIDN'T SOLVE MY PROBLEM.
WHAT IS HAPPENING?
WHO CAN HELP ME?This is a user to user forum: nobody here works for Apple, and we have no access to your case details. You are going to have to explain what your problem is if you want help from here. Please refrain from posting in all capitals.
-
How currency COnversion calc scripts refers the HSP_Rates members?
Hi,
After creating the corrency conversion script based on selection of Scenario.Version,version type,currency.. planning also creates copy of this script as HSPCrtT & HSPCrtB. Here how its refering to HSP rates dimension?
ThanksHi,
Have you restarted Essbase server after increasing cache sizes?
Also verify if there are any calculations that are dependent on dynamic calc members.
Assuming Entity is a Sparse dimension, you can use FIX instead of IF in the calc script.
FIX(@UDA("ENTITY","CNY"))
"Local" / "Entity"->"Versions"->"Currency"->"Function"->"Level"->"CNY_Rate" ;
ENDFIX
...similarly for rest of entities.
Also you can use USD instead of LOCAL as you had already copied LOCAL to USD.
USD = "USD" / "Entity"->"Versions"->"Currency"->"Function"->"Level"->"CNY_Rate" ;
in similarly way you can try to fine tune the script for better performance.
Try these things and come up with the outcomes.
- Krish -
Check the code pls. getting attachment but some data missing
HI all,
PLs check the code. I am getting mail in the attachment is having only " 12". i am not getting 13 and 14.
where i am doing wrong. ?
TABLES:adr6.
TYPES: BEGIN OF t_test,
x(3),
y(3),
z(3),
END OF t_test.
DATA: itab TYPE STANDARD TABLE OF t_test,
wa TYPE t_test.
SELECT-OPTIONS : s_rcvr FOR adr6-smtp_addr LOWER CASE VISIBLE LENGTH 30
NO INTERVALS OBLIGATORY.
wa-x = 12.
wa-y = 13.
wa-z = 14.
APPEND wa TO itab.
*LOOP at itab INTO wa.
WRITE:/ wa-x, wa-y, wa-z.
*ENDLOOP.
PERFORM send_email.
**& Form send_email
*text
*--> p1 text
*<-- p2 text
FORM send_email .
DATA : lo_mail_docu TYPE REF TO cl_document_bcs,
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL ,
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL ,
l_oref TYPE REF TO cx_root,
l_message_body TYPE bcsy_text VALUE IS INITIAL,
l_message_line LIKE LINE OF l_message_body,
l_doc_subject TYPE so_obj_des,
l_file_subject TYPE so_obj_des,
l_mail_subject TYPE string,
l_text TYPE string.
DATA itab_bin TYPE TABLE OF solix.
CONCATENATE 'Error' ' Log ' INTO l_doc_subject SEPARATED BY space.
l_mail_subject = l_doc_subject.
CALL FUNCTION 'SCMS_TEXT_TO_BINARY'
TABLES
text_tab = itab
binary_tab = itab_bin.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CONCATENATE 'Attached is the' 'log file generated '
INTO l_message_line-line SEPARATED BY space.
APPEND l_message_line TO l_message_body.
APPEND '' TO l_message_body. APPEND '' TO l_message_body.
TRY.
lo_mail_docu = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = l_message_body
i_subject = l_doc_subject ).
lo_mail_docu->add_attachment(
EXPORTING
i_attachment_type = 'TXT'
i_attachment_subject = l_file_subject
i_att_content_hex = itab_bin ).
lo_send_request = cl_bcs=>create_persistent( ).
CALL METHOD lo_send_request->set_message_subject
EXPORTING
ip_subject = l_mail_subject.
LOOP AT s_rcvr .
lo_recipient = cl_cam_address_bcs=>create_internet_address( s_rcvr-low ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = '' ).
ENDLOOP.
lo_send_request->set_document( lo_mail_docu ).
lo_send_request->set_send_immediately( 'X' ).
lo_send_request->send( ).
CATCH : cx_send_req_bcs INTO l_oref,
cx_document_bcs INTO l_oref,
cx_address_bcs INTO l_oref.
ENDTRY.
COMMIT WORK.
FREE : lo_mail_docu, lo_send_request, lo_sender, lo_recipient, l_oref.
REFRESH : l_message_body, itab_bin.
CLEAR : l_message_line, l_doc_subject, l_mail_subject, l_file_subject,
l_text.
ENDFORM. "send_email
Thanks
krupaliHI Jelena,
I think we cannot commenting the
CALL FUNCTION 'SCMS_TEXT_TO_BINARY' because we are transfering the data in binary format.
Have you got the mail with full ITAb data ?
have you tried it ?
I have tried by commenting the
CALL FUNCTION 'SCMS_TEXT_TO_BINARY' but getting syntax error.
Any other idea please ?
Thanks in advance
krupali. -
Can "Planners" run calc script from the Planning web?
This is probably a really naive question.
However, can planners run a simple calc script(created in Essbase/AAS) from Workspace/Planning Web? If so what access would they be need to setup in Shared Service?
Or do we have to convert the calc script into a Business Rule and then grant access to the users?John,
Here are the roles that i assigned my user and he can view/launch the calc scripts from Planning Web without actually being an admin( i think)
Analytic Servers : server access
Business Rules: Administrator
Planning App : Interactive User
APS : Provisioning Manager
I would also like to conver the calc script to a BR as suggested, but not sure why i see no users available in the Business Rules-> administration tab.
As indicated above, the use has been provisioned as a BR admin!
Also, i tried refreshing the app with filters, refreshing the user list from BR->admin(right mouse), de-provision and re-provision the user! Any ideas?? -
Calc script prompt issue in workspace
Hello Gurus,
This issue is related to running Calc scripts from EPM Workspace 11.1.2.2.300.
Browser : IE8/IE9
We are facing an issue where users are able to run CALC from workspace successfully.
But they are not getting prompt as CALC XYZ ran successfully.
The browser just keeps showing CALC XYZ is processing. If we check in logs, its shows Calc has already completed its execution.
Can this happen if we have a slow network? Or is it a bug as the calc seems to be completing on the required time in the background (when checking logs) but the front process keeps going on.
Any help will be highly appreciated.
Thanks,
hyperionEPMHi Rahul,
Thanks for your quick reply..
Yes we are on planning 11.1.2.2.300
Following is what happens --
<li> We open workspace and login to a planning application.
<li> We navigate to the Business Rules from Tools.
<li> We then run the Calc script from within Workspace for that application
What happens is the calc should be running for ~ 3 mins (it runs for approx same time when we check the logs) however the workspace keeps showing that it is still in progress even if it exceeds ~10 mins, giving us a feel that the calc is still running which is not the case as the log file has the appropriate time when it completed.
We then have to manually close the UI which shows that the calc is still running as it had already completed.
Any ideas on what could be causing this?
Thanks,
hyperionEPM
Maybe you are looking for
-
can i text international from one iphone to another iphone over wifi with other friends that have iPhones who will be with us overseas?
-
Error when Opening After Effects CS6 Trial
Hey, When I go to open After Effects CS6 Trial I get an error saying "After Effects error: Crash in progress. Last logged message was: <956> <ae.blitpie> <2> Making New Context" and then I click ok and it says "After Effects can't continue: sorry, Af
-
Xbmc-standalone no sound [SOLVED]
Hi All, I have re-installed my media box and decided to go standalone this time instead of using a window manager. Everything has installed fine except when stock standard xbmc plays music/video there is no sound. Alsa libs is installed but alsaplaye
-
Is there a system that will run Microsoft Office efficiently?
I have a Mac Mini with 4G RAM. I have Microsoft Office for Mac installed and have upgraded to Mountain Lion. My system is painfully slow. Since I use it for business, this is intolerable. Will and upgraded system be any better? Or is Mac just not cap
-
i want to connect my macbook pro to my tv via dvi to component.(i'm currently using the dvi to svideo cable from apple) does anyone know of a dongle or cable that will actually work? thanks.