Run a Script after the MA is published to SAP ERP.

Hello, I'm trying to run a script after the MA is published, in order to automatically change it's status.
I already have the script done and working, the only problem is that I need to know where to put it (or what type of script it should be) in order to run after the MA  has been published successfully.
Thanks in advance !
Oscar Obeso.

That is also a good solution.
But what I did to fix it was to make a Script to run on validation.
Then, on that phase I checked the date of sent to external. If that date was null, it meant that Agreement had never been published.
Otherwise, it meant i had been published, and so I checked for the status to change it if neccesary.
Thanks for the answers, they are valid solutions too.
Oscar Obeso.

Similar Messages

  • How to run a script after resume from disk in pm-utils

    When I use pm-hibernate, I have a few scripts that I would like to run upon de-thawing. At the moment, all I want to do is module-related: I want to remove the pcskpr mod (which I have blacklisted in my rc.conf MODULES array, but HAL loads it upon thawing) and reprobe the ath9k mod (wireless doesn't work until I modprobe it).
    I see that you can insert your own hooks for pm-utils, but when are they run? I need my script to run after HAL has its way with my module-probing/loading and I'm not getting a clear impression that this is the case. If not, then what other options exist?

    tomk wrote:
    Arch wiki wrote:The hooks in this directory will be called in alphabetic order during suspend (that's the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume.
    That seems clear to me. What else are you looking for?
    But pm-hibernate does some of its own work for hibernation/thawing. I'd like to know where in relation to *that* the hooks are run. Ie, during hibernation, are they run before or after the vanilla pm-hibernate functionality?

  • Run a script after a package is updated?

    Is it possible to run a script after a package is updated? I have Anki use a custom config folder (~/.anki instead of the default ~/Anki) and every time Anki updates it reverts back to the default folder. It's not such a burden to make a script that fixes this and run it manually after every update, but it would be nice if it worked automatically. So is there any way to monitor what pacman updates and run a script after it updates a certain package?

    If you're modifying a config file to change this, and pacman is overwriting it, consider adding the config file to pacman's NoUpgrade array in pacman.conf (man pacman.conf for details). If you feel that lots of people would benefit from this file being exempt from the upgrade process, file a bug report/feature request, and the maintainer may make the change in the package itself.

  • Running perl scripts off the preinstall script during a pkgadd

    Hello,
    I'm trying to build a custom package (apache2 + mysql + php + other stuff) and get stuck on some stone wall that I can't figure.
    Correct me if I'm wrong in my assumptions, and if able, could you provide a work around ? Here it is :
    - The preinstall script must be in /bin/sh , /bin/bash or any valid shell
    - Must be run by root, 'f course
    Now.. As I'm not that strong on bash/sh scripting, I tried to call a perl script off my preinstall script. Somehow my preinstall script just never call the .pl .
    This leads me to my third assumption :
    - It is impossible, not permissible to run other scripts from the preinstall script.
    Basically the perl script checks for some users in /etc/passwd + /etc/group, checks for some directories, create a custom SMF manifest, etc etc . I pretty much want the .pl script to be run.
    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.
    Any ideas ?
    Thanks,
    Jeff

    The script itself is well packaged, correctly inserted in the package's pkgmap, and so on.http://docs.sun.com/app/docs/doc/817-0406/ch3enhancepkg-10289?a=view

  • How to analyse the main memory usage in SAP ERP systems?

    Dear expert,
    I'm doing a research work about analysing the main memory usage in SAP ERP systems.
    I would like to find out what is load in buffers and when. That means, which process have the control of these memories and which are always performing something, tables loaded, and so on. Becuase I tried to isolate the space needed by a simple webservice call (create one material) in my test system, but even after a $SYN there are something stored in the buffers. I use a BAPI to avoid the execution of the SAPGUI and its repercussion in the system (I know the BAPI called uses resources too, but when I run this BAPI to get the statistics, it's like ST02, I get different values). Could someone help me or recommend something specific to read? Thanks a lot in advance.

    Dear expert,
    Thanks a lot for your answer. The point is now that I want to isolate the memory used by a webservice that I call, I mean, I would like to know how many memory is this webservice using in each buffer. And could you tell me where could I read something about the order that things happen in SAP System when a webservice is called (always memory related), that's which steps are done to store data in buffers and so on. Thanks in advance.

  • What is the difference between mySAP2004 and SAP ERP 2004?

    Hi,
      Can anybody tell me what is the difference between mySAP2004 and SAP ERP 2004?
    If someone has the document, then please mail me at [email protected]
    With Regards
    tiffny

    Hi Tiffny,
    actually I don't see a difference as "mySAP2004" is not an official name for anything
    There is "mySAP ERP 2004" which is the marketing name for a bunch of functionality provided by several different bits of software components.
    Hth,
    Michael

  • Automatically run shell script after publishing?

    Is there any way to automatically run a  shell script  after publishing?
    I would like to do some postprocessing on the remote server.
    The remote server is not mobileme,  so a tool like iwebenhancer  will not work.
    I will appreciate all kinds of tips and tricks and suggestions.
    best regards, Gabriel.

    So the Detect Change is to detect a change in the web page that the code is embedded, right?
    The only workaround would be, if you can modify what's in the ChangeDetection window is to not automatically enter the page but put in a red note to enter the page you want to be notified about.
    So instead of this:
    You would have this:
    where the visitor would have to copy and past the URL into the field.  Obviously not automatic. But might work if you can modify what is said in the window and not have the page automatically be entered.

  • Automaticly run Program\Script After and MSI Installation

    Hi All,
    Today I started looking into the use of Application Model in SCCM 2012.
    It was easy to create an application by using the import MSI function, which automatically created the application, deployment type and detection rule. But I'm struggling with how to run a script afterwards, when the MSI installation was successful.
    I've looked into creating 2nd deployment type making the first deployment type as it's dependency, but it's mandatory that I also need to make an detection rule. And this is where I'm stuck ass the detection rule I want to have the same as
    for the first deployment type which will make it impossible to run because the condition will be evaluated ass already installed.
    Is there a way to avoid the detection rule? If not is if possible trigger something after the first deployment type based on the errorlevel after the MSI installation.
    My goal is to write a regkey  somewhere in HKLM\Software\<company name> after an successful installation of an application. This location we've included in our hardware inventory for reporting purposes.
    Any suggestions to achieve this goal are welcome .
    Regards,
    Daniel

    I've resolved it with using the AddDploymentTypebyMISInstallerAuto function from the Add-CMDeployment command and provided an InstallationProgram parameter to override the default InstallationProgram.
    The comman-line looks like
    Add-CMDeploymentType
    -ApplicationName <Name>
    -AutoIdentifyFromInstallationFile
    -ForceForUnknownPublisher $True `
    -InstallationFileLocation
    <MSI
    File> -MsiInstaller
    -DeploymentTypeName
    Test1 –InstallationBehaviorType InstallForSystem
    -InstallationProgram
    < Custom
    Script>
    In this way I have the detection based on the MSI GUID and the ability to use a wrapper script.

  • Where to running SQL Scripts after install of ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server, that runs a sql server database, for developers to connect a web app to an Oracle/Unix database. The install states to run SQL scripts located in the $ORACLE_HOME\ASP.NET\SQL directory after the install. I'm not sure where to run them? On the ORACLE DB on the Unix server? If someone could bring me up to speed I would appreciate it. Thanks.

    If I do run the scripts, do you know what user they should be run as? The developer are using ASP.NET for connectivity.
    Why there is no Oracle Expert answer this simple question? ?
    After ODAC 11.1.0.7.20 installation completed, there is a message in the last screen:
    *"Run the SQL script located in c:\app\Administrator\product\11.1.0\client_1\ASP.NET\SQL directory for a new installation or an upgrade of Oracle Providers for ASP.NET"*
    The question is: How to run these 9 SQL scripts ?
    In SQL*Plus, which oracle user should I connect to in order to run these 9 scrips, including:
    InstallAllOracleASPNETProviders.sql
    InstallOracleASPNETCommon.sql
    InstallOracleMembership.sql
    InstallOraclePersonalization.sql
    InstallOracleProfile.sql
    InstallOracleRoles.sql
    InstallOracleSessionState.sql
    InstallOracleSiteMap.sql
    InstallOracleWebEvents.sql

  • Need to run php script before the Flash component kicks in

    I have a slide show component in Flash which uses an xml file to load images. The xml file, however, is created dynamically when the user selects which slide show they want to see. How do I run the php script BEFORE the slide show component has a chance to look for it? Usually it begins as soon as the .swf is run.
    thanks,
    chop

    thank you for responding.
    I'm still new at as3 so forgive me for needing details.
    I searched adobe for help and came up with the following to import the component. However, it seemed too easy to be true and so it was. I received errors when I ran it. The component is a commercial one called SlideshowBox and is in my library with that exact name.
    //add a component to the stage
    import fl.controls.SlideshowBox;
    var aSlideshowBox:Button = new Button();
    addChild(aSlideshowBox);
    errors:
    Scene 1, Layer 'Actions', Frame 1, Line 3    1172: Definition fl.controls:SlideshowBox could not be found.
    Scene 1, Layer 'Actions', Frame 1, Line 3    1172: Definition fl.controls:SlideshowBox could not be found.
    Scene 1, Layer 'Actions', Frame 1, Line 4    1180: Call to a possibly undefined method Button.
    thank you, k

  • Curiosity about the level of load on SAP ERP systems

    Hello all,
    In my company, I'm in charge of the SAP capacity planning and so, every month, I fill several Excel sheets to follow the load of our systems.
    I am curious to know if our load is similar to that of other SAP ERP customers.
    I would be happy if some of you would like to post their monthly load statistics for R/3 or ECC systems.
    Of course, I begin :
    Production R/3 4.7 ext2 system, main modules SD and MM.
    460 declared users, average 110 concurrent users
    1 Win 2003 MSCS itanium cluster with 5 win 2000 32 bit app servers.
    stats for November :
    Thousands of steps
    TOTAL :            22 500
    Dialog :                 797
    Background :        459
    RFC :                4 439
    UPD and UP2 : 14 418
    HTTP :                  523
    Average dialog step response time : 548 ms
    Database size : 1.1 To
    The load evolution of the system  is
    always increasing
    stable for dialog steps (sapgui)
    more and more external RFC calls
    more and more web services calls
    The system is less and less a transactional system and more and more a backoffice system executing services calls.
    Thanks to all who will be interested to share this load information.
    Regards,
    Olivier

    We are a manufacturing company and we have a lot of batch processing (MRP et al).
    Yes - the systems are pretty big
    DB-Server/CI: 4 x DualCore Opteron - 48 GB Memory (ENQ, BTC)
    AppServer: 4 x Opteron 48 GB Memory
    From a technical point of view we wouldn´t need the application server, the DB server could handle that load too.
    The main requirement we have is, that the avg. reponse time in VA01 for each line item is below 450 ms everywhere on the world (China, Poland, Russia) on those remote locations - the system is in Germany - so we are trying to make sure, that the main time consumed on the box itself is rather small because of not always reliant network connections to the east part of the world (actually VPN). 1/3 - 1/2 of the actual avg. reponse time is consumed for network transmission.
    On top of that we have about 550 printers defined because we print everything, that is related to the business process out of this SAP system which will also consume quite a bit of network speed/bandwith.
    Our users are pretty much "regaled" with response time, on days, where the avg. time is increasing 100 ms, we get a LOT of calls because of a slow system. The benchmark assumed 2 seconds are unacceptable for our users thus it may appear, that the boxes are oversized but we need that power to ensure the speed.
    Markus

  • Running Shell scripts from the desktop

    Hi,
    I'm from the UNIX world rather than the mac one so have written a number of shell scripts. Lets call them foo.sh and bar.bash for the sake of argument.
    These are sitting in a folder on my desktop
    I can happily open a terminal session and run the scripts - and they work as I expect them to.
    If I open a Finder window and double click on the icons for the scripts what happens is that it opens TextEdit.
    Theres two things I'd like to change
    A. I'd like to change the behaviour so that the scripts run when I double clike them rather than opening an editor (possibly in a terminal window )
    B. I'd like to be able to change the editor from TextEdit to one I'm more used to...(I've installed Vim/Gvim which I quite like).
    A. - Haven't managed to get anywhere trying to solve this....
    B. - So far my attempts have got as far as...
    1...
    right-click -> open with -> Other -> select vim.app
    tick Always open as
    click open
    The file then opens in a vim window.
    however if I now close the vim application and double clike the file icon then the file opens in TextEdit again
    2...
    Right Click -> Get Info -> Open with VIM -> add -> Change all
    message appears
    'Are you sure you want to change all your Vimm.app documents to open with the application "vim.app"
    This change will apply to all Vim.app documents with extension ".sh" '
    click continue
    In the Info pane the 'Open with' selection widget immediately changes to say 'Open with: TextEdit.app'
    So I'm a bit stumped, can you help!
    Regards
    Mark
    Mac Mini   Mac OS X (10.4.3)  

    Thanks to both people who answered.
    You both gave me useful workarounds to my problem.
    Renaming the scripts to be 'foo.command' was very hepful and useful to know. I tried this and it does indeed work. I may use this in the future.
    I also had a play around with applescript and the automator to achieve similar results.
    I agree that double clicking to run the file and also edit it is mutually exlcusive - I'm sort of trying to work out how I could make it do 'either/or' as I choose. In the Windows world i'd have the option of setting 'open' to run the script (assuming I'd got cygwin installed and had assiciated it) OR 'Edit with vim' if I wanted to edit the file (assuming vim was installed!).
    Unresolved issue is that I'm still unable to get VIM to be associated with a .sh file.
    The way I would envisage it working in Mac world would be to be able to right click on foo.sh -> Open with... and have a list to select from immediately there like..
    Text Edit
    Vim
    Terminal (default)
    and be able to somehow add and remove apps from the list and change which is the default.
    My issue is that I don't seem to know how to get other apps than TextEdit to appear in the list - I suspect I need a better understanding of how these file/application associations work and are configured.
    Regards
    Mark

  • [IDC S5] Run a script - get the extension Folder

    Hi All
    I'm novice in Extension Builder and may be my questions seems stupid...
    I want to run a JSX for ID, located in a sub folder of my extension.
    I use the "doscript()" method but I don't know how to refer to my ".jsx"
    If I set a File variable what kind of path I have to specify? Absolute or not?
    How can i get the folder of my extension?
    File.applicationDirectory don't returns my extension folder.
    Someone can help me?
    thanks
    Ivan

    There are two issues here.
    Firstly, how to obtain the file path to your script, or any item under your extension folder.
    File.applicationDirectory doesn't return your extension's directory, because extensions are loaded as sub-applications of a top-level "StageManager" application. And so File.applicationDirectory returns the StageManager directory rather than your extension's.
    Instead you can use the following CSXSLibrary API to get the full path to an item in the extension directory:
    var url:String = "app://" + CSXSInterface.getInstance().getSystemPath(SystemPath.APPLICATION).data + "myScript.jsx";
    Secondly, there are some pitfalls to be aware of when using doScript from ActionScript. See Harbs's excellent cookbook entry http://cookbooks.adobe.com/post_Using_InDesign_doScript_UndoModes_in_ActionScript-18462.ht ml
    David.

  • Running 2 scripts using the browser simultaneously

    I was wondering,
    Is there a way to run two different AppleScripts using Safari at the same time, so that e.g. one would operate in one tab and the other in a different tab? How do I go about that? How do I avoid conflicts? (I should add that my knowledge of applescripting is rather limmited, so more information is better than less )
    Also, both scripts would be using the curl command and shell script to download or save files, etc. What would happen, if both scripts tired to call the curl command at the same time? Would that cause a conflict, or would the scripts just be put in a queue?
    Any ideas?

    but how do I know which document is which? Is there any way  to tell safari to set the index of a document?
    There are numerous ways of identifying/tracking objects within AppleScript - and that's generally true for any object in any app.
    In this case 'index' is really front-to-back order, so 'document 1' (or 'window 1') is the frontmost, and therefore the inverse of how you created the documents in the first place. Of course that gets messy as you open new windows, move them around, etc.
    You can change the index of the windows, though, which changes their relative order:
    tell application "Safari"
              set index of window 2 to 1
    end tell
    There are other ways, though. For example, each window has an associated ID, which is persistent, therefore you could store the ID of each newly-created window and use that as your target:
    tell application "Safari"
              make new document with properties {URL:"http://www.apple.com/"}
              set appleID to id of window 1 -- store the window ID
      -- later on you can reference that same ID:
      delay 5
              set s to source of document of window id appleID
    end tell
    Other options include the name of the document, as well as relative options. Each application and object class has its own terms, so you'll need to explore the dictionary to determine what's appropriate for any given task.

  • Howto run a script in the idle task

    Hi all,
    I successfully wrote and executed an idle task routine that periodically executes a simple method. now i need to add a functionality to that method so that it executes a simple javascript.
    here is my code:
    uint32 myTestIdleTask::RunTask(
        uint32 appFlags, IdleTimer* timeCheck) {
        if( appFlags &
            ( IIdleTaskMgr::kMouseTracking
            | IIdleTaskMgr::kUserActive
            | IIdleTaskMgr::kInBackground
            | IIdleTaskMgr::kMenuUp))
            return kOnFlagChange;
        this->runTestScript();
        return kmyTestFvExecInterval;
    void myTestIdleTask::runTestScript() {
        // this is the test script
        PMString myTestScript("app.activeDocument.exportFile(ExportFormat.pdfType, File(\"/Users/testuser/testing.pdf\"),false);");
        // i think i need to call    CScriptRunner::RunScript()
       // somewhere here but no success
    Any help on how to execute the myTestScript Javascript code from the runTestScript() method?
    Thanks in advance,
    Hakan

    Dear Hakan
              I read your post, I'm really very happy to say, B'coz I'm also struggle to run the "JavaScript" through VC++ coding,
    I need your help to run the below script.
    Code:
         var myOs = getOs();
         alert(myOs);
         function getOs() { 
           if( $.os.substring(0, 7)=="Windows")
                     myUser =  $.os;
                     return myUser; 
            else if($.os.substring(0, 7)=="Mac Os")
           myUser =  $.os;
            return myUser; 
    I'm checking the OS. How to invoke this in to VC++ or run through VC++ coding. I'm creating the project using dollyxs.bat file.
    Kindly give me a guideline to run the above script & help me.
    Thanks in advance
    Regards
    T.R.Harihara SudhaN

Maybe you are looking for