WorkFlow Error ........ Can we debug it ? Help.. it's urgent

Hi All,
I'm newbie in SAP and I realy need more explaination about worklow. I have two workflow : wf1 and wf2; and both of them will update complaint document status.
The scenario is if Event 1 raised then both of workflow will be triggered and both of workflow will check claim amount inputed by user.
If claim amount is greater than US$ 1000, wf2 will be cancelled and wf1 will ask approval from user, if the user approved then wf1 will update complain status from A to B.
If claim amount is less than or equals with US$ 1000 , wf1 will be cancelled and wf2 will update complain status from A to B.
In condition 1 ( claim amount > US$ 1000 ), the workflow works properly and there's no error occured.
But in condition 2 ( claim amount <= US$ 1000 ), an error occured while updating status.
Is there any reason why this happens ? Both of workflow used the same method from BUS2000120, that is USERSTATUSSET but in wf2 an error occured and the error code is 1005 ( Status Not Allowed ) but in wf1 wofks properly.
Is it because there's no delay in wf2 and the record still used by another process ? please advice me ....
Beside that I've tried to debug why error happens but it seems it can't be debuged because it works in background.
Is there any way to debug background process that done by WF-BATCH ?
Or can we simulate a workitem / action node in workflow ?
If there is any way please tell me step by step ...
Please advice me and many thanks in advance.
regards
eddhie kurnianto

hi all,
many thanks for the reply, sory I'm wrong in giving the workflow scenario. I need 2 workflow because each workflow triggered by different event. wf1 triggered by event1 and wf2 triggered by event2.
if event1 raised then wf1 will be triggered, and wf1 will check the claim amount. if the claim amount > US$ 1000 then, wf1 will ask approval for the claim payment. If approved then complain status will be updated from B to C.
This condition works well and no error occured.
if event2 raised then wf2 triggered, and wf2 will check claim amount. if the claim amount <= US$ 1000 then the complain status will be updated from A to C automatically.
This condition doesn't work and an error occured.
If I trace the the workflow, the error code is 1005. That error code refer to method UserSetStatus in BUS2000120. In that method, it called Function CRM_STATUS_CHANGE_EXTERN_OW .
If I simulate the function CRM_STATUS_CHANGE_EXTERN_OW via t-code SE37, it works well to update status from A to C.
Last nite after I posted this question, I created the event2 ( use t-code SWUE ) to simulate the error but the workflow works fine. But if the event created through transaction the workflows error....
please advice .....
Btw, Mikkel, for your answer for debuging, I have another question. Must I implements infinite loop to be able to debug via process overview ( SM50 ) ? And how to jump into debugger from process overview ?
Many thanks in advance

