Trigger Workflow when IDOC_INPUT_ORDERS FM

Hi,
When there is an error in IDOC excution using FM "IDOC_INPUT_ORDERS', I have to send a mail to idoc Partner. Please let me know how to do it.
Thanks and Regards
Ravi

Hi Ravi,
Pick the status of the idoc from the DDIC table when the sy-subrc is <> 0. Create a business object under SCDO and generate the update program which will generate the Function Module for the same. Once the Function Module is generated, call the same Function Module after the IDOC_INPUT_ORDERS depending on the sy-subrc and using the Return code from the same generated Function Module setup a workflow which triggers an email using the distribution list.
Hope this is clear.
Regards,
-Syed.

Similar Messages

  • How can i trigger workflow when particular event happens in webdynpro

    how can i trigger workflow when particular event happens in webdynpro

    hi,
    To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
    Refer this thread for similar requirment : Workflow in WebDynpro
    Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • Trigger workflow when IDOC Status 51  & with Basic Type "ORDERS003"

    Hi Experts,
    Can any one explaine how to create worlflow for "When Idoc status is 51 with the combination of Basic Type "ORDERS003" . If this condition will satisfy i need to send a mail using worklflow. For this one Bussiness type is BUS2102".
    Can you explaine any one please i am new to Workflow.
    Regards,
    Sri

    Hi,
    Please refer to the below thread. Hope it helps.
    Triggering workflow upon idoc fail
    Regards,
    Sridhar

  • Trigger workflow when a file is opened

    I have a library with many files in it.
    When users open a particular file, I want them to have a message displaying accept or reject message to them.
    Thank you,
    Bisi
    Bisigreat

    can you describe the exact requirement. Because when user click the document the control will pass from Sharepoint to Office web apps or office client. So i thought it not possible. anyway if you are descrip why you require that option means we can check
    some other way
    Ravin Singh D

  • Trigger workflow from web form

    HI Experts,
    I have a requirement to trigger workflow when a web form  is completed through a portal and saved.I also need to perform certain validations on the fields in the web form before triggering the workflow.The web form would then go the proper approvers and then I need to send notification messages on Approval or Rejection.I am at loss of thoughts as to how I can achieve this functionality.
    I also need to send reminders to the approver every 2 hours till he takes some action.
    Any suggestions would be of great help and would be rewarded appropriately..
    Regards,
    Narsingh

    Hi Narsingh,
    the solution depends much on the web form you are implementing.
    Is this a standard portal application you are working on? Or are you developing also the form from scratch?
    The previous answers just tell how you can trigger a workflow if the application doesn't trigger it itself.
    If the web form is a standard application or built with process frameworks like HCM Processes and Forms/ISR/PCR, then the event is often published by default without any customization.
    No answers, just questions...
    Kind regards,
    Mikko

  • Trigger a Workflow when a date is reached in SharePoint Online

    I have created a simple list workflow (SharePoint Online) which emails a user, informing them a Document's
    Target Closure Date has been reached. The workflow works fine when started manually.
    I want to trigger the workflow only when Target Closure Date matches today's date.
    The best solution seemed to be to use a Retention Policy. So I went to:
    > Library Settings
    > Information Management Policy settings
    > Document content type
    > ticked 'Enable Retention'
    > Time Period:  Target Closure Date + 0 days
    > Action:  Start the relevant workflow.
    This worked only on two occasions - both were Saturday mornings, at 3.30am and 4.30am. I can see
    in this MS article the Expiration Policy timer job only runs weekly on SharePoint 2013, so can anyone confirm that the schedule is the same in SharePoint Online?
    If so, is there any way in SharePoint Online I can trigger a workflow when a date is reached?
    Thanks for your help,
    Alyosha

    Hi Alyosha,
    According to your description, my understanding is that you want to send an email to a user when the Target Closure Date was reached in SharePoint Online.
    The timer job of Retention Policy runs weekly in SharePoint Online, so we cannot use the Retention Policy to trigger the workflow.
    As a workaround, I recommend to create a workflow associated with the library to send the email when the Target Closure Date was reached.
    Here are the detailed steps:
    Create a workflow associated with the library and set the workflow to start when an item is created.
    Select Pause until Date to set the workflow to pause until the Target Closure Date.
    Select Send an Email.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to trigger a workflow when a bank record of an employee is delimited

    Hi Friends,
      I want to trigger a workflow when a bank record of an employee is delimited(Infotype  IT0009). When delimiting the bank info, the old record's ENDDA is changed and a new record is created with the BEGDA. In this case two events are triggered one is BANKDETAIL-CREATED and other one is BANKDETAIL-DELETED.
    Which one should i use to trigger my workflow.
    Note : If we use the creation of new record for triggering workflow, then in case when the record is created for a new employee then the workflow will be triggered. To control this can we check whether there is an existing entry in IT009 for the employee or not. If an entry already exist then trigger the workflow else not. Is this ok? Please advice.

    Hi sapient,
    Here i think none of the events would actually help you in achieving what you want because you want to trigger the workflow when the account is delimited not when the account is either created or deleted.Please look for some other information to trigger your workflow.Will get back to you if i had any ideas.
    Thanks,
    Bhumika

  • How to trigger a workflow when a info record is changed?

    Hello All,
    I would like to trigger a workflow when the conditions from a info record are changed?
    What business object should be used?
    Thanks in Advance
    Rui

    Hi,
    for these kinds of issues,
    foirst check if a uefull event already exists in the system
    for this you first actiave the event trace: SWELS.
    Then you change the info record.
    And then you read the event log with SWEL.
    If there's no event, you may eventually have to create it in an exit with SAP_WAPI_CREATE_EVENT fm
    Kind regards, Rob Dielemans

  • How to trigger a workflow when data inside a table changes

    Hi
    How to trigger a workflow when data inside a table changes ??
    We need to trigger a workflow when STAT2 field value in PA0000 table changes.
    rgds
    Chemmanz

    Make use of Business Object BUS1065. In this business Object you have an attribute Status which you can use. There are a number of events that will get triggered when the status is changed.
    Thanks
    Arghadip

  • Trigger WF  when user Parks document from FB60 non-po invoice

    Hi,
    I need to trigger an approval workflow when the user parks a document using FB60.
    Here is what i have tried and it does not seem to work!!! (I might be missing something  here ..  )
    In the Triggering tab of the workflow i entered the Buisness object BUS2081 and event as parked.
    Then tried to park via FB60 does not work.
    I have never really done triggering this way before so i dont know what to do...
    Am i using the correct buisness object , do i need to create some kind of linking here ?
    WHile i am here another question.. the user will park for the first time and the workflow will trigger , what happens when the user parks it again. Do we need to handle this situation again ? How do we handle this.
    Thanks for ur responses...  i am pretty deep in this so anyone who throws a rope to me will be thanked to the maximum...

    Once you complete the customizing are you sure you are creating the invoice more than the amount you have specified in the customizing? If yes then this should work.
    I am not sure as to why you are not being able to get it right.
    The last option for you would be to find for a BADI which is called before or after the document gets committed to the database.
    Following are the BADIs that the code <b>might</b> call... No gaurantess given
    BADI_FDCB_SUBBAS01
    BADI_FDCB_SUBBAS02
    PPA_CUST_BADI
    BADI_FDCB_SUBBAS03
    WRF_PREPAY_INVOICE
    BADI_FDCB_SUBBAS04
    AC_DOCUMENT
    FI_LIMIT_PROCESS
    BADI_PRKNG_NO_UPDATE
    FM_POP_CORE
    Create an implementation and then put a break point in each of them to find out if the code calls the BADI. This is pure luck if you find one. Then you can raise the event via the function module SWE_EVENT_CREATE. Do not put a commit in the BADI initially. Only if the event does not get raised even after running the Function module then you can put in a commit. The system usually does a commit.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

  • Change line item in PR, PO, Sch agreement, contract to trigger workflow.

    Hi.
    The requirement is whenever there is a change in a line item. The workflow is to trigger. When I use the events:
    SIGNIFICANLYCHANGED IN BUS2009
    CHANGED IN BUS2012 (ENTRY MAINTAINED IN SWEC)
    Z_CHANGE IN BUS2013 (ENTRY MAINTAINED IN SWEC)
    CHANGED IN BUS2014 (ENTRY MAINTAINED IN SWEC)
    The problem with the above events is that, right after the event "RELEASESTEPCREATED" the above events get triggered automatically. My requirement is that, it should get triggered only on line item changes (new version of the purchasing document is created).
    Thanks and expecting a reply soon..
    Sukumar.

    Hi Vinoth,
    I did the same thing but a bit differently.
    i used the code as below.
    DATA: container like table of swr_cont with header line, xeban like table of  ueban with header line, xebkn like table of uebkn with header line, yeban like table of  ueban with header line, yebkn like table of  uebkn with header line, object_key type swr_struct-object_key, item_numc type numc05.
    select * into corresponding fields of table xeban from eban where banfn = number and bnfpo = item.
    select * into corresponding fields of table xebkn from ebkn where banfn = number and bnfpo = item.
    yeban = xeban.
    yebkn = xebkn.
    read table xeban index 1.
    xeban-kz = 'U'.
    xeban-banpr = '08'.
    modify xeban index 1.
    CALL FUNCTION 'ME_UPDATE_REQUISITION'
    TABLES
    xeban = xeban
    xebkn = xebkn
    yeban = yeban
    yebkn = yebkn.
    This solved the issue as far as PR is concerned. I need to update PROCSTAT in EKKO for PO, scheduling agreements and contracts.
    Let me know about this.
    Thanks,
    Sukumar.

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • Triggering a workflow when the payment proposal F110 is confirmed/finished.

    Hi All,
    Please kindly give me your good advices that how can I start to create a workflow for payment proposal F100. The requirement is that after the payment proposal has been confirmed and completed. It needs to be triggered and automatically send out an email notice for the those vendors, the vendor email address is collected from vendor master record FK03.
    I guess it can use REGUH-XVORL, If "X" means that this is proposal record only. If " " means that it's not a proposal record, which should be a confirmed record yet.
    Please kindly instruct me how to get this task done, since I am a fresher SAP and workflow.
    Thank You Very Much.
    JC

    Hi,
    I have exactly the same requirement.  I need to trigger a workflow when the payment proposal is completed. 
    I've been searching for the answer on the internet.  Several people have asked the same question, but I haven't seen any real answer to the question yet. 
    There is no standard SAP business object for payment proposal, there is one for payment request which uses F111.  There is no standard workflow template, the one for payment release is only for releasing individual invoice.  There are answers about restricting the authorisation, it helps, but it doesn't meet all requirements.  We have people create payment proposals in UK for companies in Europe.  We really need a workflow resolution.  Seperating the authorisation will still require the person who created the proposal sending email to people in different countries to approve the payment.
    Two technical problems that we are facing. 
    1. There is no existing business object. I've been told that we should should ABAP Class.  And include the IF_WORKFLOW in the interface.
    2. There is no event created when the payment proposal is completed.  We are working on creating an event.  I've been told to use SWE_EVENT_CREATE function module. 
    If you have more information about how this can be done, or if there is any easier way, please let me know.  I will be very grateful.
    Thanks,
    Manlee

  • Trigger email when employee responsible is changed

    Hi Experts,
    Kindly advise how to trigger email when the employee responsible is change to another employee, is there any standard workflow to achieve the task or this needs some enhancement,,, I mean development. I assume this can be achieved out of box.
    Regards
    AM

    I would investigate if you can achieve your requirement trough workflow, as I'm not a workflow expert I can't guide you further.
    as other members already recommended You can use actions with a custom complex schedule condition, which can be done through BADI. I would have two actions
    1- will be triggered only one time, which will notificate the opportunity creation
    2- Only will trigger if emp responsible is changed, via custom schedule condition (BADI) and will be triggered N times, of course if the condition is met.
    I had written a blog which can give you sone hint, at least had very usefull links.
    Cheers!
    Luis

