Skip to Content

How to enable workflow overview in material master which displays all the workitems created by change event in SWEC

A workflow is triggered on change of material master record in MM02. This workitem is triggered by an event created in t-code SWEC using the ABAP class.

The workitem is created and the workflow execution is successful. But I am unable to see the log in the MM02 or MM03 where we can see the workflow overview.

How can we make the log available in workflow overview.

Note: I have achieved the solution by implementing the BADI "GOS_MULT_PUBLISH" for the filter value "WF_OVERVIEW" and added the business object type as "CL" and the business object as the class what we have created and appended to the table CT_LPORB which is the changing parameter in the method "ADD_OBJECTS" of this BADI.

But is there any other way to activate the workflow overview without using any BADI and by using any workflow configuration?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2014 at 04:51 PM

    Hello Arunkumar,

    Just create work flow container with Business object BUS1001006.

    Create generic instance

    Business object :SYSTEM

    Method GENERICINSTANTIATE.

    Bind the object instance return by the method to your work flow container created.

    Then check the work flow over view of material.

    Regards

    Sivashankar P

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 10:30 AM

    Hi,

    1) in your workflow create one comtainer element of type material business object.

    2) in your event to workflow binding (basic data setting option/button B), material business oject should be coming in _EVT_OBJECT. bind it to your workflow container created in step 1.

    this should link your workflow with MM02/03.

    Basically, it should bind uinique material number with unique workflow instance for displaying in MM02/03.

    Regards,

    Ibrahim

    Add a comment
    10|10000 characters needed characters exceeded

    • METHOD bi_persistent~find_by_lpor.

      data lv_matnr type mara-matnr.
      MOVE lpor-instid(18) TO lv_matnr.
      CREATE OBJECT result TYPE zcl_wf_material
      EXPORTING
      matnr = lv_matnr.
      ENDMETHOD.



      METHOD bi_persistent~lpor.
      me->m_por-catid = 'CL'.
      me->m_por-typeid = 'ZCL_WF_MATERIAL'.
      me->m_por-instid = me->matnr.
      result = me->m_por.
      ENDMETHOD.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 10:23 AM

    I don't think there is some other way to achieve this. But there are some parameters value if we will set that in user profile it will get enabled for SALES T-code.

    Cheers,

    Prakash

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2014 at 05:23 AM

    Thanks Ibrahim and Siva for your inputs.

    The solution by Siva works fine. But this solutions holds good if you are going to use this workflow for the first time in production server. This is because, this will show all the work items that are created after including the generic instance of BUS1001006. But if there are already many work items that are created before this changes, it will not be shown in the workflow overview.

    Anyways Thanks a lot for this excellent solution. This is what I was looking for Siva.

    Regards

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

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.