Workflow - based on idoc status workflow have to trigger

hi,  i generating IDOC using abap program, when i generated IDOC workflow triggering, my recruiment is based on IDOC status
workflow have to trigger, eg success status 30 means mail have to go one person, if fail means mail as to go another person. I trying for last two days any one can help me.

Hi Rajendra,
You need to trigger workflow only if u require any approval/Rejection.
If you just need to send a mail on idoc status 30 or fail status, u need not to trigger workflow.
You can do it with the help of standard FM also. Just search by putting Mail or sendmail* in t-code SE37, you will surely get an relevant FM which you can use in Condition of Status of idoc.
Hope it will help u.
Regards
Nitin

Similar Messages

  • How to create a workflow based on std 11i workflow

    How do you create a new workflow process based on one of the std workflows embedded in the 11i apps?
    Thanks,
    Dave.

    Dave, there are a lot of workflows in 11i apps, my best advice would be to read through the Oracle Workflow Guide on Oracle Support Policy for Predefined Workflows, Events, and Subscriptions and to look through Workflow Development guidelines on Appsnet: http://www.oracle.com/appsnet/content.html (scroll down on that page)
    How do you create a new workflow process based on one of the std workflows embedded in the 11i apps?
    Thanks,
    Dave.

  • Workflow Termination when IDoc is changed

    Hi all,
    For some inbound IDocs (SRCLST and INFREC), a workflow is triggered in case of an error. This works very well, and the extended notifications are triggered as well (mail included).
    However, in some cases, an IDoc in error is retreated automatically by a certain job and often, succesfully (data is locked or...). Nonetheless, the workflow item remains in the inbox and can only be closed by executing it and clicking on "End Process". Sometimes this leads to a number of notifications (mail) that are being sent even though the IDoc has already been treated successfully.
    Is there any way to trigger the termination of these workflows when the IDoc status is changed? The standard tasks that I am using are TS40007912 (SRCLST) and TS40007911 (INFREC). I am fairly new to workflows, so any assistance would be greatly appreciated.
    Thanks in advance,
    Aerv.

    Hi Aerv,
    (on the requirement in general)
    I think that your requirement (terminate error workitems when Idoc is re-posted successfully) is part of standard:
    Workitem termination is implemented by means of terminating events. If you look at 'terminating events' tab of task TS40007912( or TS40007911), you'll see that INPUTFINISHED event is there.
    Thus, the workitem should terminate whenever INPUTFINISHED event fires.
    The event fires when
    - a user processed the idoc (see 'Error Handling Process' here Error Handling - ALE Programming Guide - SAP Library) ,
    - the system processed the idoc successfully (RBDMANI2) - your case
    (on your setup)
    I suppose, you don't need to add entries in SWE2 to make a terminating event work.
    If you have those extra entries now, try deactivating them - probably it will correct the inconsistent behaviour as we see on the screen shot.

  • How to find Correct IDoc Status in SAP

    Hi All,
    I need some help on IDoc scenario, I have custom program to create Idoc and as well it will send IDoc to XI. I want to know idoc staus in the program to update custom table whether idoc sent successfully or not but idoc giving status as 03 (Data passed to port OK) irrespective of idoc send or not, actually idoc not sent to xi when I check SM58 showing error.
    Please advice me how to find correct idoc status inside program itself.
    **-----Create IDoc
      CALL FUNCTION 'IDOC_OUTBOUND_WRITE_TO_DB'
        TABLES
          int_edidd      = i_edidd
        CHANGING
          int_edidc      = wa_int_edidc
        EXCEPTIONS
          idoc_not_saved = 1
          OTHERS         = 2.
      COMMIT WORK.
      i_edidc = wa_int_edidc.
      APPEND i_edidc.
      REFRESH i_edidd.
    **-----Send Idoc
      CLEAR i_edidd.
    **-------Send Idoc to XI
      CALL FUNCTION 'EDI_OUTPUT_NEW'
        EXPORTING
          onl_option = 'B'
          error_flag = ' '
        TABLES
          i_edidc    = i_edidc
          i_edidd    = i_edidd.
      COMMIT WORK.
      READ TABLE i_edidc INDEX 1.
    **-----Update Dispatch order status based on Idoc status.
      IF sy-subrc =  0 AND i_edidc-status ='03'.
        znxi01_update c_03 i_edidc-docnum.
        gw_success_record = gw_success_record + 1.
      ELSE.               " Error in Data Transfer
        znxi01_update c_02 i_edidc-docnum.
        gw_fail_record = gw_fail_record + 1.
      ENDIF.

    Hi Anil,
    for setting IDOC Status you can send back a IDOC of type <i>ALEAUD01</i>.
    The function IDOC_INPUT_ALEAUD takes automatically this IDOC and writes the status to the origin IDOC.
    Regards Mario

  • 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

  • HCM = FI: Posting an IDOC via Workflow

    Hello,
    I hope I'm right here in this part of the forum. In addition I hope my explanations will be good enough to understand.
    Every month the HCM-System send IDOCs (payment of salary) to the FI-System. Everything works well (in partner profile (WE20) we used message types ACC_EMPLOYEE_EXP, ACC_EMPLOYEE_PAY, ACC_EMPLOYEE_REC, PDTCO_POSTPRIMARY und PLANDATATRANSFERCO_POSTKEYFIGU (all inbound parameters) and process code BAPI is attached). Every payment is automatically and fully posted in FI.
    Latter the FI accounting clerks do not want. They do want to decide when the IDOCs are posted into the FI. What we've done so far ist that we've changed the process code BAPI at the above mentioned message types into ED00. ED00 uses the standard task TS30200088 for generating a workitem in the BWP of a or some users. That's exactly what we want, no instant posting but self-decided action through the clerk. The only problem is that the standard task only displays the IDOC as seen in BD87. The process then can be terminated via the menu and the status of the IDOC changes to 53, but no FI posting has been processed what's not very amazing 'cause the standard task only displays the IDOC. Now my questions:
    1. Is there any process code which comes with an appropriate SAP-Standard-Workflow to fulfil the request of the FI users (keeping the IDOC in Workflow status until the user executes the workitem  which leads to posting of the IDOC)?
    2. If not, do I have to create a new process code and do I have to create an own Workflow?
    3. If all that would not help what else can I do?
    In advance many thanks for your help.
    Kind regards,
    Frank
    Edited by: Frank Zieger on Oct 21, 2011 11:40 AM

    Hi,
    U have to use the lookup.
    1) pass the customer no to R3 system as input to function module.
    2) IN function module check whether that customer no present or not?
    3) Based on that u send a result back to Xi and go ahead.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231
    chirag

  • How to find the WI of the Workflow based on Object Key of DIR (DMS)

    Hi Gurus,
    We have developed a DIR workflow for status change, where we are using DRAW as the Business Object.
    We are not able to fetch the Work item ID of the Workflow based on the ObjectKey(Concatenation of DOCTYPE DOCNUMBER DOCPART DOCVERSION).
    Tried to use the View SWIVOBJECT, also Found no values related to the container table SWW_CONTOB when the Wiorkflow is triggered. But we can see the Contianer values in the workflow log.
    Is there a way to find the relation DIR and the Work item ID if the Workflow for Documents? For Documents(DIR), anything needs to be done explicitly? 
    Need to resolve this as we have too many things based on this including Reporting part to fetch the approval details of the workflow. 
    Thanks..
    Regards,
    Prathap
    Edited by: Prathap on Feb 18, 2011 5:37 PM

    Hi,
    You can use FM SAP_WAPI_WORKITEMS_BY_TASK and use the filters.
    Afterwards, for every wi id you should get their instances using class cl_swf_run_wim_factory=>find_by_wiid.
    Then, get instance of wf container using if_swf_run_wim.
    Now you can use interface if_swf_ifs_parameter_container to get parameters or variables.
    Regards,

  • Workflow based up Account Manager/Owner field

    We are trying to create a workflow based upon the Account Manager/Owner of a record.
    This is what I have set up for an opportunity
    PRE('<Status>') <> [<Status>] AND [<Status>] = 'Won' AND [<Revenue>] >= 100 AND DivisionName()= "NA"
    I believe that DivisionName() "NA" pulls the Division field from the user who is currently signed in, although I cannot get the workflow to fire with the 'AND DivisionName() = "NA"'
    Is there a way to pull the division field from the user record of the account manager/owner of the record?

    Perfect. This is what I have and it works
    PRE('<Status>') <> [<Status>] AND [<Status>] = 'Won' AND [<Revenue>] >= 100 AND UserValue('<Division>') = “NA”
    Is it possible to do this but look at the account mgr/owner to get their value in the division field instead of the current user's value?

  • Workflow goes into incorrect status RESERVED

    Hi,
    We have gone live with the MSS (PCRs) in June and we have a situation where the manager is trying to approve a PCR and when he clicks on the link (which takes him to the approval screen), he receives a NULL error and in the backend the workflow goes into the status 'RESERVED'.
    Has anybody come across this situation? Can this be security related?
    Any information related to this will be appreciated.
    Regards,
    SC

    Hi Intekhab,
    If you are working with workflows for the first time, you can follow below approach
    (To add to the statements of Murali and Abdullah)
    1. If you are able to track the related workflow log, Extras->Technical Data will give you the workflow template number
    2. Next take this template number and open it through SWDD transaction and analyze the IDOC process setup in your system. Please goto the step where they are checking the IDOC success/failure, the next steps will have the notifications setup.
    (In case you are unable to track the workflow log, try to identify the business process / workflow template related to IDOC errors/notifications in your system, your functional consultant can also help to identify the object involved-> go through the object docs to understand the process)
    - For further info, please paste WF log screenshot
    Hope it helps ...
    ~Haider~

  • Need to change the Idoc Status based on the Text in the Idoc

    Hi All,
    I have developed Idoc--SOAP Sync Process Scenario Using BPM and Works Perfectly.
    I have used STATUS.SYSTAT01 Idoc to capture the Response that is comming from the Webservice.
    I have mapped the response Text( Success or Fail) to one of the field in the Response Idoc, this is perfect.
    Requirement:
    1) If the Response Idoc Field receives Success Text means the Idoc Status shld be in Green Status.
    2) If the Respnse Idoc Field Receives FAIL means the Idoc Status shld be in RED Status.
    How can i Do this. please suggest me......
    Regards

    Hi Santhosh,
    YES, I have to Capture the Response from Webservice in SAP R/3 by using STATUS.SYSTAT01 Idoc.
    I have mapped the response from webservice to the one of the field in the Idoc.
    If this field contains Success as text means the Idoc Status in We05 shld be 53 else it shld be 56
    With out changing the FM code, can we use any other process to achieve this???
    @ Mario
    Can u please Allobarate your views more based on my requirement
    Regards

  • Create document set by workflow based on external list

    Hello,
    I'm wondering if the following is possible:
    I have a external list with all my projects.
    Next to that i have an document library where i place all the documents about the projects in document sets. Is it possible to automatically create the document sets based on the external list?
    So when a new record is created in the database (External list) it automatically creates a document set. (The document sets have an external data column which refers to the projects external data)
    I was thinking of an workflow, but i don't know how to accomplish this. I'm just a beginner with SharePoint.
    Kind regards,
    Robbert-Jan

    Hi Robbert ,
    According to your description, my understanding is that you want to create a document set for an external list in SharePoint 2013.
    For achieving your demand, you can refer to the article:
    http://msdn.microsoft.com/en-us/library/ff394479(v=office.14).aspx
    http://blogs.msdn.com/b/chandru/archive/2013/08/10/sp2013-creating-document-set-using-workflow.aspx
    One thing to notice is you cannot associate workflow with External List because workflow engine cannot run on back end system.
    Reference:
    http://siddiq-sharepoint2010.blogspot.in/2011/12/bussniess-connectivity-services.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Enable service of objects -workflow overview-workflow log for IDOCS?

    Hi everyone,
    I need to enable service of objects -workflow overview-workflow log for IDOCS. Using object key i know how to go to log.Users need that functionality to be enabled for Idocs.For po and pr I can see so its not parameter settings.I feel its configuration somewhere I dont know where?
    Can someone help?
    Thanks in advance..

    Hi VJ,
       I'm facing the same issue, the workflow overview is not displaying the log from ME52N. But i have delegate my business object. Is there anything need to be done further.
    Thanks & Regards,
    Tina

  • Workflow for INBOUND IDOC

    Hi,
    I want to set you a workflow for one IBOUND idoc coming via edi partner. I want to use the organization units and then assign the user to it. what are the steps required for setting up a new workflow totally from the start for a IDOC / Message type and config.
    Thanks in adv
    /Manik

    STEP 1.       USE   SALE -> Error Handling                 
    STEP 2.   Go To  Basic Workflow  Settings.Use Auto-customise button to allow the system to configure most of the options.
    STEP 3 
      a)Go to SAP MENU -> TOOLS-> BUSINESS WORKFLOW ->
    DEVELOPMENT ->DEFINITION TOOLS->TASKS
      b) Create a customised task putting IDOCCLFMAS for example   as object type and    INPUTFOREGROUND  as object method.
    c)Associate the triggring event InputErrorOccurred with the standard task.
    d)Associate the terminating event InputFinished with the standard task
    e) Assign appropiate agent to the customised task. For this GO TO
         Additional data -> Agent assignment -> Maintain
    STEP 4  --  Go to transaction WE20.In the partner profile of the message type CLFMAS enter for the post  processing permitted agent.Enter the agent type (Organisational unit,Workcenter,Job,Person,Position or User),agentId and the language.
    STEP 5- In case of any error in processing of Idoc a workflow notification is sent to concerned agents.The message is sent to the inboxes of concerned persons which indicates which interface has erred,the associated IDOC number ,status of the IDOC and the date and time of error.
    Regarding the complete set up you can check the workflow tutorial in help.sap.com.
    regards
    Aveek

  • Workflow based on role

    Hi all,
    Please let me know, how to create a workflow based on specific Roles.
    I know it's a bit silly query, but i have got struck here.
    Thanks,
    Shash

    Hi Shashi,
    You can maitain the Approval limit in personilization tap "APPROVAL LIMIT" sothat workflow will
    pics Approvers based on role.
    Hope this is use full
    Bestregards

  • PO approval Workflow based on the Release Stratergy.

    Hi ,
    i am creating PO workflow based on the release Stratergy, in which release group = aa , release stratergy = a1 , a2 ,a3 .
    If the PO is created according to a1 then it should goto 1 level approval, if a2 then to 2 level approval and if a3 then 3 level approval.
    i have taken BO as BUS2012 and using singlesteprelease as event for triggering the workflow. i am checking the multicondition say if taking bus2012.releasestratergy = a1 then 1 approval if a2 then 2 approval if a3 then 3 approval.
    my problem is the workflow is getting triggered but it is not accepting the values from multiple condition box and going to other part and getting struck or getting no where.
    please suggest.
    thanks in advance

    Hi Abhi,
    I Guess the approach your doing is different from the standard one (WS20000075) No need to go for any multiple conditions.
    1. Copy the standard workflow.
    2. Create a Rule (Refer Rule 168) with container elements as POnumber, Release strategy and Release Code (Depending on your requirement).
    3. Write an FM which will have 2 table parameter fields ACTOR_TAB and AC_CONTAINER and fill ACTOR_TAB with approver name.
    4. Use this rule in Release of PO step and correct binding and everything will work fine.
    Please revert back if you need more information.
    Regards,
    Gautham

Maybe you are looking for

  • Using flash island in ABAP Webdynpro

    Hi, I am trying to use Adobe Flash Island.. but when i right click on root element container i dont get option as Swap root element.. I also tried creating new element with Flash Island option... I also cant find library stored in the MIME repository

  • Acrobat 9 Pro install on pc Win XP Pro with Acrobat 6 Pro

    My Win XP Pro Dell PC has Acrobat 6 Pro.  Question:  What is the safest thing to do to install Acrobat 9 Pro?  Should I remove Acrobat 6 Pro first using the Remove Program option?  Thanks. drC

  • Low bandwidth with E3000 router

    Hello. I just purchased an E3000 router to replace my old d-link. We have Telia ADSL (8 Mbit) and I've had little or no problems using a router before. When my computer connects directly to the modem I get 7 Mbit out of the connection but with the E3

  • Doesn't save Cost Center values

    Hi experts , I have an issue with cost center,When I have a cost center in product envi in the Headcount application.I am trying to post values against cost center for employees. But its not saved in the DB.I have crosss checked all the locks and tri

  • Message Digest

    How can I create a MD5 hash with java 1.1.8 ? The MessageDigest API to create a MD5 hash works only Java 2 onwards ?