Problem in workflow trigger

Hi,
I was trying to create a pretty simple workflow for "Sales Order Change". Whenever a sales order is changed, my workflow should get triggered and I should receive a workitem in my sap inbox displaying the salesorder number getting modified.
Object Type used : BUS2032
Start Event used : Changed
Task Method used : Display
But even after changing a sales order I'm not getting any workitem in my SAP Inbox. I've also checked the tcode "SWUD".
If I'm executing "Determine Instances for Task", it has no records inside.
If I'm executing "Work Item queue (TRFC Log)", it shows the records, each time I've changed the sales order. And
each record shows an error as "Syntax error in program CL_SWF_RUN_WIM_LOCAL".
I believe the workflow is fine.
Could you please help me out in solving this problem. If you want any other detail please let me know.
Thanks and Regards,
Pritam Mohanty.

Hi Pritam,
Your Query seems still un-answered after a Long-Interval also.
This could probably provide a Solution for you:-
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
This is the PO Scenario similar to your Sales Order Scenario.
/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
You can also Debug the WF to know where it has Stuck:-
Use the following transaction:-
1> SWE4/SWELS -> EVENT TRACE ON/OFF (Switch On the Event Trace)
2> SWEL -> DISPLAY EVENT TRACE
3> SWUD -> WF DIAGNOSTICS
4> SWPR -> WORKFLOW RESTART AFTER ERROR
Enter the WF Number and Click on the LOG Icon.
There you can see the Graphical Log of the WF to know where the WF is stuck.
And You can also check the Technical Details of the WF there, to find which WF Container has what value.
Check on the following points as well:-
1> WF is activated or not.
2> what are the start conditions and event for the WF.
3> Binding between the WF container and Event Containers - should be Active.
4> Agent Assigned to the Workitem that should not be a background process.
5> Event Linkage in Start Conditions of the WF are active or not.
6> check the WF log, to determine where the WF is stuck
Kindly check the RFC Settings in SWU3. All should be green ticks. If you face any problem with this, contact your BASIS Team..!!
Let me know if you are still stuck anywhere..!!
Regards,
Kanika

