Problem in Workflow triggering

Hi,
   I am using BOR EMPLOYEET and Events
1. COMPANYLEFT.
2. HIRED.
3. REHIRED.
4. RETIRED.
to trigger my workflow.
In SWEHR1 I have maintained the Business Object and in SWEHR2 I have given the entries for all the four Events.
Now when I go to PA40 and Hire a Employee my workflow is triggering for all the Events, but it should trigger only for the event HIRED.
Thank you,
Ramu N.

Hi,
I think that your system works exactly as it is customized. If there are 4 entries in change on IT0001 without function module, 4 events are probably getting triggered with as many as receivers, also activate event trace to see if this is indeed the case.
So either change the settings in SWEHR2, or add your own function module behind the settings, or change the event linkages in SWETYPV.
If in doubt press f1 on the fields in SWEHR2 and in SWETYPV, I think it's well documented.
Kind regards, Rob Dielemans

Similar Messages

  • Workflow triggering problems

    Hi all,
    I have a puchase order release workflow ,and have activated the triggering in tcode pftc,but the problem is ,every time I create a purchase order the workflow triggering gets deactivated and have to manually activate it after each Purchase Order creation or change.
    Does anyone have a clue as to what may cause this problem?
    Regards
    MM

    Hi Raja,
    Thank you for your reply.
    I tried changing the method but it still throws the same error. i dont think this error is related to the Task method , since it can also be a dummy method (as is the case with the leave approval workflow 12300111) .
    Any other helpful suggestions ??
    Thanks,
    Joe

  • Approval workflow triggers when not expected for SRM PO & without Agent ??

    Hi All,
    We are using SRM 5.0 integrated with SAP MM backends.
    We are frequently facing this problem, when a buyer  creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
    Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
    In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
    I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
    Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
    Has anyone faced this kind of problem before?? Please help.
    Thanks,
    Ruchika

    please check from the workflow log , the workflow which the system is starting.
    might be the system is able to start another workflow than the one which you are mentioning
    use the transaction swi6 for workflow log , use the purchase order guid

  • Approval Workflow triggers when not expected & without Agent ??

    Hi All,
    We are using SRM 5.0 integrated with SAP MM backends.
    We are frequently facing this problem, when a buyer creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
    Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
    In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
    I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
    Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
    Has anyone faced this kind of problem before?? Please help.
    Thanks,
    Ruchika

    Hi Ruchika,
    This seems to be a problem with the start condition of the PO approval workflow. Check for the same and see if there is any issue.
    Regards,
    Saumya

  • Workflow triggers unwantedly

    Hi All ,
    we are a strange issue in EC incoming Invoice workflow in SRM, descriptiojn is as follows
    we have two workflow in our system for invoice one goes through approval and other auto approval , and on the SRM portal at header level in the basic data we have added two custom fields allow NON-PO invoice and Allow RE ,and implemented the doc_check_badi , now at the line item level if we do not give any PO refernce and check/post  then we get an error message saying the entrer PO and the status of the invoice to " to be corrected manually" ideally in the above case approval  workflow should not trigger , it sould only trigger when we tick the allow Non-po invoice check button , and it was working fine , but suddenly after patch upgrade the approval workflow triggers even if we do not tick the chck box at header level . Can anyone suggest did any thing go wrong in patch upgrade , I have checked all the conditions and linkages all are fine, but i guess some standard setting is missing which would have gone missing .

    Dear all,
             Thanks a lot for reading my post with intention to answer.
             The issue is resolved now.
             The problem was at BAdI.To trigger the workflow with event CREATED for purchase requisition, BAdI named ME_REQ_POSTED needs to be used :
             Following coding is used for the same :
    method IF_EX_ME_REQ_POSTED~POSTED.
      DATA: WA_EBAN TYPE EBAN.
      DATA L_S_EBAN TYPE UEBAN.
      DATA: OBJKEY TYPE SWEINSTCOU-OBJKEY .
      LOOP AT IM_EBAN INTO L_S_EBAN .
      ENDLOOP.
        IF ( SY-TCODE = 'ME51N' AND SY-UCOMM NE 'MECHECKDOC' ) OR SY-TCODE = 'ME52N'  .
          IF  L_S_EBAN-BSART = 'ZNB'.
            OBJKEY = L_S_EBAN-BANFN.
            SELECT SINGLE * FROM EBAN INTO WA_EBAN WHERE BANFN EQ OBJKEY.
            IF SY-SUBRC NE 0.
              CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
                EXPORTING
                  OBJECT_TYPE             = 'BUS2105'
                  OBJECT_KEY              =  objkey
                  EVENT                   =  'CREATED'
                 COMMIT_WORK             = 'X'
                 EVENT_LANGUAGE          = SY-LANGU
                 LANGUAGE                = SY-LANGU
                 USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    * IMPORTING
    *   RETURN_CODE             =
    *   EVENT_ID                =
    * TABLES
    *   INPUT_CONTAINER         =
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
            endif.
          endif.
        endif.
       endmethod.
              I have missed the loop block.That's why the workflow was not triggering.
    Regards,
    S.Suresh

  • Mail send issue - Workflow Triggered from Error Message

    hi
    i am learning workflow and doing some practical sessions using tutorials found on the internet. I have successfully enabled a workflow triggering options from the error message. The workflow will simply send an email and there is nothing else in that workflow definition. When i get the error message i open up the error message window and trigger the workflow option which is enabled. I get a message that the workflow has been started but i dont get the email immediately. I see the emails only after a long time. Infact the emails sent yesterday is only visible today.
    i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox. But i dont see the mails queued in SOST. But if i wait for a day i can see the emails in my inbox. Any idea what is wrong.
    ~Suresh
    Message was edited by:
            Suresh Reddy

    Hi Suresh
    Good on you that you are actually going through the SAP Help and trying the harder but better way unlike many others...your input regarding your problem is also quite well explained....Keep it up!
    Coming to your problem,
    <b>1.>>I see the emails only after a long time. Infact the emails sent yesterday is >>only visible today.</b>
    RSCONN01 is the program that sends email out of SAP, make sure this scheduled to run frequently otherwise you can manually run this from SE/SA38.
    <b>2. i checked in SOST and i dont see the messages at all. If its available in SOST then the system would have picked up and send to the inbox</b>
    When you run SOST make sure you tick all the checkboxes - Waiting, Errors, Sent and Transmitted. If you are on ECC, then these are available on the Send Status tab...
    Good Luck
    Ravi

  • Duplicate workflows triggered

    Hi all,
    we are using Function module SWE_EVENT_CREATE to trigger workflow for MM invoice.
    Business object used - BUS2081 and event used to trigger workflow is BLOCKEDQUANT.
    yesterday there are 2 workflows triggered for each invoice using this FM.
    Can anyone help me why 2 workflows triggered.
    Thanks in advance.

    Hi Vijay,
    Get to know when the event BLOCKEDQUANT would be triggered, I guess this event would be triggered always when there is price change in Invoice with a item blocked due to quantity change, If so use check function module in event to workflow binding to avoid duplicacy in such cases.
    -Vinod

  • Workflow Triggering twice when executing transaction cj21n

    Hi Experts,
    when i am executing transaction cj21n my workflow is triggering twice but earlier  it was working fine ..
    please provide your input on the same
    Thanks
    Deepanker Dwivedi

    Hi,
    The 'event' which  mapped to workflow triggered twice or another event may added to the workflow
    1) Did you give additional event for the workflow in the Basic Data -> Start events, if yes remove that event and test it.
    2) If 'No', In the SPRO configurations some settings might have changed, Check with your Function Consultant ask  any changes they done in the SPRO settings related to the T.code cj21n.
    Regards,
    Surjith

  • Problem in Workflow matching step

    Hi,
    I am facing a problem in Workflow matching step. I have user kaushikb assigned to it.
    Execution Type: Any Single, Assignee Type: User and Execution Type: Any Single.
    Match Record Scope: Records vs Records, Strategy: MDM_NAME.
    This Strategy: MDM_NAME is based on 3 rules: MDM_NAME1, MDM_NAME2 and MDM_NAME3.
    MDM_NAME1 is done based on transformations MDM_NAME1[XFM], MDM_NAME2[XFM] and MDM_NAME3[XFM].
    Now my problem is even after matching and merging a large number of records it is not going to
    the next step. Do I need to match and merge all duplicate records? If the Matching process is rerun
    the score becomes less as the same records are compared again. After this the link assume gets activated and then clicking it activates the next step.
    Regards
    Kaushik Banerjee

    Hi Kaushik,
    Match step is an Automated step in the MDM workflow.On selecting this step you need to mention the strategy that needs to run on the records to match them.When you reach the Match step you need to Perform the step to run the mentioned Strategy .
    When you Perform the Match step it will display the Matching result provided you select the Matching mode in MDM data manager.
    You can merge or not merge the matched records Once your Matching is performed by the system, You can move your Workflow to the Next step which is Process.
    When you are selecting Any single as your execution type it means you have more tahn one user for executing this task but you want any single one of them to perform it.
    So whenever you have selected Any single as the excution type for any process .The user accepting to perfrom the task needs to Accept the task .
    So when User1 wants to perform the task he will have to select Accept and then proceed with the task.
    When the owner of the workflow is testing the entire workflow he needs to Assume the task as he is not the Assigned user but the Assumed one.
    So if you have build your workflows correctly and moving in step as explained you should be able to select the next step
    You can follow the below link to understand the process better:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0be83e4-a1e6-2a10-c1be-8395ae948844
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • PRs workflow triggered only the first time

    Hi all,
    do you know a way to trigger a workflow for Purchase Reqs only when the first agent (requisitioner) releases it and not at every step? I'm managing all the release strategy inside a custom workflow and the cancel release as well.
    I'm using BUS2105.eventstepcreated as start event but it is triggered in each step (as the name suggests ) and also for a cancel release.
    Thanks in advance.
    Angelo

    Hi Angelo.
    Sorry if I have different perspective.
    You can enhance the standard workflow for PR (single release and collective release). This workflow triggers for each PR created.
    And instead of you manage release strategy inside your workflow, you can maintain release strategy (release group and release code) inside the MM configuration by assign to specific object type. This approach will capture agent assignment from the configuration and calculate the release strategy (include the classification) as well

  • In Which table Will maintain the All Workflows Triggering Event Details?

    Hi,
    Can Any one tell me
    In Which table Will maintain the All Workflows Triggering Event Details?

    Hi Mohit,
    The Tr Codes KE29N/KE28L will give me the Logs of Past TDD runs. However, i would like to see the all the variants in a go. Due to a Organizational change, there is a new characteristics introduced. Now we need to change the sequence of the TDD runs. Since there are lot of TDD Variants that are in use. we need to get all of them into an excel and then decide the necessary changes.
    Thanks & Regards
    Surya

  • Experiencing problems with workflow- validate step

    I am experiencing problems with workflow->validate step in Hyperion FDM.
    I am not able to export unmapped dimension members to Excel.
    Earlier everything worked fine.
    But now all of a sudden it has become a serious problem.
    when I click Export to Excel,processing starts and it's never coming to an end.
    Every thing is getting stuck up.
    Could any one suggest solution to this as it is delaying my deliverable.

    Try opening excel first, then doing the export from FDM.

  • Problems in workflow builder

    Hi,
    I am facing problems in workflow builder and tasks while i am creating a custom workflow template.
    1) binding between task and workflow does not work. One of the container element value is getting passed from the task to the workflow while others are not getting passed. All these are part of the same binding.
    2) the workflow container elements are not available in the steps of the workflow. eg, in a condition step i am comparing two container elements, it is failing, its taking balnk values. also in send mail step i have included a continer elements in description. i see nothing there. means the container elements are blank for the send mail step.
    3) the binding betw the task and the method simple dissappears (thrd Binding betw task and method dissappears !! )
    kindly provide and advice or suggestions
    thank you very much
    -r

    Hi,
    I have sent a mail to the email address mentioned in your profile. I will try to find a place in sdn where i cud upload the screen shots.
    Yes it look as though the data is not available at the time of the condition step. But how could that be as it is the business object attribute and that has to be available at any point in the workflow  for all the workflow steps. I have used it several times in other workflow templates.
    I have done the following
    created new workflow template and put bus2091-created as start event
    extended business object and added several new attributes and defined each attribute. some of them are virtual and some are database attribute. And while coding the definition of the virtual attribute, which is pretty complex logic, i have used the database attributes of the same business object.
    the first step in the workflow was activity step . in which i called BO method to get soem data. eg frist name, last name of the creator. i did not export anything to the method, only imported the first name, last name because inside the method i use object-_essr-ernam to get the creator user id and then i find the names of this user id
    the second step is the condtion step where i check the attribute of the business object. the attribute which are database attributes are available. but those which are virtual attributes are totally blank.
    when i trigger the workflow, the condition result always fails as there are no values available. and in swi1 i can see that those values are very much there in the business object instance.
    is it so that these attributes are populated later than the time when condition step is called ? if yes, then why does the workflow processing reach the condition step ? it should first process all the initial steps, ie completely instantiate the business object and then it should start the steps of workflow. am i right ?
    is it because i have used the database attributes of the BO in order to build logic in the definition of the virtual attributes ? for eg. instead of using object-_essr-createdby, should i use only object-key-entrysheet. then write select statement on essr table for whatever entrysheet data i want and then carry on with my coding for the virtual attribute ??
    thank you
    r

  • How to find Workflow triggering code

    Hi...all,
        I am working on a workflow issue, here i am unable to find out the workflow triggering code. Here workflow is triggering through event, i find out that event in basic data.but when i see the event linkages through SWETYPV, i didn't find any custom function modules except SWW_WI_CREATE_VIA_EVENT_IBF. i just want to add some more conditions in the workflow triggering conditions. How can i find out where the code was developed?. Thanks in advance....
    VT

    Hi Jocelyn dart,
    I want to trigger my workflow from transaction FIBLFFP.i am using the BOR BUS2021. it doen't have any events to trigger. so i copied the BOR to custom name space and added the event called posted.and i have delegated successfully.
    In the basic data of the My workflow template i have given the BOR BUS2021 and event POSTED and it is in active mode.
    I have done the setting in SWE2 with new entry and event name and receiver type as WS and FM SWW_WI_CREATE_VIA_EVENT_IBF and it in active mode.
    But I am not getting the mails to inbox.Manullay the worklfow is executing  with all the conditions.
    But I am unable to trigger the workflow from transaction....
    Please  help me....Please...its very urgent..
    regards
    paveee

  • Workflow triggerred twice

    Using BO ADDRESSEMP  change event to trigger the workflow. but the workflow triggerred twice by BO ADDRESSEMP and BO ADDREMPUS the latter one is the subtype of the former one.
    I am curious to know, why this happens. I have checked the related event linkage table , only ADDRESSEMP is maintained, then why ADDREMPUS is faired?

    Hi,
    Normally it's standard behavior for the workflow to be triggered both supertype and subtype, when the triggering event is based on the subtype. And if you want to restrict that behavior you have to use receiver type function module.
    It should work properly if you still use the triggering event based on the supertype. However from your explanation it looks like that you have used supertype event and yet it triggers your subtype.
    Could you please elaborate your issue further?
    Regards,
    Lim...

