cancel
Showing results for 
Search instead for 
Did you mean: 

Create event in GOS obj to trigger workflow while attaching data with GOS

Former Member
0 Kudos

Hello experts,

It is a little bit urgent.

I have a scenario. We have to attach documents to SAP application using GOS. These documents can be edited also.

Now second part is that when we attach the document or edit the document, the document should be send with the work item "when we attach the document".

The first part of the scenario is completed and working fine. The second part of the scenario is causing problem. I have checked the various options but none of them are proving helpful.

There is an option in GOS toolbar to send the documents through workflow but that also asks for the related workflow.

I was trying to create an event for GOS object (Z object not a subtype of any other object) which can trigger the workflow automatically when the attachment are created and edited but can not go further with it as am not so strong in workflow. I ahve just created the event. Do I need to write some code for the event?

I request you to kindly help me either in creating this event which will trigger the workflow (whole process) or any other method to do the same.

Thank you all in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

All the attachment related with the GOS get stored in table SRGBTBREL.

I think you can run a batch job that will check this table entry and will trigger workflow as you get the key field also in this table. Alternatively you can try to use change document concept of triggering workflow but unfortunately you do not have Changedocument object for the above mentioned table.

Thanks

Arghadip

Former Member
0 Kudos

Hello Arghadip,

Thank you for replying so early. The table point is very helpful but about the batch job I do not get it. I think the second option is good trigerring event on updation of table. But again I do not know how to do it as I have customized object so have to create the event from the scratch and that, sir, is my main problem.

Kindly help.

Thank you

Former Member
0 Kudos

Hi,

make use of FM SAP_WAPI_CREATE_EVENT.

Whenever your creation or update is successful, call this FM.

Cheers,

Raja.D