Similar Messages

  • IPod internal manager error--can't update--professional help please!?

    I want to update my iPod mini. I connect it to the computer. It says I don't have the latest version of the iPod updater (though my computer says I do, and I know I downloaded it a few weeks ago). It says click here to update. I click, and then a message pops up that says "iPod internal manager error" and I can do nothing. Nothing! No update for my iPod.
    This "iPod internal manager error" problem is addressed here: http://docs.info.apple.com/article.html?artnum=301907 but the suggestions there have not helped me. I have checked repeatedly and know that I have both the current version of iTunes and the current version of iPod updater. I remain perplexed.
    Can somebody solve this once and for all? I want to update my iPod!
    Dell Inspiron 9300   Windows XP  

    Okay, so my iPod has done this twice now, so it must be a pretty common problem. Once plugged into my computer, it goes into a black and white Do Not Disconnect screen and iTunes fails to recognize it while my computer still does. Reading these discussions, I found a POSSIBLE quick fix for others with this prob that has to do with reformating your iPod. It erases everthing on it, but at least it starts to work again. Here goes:
    1. Open your Ctrl Panel thru the start menu.
    2. Switch to "classic view" if it's an option on the left.
    3. Double click the icon "Administration tools"
    4. Double click "Computer mangagement"
    5. Click "Storage" followed by "Disk management"
    6. Find your iPod's listing
    7. Right click it and choose "Format"
    8. Select "FAT 32" instead of "FAT" and start the format.
    So pretty much this is only a solution if when you get to step 8. you find out that your iPod is on "FAT" format. Hope this helps anybody with this same prob!!
    PC   Windows XP  

  • Can any Java expert help me? Urgent.

    I create a table---CourseDB in adatabase to store the Student ID ( student identification number) and the grades of the courses that they took.
    The structure of the table---CourseDB is:
    StudentID
    GradeofCourse1
    GradeofCourse2
    GradeofCourse3
    GradeofCourseN
    Here GradeofCourse1 means the grade of course 1, that the student obtained. GradeofCourse2, GradeofCourse3, GradeofCourseN have the same meaning.
    I want to use the following query to count the students
    who get g1 in course 1, and g2 in course 2, ......and gn in
    course n.
    Select COUNT(*)
    From CourseDB
    Where GradeofCourse1=g1 AND GradeofCourse2= g2
    ......AND GradeofCourseN=gn
    Here g1, g2,......,gn are grade, the values are: A,B,C,D.
    I want to consider all the possible combination of g1,g2,...,gn.
    The students take all the n courses:Course 1, Course 2,...., Course n, and may get A,B,C, or D in the n courses.
    For example:
    g1=A,g2=B,g3=C,.....,gn=D
    ( This means that the student gets A in Course 1, gets B in Course 2, gets C in Course 3,....., gets D in Course n. Many students may have the same situation. I want to know how many are the students?)
    Or:
    g1=B,g2=C,g3=D,......,gn=A
    To make the problem clear, I give a detail example:
    For example, there are two courses: course 1, course 2.
    I want to know how many stuent get "A" in course 1 and
    get "B" in course 2 at the same time.
    And I want to know all the grade combination of the two courses:
    course 1 course 2
    A A
    A B
    A C
    A D
    B A
    B B
    B C
    B D
    C A
    C B
    C C
    C D
    D A
    D B
    D C
    D D
    So that's 16 total combinations(4^2).
    My question is in the code how I can assign the values(A,B,C,D)
    to g1,g2,g3,.....,gn conveniently.
    The following "nested for loop" can solve the problem ( for example, there are 6 courses):
    for (char class1 = 'A'; class1 <= 'D'; class1++)
    for (char class2 = 'A'; class1 <= 'D'; class2++)
    for (char class3 = 'A'; class1 <= 'D'; class3++)
    for (char class4 = 'A'; class1 <= 'D'; class4++)
    for (char class5 = 'A'; class1 <= 'D'; class5++)
    for (char class6 = 'A'; class1 <= 'D'; class6++)
    select count(*)
    from CourseDB
    where GradeofCourse1=class1 AND GradeofCourse2 = class2 AND GradeofCourse3 = class3
    ....AND GradeofCourse6=class6
    But the problem is that in the "Where GradeofCourse1=class1 AND
    GradeofCourse2= class2 ......AND GradeofCourse6=class6" of the
    Query, the number of courses is not fixed, maybe six, maybe three,
    maybe four, so the depth of "nested for loop" can not be fixed.
    Can any Java expert give me some suggestions?
    Thanks in advance.
    Jack

    Jack,
    When you posted this on the other forum, it was quite a different question, but it has mutated to this point now. I believe what you want to do can be done with what MS Access calls a crosstab query and you can completely leave Java and any other programming language out of it. If you need to know how to do a crosstab query please take it to another forum.

  • Can we debug a workflow

    Hi All,
    I wish to know can we debug a workflow. If yes then how?
    Also if i want to know how the flow is going for the business process in question. I mean if it is stuck some where, then what is the way for it?
    Thanks in advance.
    Regards,
    Neha

    Hi Neha,
    Yes you can debug the WF to check the LOG in terms of Graphical Display and Technical details..!!
    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.
    Let me know if you need any help on this.
    Regards,
    Kanika

  • How can we Debug the workflow?

    Hi,
    How can we debug the workflow?
    Please help  me on debugging the workflow in step by step procedure?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi,
    If you want to set breakpoints in method which is used in workflow task then it is possible
    till ECC5 am afraid about ECC6
    you can see the graphical view of workflow through transactions said by Kalpesh
    you can also use swwl (delete workflow) for viewing the container elements of the workflow.
    SWI2_ADM1:Workitem without agents
    SWI2_DIAG:Workflow with error
    these transactions are also helpful
    Thanks & Regards
    Hari Sankar M

  • How can we debug an SRM workflow problem?

    Q: How can we debug an SRM workflow problem?

    Hi,
    In SRM system using transaction SWI6 you can troubleshoot the workflow process.
    if you are using N step badi in the workflow process, we can debug the badi BBP_WFL_APPROV_BADI
    method GET_REMAING_APPROVERS
    if required please take a help of Abap consultant to debug...
    Thanks & Regards,
    prasad.s

  • How to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    how to fix itunes error 1611 while restoring ios 4.3.2 , and when i restore to 4.2.1 the can be ok.plz help me

    have a look at this support article.

  • Error message on restart: finder unexpectedly quit...and can do nothing! help please

    error message on restart: 'finder unexpectedly quit'...and then can do nothing! help please

    thank you hatter....repaired drive but problem persists....can you please explain what i am to do with the library or point me in the direction to read what to do?

  • My macbook pro is connected to internet via my time capsule but my iPad and iPhone won't. it shows wifi connection to the time capsule but when i go on to the internet on the iPad or iPhone, it comes up with network error. can anyone help?

    my macbook pro is connected to internet via my time capsule but my iPad and iPhone won't. it shows wifi connection to the time capsule but when i go on to the internet on the iPad or iPhone, it comes up with network error. can anyone help?

    This can be caused by a number of issues.
    Was everything working and then suddenly stopped??
    Or is this a new clean setup and has never worked.
    Do you have a cable modem which is not a router and the TC setup in bridge? That will cause it. The TC must be in router mode, ie dhcp and nat.
    Check the IP the MBP gets including dns and gateway..
    Then check the ipad/iphone.. post what IP dns and gateway (router in applespeak) they get.

  • I have a tried to format my seagate free agent 1TB external hard drive so I can use it, but I keep getting an error message saying it failed. Can n e 1 help me plz

    I have a tried to format my seagate free agent 1TB external hard drive so I can use it, but I keep getting an error message saying it failed. Can n e 1 help me plz

    This article has a link for more information on finding your profile directory: [[Fix the "Could not initialize the application's security component" error message]]. On Windows 7, you can try this (either in a Windows Explorer window address bar or from the start menu search box):
    %APPDATA%\Mozilla\Firefox\Profiles
    You may see one folder in there and that's the one you want. If you see more than one, look for the one with the most recently modified files.

  • When i try to Restore my iPod touch 4th gen it says "error" can anyone help!?

    When i try to restore my iPod touch 4th gen it says "error" can anyone help?!

    Was "error" the complete wording of the error message?

  • I'm trying to email a photo from my iPhoto album, but I'm getting an error message that says "The email server didn't recognize your username/password combination." Any ideas?  I can't find any help in Apple on-line support.

    I'm trying to email a photo from one of my iPhoto albums, however I'm getting an error message that says "The email server didn’t recognize your username/password combination." Any ideas?  I can't find any help in Apple on-line support.

    Never mind.  I was able to find the solution via an earlier post from West.  Thank you!

  • Hi, my iphone 4 is stuck telefonu because put the wrong security code. And I can not connect to itunes to update telefonu. I get an error and would like to help me with information Thank you!

    Hi, my iphone 4 is stuck telefonu because put the wrong security code.
    And I can not connect to itunes to update telefonu.
    I get an error and would like to help me with information
    Thank you! [email protected]

    We need the exact error message in order to help you.

  • HT1766 my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    You should be posting this in the Developer Forums, to which, as a developer, you have access. Discussion of beta software isn't permitted in the public forums due to the NDAs you sign as a developer.
    Best of luck.

  • I try to download an app, and it says that there is an error in the app , Ive tried to download other apps and i get the same error. can someone help?

    I try to download an app, and it says that there is an error in the app , Ive tried to download other apps and i get the same error. can someone help?

    You need to reinstall the App Store.
    Use Lion Recovery to do that.

