cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Approval workflow fragment has no user assignment"

Former Member
0 Kudos

Hi,

I am implementing SRM Server 5.50 (SP08) - Self Service Procurement - Extended Classic scenario.

I am using 'N' step PO approval workflow WS14000145. When I try to add approver, I am getting Error Msg "Approval workflow fragment has no user assignment".

I have already done following user assignment.

WS14000145 - General Task

TS14008026 - General Task

Can somebody suggest solution to this problem

Regards,

Milind

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Atul,

I am not clear about solution suggested by you.

Note 983128 is not applicable for me as my system is already at SP08.

All links given by you are about Shopping Cart Workflow where as I am working on PO Approval workflow WS14000145.

Please elaborate what exactly I need to do.

Regards,

Milind

Former Member
0 Kudos

Hi

<u>It comes from OSS Note -></u>

<b>Note 983128 - Approval WF Fragment Has No User Assignment</b>

<b>In BADI BBP_CHNG_AGNT_GET we were setting the agent assignment to 'X' instead of 'G' (general task).</b>

<b>Also, Try this. Assign agent for task TS10008126. Don't forget to generate it.</b>

If all your task are classified as general, this is a bug in a FM (SRM5, SP4). No idea if a note exist for this but check source of function BBP_PDH_WFL_APP_ASSIGNTYPE_GET, the task type (WF, TS) is hard coded, you may want to change it )

FUNCTION bbp_pdh_wfl_app_assigntype_get.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IV_TASK) TYPE SWD_STEP_T OPTIONAL
*" EXPORTING
*" VALUE(EV_ASSIGNMENT) TYPE CHAR1
*" TABLES
*" ET_POSSIBLE_AGENTS STRUCTURE SWHACTOR OPTIONAL
*"----------------------------------------------------------------------

DATA:
lv_general_task LIKE p1217-general,
lt_related_agents TYPE swhactor OCCURS 0 WITH HEADER LINE,
lv_task TYPE swd_step_t.
*{ INSERT DE2K901025 1
*PVA correction
data: lv_otype type OTYPE.
lv_otype = iv_task(2).
*} INSERT

lv_task = iv_task+2.

* evaluate the agent assignment of the whole workflow fragment
CALL FUNCTION 'RH_TASK_AGENTS_INDEX'
EXPORTING
*{ REPLACE DE2K901025 2
* task_otype = 'WS'
*PVA correction
task_otype = lv_otype
*} REPLACE
task_objid = lv_task "workflow fragment
IMPORTING
act_general = lv_general_task
TABLES
related_agents = et_possible_agents
EXCEPTIONS
no_active_plvar = 1
no_agents_of_task_found = 2
no_task_otype = 3
OTHERS = 4.

<u><b>See related link -></b>

</u>

<i>If this does not help in your case, report the problem to SAP by creating a new customer OSS message.</i>

Do let me know.

Regards

- Atul