MAXL problem for launching a script in order to disconnect users in a cube

Hello,
I would like to know how i can launch a maxl script in order to disconnect users who are connected on a cube. When i do this :
IEssDomain dom2 = ess.signOn(USER, PASSWORD, false, null, PROVIDER);
cv = dom2.openCubeView("EssaiBis", SERVEUR, APPNAME, CUBENAME);
IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
String strQuery = "alter application "+APPNAME+" unload database "+CUBENAME+";";
maxl.execute(strQuery);
maxl.close();
The APPNAME, the CUBENAME, the SERVEUR, the USER, the PASSWORDn and the PROVIDER (embedded) are OK. However, it jumps the commands which are under the : IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
So, the problem seems to be here.
Thanks you for your help.
Vinou

It seems that it doesn't take the "+" in the script on the forum ^^

Similar Messages

  • Maxl Automation for sequential calc scripts - just stops without giving any error

    Hi,
    I was running an automation for calculations using MaxL. by scheduling the Steps.bat in the task scheduler of windows.
    _________ Steps.bat ___________
    StartMaxl Steps.mxl
    _________ Steps.mxl ___________
    Login .....
    Sppol on to log.log
    Execute calculation 'DB'.'DB'.StepA1;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA2;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA3;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA4;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA5;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA6;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA7;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepA8;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB1;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB2;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB3;           Iferror 'StopError';
    Execute calculation 'DB'.'DB'.StepB4;           Iferror 'StopError';
    define label 'StopError';
    exit;
    Not when I check the log file on execution it shows ...
    ___________________ Log.log _______________________
    MAXL> execute calculation 'DB'.'DB'.'StepA1';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepA1.csc] : [173.87] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepA8';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepA8.csc] : [2000.00] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepB1';
    OK/INFO - 1012579 - Total Calc Elapsed Time for [StepB1.csc] : [1200.00] seconds.
    OK/INFO - 1013274 - Calculation executed.
    MAXL> execute calculation 'DB'.'DB'.'StepB2';
    If you see the last line - it just halts - doesn't show any error or any other message. And the task in the windows task scheduler keeps showing the task as running - without any error there as well.
    Any ideas on why it is just going to a limbo (no sessions also appear on EAS console)
    Ankur

    Yes the script can be manually executed. Also if I again put a mxl file starting from the step where it last stopped - it continues execution normally. (i.e. executes StepB2 as well and continues executing)
    And today's execution result - I kept monitoring the server, it ran for 3hrs and then halts after around 80% of the steps with 20% were still remaining. I created a new Mxl to start from the last 20% and it ran successfully again.
    @Amarnath : Restart database ?
    I checked the logs - and this is what I can see (modified the big fields to show what the logs are showing)
    [Wed Oct  9 09:54:43 2013]Local/....... Ankur.....
    Calculation executed
    [Wed Oct  9 09:54:43 2013]Local/DB///47450147858752/Info(1013210)
    User [Ankur.....@Native Directory] set active on database [DB]
    [Wed Oct  9 09:54:43 2013]Local/DB/DB/Ankur......
    Received Command [Calculate] from user [Ankur......@Native Directory]
    [Wed Oct  9 09:54:43 2013]Local/DB/DB/Ankur......
    Received Command [Calculate] from user [Ankur......@Native Directory] using [StepB2.csc]
    [Wed Oct  9 10:24:59 2013]Local/DB///47341561242320/Info(1002035)
    Starting Essbase Server - Application [DB]
    [Wed Oct  9 10:24:59 2013]Local/DB///47341561242320/Info(1200480)
    Loaded and initialized JVM module
    [Wed Oct  9 10:24:59 2013]Local/DB//47341561242320/Info(1200445)
    External [GLOBAL] function [@ESSBASEALERT] registered OK
    [Wed Oct  9 10:25:01 2013]Local/DB//47341561242320/Info(1019008)
    Reading Application Definition For [DB]
    So indeed the essbase server is starting again - but why ?
    Ankur

  • Smartview VBA function for launch calc-scripts as strings. like EsbCalc ???

    We have used an Excel VBA which launch an calculation script from a STRING using the VBA Add-In function "EsbCalc".
    We would like to migrate to Smartview VBA functions.....
    The calc-script string has "parameters" which are modified at run-time...
    I have found the function HypExecuteCalcScript - but seems that use as parameters ONLY the calc-script name...
    Is it any VBA function in SmartView which launch a calc-script string (not a calc-script name) ?
    We are using EPM 11.2
    Thanks...

    A tip I just learned at Kaleidoscope 2010* is that one can create a calc script consisting entirely of a substitution variable. In other words, a calc script can look like this:
    &Calc
    Smart View VBA does have a function for changing or creating substitution variables (HypSetSubstitutionVariable). You could create a calc script and subvar in your database as above. Then, at run time, set that subvar to your calc string with HypSetSubstitutionVariable and execute the calc script with HypExecuteCalcScript.
    Quick test (11.1.1.3) shows that this really works.
    I can't remember privileges required to create or set subvars vs execute calc strings off the top of my head - might be an issue (I ran as an admin). Also this approach doesn't support concurrent users, unless they each have a calc script and subvar to themselves. Still, depending on your exact situation, this might be a feasible workaround.
    *I won't credit the presenter solely because the tip came from a presentation which he specifically declined to make public domain.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Layout problem for Customised SAP Script  ZQM_QCERT_01

    hey guys,
                     i need to generate a customised layout for QM_QCERT_01 used in QC21 tcode.
    I had copied QM_QCERT_01 INTO ZQM_QCERT_01 but after making changes in the HEADER,the table goes to second page and the alignment of all the fileds in table also gets changed. What should i do in this regard ??
                 Pls reply ,,,,<removed by moderator>
    Thanks in Advance,
    Ajay
    Edited by: Thomas Zloch on Nov 21, 2011 11:52 AM

    With the information you provided, I think the easiest thing to do is to create a new copy. Or then you could check the differences by comparing the old and new smartform.

  • Two prices for one material in sales order according condition type

    Hi,
    I configure the condition type according to following condition record:
    Plant/ Sales Organization/ Distribution channel/ Material / Customer
    (because system should calculate two prices for one material in two plants)
    In the sales order screen, when user firstly select material , quantity, plant ,  system calculate the related price correctly but if user select the material and quantity and enter and after that select the plant, system will show the error message in pricing procedure and to have a price for material, user should update the price in the price condition in sales order.
    It is so difficult for user to update one by one, because there are several sales orders which need to update.
    Is it any way to solve this problem?
    Thanks,

    > In the sales order screen, when user firstly select material , quantity, plant ,  system calculate the related price correctly but if user select the material and quantity and enter and after that select the plant, system will show the error message in pricing
    Hi,
    Why to let the user press Enter button before entering plant value Obviously, system will give error, because it doesnt get all the required value based on which you have maintained condition records.
    Ask the user to enter all the value at item level otherwise you will have go for the option that you are doing currently.
    It is said prevention is better than cure
    Hope you get some inputs
    regards,
    Sagar

  • Launching Shell Scripts

    Would like some pointers on designing a Asynchronous (JMS )component for launching shell scripts.

    Use Runtime and Process calss and make system calls.

  • Email Notifications through workflow for all Approved and Rejected Orders

    hi,
    i have to send Email Notifications through workflow for all Approved and Rejected Orders to the user who have submitted the order for approval.how could it be done.please send ur solutions.
    regards
    yesukannan

    Hi,
    An option would be use Oracle Alert. Create an event based alert on the table where you have order approvals or rejections. This alert will be raised after inserting or updating this table. Create an action linked to this alert, and choose message as action type.
    This setup can be done under Alert Manager Responsibility.
    Regards,
    Ketter Ohnes

  • Problem for releasing  blocked sales order on Creditlimit

    Hi Gurus,
            I a   hve a problem for releasing blocked sales orders
             what i have done: 1)i have blocked sales order based on exceeded creditlimit
             (i have change SDType in 'OVAK' is 'C')
                      2)now i have to release for furthur processing so i have done following steps
                      3)Goto VKM3/VKM1 T.Code and then release what order that is blocked.
                      4) order will appear in the list.
                      5)Select that one.
                      6)Click on the green flag that appears on the left hand side.
                      7)Click on save.
                      8)click on back it will ask for "Leave list".
                      9)Click on yes.
                      10)It said that Sales orer has been released
    Still what my problem is:
    Problem: 1)So i'm trying to create deliver for Sales order but it shows an error
             2)"Sales order is blocked for delivery: Credit limits" Even it was released    
    Plz kindly help  me what i do....
    Thanks In Advance
    sivakumar

    sorry   i was  unfotunately put this thread here  over in SD

  • Good receipt problem for subcontracting purchase order

    Good receipt problem for subcontracting purchase order
    with account assignment type ‘E’.
    After update to ECC 6.0. Do good receipt for subcontracting purchase order with account assigment 'E'.The system show the error message(KI235)----Two cost elements (Change in Stock (Subcontracting)&Outside processed fee) haven't CO account assignment.but the field status  for sale order is option entry , when I default cost center for the cost element  in OKB9.the system post the material document and generate the following accounting document.
    Doc.Type : WE ( Goods receipt ) Normal document
    Doc. Number    5000056065       Company code    1000         Fiscal year     2007
    Doc. date      2007.12.04       Posting date    2007.12.04   Period          12
    Calculate Tax
    Doc.currency   HKD
    tm PK Account    Account short text   Tx Cost Ctr   SaleOrder               Amount
    1 89 13500000   Stock-Work in proces                   1007823  10             274.4
    2 96 21210010   GR/IR Clearing                             1007823  10             205
    3 91 41010102   Chg in Stock(Subcon)    10901099  1007823  10            274.4
    4 86 41031000   Outside processed fe     10901099  1007823  10            205  
    5 99 13500000   Stock-Work in proces                    1007823  10            69.4
    6 81 41010101   Cost of Prod (Subco)                      1007823  10           69.40
    My problem is:
    When use MIGO to do good receipt for subcontracting Purchase order, for consumption account((Change in Stock (Subcontracting)-41010102&Outside processed fee--41031000) ,why the system don’t recognize the sale order filled as CO account assignment?

    Dear fanny chen
    Did you get a solution for your open question?
    I`m facing the same problem, so any help yould be appreciated.
    Regards

  • HW acceleration (direct2d) causes problems for my site , is there a script to disable it automatically?

    direct2d acceleration on FF4 causes really bad font rendering problems for my site.
    Text goes on to of each other and behind pictures making it impossible to read for some parts. Disabling HW acceleration fixes the problem. Is there a script that I could use to disable it automatically for my site?

    In fact updating my graphics was the cause of the problem. With the old drivers there were no problems. It depends on the system. So far I've tested on 6 Windows PC's. on 2 of them it worked fine. My site should be 100% W3C compliant. It works fine on 3.6, Chrome, IE and Opera

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Printing problem for SAP Script

    Dear Friends,
    I am facing strange problem for SAP Script. In the billing document output the sold to party and ship to party address are displaying. When user print the billing document on laser printer it print the Country for Sold to and Ship to. But when it print the same billing document on normal printer (other than laser) the Sold to country not printing.
    The print preview of billing document in SAP  correctly display country for Sold-to and Ship-to.
    I have recently make changes in the SAP Script form (Address window) to display country for Ship-to which was never displayed before. I have added FROMCOUNTRY option after COUNTRY in address window. COUNTRY will be Ship-to and FROMCOUNTRY will be VBDKR-SLAND.
    Can any one help me to solve this problem.
    Regards
    Nilesh Shete

    Used custom address print option instead of using ADDRESS

  • Firefox 31.0 - slowness and script problems for using websites

    Since Firefox 31.0 is released, some technical problems of slowness and script problems to use
    websites have been noticed from mine. Sometimes it needs up to some minutes to load a website
    and sometimes there are error messages for an unanswered script.
    pemigabo123

    Hello FredMcD,
    thank you for your message.
    But your answer to my question at support.mozilla.org is not helpful,
    although it is a professional technical answer from a Top 10 Contributor
    from mozilla.
    It seems that there is a permanent unfixed problem always if a new
    version of mozilla is released. After all fixed problems of the earlier
    version of firefox, there is no problem at all.
    But if I am already working with the non-problem earlier version of
    firefox, then suddenly the problems of error messages, slowness and
    script errors are appearing, and if I have looked for the actual version
    of firefox, there was signed a new version and now I have known,
    aha a new vesion of firefox was released and it needs up some time
    for every new version until the error problems were fixed.
    Maybe it is combined with the plugins like flashplayer or shockwave.
    But a professional version of firefox should not sign up error messages,
    because of plugins, while working with these plugins.
    Another answer from another support.mozilla.member was for an
    overload problem, because of opening some windows of firefox.
    But to open many windows of firefox was already no problem with the
    earlier version firefox 30.0 or earlier, until the error messages are fixed.
    The same unfixed problems are since firefox 25.0 up to 30.0, but I was
    wondering for how long version 30.0 was actual in practical working.
    And since version of firefox 31.0 was released the same problems
    of error messages, slowness and script errors were appearing.
    At the moment it seems firefox 31.0 works alright.
    But only the following time shows if it works without error messages,
    slowness and sript problems or not.
    In hope to give a helpful answer to yours
    kind regards
    pemigabo123

  • Problem in launching sunMC 4.0 Web console

    Does anybody have problem in launching sunMC 4.0 web console from a browser?
    I have installed sunMC 4.0 on a Solaris 10 upgrade server.
    When I type the URL of the sunMC 4.0 server with the default port 8080 I gets the welcome page giving me two options:
    - Launch Web Console
    href='https://172.17.210.96:6789/'>Launch Web Console
    - Launch Java Console
    None of the options works for me.
    Clicking on "Launch Web Console" ends with error page saying "Unable to Connect". Get the same error regardless of browser: Firefox or IE.
    Clicking on "Launch Java Console" gives me "Unable to launch Sun Management Center"
    When clicking on "Details" button I gets
    An error occurred while launching/running the application.
    Title: Sun Management Center
    Vendor: Sun Microsystems, Inc.
    Category: Download Error
    Unable to load resource: http://172.17.35.18:8080/smconsole.jnlpA find on the server reveals that smconsole.jnlp is installed on /opt/SUNWsymon/web/console/smconsole.jnlp
    I have no problem in launching the console using via script /opt/SUNWsymon/sbin/es-start -c

    IT WORKED!
    External access to Java Web Console was restored.
    Ports 6788 and 6789 are no longer restricted to localhost.
    I can browse sunMC 4.0 Web console from any workstation and/or host now.
    # svccfg
    svc:> select system/webconsole
    svc:/system/webconsole> listprop
    options                        application
    options/stability              astring  Evolving
    options/tcp_listen             boolean  false
    console-multi-user             dependency
    console-multi-user/entities    fmri     svc:/milestone/multi-user
    console-multi-user/grouping    astring  require_all
    console-multi-user/restart_on  astring  none
    console-multi-user/type        astring  service
    general                        framework
    general/entity_stability       astring  Unstable
    svc:/system/webconsole> setprop options/tcp_listen=true
    svc:/system/webconsole> listprop
    options                        application
    options/stability              astring  Evolving
    options/tcp_listen             boolean  true
    console-multi-user             dependency
    console-multi-user/entities    fmri     svc:/milestone/multi-user
    console-multi-user/grouping    astring  require_all
    console-multi-user/restart_on  astring  none
    console-multi-user/type        astring  service
    general                        framework
    general/entity_stability       astring  Unstable
    svc:/system/webconsole> quit
    # svcadm disable svc:/system/webconsole
    # svcadm enable svc:/system/webconsole
    # netstat -an | grep 678
          *.6788               *.*                0      0 49152      0 LISTEN
          *.6789               *.*                0      0 49152      0 LISTEN
    #Is external access to Java Web Console disabled by default?
    Is this procedure documented in any of sunMC manuals?
    If not then it should. At minimum, on the release notes.
    THANK YOU!

  • Problem with launch VS2013

    Hello. I have big problem with launching VS2013. When try to launch have error
    Application Name: devenv.exe
       Application Version: 12.0.21005.1
       The time stamp applications: 524fcb34
       Name of the module with an error: StackHash_5861
       Version of the module with an error: 0.0.0.0
       The time stamp module with the error: 00000000
       Offset exceptions: PCH_A9_FROM_ntdll + 0x0003AAAC
       Exception code: c0000005
       These exceptions: 00000008
       OS Version: 6.3.9600.2.0.0.16.7
       Language Code: 1049
       Additional Information 1: 5861
       2 For more information: 5861822e1919d7c014bbb064c64908b2
       For more information, 3: 84a0
       For more information, 4: 84a09ea102a12ee665c500221db8c9d
    This topik don;t help
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/9a8fc2ce-d741-4991-b012-6f0167183537/visual-studio-2013-proffesional-crash-when-i-trying-to-launch-it-devenvexe-c0000005?forum=vssetup
    Smb can help me?

    Hi,
    In order to resolve your problem. Please give us some information in detail:
    please use the command  line "devenv.exe /log" to collect the VS Starts logs. See the link to get more information about devenv command:
    https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
    And for better to troubleshooting your issue, I also want to investigate your VS setup log.
    Try to use
    http://aka.ms/vscollect to gather the installation logs. You will find vslogs.cab from %temp% folder.
    Please upload these logs file to OneDrive:
    https://onedrive.live.com/ 
    and share a link in the forum.
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
    OFc..Look.Can;t use "devenv.exe /log" ,because error in that moment. Can;t use devenv.exe
    with any key

Maybe you are looking for