Maybe you are looking for

  • Link to page not working in browser

    Scenario: two .pdfs generated from FrameMaker with full Acrobat 7.0. Document A contains a cross-reference to a heading on page 7 of document B. Behaviour in desktop Reader: clicking on the link in Document A opens Document B, at page 7 Behaviour in

  • Ipod updater 2006-06-28 wiped my 60gb video ipod!

    i just tried updating the firmware, and now im getting a message on my ipod saying "connect to your computer. use itunes to restore." i dont want to restore my ipod, i just wanted to update the software!! in windows the ipod is recognized as a drive

  • -bash: ulimit: pipe size: cannot modify limit: Invalid argument

    Followed the Oracle documentation to install Oracle 10g R2 on RedHat 4(UP1) x86-64 and I'm getting the following error when I login to the server from a putty client: -bash: ulimit: pipe size: cannot modify limit: Invalid argument Can someone explain

  • Serial break on com port does not work

    hello everybody: i have the following problem: i am writing a command via the '"visa write" vi on the com port of my pc. in some cases the com port does not retun anything. that means that my "visa read" vi would timeout. the problem is that afterwar

  • CFLAGS and CXXFLAGS question

    Hey there, little geeky question here. I am currently recompiling all my main packages with srcpac. Its so cool to do. I have noticed an awesome difference in speed with the heavier apps, like X and Mozilla. by the suggestion from the gentoo.org webs