cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow issue, fetch agent activity step in process

0 Likes
605

I have developed a workflow which has fetch agent activity step. The activity step executes a class method, below is the code.

Method Fetch_Agent.

LOOP AT me->gt_agents INTO ls_agent WHERE zlevel = im_level.
ENDLOOP.
IF sy-subrc = 0.
CONCATENATE 'US' ls_agent-agent INTO ex_agent.
ELSE.
ex_final = 'X'.

ENDIF.

Endmethod.

The constructor of workflow class(which has IF_WORKFLOW) has below code which fills gt_Agents public instance attribute.


SELECT bukrs zlevel agent FROM ztfi_capex_agent
* INTO TABLE zcl_wf_capex_request=>gt_agents WHERE bukrs = me->bukrs .
INTO TABLE me->gt_agents WHERE bukrs = me->bukrs .
IF sy-subrc EQ 0.
* SORT zcl_wf_capex_request=>gt_agents BY zlevel.
SORT me->gt_agents BY zlevel.
ENDIF.

But the task method is in process as mentioned in picture.

One more question is that why i don't see gt_agents public instance attribute as part of event object id in workflow binding.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Likes

Hi Sandra,

Please find the questions below.

1. why the activity step is in process ? though the activity step is background

2. Why i dont see gt_agents parameter in the event object id in the event container ? i didn't mention zcapid, bukrs, description etc as parameters of event still i could see them in event container how ?

3.How i can debug the constructor and other methods of workflow class ?