How to run a script from Calculation Manager

Hi All,
I would like to know how to run a script made by using Calculation Manager. I have converted a simple rule script which has just one statement(HS.EXP "A#Sales = 100") in "Sub Calculate()" by using FMRulesMigrator.exe and then imported, deployed to an application. when I execute "Calculate" from a Data Grid, the rule didn't take effect to application data. If I load the script by using classic rule editor, it works fine.
Is there anything I have to know to run a rule script which is made by using Calculation Manager?
Thanks in advance.
CY.

Hi,
Refer the following the link for calling logic from new custom buttons using VBA.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f085dd92-a40c-2c10-dcb1-a7c24476b23a
hpe this ll help.
thnks.

Similar Messages

  • How to run a script from Oracle Form (Beside using HOST command)

    I would like to run a script from Forms 6.0. I know that we can actually issue this command :
    host('plus80.exe' username/password@connect_string @c:\scriptname);
    BUT, is there any other alternative ?

    Sqlplus is a different program, so one way or the other you have to leave Forms to run sqlplus. What is you objection against HOST?
    You can also run sqlplus from the database, but again you need a stored java procedure to call sqlplus (sort of HOST command that runs in the database).
    Francois' solution works if your script just has a query to run, but if you have specific sqlplus commands (spool etc.) forms_ddl is probably not a solution.

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

  • How to run Oracle applications from Oracle Test Manager(OTM)

    Hi All,
    I have done a recording in Oracle Applications and I have sucessfully imported into OTM.
    Whenever I run that script from OTM, it is showing some error called JIT Debugger error.
    After that it is going to next screen, but after that , it is skipping the rest of the steps.
    It is generating Reports as Skipped.
    Please help me out.
    Thanks in Advance,
    Nishanth Soundararajan.

    Hi Alex,
    These are the lines which got populated when I run those commands,
    C:\Documents and Settings\310700>C:\OracleATS\agentmanager\bin\AgentManagerServi
    ce.exe -c C:\OracleATS\agentmanager\bin\AgentManagerService.conf
    wrapper | --> Wrapper Started as Console
    wrapperp | port 1787 already in use, using port 1788 instead.
    wrapper | Launching a JVM...
    jvm 1 | Wrapper (Version 3.0.3)
    jvm 1 |
    jvm 1 | log4j:ERROR setFile(null,false) call failed.
    jvm 1 | java.io.FileNotFoundException: ..\..\logs\agentmanager.log (Access is
    denied)
    jvm 1 | at java.io.FileOutputStream.open(Native Method)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    jvm 1 | at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    jvm 1 | at org.apache.log4j.FileAppender.activateOptions(FileAppender.ja
    va:164)
    jvm 1 | at org.apache.log4j.config.PropertySetter.activate(PropertySette
    r.java:257)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:133)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:97)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
    onfigurator.java:689)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
    onfigurator.java:647)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureRootCategory(P
    ropertyConfigurator.java:544)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:440)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:334)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigur
    ator.java:717)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileW
    atchdog.java:89)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.jav
    a:58)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator
    .java:709)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:400)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:382)
    jvm 1 | at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:369)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
    App.java:105)
    jvm 1 | at java.lang.Thread.run(Thread.java:619)
    jvm 1 | log4j:ERROR setFile(null,true) call failed.
    jvm 1 | java.io.FileNotFoundException: ..\..\logs\agentmanager_auth.log (Acce
    ss is denied)
    jvm 1 | at java.io.FileOutputStream.openAppend(Native Method)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    jvm 1 | at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    jvm 1 | at org.apache.log4j.FileAppender.activateOptions(FileAppender.ja
    va:164)
    jvm 1 | at org.apache.log4j.config.PropertySetter.activate(PropertySette
    r.java:257)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:133)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:97)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
    onfigurator.java:689)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
    onfigurator.java:647)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(P
    ropertyConfigurator.java:568)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:442)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:334)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigur
    ator.java:717)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileW
    atchdog.java:89)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.jav
    a:58)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator
    .java:709)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:400)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:382)
    jvm 1 | at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:369)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
    App.java:105)
    jvm 1 | at java.lang.Thread.run(Thread.java:619)
    Please help me out.
    Thanks in Advance,
    Nishanth Soundararajan.

  • How to execute sql scripts from Powershell across multiple databases

    Re: How to execute sql scripts from Powershell across multiple databases
    I have an tsql script that I want to run across a list of databases. How is the best way to do this in Powershell? Thanks.

    My example below, using just the SMO and not breaking up the batches, the ExecuteWithResults give the following error when the .sql file contains a GO. My script files are as simple as a DECLARE and then a GO.
    WARNING: SQL Script Failed
    The object of type "Microsoft.PowerShell.Commands.Internal.Format.FormatStartData" is not valid or not in the correct sequence. This is likely caused by a user-specified "format-list" comm
    and which is conflicting with the default formatting.
        + CategoryInfo          : InvalidData: (:) [out-lineoutput], InvalidOperationException
        + FullyQualifiedErrorId : ConsoleLineOutputOutOfSequencePacket,Microsoft.PowerShell.Commands.OutLineOutputCommand
    Also, when executing from the ISE, is there a way to force the ISE to release the files. I am having to close the ISE and reopen my script every time I want to make a testing change to the .sql file.
    [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
    $scriptspath = "C:\temp\psExecuteSQLScripts\scripts"
    $SQLServer = "fidevc10"
    $SQLDB = "Bank03"
    # Create SMO Server Object
    $Server = New-Object ('Microsoft.SQLServer.Management.Smo.Server') $SQLServer
    # Get SMO DB Object
    $db = $Server.Databases[$SQLDB]
    # Load All SQL Scripts in Directory
    $scripts = Get-ChildItem -Path (Join-Path $scriptspath "*") -Include "*.sql" -Recurse
    # Loop through each script and execute
    foreach ($SQLScript in $scripts)
    $fullpath = $SQLScript.FullName
    # Read the Script File into Powershell Memory
    $reader = New-Object System.IO.StreamReader($fullpath)
    $script = $reader.ReadToEnd()
    # Execute SQL
    Write-Host "Executing $SQLScript on $SQLDB...."
    try
    $ds = $db.ExecuteWithResults($script)
    Foreach ($t in $ds.Tables)
    Foreach ($r in $t.Rows)
    Foreach ($c in $t.Columns)
    Write-Host $c.ColumnName "=" $r.Item($c)
    Write-Host "Complete"
    catch [Exception]
    Write-Warning "SQL Script Failed"
    echo $_.Exception|format-list -force
    Write-Host " " -BackgroundColor DarkCyan

  • Running SQLPLUS script from command prompt on SUN

    We are making a migration from VMS to SUN ( SunOS 5.10) and from 9i to 10g. We have encountered an unanticipated problem with running scripts from the command line in SUN(SQLPLUS execution from the command line). All of our packages have a naming convention such as "DM$LOAD.PKB". I know it is a strange naming convention.
    The problem is that when the package creation script is run in SQLPLUS at the command prompt SQLPLUS can not open the file.
    SQL> @dm$load.pb
    SP2-0310: unable to open file "dm$load.pb"
    SQL> host ls
    dm$load.pkb
    SQL>
    Setting the escape character does not seem to help.
    SQL> set escape '\'
    SQL>
    SQL> @dm\$load.pb
    SP2-0310: unable to open file "dm$load.pb"
    SQL>
    Unfortunately, we can not rename the scripts. This can be done from a shell script, but our Tech Services refuse to run the SQL scripts from a shell script
    Any ideas on how to get SQLPLUS to run the scripts from the SUN command line?

    I did not notice that the cut and paste was poor. It should have read
    SQL> @dm$load.pkb
    SP2-0310: unable to open file "dm$load.pkb"
    SQL> host ls
    dm$load.pkb
    Any ideas will be greatly appreciated.

  • Running  sql scripts from different directory

    Hi
    I have sql scripts in different directories as follows:
    D:\myapp\sql
    - load.sql
    - init.sql
    D:\myapp\sql\schema
    -users.sql
    -structure.sql
    D:\myapp\sql\populate\
    - data1.sql
    - data2/sql
    load.sql call all the other scripts as below:
    @init.sql
    @schema\users.sql
    @schema\structure.sql
    @populate\data1.sql
    @populate\data2.sql
    All my scripts run correctly when I run load.sql from D:\myapp\sql on comand prompt.
    I need a way to run this script from a different directory say D:\ or C:\
    I am writing a installer which will execute from a different directory.
    Right now I get a file not found error for scripts within schema an populate folder.
    Please let me know how can I make this work from a different directory.
    Thanks
    kelvin

    Hi peter. i think you cannot run files spread across different locations.
    --the method which u specified always looks to the defined path                                                                                                                                                                                                                                                                                       

  • How to run ZAC CDP from a Linux Bundle

    Hi all,
    I am trying to work out how to run "ZAC CDP" from a Linux bundle. We have 330 Satelites that I need to force the replication of the TFTP folder too in one staggered process.
    Is there any reason why this would not work? would a script do it and anyone have a sample?
    cheers,
    Trev.

    I would imagine it's possible.
    I'm assuming something (run as root user?)
    #!/bin/bash
    zac cdp
    (you may have to put the absolute path in for the location of "zac")
    I'm not a linux guru by any means, just that if you can script this via a cron job, I'm sure it can be done via ZCM Bundle.

  • Calling batch script from Release Management for Visual Studio 2013.

    Hi All,
    I need some guidance on executing\ calling a batch script from Release Management for Visual Studio 2013 as one of the activity during release and also let me know whether the tool provides the log of this kind of execution.
    Thanks in Advance,
    Manoj

    Hi Manoj,
    To run batch script during release process when use Release Management for Visual Studio Online, you can use Command Line Runner" tool which allow user to run comtom command line. You can check in by clicking Inventory tab then tools in Release Management
    client. You can check this
    page for more information about release manage tools to deploy an app. Thanks for your understanding.
    Best regards,
    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.
    Click
    HERE to participate the survey.

  • How to execute eCATT's from Solution Manager

    Hey Everyone,
    am using solution manager version 3.1,WAS 620.
    and eCATT SAPGUI 640.all my recording are done with SAPGUI recording in Development System.and i execute via TestPlan STWB_2.
    Now,my question is,How to execute all these eCATT scripts from Solution Manager.Do i need to transport the whole repository of eCATT from development system to Solution Manager?.
    I appreciate if you guys pass some comments on this issue.
    Thanks in Advance,
    sarapu

    Do i need to give target system to development system from solution manager?
    can i give the same system data container in solution manager while creating testplan..
    in prior do i need to create a testcatalog STWB_1 in order to create TestPlan?
    please pass your comments,
    Thanks,
    sarapu

  • When I run my script from a shortcut ExtendScript is invoked, but it is not when I run it the menu

    I am using Photshop CS2 on Win XP
    I have configured a keyboard shortcut (Crtl+Alt+P) to run a .jsx file from the ...\Presets\Scripts\ folder.
    When I activate the script via the Keyboard Shortcut ExtendScript is invoked, and breaks execution on the main() statement (see below).
    When I activate the script via the File/Scripts menu ExtendScript is not invoked and the script runs to completion.
    The .jsx file is a wrapper for a .vbs script which does the 'real' work.
    The .jsx is:-
    function main()
        var VBSscript=File("C:/Program Files/Adobe/Adobe Photoshop CS2/Presets/Scripts/GGN_PS_Code_v1_2.vbs");
        if(VBSscript.exists) VBSscript.execute();
    main();
    Does anyone have any ideas as to how to disable the invokation of ExtendScript when I run the script from the skortcut?

    Thanks Paul.
    I am out of the office at the moment, but your answer rings true. Certainly the .jsx extension is associated with ExtendScript. I'll delete the association and try again when I am back in the office.
    Many thanks

  • Running Oracle Scripts from Command Line

    Hi,
    How can i run Oracle scripts from command line.
    Actually i need to run these scripts from MSBuild before running Unit test projects

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • Run ESSCMD Script from esscmd editor

    Hi How to tun esscmd script from esscmd.exe screen?i knew from from cmd center, i just like ESSCMD < filename> . thanks

    Unfortunately, you cannot run an ESSCMD script from within ESSCMD itself.... you have to launch it from the command prompt, as you indicated.Regards,Jade------------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

Maybe you are looking for