Rule 157 in background

Hi,
    I ran rule 157(HOD) through rh_get_actors in method of a task.
    In foreground, i am getting the actors.
    But when i make the task as background.its failing.
    Any restrictions on usage of rule in background??
    any other idea will also be helpful.
   Thanks in advance.

Hi Nuthan,
does WF-BATCH SAP and SAP_NEW?
Does the user who created processed the previous workitem sufficient authorisation (SU53) PLOGI Profil P_PLAN_ALL.
To avoid an unnecessarily high number of tRFC calls during workflow   
imlementation, some activities of the workflow runtime system, such as
data flow or processor determination, are carried out under the user of
the person responsible instead of under WF-BATCH.
Workaround:
1. Assign more authorizations to the person resonsible or
2. add empty background steps to your workflow definition (for example, based on the single step task
TS30000044, object type WFTS, method EMPTY_BACKGROUND).
More information you find in the note:
755767 Special feature for authorizations in the workflow
Just let us know if you need more help.
Regards
Tibor

Similar Messages

  • Problem in work flow Rule 157

    Hello experts ,
    Created organization
    Company
      Hod of department    user-mgr01                        -- level 1
                             Manager             user-mgr03          level 2
                                         Employee 01        user-Emp01      level 3
                                  Employee 02        user-emp02       level 3
                                             Employee 03        user-emp03       level 3
    In work flow I put two decision Step
    1 for manager approval    here I used rule  00000168.
    2 for hod approval           here I used rule 00000157.
    After manager approved  workitem should go to hod . this my scenario
    employee 03   Trigger the workflow based on the rule 00000168 workitem will go to  manager
    It's working fine .
    After manager approved
    Next decision step will executed
    Work Item should go to superior of ( Manager ) that is  Hod of department, here I am using  rule 157.
    but it would go to manager. 
    How to solve .
    Regards
    Krishnan R.

    Hi
    Thanks for response .
    here  we should not  assign any hard coded values like position id, organisation id . but the workitem will go to his superior based on the organisation structure .
    i did small mistake ,ok it is working in workflow . when i run the workflow seperately
    i am executing the workflow through web dynpro abap ,
    it getting started and working fine upto manager approvel .
    but HOD approval decision step was not executed .here ( i am using rule 157 )  after approved manager .
    but i specific organisation id instead of using rule 157 in HOD approver decision step of workflow .
    it is working in uwl . 
    i want to use rule 157 in decision step of HOD  
    but it is not working in UWL .  what should i change
    Please give  suggestion
    Thanks and Regards
    Krishnan R .

  • Trigger substitution rule for a background job

    Hi all,
    I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
    but the substitution rule is not getting triggered as F110 runs a background job to post the document...
    The substitution is active and the activation level is active all the time.
    Could u please suggest how to get it triggered for a background job...

    Measuring External Processes
    Use
    The runtime analysis allows you to switch into work processes that are already running and to measure the runtime of dialogs running in them as though they were running in the current session. You can have up to ten external sessions, which may be of any type – for example, dialog, update, or spool. This runtime analysis variant is ideal for monitoring long-running background jobs.
    Filename and Directory
    If you do not want to use the default filename and directory to store files, you can change them using the profile parameter abap/atrapath. If the profile parameter does not contain an entry at all, an error occurs when you start the runtime analysis.

  • Trigger a substitution rule for a background job

    Hi all,
    I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
    but the substitution rule is not getting triggered as F110 runs a background job to post the document...
    Could u please suggest how to get it triggered for a background job...

    Hi,
    Please mainatain another substitution rule.
    PREREQUISTE : 40(POSTING KEY )=SPARE PARTS(gl) and 50(posting key )=Inventory write off
    Sustitute : Dtype = VA
    Regards
    jabeen

  • Rule based on background colour?

    Hi,
    The rules feature is pretty simplistic so I think I already know the answer but worth asking anyway:
    is it possible to have a rule that acts on the background colour of an email?
    For example emails that need an action I want set to Green and emails who's tasks are completed I want set to Red. I then want smart folders that collate all green and all red emails into their respective folders.
    I cant see "colour" exists as a Rule option but has anyone else figured out a way to make this (or a similar idea) work?
    Thanks in advance.

    While you could set the label color using applescript, I don't see a way to select the label color in a smart mailbox. You may want to take a look at [Mail Tags|http://www.indev.ca/MailTags.html].

  • Rule set import - Background job did not run

    Hi,
    I am setting up my CC 5.2 production system. I have downloaded from ruleset from the dev CC and imported it into production. However the background job generated did not run. I am implementing SAP note 999785 to fix this, but am wondering what should I do about the rule set? Do I need to delete the rule set and reimport it? As this background job did not run I notice that the permission rules did not generate.
    Any advice is welcome.
    Thanks

    Hi,
    as the backgorund job never ran and no rules were created, I can just reimport the ruleset and let the job run. I have tried this and the rules were created successfully

  • Possibility of creating Settlement Rule in Background?

    Hi Gurus,
               When I am doing TECO of the Maintenance Order everytime I have to create Settlement Rule.
               My settlement receiver Category (Cost Center) and Cost Center are fixed for  Order Type.
               Is it possible to create Settlement rule in the background while doing TECO of the Order.
               Please suggest if any User Exit is there.
    With best regards,
    Narendra

    Narendra,
    We are looking at exactly the same issue.
    As you are aware, you can only default one cost centre via the equip/floc...
    The only way we can see to have a pre-defined cost centre by order type/plant is to use user-exit [IWO10027|http://pjatkin.users.btopenworld.com/documents/PMCSUserExits.pdf] (default settlement rules).
    PeteA

  • Error during Import & Export of rules - RAR 5.2

    Hi all,
    We tried exporting the rule set from Production to the Quality system (as we wanted to make changes in the quality system and then move to the production again).
    For this we followed the step by step procedure provided in the configuration guide for Import and Export of rules. The background job was successfull. But we are unable the generate the Action and Permission rules in Quality System
    We observed the following the Quality system
    a) All the functions and risks imported successfully and we could able to see them
    b) But when we click on the Action rules it is poping up the error
         "500 Internal Server error.00 -Failed to process request Please contact your sys admin"
    c) We are unable to find the ACTIONS (T-CODES) under the respective functions imported into the Quality System.
    Does anybody faced the same problem and resolved it. Please help us in resolving
    Thanks and Best Regards,
    Srihari.K

    Hi
    You can also review the guide GRC Access Control 5.2 u2013 Risk Analysis and Remediation: Quick Reference Guide for Moving to Production to see if it helps you identify your problem.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00bb29df-8b58-2a10-869a-a016de9d0ef7
    Lori

  • Using a Mail rule to run an AppleScript

    I've been trying to get a Mail rule to run a very simple AppleScript on 10.5.3 and it just doesn't work, period.
    I've tried making everything as simple as possible:
    1. My Mail rule sets the background color of a message and runs the AppleScript if the subject contains "test".
    2. The AppleScript displays a Finder alert.
    [(screenshot)|http://i26.tinypic.com/nqxou8.png]
    Naturally, the script runs fine within the Script Editor. I also know that the rule works since the background color action gets applied.
    But, the AppeScript never runs when I apply the rule to a message manually or when it gets automatically applied to new messages. I really can't imagine where I'm going wrong here...

    You can't simply feed it some arbitrary script to execute, you have to write a handler that Mail can dispatch events to. This generally looks something like
    using terms from application "Mail"
    on perform mail action with messages theMessages for rule theRule
    tell application "Mail"
    repeat with suspectMessage in theMessages
    --do something
    end repeat
    end tell
    end perform mail action with messages
    end using terms from

  • CSS rules show up in design mode, but not in live or in browser.

    So some rules work in the browser some appear when in design mode, but not in live mode or in the browser. 
    In one case there is no competing rules I applied background color and border color to a dynamic table and I see the colors in design view.  In another there is a competing rule, but the one that wins is #content, when the rule I want #content #footer p is (obviously) a compound and at the bottom of the rules.
    Any thoughts?
    Thanks
    Gregg

    AH In preparing my stylesheet to show you, I noticed the rule above those two was missing it's ending curly brace. Problem solved! That's what I get for checking code when I am sleepy!
    Thank you SnakeEyez02
    Gregg

  • CEV business rule only uses first set of parameters in multiple inserts

    We have a cev rule that logs data for emails when a record is inserted in a table.
    Where there are two records inserted from a script, even where a qms_transaction_mgt.open_transaction and close transaction are used around each insert, the CEV record parameters do not change.
    By this I mean we have two records:
    1 - id: 22
    2 - id: 23
    We pass the id to the CEV business rule and dbms_output the parameter value - it indicates that for both records the p_id = 22.
    The insert into the table indicates that the record ids were 22 and 23.
    This appears to have been reported several times but there is no solution.

    I would set it lower than 20 minutes as that is quite high before it sends the rules into the background, if the spawning at 10 minutes try setting it just lower than 10 as a test.
    It may also be worth looking into the apache timeout (if you are using the apache web server plugin) as that could also be playing a part.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Problem running business rules through forms that are 15+ mins long.

    I just upgraded to 9.3.1 from 9.0.1 and we are having some issues with our business rules. We have business rules that can run up to several hours but the status on the screen ends up timing out with a 'please see planning' log error.
    The error in the log states: Status unknown, calculation context no longer available
    I can tell every second planning is checking on the business rule but after about 15 mins it does not:[9/5/08 19:47:06:810 CDT] 000000c1 SystemOut O state in essMainCalc.getprocessstate = 1
    Even though there is an error I can look at what is running in essbase and see that the business rule is still running. When it finishes it does what it is supposed to do.
    I have tried updating HBRServer.properties to a new timeout but it does not work.
    I am really lost here, can anyone help?

    Hi,
    There are a couple of you have, you can switch business rules to start running in the background after a certain time, the status of the rules can then be checked from planning with the business rules status page
    To set this up :-
    1 Select Administration > Manage Properties.
    2 Select Application Properties to set properties and values for a Planning application.
    3 Add the property by clicking Add, entering the property in the blank row, and entering a value in Property
    Value:
    Enter HBR_MAX_WAIT_FOR_RULE and the interval in milliseconds to wait before running
    business rules in the background. If this property is not set, the feature does not work, and
    business rules do not run in the background.
    Optional: Enter HBR_MONITOR_DELAY and the interval in milliseconds for checking
    business rule status.
    The default and minimum value for both options is 180000 milliseconds (3 minutes). If you
    set a lower value, that value is ignored, and the property is set to the default value.
    4 Click Save and confirm your changes.
    Or you could try installing patch 9.3.1.1.1 or above (it is now at 9.3.1.1.7) from metalink3.
    The patch includes :- (8-665086601) When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established
    I hope this helps
    John
    http://john-goodwin.blogspot.com/

  • Does sap xi has business rules engine?

    Dear experts,
    i am dealing with microsoft biztalk server,i come across this business rules engine.this framework comprises policies,facts,vocabularies, and rules.
    so does <b>sap xi </b>has this business rules engine??if yes plz eloborate?? if no whats the sap's alternate for this??
    thanks heaps in advance
    cheers
    kish

    well alternative would to develop some web page or ABAP screen which you can fromulate rule and in background you can use R3 Custom tables or any database tables to store the rules...
    while mapping you can do RFC lookup in case you have used R3 tables or database lookup to read the rule in case of other database....
    look possible but we have yet started working on this approach..

  • Background for section

    im looking for the best solution -
    www.kiraamerica.com
    click on drill tap
    click the first product
    then go back and
    then click the 2nd product
    you should see one has white background and the other has the blue
    white is the desired background.
    I created a new style for that section and applied it to the 1st product page.  so now its specific to that page only.
    i have thousands of product pages that need this.
    i believe i removed a graphic background because i didnt want a large white box for that section of the page,
    is it possible to add my .css style to all the pages easily, or do i need to apply it to all ?
    i just need to update this one last thing - i can even live with turning the text and borders white if necessary, but i just thought i'd see if anyone had any advice to offer.
    thanks...

    Add this property to your #container #content class rule
    #container #content {
        background-color: #FFFFFF;     display: block;
        float: left;
        margin-left: 15px;
        width: 600px;

  • Changin my background

        Hello,
    I am responsible for updating a website that someone else, who is no longer with the company, designed.  I am trying to change the background of the website.  I have found the jpeg image that is currently being used for the background, edited it to look how I want it and saved it as a new jpeg file.
    When I go to "Modify > Page Properties" and select my new background image it comes up looking EXTREMELY pixilated. So much tha you can't even tell what it is...  The image was created in illustrator and I exported it to jpeg and just accepted the options that it was pre set to.
    I have found in the HTML where the background image is and it reads:  background-image: url(images/newsbg.jpg);
    how can I get my new background image to work when  I put it in dreamweaver, I have tried draging and dropping the new image into the html line where the old one is, and that does not work, it just makes the whole background dissapear, as I mentioned, I have tried changing it in "Modify > Page Properties" and that does not work either....
    any suggestions?
    Cheers,

    From your question, I am guessing that you don't have much experience with HTML or CSS - is that correct?
    I have found in the HTML where the background image is and it reads:  background-image: url(images/newsbg.jpg); 
    how can I get my new background image to work when  I put it in dreamweaver, I have tried draging and dropping the new image into the html line where the old one is, and that does not work, it just makes the whole background dissapear, as I mentioned, I have tried changing it in "Modify > Page Properties" and that does not work either....
    any suggestions?
    Cheers,
    In the CSS panel, find the rule for that background image (it's probably the body selector rule), and select the background-image style on the left.  When you do that, you will see a browse option to the right.  Browse to the new image and select it.
    But did you save the new background image with the same name and in the same location as the old one?  Then it should work automatically without you needing to do anything more.  Also, did you save the new background image with the same dimensions as the old one?  Can we see the two images?

Maybe you are looking for

  • How can i take off a credit card from my apple id

    How can i take off my credit card from my apple id

  • LiveCycle Designer ES4 Crashes when trying to distribute a form

    Hi I created a dynamic form in LSDesigner ES4. It includes some figures as well as some JavaScript. The form works fine in the PDFPreview mode within LS ES4. When I try to distribute it (choosing "by email", "save locally") Acrobat XI Pro is being op

  • P7NGM simultaneous DVI + HDMI?

    A small question about the P7NGM mainboard: does it support simultaneous output on both the DVI and HDMI ports? Or does it only work as DVI + VGA / HDMI + VGA? The product description and the manual didn't provide the answer... Hopefully someone with

  • CS5 - Photoshop won't start:  preferences file  was invalid (it has been deleted)

    Environment: Win7 Ultimate - 4 gig ram - CS5 Design Premium Seemingly out of the blue - Photoshop stopped loading and I'm getting two error messages : first:           ADOBE PHOTOSHOP CS5 Extended:  "Could not load actions because an unexpected end-o

  • Unable to exit from WLST

    Hi All, I am currently having problem when exiting the WLST. When I invoke stopWebLogic.sh, it will initialized the WLST and run the shutdown program. After running the shutdown program (shutdown.py), the it call "exit()", but it just hang there and