Maybe you are looking for

  • Execute a script on a remote machine - possible?

    I am sorry if this sounds silly - what I would like to know is if its possible for a java program executing on one machine to execute a shell script that resides on another machine. That script in turn invokes a java program which does some other stu

  • Web console: An unexpected error has occurred

     Hi When I try to open SCOM 2012 web console I get this error: An unexpected error has occurred <endgetresponse><beginonui></beginonui></endgetresponse> Please provide the following information to the support engineer if you have to contact Microsof

  • Ipod classic will not sync, help me!

    Running OSX 10.6.8 Macbook 2,1 Itunes 10.6.3 160gb Ipod classic not sure which generation The ipod appears empty in Itunes, I sync my entire library of music and all podcasts, it appears to sync normally and after the sync is complete, i eject the ip

  • Difficulty in getting PDF form to submit to central mailbox

    I am an average user of Adobe Acrobat Pro 9. I have created a form both using Acrobat Pro and LiveCycle that is to be used at work for arranging translation requests.  the form I created is made up of a variety of different fields: text; checkboxes;

  • Purchased a LG FHD LCD panel and broken.

    Hello everyone, I am using T520 4242- RU2 model in Thailand. I tried to upgrade my LCD panel from 1366*768 to 1920*1080. I bought a panel in e-bay and I replaced by myself. After few months, it becomes yellowish color on white image. So I removed it