cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello Workflow colleagues,

I am starting a workflow from an event CREATED using business object BUS2096. I need to do agent assignment to a group so I have created a role with customized code which will find the agents assigned. The issue is that to work my function module requires an IDOC number. The event CREATED is triggered by an incoming IDOC. When I debug the customized function module the IDOC number is not being passed so I cannot find the agents to which the workflow must be sent.

I set up the element IDOC in the workflow container but in the triggering event bindings I do not have an option to bind it as I require my sales document to be &_EVT_OBJECT&.

I recently solved another triggering issue by binding PRIORITY to ‘1’ which solved the express message failure so I was wondering if I could bind the IDOC in a similar way but it has to be dynamic so it cannot be hardcoded.

I hope I have described the issue clearly but if not please not ask for more details

David.S.Dittmer

0 Likes
View Entire Topic
former_member852447
Active Participant
0 Likes

hello jai,

I am now coding in this change but have a question. You mention that I have to get the IDOC No from a table before I can enter the parameters for FM SWE_EVENT_CREATE. This raises 2 question

1. Will the iDOC be populated in a table at this stage.

2 What table since I do not have an IDOC # most of these tables requie an IDOC # as a select.

Sure if I can get past this point the rest will flow

Thanks

Former Member
0 Likes

1. Will the iDOC be populated in a table at this stage.

I guess so like you said earlier that you are able to IDoc when event got created and you know when we are in check fm of standard event then event has been created.

2 What table since I do not have an IDOC # most of these tables requie an IDOC # as a select.

For that you may want to see the area menu WEDI, I dont remember the table for Idoc right now, try to find out by running SQL trace using ST05 for that.

Cheers

Jai

Former Member
0 Likes

Hi David,

Well the Idocs basic types are stored in table EDBAS .

Moreover have you tried the event triggering by FM 'SAP_WAPI_CREATE_EVENT - to trigger the z or Sap events in business objects?

Regards,

Ribhu

Former Member
0 Likes

Ribhu/David,

If you are using SAP_WAPI_CREATE_EVENT make sure about COMMIT_WORK in import parameter of this FM.

You dont want to do commit_work in Check FM. pass space in stead of X then.

Cheers

Jai