Skip to Content
author's profile photo Former Member
Former Member

Event trigger when Order inbound IDOC fails

Hi All,

I am working on a solution which needs to use a custom workflow which I have developed when an Order inbound IDOC fails in SAP. I am using business object IDOCORDERS, Event of the object INPUTERROROCCURRED. My solutions works perfectly fine when an IDOC comes from our external system and fails in SAP but I want to test some new changes that I have added to the WF, therefore I am triggering the inbound IDOC from WE19 and when the IDOC fails the event is not triggered. I don't know why but it works when the IDOC is sent from the external system.

Can anyone help me to understand how this could be resolved.

Advance Thanks,

Pradeep


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 03:46 PM

    You can use transaction SWUS - for testing workflow or trigger the event using SWUE transaction

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 11:36 AM

    Dear Pradeep,

    Before this you have to use WE19 to generate the inbound idoc.

    After you have tested the inbound and outbound processes, you can specifically test the workflow

    component's exception−handling process. One obvious method is to create an error in the process and check for a work item in the Inbox of the responsible user. However, this approach requires you to build error data, which can be difficult at times. You can test the workflow component itself by using the simple procedure listed here. This procedure applies to all error workflows for the outbound and inbound process.

    Use transaction SWUS :

    In this step, your aim is to test the exception−handling process and to make sure that the correct person is notified when an error occurs. You start the error process manually, using transaction SWUS. In an actual process, the system starts the error process based on the type of error. The steps are as follows.

    1. Identify the workflow task that is started for a particular exception..

    2. On the selection screen enter the task number in the Task field, and click the Input Data button. On the next screen, press F4 and enter an IDoc number.

    3. Click the back arrow and click the Start button. This step should start a workflow process.

    Errors in this step are communicated in the status bar. You click the message to get additional details. The Testing the Workflow Exception Process 140 common problem in this step is related to workflow configuration. If the system reports that you are not one of the possible agents, either the task profile has not been maintained, or there is a problem with your PD−ORG setup. If this step is successful, the person responsible for the task should receive a work item in his or her Inbox.

    Many Thanks / Himanshu Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 11:55 AM

    Dear Pradeep,

    You can also see the possible cause of any problem, You run this report for all process codes by using program RBDMOINF via transaction SE38. Alternatively, you run program RBDMOINC to test an individual code.

    Many Thanks / Himanshu Gupta

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Himanshu Gupta, Nabheet,

      I am going to run the program which creates an IDOC and see if the Event is triggered. I will let you know the results soon.

      I don't have any problem with the workflow. if the event is triggered then the workflow is working correctly.

      Regards,

      Pradeep

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.