Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow not triggering

rekha_manjunath2
Participant

hi Experts,

I have created a workflow for CS01 / CS02, but the agents are not determining. I am determining the agents through role.

I have gone to additional setting and set it to general task. generated the index. I have done the binding also.

I have done all the steps, but now the agents are not determined through role. Its going to standard approver. Please help. I am not able to proceed any further. I am new to workflow.

Thanks and best regards,

8 REPLIES 8

rekha_manjunath2
Participant
0 Kudos

I am not getting agents when i check in SWIA. Sometime back i was getting agents, now that column is blank. Please help.

Regards,

Rekha

Sandra_Rossi
Active Contributor
0 Kudos

There is no evidence in what you have posted that any user is assigned this role.

For more details see there: SAP Workflow Agent Determination | SAP Blogs

rekha_manjunath2
Participant
0 Kudos

hi Sandra,

I have assigned and made the config based on the same blog. Need to check on the pre-requisites and the binding. Not sure what all i need to check.

rekha_manjunath2
Participant
0 Kudos

Hi All,

The custom business object just did not work when we created custom events for create and change. The only option was to create a class, and method and called the BADI.

CATCH cx_swf_cnt_unit_type_conflict .
SKIP 0.
CATCH cx_swf_cnt_elem_def_invalid .
SKIP 0.
CATCH cx_swf_cnt_container .
SKIP 0.
ENDTRY.

Created a BADI implementation for BOM_UPDATE in SE18. I

In the method Change_AT_SAVE, wrote the code which will trigger the WF.

The material and Plant which needs to pass, will be created as parameters and container elements.

These fields need to be bound in the workflow(SWDD).

This solved my issue. Thanks all for your support.

0 Kudos

Thanks for the feedback. As the question was about determining the agents through role, and about CS01/CS02, I think the people would look at your answer to know how to solve agent determination by role, but I don't see anything related. Could you elaborate please?

0 Kudos

hi Sandra,

The agent determination was happening via role assigned. As I was made the approver I did not receive the notification to approve. And as an approver the notification did not have reference to material number based on which the approver was approving. The issue was linked to each step. There are 2 clients which we use to run the workflow. The agent determination is client independent. I made it standard task after which the mail was triggering but value was not appearing. For which I created the class and method . Called BADI . This resolved all the issues

0 Kudos

Thank you Rekha. I think you can convert this last comment into an answer, I find it more relevant than the current one. The answer with all the screenshots could be adapted and made as an independent blog post as nothing exists for this BAdI and BOM workflow event (although I think you need to elaborate a little bit to make it clear to people).

Note that you can format your code as text, instead of screenshots, people can copy/paste the code:

METHOD trigger_wf.

  DATA: lv_objkey TYPE sibfinstid,
  ...

ENDMETHOD.

Sandra_Rossi
Active Contributor
0 Kudos

Sorry, I wasn't notified of your reply. If you want to target someone, if this person has posted an Answer, use the button COMMENT, if this person is the Original Poster of the question he/she will be automatically informed, otherwise copy/paste their hyperlinked name so that the person receives a warning (NB: @ doesn't work/but typing this character will suggest hyperlinked names).