CPU is idle when one of program is running

Hi -
I am running a program under terminal. The Activity Monitor shows the program is using 100% of CPU, however the left bottom corner in the Activity Monitor shows that 86% of CPU is idle.
Can I allocate more CPU for one specific program?
How to increase the computering power for one specifc program?
Thanks,
Michael

The Activity Monitor shows the program is using 100% of CPU, however the left bottom corner in the Activity Monitor shows that 86% of CPU is idle.
Can I allocate more CPU for one specific program?
How to increase the computering power for one specifc program?
I'm guessing, but from the 'top' display, I think you have 8 CPU hyperthreads (maybe this is an intel quad core i7 processor with hyperthreading support, so it looks like you have 8 CPUs).
The ibis process is saturating 1 CPU hyperthread.  The hypertheaded CPU cannot go any faster, it is giving ibis all its got.
To go faster here are some of your options (you will most likely not like any of them )
a)  get another Mac with a faster CPU (more Gigahertz)
b)  hack your Mac with a hyper cooling kit and mess with the clock frequencies to make your CPU run faster.
c)  find a more efficient program that does the same thing ibis is doing for you (maybe one that is already written to be multi-threaded).  Just because a program is running at 100% does not mean it is using the most efficient algorithms, and a program with more efficient algorithms will get to its goal faster even though both programs may be using 100% CPU, or actually a more efficient algorithm may actually use less CPU and still get to its goal faster.
d)  rewrite ibis so it is multi-threaded, thus using more than 1 CPU.  Writing multi-threaded code is not easy, or all the kids would be doing it.  And it tends to only be effective when the data being worked on can be broken down into multiple independent parallel tasks, otherwise the threads end up all just waiting for the slowest task to complete and most of the CPUs sit at idle waiting.
e) rewrite ibis so it uses more efficient algorithms.
f)  other ...