Similar Messages

  • BOR Attribute empty during workflow trigger

    Hi Gurus,
    I have a problem in workflow where the IMAGE attribute of my zBUS2081 is not being read (or might be empty) during workflow trigger. This is the scenario:
    1. I delegated zbus2081 to BUS2081 and added attribute of type BOR - IMAGE.
    2. My workflow is being triggered when a LIV INvoice is parked.
    3. In my workflow, at the beginning I am transferring ZBUS2081.IMAGE to a wf container IMAGE_CONT (type BOR - IMAGE)
    4. My workflow triggers, then I check the log. It shows that IMAGE_CONT was assigned with ' ' value even it passed through the container operation step.
    5. What's weird, is when I retrigger the workflow, it is now able to assign the value of ZBUS2081.IMAGE to IMAGE_CONT.
    What could be the problem? I don't think there is a problem in my workflow. Seems that ZBUS2081.IMAGE has no value during trigger, but there is a valid data for IMAGE before the wf triggers.
    Thanks,
    Eo

    Hi Eo,
      I guess it may be because of the program logic inside business object Zbus2081 on attritube IMAGE.
      Can you open the program of attribute image and check whether you put the condition that maybe skip command swc_set_element container?
      In background, workflow will re-calculate attribute of the object. If swc_set_element container is missing, value will be blank.
    Regards,
    Chaiphon

  • 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

  • Which field is the workflow trigger for a Contract Agreement ?

    Greeting everyone,
    I am not sure if this has been answer before or if this is the correct forum. If not, apologies in advance and do direct me to the appropriate topic/forum.
    I have an inquiries with regards to Contract Outline agreement and workflow trigger.
    Based on my company configuration, the trigger is based on the changes in value and release strategy.
    What I am unsure is that which field the workflow-trigger checks?
    Does SAP checks the field "Target Value" in contract header, or  the sum of net value in each of the contract items?
    Thank you

    Hello Sek,
    In contracts, the target value is used for the release strategy determination and not the net contract value. If you maintain a target value in the contract header, this value is set in field CEKKO-GNETW to determine the strategy. If no target value exists on header level, a cumulation of the target values of the items is carried out and used for the release strategy determination.
    Regards,
    Mauro

  • Problem with this trigger

    Hello, I am new to Oracle and I am having problems with this trigger:
    CREATE OR REPLACE TRIGGER myTrigger
    AFTER INSERT OR UPDATE OF aField ON myTable
    DECLARE
    myVariable NUMBER(2);
    BEGIN
    SELECT COUNT(keyColumn) INTO myVariable
    FROM myTable
    WHERE TO_CHAR(myTableDate,'mm') = (SELECT TO_CHAR(SYSDATE,'mm') FROM DUAL);
    IF myVariable > 4 THEN
    RAISE_APPLICATION_ERROR(20605, 'Here is an error.')
    END IF;
    END;
    Every time the trigger is executed, this error happens:
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    ORA-06512: at line 10
    How do I resolve this problem?
    Thank you.

    Hi,
    user12120979 wrote:
    Hello, I am new to Oracle and I am having problems with this trigger:
    CREATE OR REPLACE TRIGGER myTrigger
    AFTER INSERT OR UPDATE OF aField ON myTable
    DECLARE
    myVariable NUMBER(2);
    BEGIN
    SELECT COUNT(keyColumn) INTO myVariable
    FROM myTable
    WHERE TO_CHAR(myTableDate,'mm') = (SELECT TO_CHAR(SYSDATE,'mm') FROM DUAL);
    IF myVariable > 4 THEN
    RAISE_APPLICATION_ERROR(20605, 'Here is an error.')
    END IF;
    END;
    Every time the trigger is executed, this error happens:
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    ORA-06512: at line 10
    How do I resolve this problem?
    Thank you.Are you sure the code you posted is what's actually running?
    I would expect the missing semicolon after:
    RAISE_APPLICATION_ERROR(20605, 'Here is an error.')to keep this from even compiling.
    Error numbers are supposed to be negative. That will cause a run-time error when you try to raise the error.
    This isn't actually an error, but there's rarely a need to use dual in PL/SQL.
    WHERE TO_CHAR(myTableDate,'mm') = (SELECT TO_CHAR(SYSDATE,'mm') FROM DUAL);can also be done this way:
    WHERE TO_CHAR(myTableDate,'mm') = TO_CHAR(SYSDATE,'mm');Actually, the condition above would work even outside of PL/SQL.

  • Facing Problem in DB Trigger

    Hello Friends,
    I wrote the database trigger which executes when the db is up but it's not happen and i'm not able to find out the exact problem that the trigger is not exceutin or the problem in the job which is written inside the trigger.
    CREATE OR REPLACE TRIGGER FICREPORTS.trg_reporting
    AFTER STARTUP ON DATABASE
    WHEN (TO_CHAR (SYSDATE, 'D') <> '1')
    DECLARE
    v_currdate DATE := SYSDATE;
    BEGIN
    DBMS_JOB.isubmit (101,
    'begin proc_reportingstatus; end;',
    TO_CHAR (TRUNC(SYSDATE)+15/48,'dd-mon-rr hh:mi:ss') ,
    TO_CHAR (TRUNC(SYSDATE+1)+15/48,'dd-mon-rr hh:mi:ss')
    END trg_reporting;
    Kindly help.
    With Regards,
    Anand

    I advice you to create a table and insert a row in it after BEGIN
    CREATE TABLE test (ddate date);
    and after begin :
    BEGIN
    INSERT INTO test VALUES(sysdate);
    DBMS_JOB .....
    If there'll be a row in the table test, then your trigger is working and you've problem in your job

  • 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

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

  • Regarding the payment block workflow trigger

    Hi Gurus
    1. All the invoices should be posted with payment block u201CZu201D (customized) where it is not already populated by MIRO with standard u201CRu201D.
    2.Everyday the accountant of the concerned section will run the payment proposal (Automatic Payment Program).  All the invoices that are due will be selected in the proposal with payment block u201CZu201D or u201CRu201D.  Then the accountant manually replaces payment block u201CZu201D or u201CRu201D with u201CSu201D (customized) (signifying start of workflow) in the invoices picked up in the proposal.
    3.Once the payment block changes to u201CSu201D, workflow event should trigger to alert the Section head.
    4.The Section Head then scrutinizes the proposal and wherever he approves the payment block u201CSu201D should be removed in the proposal list. The payment block in all other invoices not approved by the Section Head should be changed from u201CSu201D to u201CZu201D or u201CRu201D again.
    5.The information of rejected invoices should pass to the accountant.
    Roles: 2
    1.Accountant (who has authorization to change the payment block from u201CZu201D or u201CRu201D to u201CSu201D only)
    2.Section Head (who has authorization to approve or to reject)
    Even I given the BOR as BSEG and event as created (Posting item with Payment Block ) .
    I configured as follows.
    1) defined the workflow variant,
    2) assigned the workflow variant to company code
    3) defined the payment block as blank
    But In Event simulation i got workflow get started but it not started. But there is nor event logs too.
    Please help me if you know anything regarding this..
    regards
    vel
    Edited by: Mike Pokraka on Jun 27, 2008 5:27 PM
    Edited by: Velmurugan on Jun 27, 2008 5:45 PM

    Hi Vel
    Did you fix your problem already? recently, I have got a same request from user. The requirement is that after the payment proproal has been confirmed, the workflow should be started by this change and triggers it to send out an email for those vendors by their email address. If you or anybody know about the solution for creating this workflow, please kindly instruct me how to do it, since I am a fresher.
    Thanks
    Jc

  • Problem in Workflow for Cat2 time approval

    Hi All,
    I am new to workflow, We need to trigger a workflow when employee fills time in Tcode CAT2. Standard workflow  WS40001001 is working fine.
    Here in workitem text it is displaying Approval for 00000000 instead it should display (Approval for Personal no and Name) which is assigned in standard task.Kindly let me have some idea on this
    Thanks in advance
    Arun Kumaran.
    Edited by: Arun Kumaran on May 28, 2010 11:37 AM
    Edited by: Arun Kumaran on May 31, 2010 6:29 AM

    Hi linganna,
    This is standard task and it is binding when we assign the task.
    And i am using org unit and made it as general task. Would i need to assign org unit yo task,
    how to bind wokflow container element to Business object CATS?
    Work item text  I CHANGED : Approval for &TS_PERNR& &TS_ENAME& and standard task is TS20000460.
    I DEBUGED AND FOUND THAT IN FM CATS_WF_APPROVAL VALUES ARE NOT POPULATING FOR PERNR AND ENAME
    WHAT WOULD BE THE PROBLEM HERE?
      SWC_GET_ELEMENT CONT_IMP 'TS_PERNR' PERNR_WF.
      SWC_GET_ELEMENT CONT_IMP 'TS_ENAME' ENAME.
      SWC_GET_ELEMENT CONT_IMP 'TS_DATE'  DATE.
      SWC_GET_ELEMENT CONT_IMP 'TS_TIME'  TIME.
      SWC_GET_ELEMENT CONT_IMP 'TS_UNAME' UNAME.
    Regards,
    Arun.
    Edited by: Arun Kumaran on May 31, 2010 1:14 PM
    Edited by: Arun Kumaran on May 31, 2010 1:36 PM

  • Problem in workflow events

    hi all
    i am trying to trigger a workflow in one system using a function module in other system . i am using event ... ........ I have added event in my business object workflow and then triggering it when this function module is called using RFC .
    the problem is ....
    i want to pass a flag from remote system through this function module and want to use this flag  in my workflow .
    if any one of you is unable to understand the problem please post message me the confusion ...
    thanks in advance ,
    Naval Bhatt
    [email protected]

    Dear Naval,
    Pass a flag as exporting parameter in Function Module.
    If it's a Z Function Module, you can directly add an exporting parameter. Else, will have to copy the FM to Z FM and make the changes.
    Regards,
    Naveen.

  • Problem in Workflow on Budget Release

    Hi Experts,
    I have created Workflow on Budget Release . in which as soon as Budget is Released for Respective WBS Element Workflow Will Trigger . My Problem is that if Budget Gets more than 1 crore then in Mail it only shows first Digit , it is not showing whole value . So what Changes should i do so that it can display full Value if it is more than 1 crore .
    Please Help me on this issue .

    Hi- Are you able to see exact value (1 crore +) in WF log. If yes, then check the content of the email body where exactly you are using this container and try to align for test purpose. Also check the binding from WF to task (in mail step) and check for the data types in both the container
    If WF log shows only first digit, then check where this value is getting populated and check for data types
    Are you using Send mail step or FM or class approach for sending mail?
    Vinoth

  • Dynamic Workflow Trigger

    hi,
    how can i trigger Dynamic Workflows ?
    i have 3 WF's each attached to 3 different milestones.
    now when each milestone reaches a particular UserStatus, it triggers respective WF's.
    but now in my case, in SWE2 i have activated all 3 WF's eventlinkage,
    but even if just milestone 1 reaches that particular Userstatus i want just WF1 to trigger, in my case its triggering all 3,
    how do i handle this. ?
    Aditya

    goto se37 and create a function with the same interface of function reported in the F1 help of the field Check Function Module .
    Create a custom function for each of your WFs. When the event is raised, each WF will starts but, before the execution, the system will check each of your function.
    The functions tied to the 2 WF that don't have to start will raise an exception (you can call your exception as you wish, there's no rule about the name), the third one will end without problem and your WF will start... you can write your code as you prefer, you can include also the function you wrote about, I don't know how it works but I don't thinlk you can use it as check function so as it is.
    Regards,
       Gianluca

  • Problem with WorkFlow of Purchase Orders related to non active employees

    Dear all,
    We are running into issues with the WorkFlow when people are linked to a PO who are not anymore an active employee. That will give problems in the workflow as those people are logically not going to goods receipt/invoice reciept/approve those invoices.
    How should we deal with this problem?
    We are thinking about a solution like creating an overview of ALL purchase orders (without Goods Receipt) in which the creator, project manager or project sponsor of that specific PO is not anymore an active employee.
    Could someone please advise the right solution?
    Thanks in advance.

    Experts? Anyone?

  • Mutating Error problem using audit trigger for UPDATE

    I need to add 4 columns to all of my tables named:
    INSERT_BY
    INSERT_DATA
    UPDATE_BY
    UPDATE_DATE
    I intend these to act as "inserted" and "last updated" audit trails within the table, as opposed to creating a new table and storing the audit information there. The insert columns appear to be easy, as I can just use a DEFAULT clause within the definition of the table. However when I attempted to write a (my first) trigger then I run into problems with mutating tables. Presumebly because I am attempting to change the table while the trigger is referencing it.
    create or replace trigger test_audit
    after update on dictionary
    begin
    update dictionary
    set update_by = user, update_date = sysdate
    where entity_id = :old.entity_id;
    end;
    I thought I could maybe get around this by calling a procedure from inside the trigger. Something like:
    create or replace procedure test_audit(vColumn in varchar2, vData in varchar2, vTable in varchar2) is
    -- vTable is table name
    -- vColumn is PK of table
    -- vData is value of PK in current row
    begin
    update vTable
    set update_by = user, update_date = sysdate
    where vColumn = vData;
    commit;
    end test_audit;
    However I cannot use variable for table names. Will this mean I have to create a procedure for each table/trigger? Is there a way to reference the table name as a variable and keep this a generic procedure? Or is there an easier way to record the auditing UPDATE information for each changed row within the original table?
    Many thanks in advance......

    Will
    this mean I have to create a procedure for each
    table/trigger? I think you've answered that question already.
    Is there a way to reference the table
    name as a variable and keep this a generic procedure?Not that I'm aware of.
    Or is there an easier way to record the auditing
    UPDATE information for each changed row within the
    original table?Well, there's the AUDIT feature.
    C.

Maybe you are looking for