cancel
Showing results for 
Search instead for 
Did you mean: 

Escalated workflow task showing WF-BATCH as Agent

idrisahmed
Participant
0 Kudos

Hello All,

I have requirement in report that i need to show last approved agent which approved by agent. Agent determination is based on Agent table.

in case of deadline escalation when latest end step executes system shows agent as "WF-BATCH" where last approved agent is expected according to level.

i am taking WI_AAGENT field form SWWWIHEAD table to show last approved agent.

i tried below update query in workflow but not sure it is correct or not.

UPDATE swwwihead

        SET WI_AAGENT = lw_agent-agent

        WHERE WI_ID EQ workitem_id

        AND WI_RH_TASK EQ task_id

        AND no_deadl EQ 'X'.


could you please advice on this.

Accepted Solutions (1)

Accepted Solutions (1)

paul_bakker2
Active Contributor
0 Kudos

My advice is: Don't do it!

If you have an update program that can determine the last approving agent (as shown above), then use that logic in your report. There is no need to update SWWWIHEAD

Please do not directly update standard SAP tables. You run the risk of corrupting the workflow logs.

cheers

Paul

idrisahmed
Participant
0 Kudos

Hi Paul,

Thank you for your reply.

any other way in workflow to change escalated agent as a meaningful agent from custom agent table.

Thanks,

Idris.

Answers (1)

Answers (1)

former_member185167
Active Contributor
0 Kudos

"in case of deadline escalation when latest end step executes system shows agent as "WF-BATCH" "

Why does WF-BATCH show up as the actual agent?

idrisahmed
Participant
0 Kudos

Hi Rick,

according to my analysis when deadline 'latest end` triggers after this process control step executes which will obsolete the current work item and re direct to workflow form there it will re execute agent logic and regenerate for next agent.

i can calculate next agent with standard FM ' SWW_WI_AGENTS_READ' with latest workitem id but for last approved person for last workitem it is showing as WF-BATCH.

i hope you will get my scenario.

Thanks,

Idris Ahmed Khan.