Maybe you are looking for

  • Help - Canon Mark IV CR2's won't open in ACR from Bridge CS3

    Hello, I have CS3 - Bridge version 2.1.1.9 and I've uploaded 200 RAW images that show up blank.  The files show 21 mb and as a .CR2, show up in the camera, however, no previews in Bridge. Do I need a newer version of Bridge and ACR? Thanks, Captain

  • One MAC PRO 2 displays

    Is there any way of having one MAC PRO and having 2 displays connected to it... one directly and the other one via WIFI (I already have a TIME CAPSULE)... OR anybody can help how I can have one tower (maybe I need an XSERVER) and 2 displays connected

  • Wiki registration might be broken

    I'm trying to create an account for the arch wiki, I'm thinking I'm entering the output wrong, except it's copied directly from the terminal, but than I thought my username had to be lowercase so tried that then used my standard 28 character password

  • What is the best way to detect peak to peak voltage for the following waveform ?

    I have two channels of waveform train ( ie W1 & W2 ), each of them is of frequency 64KHz. Each channel of waveform train consists of sinewaves of 64KHz of fixed amplitude, say 2 V pk to pk, running for 100 cycles, and then rest for 0.15 sec continue

  • Sunlink X.25 9.0 vs. Solstice X.25 9.2

    Hi there, We have some problems with installing Sunlink 9.0 on a Solaris 8 system which has no zsh device... It seems that Sunlink 9.0 only supports zsh devices and during installation, the x25 device fails to install. Sunlink 9.0 doesn't support the