Skip to Content
avatar image
Former Member

Log based on the object in workflow

Hi all

I am working on the Sales order approval and rejection process in workflow. I can view the log in the outbox based on the workflow triggered.

But the requirement is that, I have to view the log as and when required (may be as a report) based on the sales order number. I have to create a Z- program for this.. But not sure about where these details are captured and if there is anything already existing to ease my job.

Pls. help me on this.

Regards

Mui Kanva

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 04, 2008 at 07:30 PM

    Hello,

    Are you aware that you can access the workflow log from inside VA03?

    Just in case you're not: in the top left corner just underneath the menu there is a button for generic object services. Click on that and you can see an option for workflow, and from there to workflow view. This will show you a list of all the workflows that have worked with that sales order, and you can view the logs for each of them.

    This works for most SAP transactions that have associated business object.

    Cheers,

    Mike

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Mike Pokraka

      Thanks a lot Mike..

      I have used your solution to view the workflow log for any particular SO.

      Thanks a lot Arghadip and Martin

      Your solutions were useful for me to get other details like the number of SO rejected and accepted during a given period, etc... (Yet to develop the report)

      I have got a good learning.. thanks again..

      Regards

      Mui Kanva

  • avatar image
    Former Member
    Sep 04, 2008 at 09:05 AM

    You can obtain this data from table SWW_WI2OBJ or you use the FM provided by Martin.

    Thanks

    Arghadip

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 08:17 AM

    Showing the log exactly the same as you can do from a task or from the outbox will require some debugging from you. Also you don't say what kind of log you want, the technical or the user log? If you want to build up your own log in a report you at least need two FM's:

    SAP_WAPI_WORKITEMS_TO_OBJECT for finding the relevant workflow and

    SWL_GET_PROCESS_STEPLIST To get the data of the 'old' technical log in a table.

    Regards,

    Martin

    Add comment
    10|10000 characters needed characters exceeded