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

Similar Messages

  • 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 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

  • 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

  • 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

  • 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

  • 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...

  • Help regarding workflow triggering

    hi
    i am working on WLI using weblogic 8.1
    i have designed very simple workflow using some simple nodes.
    as given in the tutorial i am able to run my workflow using test browser.
    .its pefectly working.
    i would like to know the ways of triggering the workflow from java clients.
    Is subscribing to message broker is the only way or we have some other simpler
    ways?
    thanx

    Thats correct for Weblogic Integration 7.0 and before but in Weblogic
    Integration 8.1 there is no default queue with the name
    "com.bea.wli.bpm.EventQueue" configured. Weblogic Platform 7.0 uses the
    Message Oriented Middleware (MOM) aproach and Weblogic Platform 8.1 uses the
    Service Oriented Architecture (SOA).
    There is a good article about Weblogic Workshop Internals on dev2dev [1] and
    in the documentation there is a page about writing clients for web services
    [2] (in Weblogic Platform 8.1 workflows are web services).
    If you create your workflow with Weblogic Workshop then you can access the
    workflow over the URL
    http://yourhost:7001/yourApplication/processes/yourProcess.jpd with SOAP. In
    the test browser under the overview tab you can generate a WSDL, a Java
    Control, a Service Broker Control and a Java Proxy (which needs the Proxy
    Support Jar). With this components you can access your workflow. If you
    wanna see the SOAP message use the test browser there is the html form which
    uses http for triggering the workflow, for example:
    <table cellspacing=0 cellpadding=0 border=0 width="100%">
    <form NAME="placeOrder"
    METHOD="POST"
    ACTION=http://localhost:7001/AvitekWeb/processes/orderProcessing/placeOrder.
    jpd>
    <tr><td colspan=2 class=methname><A
    NAME="placeOrder"></A>placeOrder</td></tr>
    <tr><td colspan=2 class=methdesc><!-- do comments
    correctly --><!--docString--></td></tr>
    <tr>
    <td class=namcol><nobr><b>SOAP body:</b> </nobr></td>
    <td class=inpcol>
    <TEXTAREA class="xmlbox" name=".SOAPMESSAGE" COLS=50 ROWS=10 ><placeOrder
    xmlns="http://www.openuri.org/"
    xmlns:eval="http://www.beasys.com/evalguide">
    <eval:Order>
    <eval:CustomerID>3</eval:CustomerID>
    <eval:OrderPriority>string</eval:OrderPriority>
    <eval:CustomerType>string</eval:CustomerType>
    <eval:LineItems>
    <!--1 or more repetitions:-->
    <eval:Item>
    <eval:Name>string</eval:Name>
    <eval:SKU>3</eval:SKU>
    <eval:Description>string</eval:Description>
    <eval:Price>1.5E2</eval:Price>
    <eval:Quantity>3</eval:Quantity>
    </eval:Item>
    </eval:LineItems>
    <eval:OrderID>3</eval:OrderID>
    <eval:TotalAmount>1.051732E7</eval:TotalAmount>
    <eval:OrderDate>2008-09-29</eval:OrderDate>
    <eval:OrderStatus>string</eval:OrderStatus>
    </eval:Order>
    </placeOrder>
    </TEXTAREA></td></tr>
    <tr><td><img alt="" height=6 width=0
    src="http://localhost:7001/AvitekWeb/processes/orderProcessing/placeOrder.jp
    d?.RESOURCE=blank.gif">
    </td></tr><tr><td> </td><td class=inpcol><input TYPE=submit
    class=inpbut VALUE="placeOrder"> starts a conversation<input TYPE=HIDDEN
    NAME=.EXPLOREOVERRIDE value=".TESTXML"><input TYPE=hidden NAME=.EXPLORE
    VALUE=.INVOKE><INPUT TYPE=hidden NAME=.CONVERSATIONID VALUE=_ID_><INPUT
    TYPE=HIDDEN NAME=".CONVPHASE" VALUE=".START"><p></td></tr></form>
    I think in this code is all what you need to start a workflow.
    mfg
    Daniel
    [1] http://www.dev2dev.com/products/wlworkshop81/articles/wlw_internals.jsp
    [2] http://e-docs.bea.com/wls/docs81/webserv/client.html
    "Raj" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    >
    Hi Swati,
    You can write JMS program to post an XML to a Queue and configure thestart node
    to event.The Quename for this client program should be"com.bea.wli.bpm.EventQueue",
    else you have to configure an MDB listener. Let me know if you havefurther doubts....
    >
    Regards
    Raj
    "swati" <[email protected]> wrote:
    hi
    i am working on WLI using weblogic 8.1
    i have designed very simple workflow using some simple nodes.
    as given in the tutorial i am able to run my workflow using test browser.
    .its pefectly working.
    i would like to know the ways of triggering the workflow from java
    clients.
    Is subscribing to message broker is the only way or we have some other
    simpler
    ways?
    thanx

  • Regarding Workflow triggering event.

    Hi,
    Description: I have created a Object type and a event for the same by transaction SWO1, after that i have created a WorkFlow(WF) for which the triggering event is the event i have created in the Object Type. There is a report in which i have used the FM "SWE_EVENT_CREATE" and passed the Object Type, Event Name, Key field values and the creator.
    Problem: When i am executing this report the FM is called and the sy-subrc after call is 0, stating that the call was succesfull, but the WF is not getting triggered when i went to transaction SWI2_FREQ to check this WF is not at all triggered. But when i tested from WF transaction SWDD it is working fine.
    Could anyone please explain me on this. or is there any other way to use an event of a Object Type to trigger WF.
    Thanks and Regards,
    Raghavendra Goutham P.

    hi gauthum,
    try this chks.
    Workflow Trace On/Off - SWU8
    Display              - SWU9
    Delete              - SWU10.
    Work Item Analysis    - SWI1
    Identifying workflow for the work Item :
    Tx : SWI1 - Enter the workiem id which has been identified in workflow log
           The details consists of workflow of the workitem.     
    WorkFlow Errors :
    1. Workflow Not Started           - Using Event Trace we can Identify
    2. Started but No Proceeded           - Wrong Object Keys
    3. Problem in Work Item Execution
         Dialog Work Item          - Agent Determinaion Error ( Position,Role,User )
                             - Role Resolution Error
                               Reqd Element would no be
                               Set in Binding
         Background Work Item      - Make Foreground and Test once Sucessfull make it Back round
    rgds
    nver
    if hlped mark points

  • Workflow Triggering mail to Microsoft Outlook with PO form in PDF

    Hi All,
    My workflow has a task and in that task i have called a method which will take the spool number of the PO created and transfer the same to PDF and send mail to the agent which I have mentioned.
    When I independently run the method from SWO1, it triggers mail and PDF.
    The send the the mail with pdf attachment, i have refered the standard program "BCS_EXAMPLE_8"
    But when I try to do it through workflow, it is giving the following error.
    1) Exception occurred                    Error handling for work item 000000047921.
    2) Executing batch work item  Work item 000000047921: Object ZBUS2012 method ZSEND_MAIL cannot be executed.
    3) EXECUTE_METHOD_OBJECT_SYNC Application method has processed message 'E'; see long text
    4) EXECUTE_METHOD_BOR         Application method has processed message 'E'; see long text
    5) EXECUTE_METHOD_BOR         Application method has processed message 'E'; see long text
    Regards,
    Rahul.

    Hi Abdul,
    Yes, i didnt assign e-mail address WF-BATCH.
    Now after assigning e-mail address for WF-BATCH in T-code, SU01, it is working fine.
    Thank you very much, i was really struck with this issue for last 5 days.
    Regards,
    Shegar.

  • Workflow triggering

    Hello,
    I have an workflow which is triggering .
      How to know from which point this workflow is triggering.
    Satya

    hi there...
    there are a number of ways to check this out.
    in the user workarea, go to the outbox, there u will find "Workflows Started " . click on it. it will show all the workflows started.
    other than this, u can chk out the workflow trace.the transaction for that is swud. there u will find info for any workflow that has been recently triggered, the stage upto which it is getting operated, errors if any and much more.
    do reward if helpful or get back with further queries.

Maybe you are looking for

  • Problems with Adobe Premiere Elements 4.0. HELP?

    Hello! I've been trying to edit a short film for weeks now but I have quite a few problems with Premiere Elements 4.0. To start with I have a Windows 7 Toshiba Satellite L750-16L with Intel Pentium. The first and main problem is that I can't import A

  • Printing .GIF images with PHP

    Hello, As part of a PHP IF statement, I would like to print an image instead of text. How do I do this? Thanks in advance, John

  • How to generate GPS signal continuous

    Hi, I encountered a problem recently and I need your help. A customer used a PXI-5671 to generate GPS signals to test a receiver. The problem was like this: 1) When we used actual GPS signals instead of simulated signals generated from the PXI-5671,

  • Questions about RAC

    I was reading the article about installing the RAC. My conclussion , I can have till 127 instaces of a Oracle 10G database, working simultane. That is good really good and powerfull. My questions 1º). ¿Can I have , by example, 3 , or any other number

  • Contacts sync with windows contacts ignores "iPhone" numbers.

    Was sync'ing contacts through iTunes today and noticed that any phone numbers on my iPhone that were classified as "iPhone" (as opposed to mobile, home, work, etc) are dropped on my windows contact card.  I have to change them to "Mobile" to get them