Skip to Content

Add Custom workflow log to Workflow overview - GOS for CJ02 Transaction

Hello All,

I have a new custom BO.By using this BO we are triggering an event on some particular changes in CJ02 transaction. event is triggering and workflow is working properly.

here the requirement is user will triggers the workflow and checks the workflow log through GOS. At present in the WF log there is already a standard log for BUS2054 was getting displayed.

I want to add my custom BO to "Generic Object Services" -> Workflow Overview to see my custom WF log to the existing.

Thanks & Regards,

Sundeep.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Dec 21, 2017 at 09:03 PM

    To add your own GOS service, create a class and maintain the table SGOSATTR, search the forum for more information.

    Add comment
    10|10000 characters needed characters exceeded

    • I just tried, it works very well. It displays the workflow logs of all objects determined by the method ADD_OBJECTS. In the filter of your implementation, indicate WF_OVERVIEW. In the method, make sure to add objects only if input parameter FLT_VAL = 'WF_OVERVIEW' in case there are future implementations for other GOS services.

  • Dec 26, 2017 at 09:29 AM

    Just create an instance of the relevant CJ02 object (project I think?) in your workflow container and it will appear in GOS. Simple.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2017 at 12:10 PM

    I just checked and CJ02 is indeed a project. You're adding a WBS element.

    I don't know if CJ02 will identify all the WBS elements belonging to a project via GOS, so that is one possibility. Else your key might be wrong. WBS elements have different internal/external formats. Do you see the instance in the WF log?

    If you see an instance then you definitely need the project (BUS2001). If not, try creating an instance using the correct key (you can even just edit an existing WF container just to test), and then see if it appears in GOS.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2017 at 12:15 PM

    Hi

    I am wondering why you have not created a delegated object of BUS2054 but you certainly have your reasons

    DATA: * BORIDENT TYPE BORIDENT,

    BOR type SIBFLPOR GOS_MANAGER TYPE REF TO CL_GOS_MANAGER.

    BOR-TYPEID = 'ZMDT'.

    BOR-INSTID =

    BOR-CATID = 'BO' or 'CL'

    CREATE OBJECT GOS_MANAGER

    EXPORTING IS_OBJECT = BORIDENT EXCEPTIONS OTHERS = 1.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2017 at 12:15 PM

    Hi

    I am wondering why you have not created a delegated object of BUS2054 but you certainly have your reasons

    You'll have to add this in the transaction (or something similar)

    DATA: * BORIDENT TYPE BORIDENT,

    BOR type SIBFLPOR GOS_MANAGER TYPE REF TO CL_GOS_MANAGER.

    BOR-TYPEID = 'ZMDT'.

    BOR-INSTID =

    BOR-CATID = 'BO' or 'CL'

    CREATE OBJECT GOS_MANAGER

    EXPORTING

    IS_OBJECT = BORIDENT

    EXCEPTIONS

    OTHERS = 1.

    There are lots of example available via google to add GOS to transaction

    Cheers

    Stephane

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Stephane,

      Thanks for the reply. My requirement is to add my custom business object to workflow log in GOS > workflow > workflow overview. Not to add GOS to transaction.

      Please help me on it.

  • Dec 22, 2017 at 11:50 AM

    Hi ,

    Are you want to add custom message in Workflow Log? If yes, just raise the Error message from underlying methods.

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2017 at 04:42 AM

    Hi Mike,

    Thanks For Replying. I Did the same . I've Created a instance with BUS2054 which is relevant to the CJ02

    and then created a task in my workflow with standard 'SYSTEM' BOR and 'GENERICINSTANTIATE' method.

    Done Binding

    Am I missing anything else..

    even after this I am not able to find my custom wf log in GOS of CJ02 transaction.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 19 at 12:14 PM

    have you solved this issue? I am facing the same problem .

    Please let me know how you solved it.

    Add comment
    10|10000 characters needed characters exceeded