Similar Messages

  • Getting the variant name when the report program is run in background

    Hi All,
    How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
    Any pointers to this will be highly appreciated.
    Thanks and regards,
    Nilesh.

    Hello Nilesh,
    Please find the algo:
    1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
    2. Select data from TBTCP using these details:
    DATA:
    FP_EVENTID   TYPE BTCEVENTID
    FP_EVTPARM   TYPE BTCEVTPARM
    FP_ACTIVE    TYPE BTCXPGFLAG
    FP_JOBCNT    TYPE BTCJOBCNT
    FP_JOBNM     TYPE BTCJOB
    FP_STEPCNT   TYPE BTCSTEPCNT.
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          EVENTID                 = FP_EVENTID
          EVENTPARM               = FP_EVTPARM
          EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
          JOBCOUNT                = FP_JOBCNT
          JOBNAME                 = FP_JOBNM
          STEPCOUNT               = FP_STEPCNT
        EXCEPTIONS
          NO_RUNTIME_INFO         = 1
          OTHERS                  = 2.
      IF SY-SUBRC <> 0.
    *   Error calling FM: GET_JOB_RUNTIME_INFO
      ENDIF.
    DATA: FP_VARIANT TYPE BTCVARIANT.
      SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
      FROM   TBTCP
      INTO TABLE L_IT_TBTCP
      WHERE  JOBNAME   = FP_JOBNM
      AND    JOBCOUNT  = FP_JOBCNT
      AND    STEPCOUNT = FP_STEPCNT.
      IF SY-SUBRC = 0.
        SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
        READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
        IF SY-SUBRC = 0.
          FP_VARIANT = L_WA_TBTCP-VARIANT.
        ENDIF.
      ENDIF.
    Hope this helps.
    BR,
    Suhas

  • Launchd to run Applescript app. only when an iWorks program is running

    How can I make launchd load an applescript application (that autosaves documents) only when an iWorks program (Pages, Numbers) is running?
    I am using Launchd Editor or Lingon to right the plist file.

    There isn't a launchd trigger I'm aware of that will do this.
    The best you can do with launchd is a StartInterval which launches your application every n seconds and have the script perform the check to see if one of the target applications is running.

  • Alt+[m] calls up a new instance of Firefox when one instance is already running??

    I have another program, DataCad v15, which uses macros. Alt+[m] is one of those macros and it will call up a new instance of Firefox when using DataCad. In trying to trouble shoot the problem I found that entering the macro when DataCad is NOT running, it will call up a new instance of Firefox. Any explanation for this????

    More info:
    I have been using DataCAD and the fore-mentioned macro for years. I have been using FireFox for years although not as long as DataCad. I never had this problem before!
    I have solved the problem by changing out the keyboard and (wireless Logitech) mouse. '''BUT''' there have not figured out the cause. The keyboard (s. I have 3) is a Gateway Anykey programmable keyboard (with another set of function keys on the left - very useful in DataCad. Keeping the new mouse (wired MS) and switching back to the Gateway keyboard still calls up FireFox despite "de-programming" all programmed macros and re-mapped keys several times.
    I can find no documentation about Alt+m, as a macro for calling up FireFox in MS XP or Mozilla, so that mystifies me. This problem exceeds my computer expertise.
    Stephen

  • Getting An Error when a Concurrent Program is run

    ORA-20001: A value has been provided for a non-enabled or non-existent descriptive flexfield segment. This Error is coming out from the API call - hr_person_api.update_person. Please advise !

    Hi,
    Please mention the OS version and the application release.
    Is this a custom or standard concurrent program?
    Has this ever worked? If yes, what changes have been done recently?
    Search My Oracle Support for "ORA-20001 hr_person_api.update_person", go through the documents, and see if it helps.
    If none of the above helps, enable trace, submit the concurrent program and check the log file for details about the error.
    Regards,
    Hussein

  • Dreamweaver hangs when other CS programs are running,

    If I run Dreamweaver (4 or 5.5) on its own (with no other CS programs running) it works fine; but the minute I run another CS program (InDesign for example) Dreamweaver eventually hangs and is shown as not responding in Activity Monitor.

    I'm running 10.7.4, but I gave up trying to solve the issue so I uninstalled ALL my creative suite applications and re-installed. Problem solved.

  • Photoshop freezes when MS Office program open

    Client is running PSCC on a Dell Desktop (Windows 7). PS freezes whenever Microsoft Office program (any of them) is open. AI and ID work fine. Any ideas? Have dumped Pref file, downloaded new versions of CC, and problem persists. PS runs fine until MS Office program is opened, then it freezes.

    Please forgive the long reply.
    I will admit, I responded with fervor to the rude response I received. That was... wrong of me. Since then, I've received so many emails with even more rude comments that... well... I just will not respond to the egos. Just sayin'.
    Background: I am a graphic designer with print shop management background that goes way back. Been using Photoshop since the first version - but ON A MAC.
    I am training a young designer that works in a corporate environment - with a network that I can get little to no information about.
    She's running a Dell PC (I recommended they get her a Mac, but they didn't. Will say that with a PC oriented IT staff, she would likely have run into issues with the server - as they have no knowledge of Macs, and do not want to even try to go there.)
    With that said, I am NOT in her office (but once a week), and have limited info on her system.
    It is Windows 7 (cannot tell you what version.)
    She is running Adobe Creative Cloud (again cannot tell what version.)
    The problem with PS freezing started just 2 days before the "IT techs" made massive changes to the main server.
    After the updates (?) to the server, the problem continued.
    She downloaded new versions of CC - which did not resolve the issue. The "IT techs" then told her it was "AN ADOBE ISSUE" and she was on her own.
    When I arrived mid-week, we troubleshooted, and found that the issue happened ONLY when MS Office programs were running.
    We dumped the PS preferences, restarted. All was fine - until we launched a MS Office program - any of them. Then, PS would freeze. The PS window would not come to the front, and when all programs were closed and PS was at the front, nothing would work - menus would not activate - totally frozen.
    When we activated "Task Manager" and stopped PS... we did not have to fully stop the program. It would re-activate by not saving the file... and work could continue.
    The immediate "work around" is to not run MS Office programs when PS is needed. Problem is, she often needs to copy content from Word or Outlook - and cannot do so without a lot of time and trouble.
    We have "googled" until we're blind, and can find no reference of others having this issue - Which leads me to believe...
    1. There is a something wrong on HER computer only - possibly a conflict with a bogus program.
    2. It has something to do with the main server she is working through with CC.
    Note that this is a highly protected server, because they work with paycheck processing for businesses throughout the US. Major security, and an IT staff that is not use to dealing with graphics programs.
    Dell desktop has 2 drives. We moved the scratch to an empty drive that has over 400gb of space. No change.
    We dumped extensive huge files in Outlook - no change.
    We dumped pref files from PS, restarted, no change.
    We increased RAM available to PS... no change.
    Just looking for some clues as to what it could be.
    If there is a list of info I can gather this next Wednesday, I will certainly get the info and provide it.
    Must say, I appreciate the kindness and assistance. I also must say, Adobe may want to consider staffing their "online support blog" with hired, paid, and trained personnel.
    I cannot count the number of people I've assisted - and I'm sure you can't either.
    But when people are met with snarky attitudes, well... I hope they respond with less return of snarkiness than I did.
    My bad.
    Just looking for answers for SOMEONE ELSE.
    I do not get paid to solve this designer's PC issues. So this is not a "make money on someone else's expertise" situation.
    We all face issues from time to time. I so rarely ask for assistance. Was totally thrown by the rudeness.
    With that said, would appreciate any ideas you have, and will get whatever info is needed.
    This seems like a challenge... and one that has me stumped.
    thank you,
    Gwen

  • You but should be when I have scurrty cood can not close the I phone should be when I need close phone I but scurty cood for can I close my phone it is biter for can't any one close phone directly  When I have program for fined my I phone when any one clo

    you but should be when I have scurrty cood can not close the I phone should be when I need close phone I but scurty cood for can I close my phone it is biter for can't any one close phone directly
    When I have program for fined my I phone when any one close phone no have internet can't find my phone agine

    It is biter for any thief take my phone can't close my phone when he close my phone can't found agine because I open 3G when thife close my phone it is finsh can't yousing program for find my I phone
    Plz back to think my point it is biter for can't lose phone
    Should be when I need close the iPhone when I have scurty cood should be when I close I but scurty cood agine
    Thank  you very mutsh

  • CPU Temp Idle/Load Difference

    need a few second opinions here. below are my cpu temps (using speedfan, MBM5, and prime95):
    w/o CnQ:
    idle: 35-37
    load: 50-52
    with CnQ, w/o SmartFan:
    idle: 35
    load: 53-54
    with CnQ & SmartFan (target 40%, tolerance 5):
    idle: 31-32
    load: 51-52
    as you can see the only difference CnQ has made is in my idle temp, which seems pretty good to me, and is actually in the lower range of most of the quotes i have read on here. my question is, should my temp on load be as high as it is? that's a 20 degree difference, and it usually shoots up to the high 40s within a matter of 3-4 seconds and thankfully doesn't go TOO much further. should the difference between idle/temp really be so great? i would have expected my load temp to be a little less than that, maybe the high-40s, maybe even the mid-40s. there's no overclocking here, folks. not a whole lot of tweaking going on.
    i've checked to make sure CnQ is functioning correctly, all signs point to yes. i made sure i applied a correct amount of AS5 - i read enough stories about people applying too much so i kept that in mind when using it. i can't imagine that i may have still needed even less than that. besides, my idle temp would have been way higher if i had misapplied, right? my only problem is with the load temps. i've tried several of the recent bios revisions but disappointingly i see very little difference if any in temps i am getting through bios or speedfan. besides, my bios usually reads 41-44 degrees (that should be idle right?) so i don't even pay attention to it.
    is my load temp something to be worried about? if not, is it something that could be improved upon? should i get some kind of temp sensor and give it a manual test that way? not sure how to go about doing that or where to pick up a temp sensor. also, my NB/sys temp is usually hovering in the low-mid 40s but that's because i never thought to get a chipset cooler, which i have subsequently ordered from compUSA (i hear compUSA's FMI chipset cooler is recommended). could taking down the chipset temp a few degrees affect the CPU temp by chance? are there some other BIOS switches i should check out and experiment with? i am not a newbie to computers generally, but i AM more of a newbie tweak-wise.
    with the purchase of my new system, my first one put together from scratch (and hey, everything's working fine so i must've done a decent-enough job right?), i have really had to take some crash courses in BIOS issues, upgrading, the whole CPU fan and thermale compound market, which i never even knew existed. my previous system is a 400mhz p2 so you can imagine i pretty much had to get an update on the entire industry as it stands to know what i was doing! hey, i even got a BIOS savior to shield me against corruption, etc. nifty little piece of tech stuff.
    all suggestions and recommendations would be greatly appreciated. i would optimally like to get my load temp down to mid/high 40s range. perhaps i'm expecting too much here?
    thanks,
    kevin

    The short answer is that cnq will not affect your load temps, since when loaded, it is effectively running exactly as it would without CNQ.
    Yes, the temp will "shoot up" more when you go from non-loaded to loaded with CNQ, simply because it is starting from a lower temp to begin with.
    You will learn not to trust corecenter readings eventually - they are by no means guaranteed accurate.
    If you put your finger on your cpu heatsink when under load - if it's fairly warm, that's ok - if you can't hold it there for 10 seconds without burning, it's too hot.
    Edit: I see you were using speedfan - same comment about accuracy applies.

  • Asking the Bridge Team:  Bridge "working color space" setting when one does not have the Suite?

    Common sense tells me there is really no such thing as a
    "working color space" in Bridge, because
    Bridge is not an image editor, just a browser
    Therefore, this may turn out to be a purely academic question; but that doesn't keep my curiosity from forcing me to ask it anyway. ;)
    Is there a way to set the Bridge
    "color settings" when one does not have the suite?
    The only Adobe program I keep up to date is Photoshop, so I've never had the suite. My version of Photoshop is 11 (CS4) and I run updated
    (not upgraded) versions of Adobe Acrobat 7.x, Illustrator 10.x and InDesign 2.x. Consequently, the Synchronize color settings command is not available to me.
    It seems to me that Bridge is behaving like a proper color-managed browser (e.g. Firefox with color management enabled), in that it displays tagged image files correctly and assumes sRGB for untagged image files. This normally works fine.
    But what if I wanted Bridge to assume my
    Photoshop color working space for untagged images
    so that it behaves the same as Photoshop? I'm just curious, as I deal with a minuscule, practically negligible amount of untagged files.
    My reason for bringing it up now is that I don't recall this being explicitly mentioned in forum replies when users inquire about color settings in Bridge. A recent post regarding Version Cue in the Photoshop Macintosh forum got me thinking about this. Just wanting to make sure that I'm right in my assumption that
    there is really no such thing as a
    "working color space" in Bridge, because Bridge is not an image editor, just a browser.
    Thanks in advance.

    Hi Ramón,
    Thanks for sharing the outcome of your tests. However, I may have found a bug/exception to Bridge's colour management policy!
    It appears that CMYK EPS photoshop files are not colour managed in Adobe Bridge, even if they contain an embedded ICC profile.
    I've tried every combination in the EPS 'Save As' dialogue box, so it doesn't seem to be an issue with file encoding. Also, Bridge doesn't rely on the low-res preview that is held within the EPS itself.
    My guess is that Bridge is previewing the CMYK EPS with a Bridge-generated RGB image, but it's being displayed as monitor RGB (assigned) rather than colour managed (converted to monitor RGB). For most users the difference will be barely perceptible, but the problem became very noticeable when using Bridge to preview Newsprint CMYK images on a wide-gamut monitor (images that should have appeared muted really leapt off the screen!).
    How do I report this to the Colour Police at Adobe?!?

  • Dynamically selecting template when submitting conc program in XML Reports

    Hi Experts,
    I am working on XML Publisher reports with EBS-R12 and database-10g.
    I have two RTFs,(one for USA country and another for Japan) for my report. I created one data defintion, and two templates for same data defintion in XML Publisher responsibility.
    When i submit the concurrent program, i can manually select the template from the available list. My requiremet is, based on input parameter(ORG ID), the template should be selected automatically.
    Is there anyway template can be automatically selected based on condition when submitting concurrent program?
    Waiting for your responses.
    Thanks.

    Look up FND_REQUEST package details.
    Here's some sample code to get you started.
    PROCEDURE submit_report (
                   errbuf out VARCHAR2,
    retcode out NUMBER ,
                   i_conc_prog in varchar2,
                   i_country in varchar2
              ) IS
    lv_req_id number := 0;
    xml_layout boolean;
    lv_template_code varchar2(30);
    lv_template_appl_code varchar2(30);
    lv_output_format varchar2(30);
    cursor c_output_format (p_conc_prog in varchar2, p_country)
    is
    .... Enter your select statement to get your template code and output type based on your criteria
    BEGIN
         open c_output_format(i_conc_prog, i_country) ;
         fetch c_output_format into lv_template_appl_code, lv_template_code, lv_output_format ;
         close c_output_format ;
    xml_layout := fnd_request.add_layout
         template_appl_name => lv_template_appl_code,
                        template_code => lv_template_cide,
                        template_language => lv_template_lang,
                        template_territory => lv_template_territory,
                        output_format => lv_output_format
    IF (NOT xml_layout) THEN
    fnd_file.put_line(fnd_file.log,'Unable to apply ' || lv_template_code || ' template');
    ELSE
    lv_req_id := fnd_request.submit_request
    application => <>,
                        program => i_conc_prog ,
    description => NULL,
              start_time => NULL,
              sub_request => FALSE,
                        argument1 => <>,
                        argument2 => <>,
                        argument3 => chr(0)
    END IF;
    IF lv_req_id <> 0 THEN
    fnd_file.put_line(fnd_file.log,'Submitted '|| lv_req_id );
    ELSE
    fnd_file.put_line(fnd_file.log,'Error submitting request ');
    END IF;
    commit ;

  • Not able to execute one Java program from another one via. exec()

    Hi,
    I am new to this forum, so I might be asking a very trivial quetion.
    My program Ap1 is :
    class Ap1
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    p=rt.exec("javac,Pr.java");
    Runtime.getRuntime().exec("javac,Pr.java");
    When I run the above program, I get below error at the line 7(bold one):
    D:\batchwe>javac Ap1.java
    D:\batchwe>java Ap1
    Exception in thread "main" java.io.IOException: CreateProcess: javac,Pr.java err
    or=2
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    at java.lang.Runtime.exec(Runtime.java:591)
    at java.lang.Runtime.exec(Runtime.java:429)
    at java.lang.Runtime.exec(Runtime.java:326)
    at Ap1.main(Ap1.java:7)
    Path is set as below(which seems correct):
    D:\batchwe>path
    PATH=C:\Program Files\Java\jdk1.5.0_05\bin
    I am just wondering how to call one Java program from another one?!
    Please help.
    thanks
    Rashmi

    Hi diptaPB,
    Thanks for your suggestion.
    Here is how I tried it again, but not getting the desired output:
    Class Pr looks like below -->
    class Pr
    public static void main(String a[])
    System.out.println("hi from process");
    When I run 'Pr' from command prompt, i get the desired output:
    D:\batchwe>java Pr
    hi from process
    However, when I call 'Pr' from another program Ap2.java, it seems that it does not call 'Pr':
    class Ap2
    public static void main(String a[]) throws Exception
    Runtime rt=Runtime.getRuntime();
    Process p=null;
    String[] cmd=new String[2];
    cmd[0]="javac";
    cmd[1]="Pr.java";
    p=rt.exec("cmd");
    D:\batchwe>javac Ap2.java
    D:\batchwe>java Ap2
    ************* no output appears here***********************
    Looking forward for your help.
    regards
    Rashmi

  • One mapping program for three diferent enviroments

    Hello there,
    I have developed a scenario in which an rfc requests a web service trough XI. In the process a BPM is involved together with some XSLT mappings.
         R3->XI->WebService
    The Web service request message looks like follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <cem:Z_ORDER_SEARCH xmlns:cem="http://XXXXXXXX/yyyyyyyyyyyy">
         <messageStructure/>
    </cem:Z_ORDER_SEARCH>
    Where "http://XXXXXXXX/yyyyyyyyyyyy" Is the web service destination.
    Everything works fine, but as I have to manage three different environments for Development, Quality and Production I need three different versions of the XSL mapping since destinations are not the same for Dev, Qlty and Production environments.
    I found out that I can get information of the sender using runtime parameters as follows:
    <xsl:param name="SenderSystem">
    I would like to evaluate this information to determine the target URL destination.
    If the sender is the development sender then the URL target is the development destination and so on.
    I tried the following code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:cemDev="http://developmentDestination"
    xmlns:cemQlty="http://qualityDestination"
    xmlns:cemPrd="http://productionDestination"
    xmlns:cem=""
    <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemDev"/>
    <xsl:template match="/">
         <cem:mappingProgram/>
    </xsl:template>
    </xsl:stylesheet>
    This works all right, but I cannot insert code to evaluate the destination.
    On the other hand, this code is not valid:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:cemDev="http://developmentDestination"
    xmlns:cemQlty="http://qualityDestination"
    xmlns:cemPrd="http://productionDestination"
    xmlns:cem="">
    <xsl:param name="SenderSystem"/>
         <xsl:choose>
              <xsl:when test="string($SenderSystem) = 'PRODUCTION'">
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemPrd"/>
              </xsl:when>
              <xsl:when test="string($SenderSystem) = 'QUALITY'">
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemQlty"/>
              </xsl:when>
              <xsl:otherwise>
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemDev"/>
              </xsl:otherwise>
         </xsl:choose>
         <xsl:template match="/">
              <cem:mappingProgram/>
         </xsl:template>
    </xsl:stylesheet>
    Neither this one:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:cemDev="http://developmentDestination"
    xmlns:cemQlty="http://qualityDestination"
    xmlns:cemPrd="http://productionDestination"
    xmlns:cem="">
            <xsl:param name="SenderSystem"/>
            <xsl:template match="/">
         <xsl:choose>
              <xsl:when test="string($SenderSystem) = 'PRODUCTION'">
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemPrd"/>
              </xsl:when>
              <xsl:when test="string($SenderSystem) = 'QUALITY'">
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemQlty"/>
              </xsl:when>
              <xsl:otherwise>
                   <xsl:namespace-alias stylesheet-prefix="cem" result-prefix="cemDev"/>
              </xsl:otherwise>
         </xsl:choose>
         <cem:mappingProgram/>
          </xsl:template>
    </xsl:stylesheet>
    I tried this other code, which is obviously not valid:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">
              <xsl:param name="SenderSystem"/>
              <xsl:choose>
                   <xsl:when test="string($SenderSystem) = 'PRODUCTION'">
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://productionDestination">
                   </xsl:when>
                   <xsl:when test="string($SenderSystem) = 'QUALITY'">
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://qualityDestination">
                   </xsl:when>
                   <xsl:otherwise>
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://developmentDestination">
                   </xsl:otherwise>
              </xsl:choose>
         <cem:mappingProgram/>
    </cem:Z_ORDER_SEARCH>               
         </xsl:template>
    </xsl:stylesheet>
    So the only way I found to make it works is like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">
              <xsl:param name="SenderSystem"/>
              <xsl:choose>
                   <xsl:when test="string($SenderSystem) = 'PRODUCTION'">
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://productionDestination">
         <cem:mappingProgram/>
                        </cem:Z_ORDER_SEARCH>
                   </xsl:when>
                   <xsl:when test="string($SenderSystem) = 'QUALITY'">
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://qualityDestination">
         <cem:mappingProgram/>
                        </cem:Z_ORDER_SEARCH>
                   </xsl:when>
                   <xsl:otherwise>
                        <cem:Z_ORDER_SEARCH xmlns:cem="http://developmentDestination">
         <cem:mappingProgram/>
                        </cem:Z_ORDER_SEARCH>               
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    </xsl:stylesheet>
    Unfortunately this doesn’t solve my problem, because I need to reproduce the mapping program three times in the document.
    Any ideas, or suggestions how to manage one mapping program for the three different environments?
    Thanks a lot in advance, Raú

    Hi there,
    I just found one way of getting this done. It may not be the better waw, but I post it in case it is helpfull.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <!-- Sender System at runtime-->
         <xsl:param name="senderSystem"/>
         <!-- SenderSystem constants (development addressed by default)-->
         <xsl:variable name="qualitySenderSystem" select="'WHATEVERTHENAMEOFTHEQUALITYSENDERSYSTEM'"/>
         <xsl:variable name="productionSenderSystem" select="'WHATEVERTHENAMEOFTHEPRODUCTIONSENDERSYSTEM'"/>
         <!-- Mapping program template to be called-->
         <xsl:template name="mappingProgram" match="/">
              <!-- MAPPING PROGRAM-->
              <UNIQUE_MAPPING_PROGRAM/>
              <!-- END OF MAPPING PROGRAM-->
         </xsl:template>
         <!Receiver determination depending on senderSystem>
         <xsl:template match="/">
              <xsl:choose>
                   <xsl:when test="$senderSystem=$productionSenderSystem">
                        <xxx:Z_ORDER_SEARCH xmlns:xxx="http://production">
                             <xsl:call-template name="mappingProgram"/>
                        </xxx:Z_ORDER_SEARCH>
                   </xsl:when>
                   <xsl:when test="$senderSystem=$qualitySenderSystem">
                        <xxx:Z_ORDER_SEARCH xmlns:xxx="http://quality">
                             <xsl:call-template name="mappingProgram"/>
                        </xxx:Z_ORDER_SEARCH>
                   </xsl:when>
                   <xsl:otherwise>
                        <xxx:Z_ORDER_SEARCH xmlns:xxx="http://development">
                             <xsl:call-template name="mappingProgram"/>
                        </xxx:Z_ORDER_SEARCH>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    </xsl:stylesheet>

  • Mass processing - Error when processing Java programs / VMC out of memory

    When running a mass update background process that updates the status of a service order in CRM the job fails due to error 'Error when processing Java programs'. I checked the VMC (SM52) and noticed that there is an error about the VMC running out of memory.
    The background program can either be a PPF Action or a Z-ABAP program that performs the update. Both programs are performing a CRM_ORDER_INITIALIZE but it seems that the VMC is not releasing the memory fast enough.
    Is there anyway we can force the VMC to release the memory after processing of each individual order?
    Thanks!

    I got  similar issue and it got resolved by useing CRM_ORDER_INITILAIZE. Initalization should happen after every Order processing and see that only one header guid is passed to the the FM. May not be good option ,but just try by putting wait for 5secs after CRM_ORDER_INITILAIZE.

  • When was the last time a program was run?

    Experts, is there a way to know when was the last time a program was run (particularly, Z Program). We are trying to identify obsolete programs and avoid working on those programs that weren't touched for more than 3 years during our next upgrade. How can I find this? Any suggestion would be highly appreciated.
    Thank you.

    Hi,
    One way is to check TRDIR table(se11/se16) and display it. In the next screen once you will get 'Data Browser Table TRDIR' selection screen. There either you put the individual 'Z' program name in the 'Name' field & execute it or for all multiple entries execute it.
    Once you execute it with the particular Z prog. name then you will get the required details like CDAT(Created on),UNAM(Last changed by),UDAT(Changed On),SDATE(Standard selection screen generation: Date),IDATE(Selection screen generation: Date) etc.
    Hope this can help you.

Maybe you are looking for