cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluation does not work when called from a function

ladinca
Participant
0 Kudos

Dear experts,

we use a customer status profile and we want to use the evaluation on PPM 5.0

If we change the status manually, everything works fine.

But is we change the status through BAPI_BUS2175_SET_STATUS, then the evaluation does not updates the information.

We also perform a commit.

Any ideas?

Thank you.

Laura

Accepted Solutions (1)

Accepted Solutions (1)

ladinca
Participant
0 Kudos

Hi everybody, Hi, we did not open any SAP notice, because we solved this issue by scheduling the evaluation as a batch job, that runs run every 10 minutes. Kind Regards. Laura

Answers (2)

Answers (2)

former_member201206
Active Contributor
0 Kudos

Hi Laura,

the decription is a little vague, I dont get your question really.

The function bapi_bus2175_set_status only and should change the task status.  What do you mean, the evaluation does not change this information. Is the the status information of task dashboard?

P.S: the evaluation triggers the workflow sounds also stange, the workflow is linked typically while a status changes and evaluation never change the status.

Kind regards,

Zhenbo 

ladinca
Participant
0 Kudos

Hi Zhenbo,

We use the bapi_bus2175_set_status to change task's custom status. This event triggers a workflow that releases the successors of this task and changes the value of some fields at task level.

When the evaluation is not active, this does perfectly work.

But when we activate the evaluation via customizing, this does not work.

We think that this is due to the fact the evaluation somehow makes the workflow starting twice.

Laura

former_member201206
Active Contributor
0 Kudos

Hi Laura,

thanks for your quick feedback.

I still donot get your point.

Is the question regarding

1. twice getriggered workflows with evaluation? Or

2 the bapi_bus2175_set_status does not update some information (which information, status itself 'crm_jest'  or the summerized status text 'dpr_dashboard' showed in the task dashboard ?) 

kind regards,

Zhenbo

ladinca
Participant
0 Kudos

Hi Zhenbo,

The question refers to both the point.

The result we expect is that the bapi_bus2175_set_status will update the following fields:

status,

percentage of completion,

actual finish date

and a custom field we added to the Additional Data (material code).

It works fine only without evaluation.

But we need evaluation to be active, because we want the Project's Dashboard updated.

Kind regards.

Laura

former_member388328
Active Contributor
0 Kudos

Hi Laura,

You mean that you don't any workflow to be triggered after setting the status. Am I right...?

Thanking you

Vengaiah

former_member201206
Active Contributor
0 Kudos

Hi Laura,

The mentioned fields in PPM  do have multipe tables stored the value.

E.g. status of a task is stored in CRM_JEST  (central place for status)

And if the evaluation has been run for this project or task, this status information is stored ADDITIIONALLY in the dpr_dashboard, field system_status

So the question, where the data is missing after the bapi is carried out? 

P.S: you can use the report dpr_get_tree to have a pre-analysis of the database records.  You need the guid of the involved task.   If you donot have it,  start with the project ID , and then find out the task guid.

Kind regards,

Zhenbo

ladinca
Participant
0 Kudos

Hi Zhenbo,

the missing data are in the dpr_dashboard table.

Thank you.

Laura

former_member201206
Active Contributor
0 Kudos

Hi Laura,

if the data in dpr_dashboard is not updated, then it is due to missing evaluation, as this table only get written during evaluation.

You can either set the the customizing of project type in the way, that the evaluation should be triggered at save OR

you run the report dpr_eve_batch_dpo explicitly.  Regarding doubled workflows, please check, if the problem occurs too, if the report dpr_eve_batch_dpo is run in a separate session, e.g. run  it manually instead of include it in your own report for status change.   If the problem with doubled workflow persist, you can contact SAP for help.

Kind regards,

Zhenbo

ladinca
Participant
0 Kudos

Hello Zhenbo,

Yes, the problem with workflow occurs even if we run the dpr_eve_batch_dpo in a separate session.

We'll tell our customer to contact SAP directly.

Thank you for your time.

Laura

former_member201206
Active Contributor
0 Kudos

Hi Laura,

you are welcome.   I am curious to known the reason too.

Kind regards,

Zhenbo

former_member388328
Active Contributor
0 Kudos

Hi Laura,

Try to submit DPR_EVE_BATCH_DPO program, after calling status setting bapi.

Thanking you

Vengaiah

ladinca
Participant
0 Kudos

Thank you Vengaiah,

if we call the DPR_EVE_BATCH_DPO, the system saves the project again, and the workflow starts when we set the status.

We want to avoid that, because the workflow finds the task blocked.

We use a custom status profile, and every time you run DPR_EVE_BATCH_DPO the workflow linked to this custom status starts again.

Laura

former_member388328
Active Contributor
0 Kudos

Hi Laura,

Can you please explain your process , Clearly, what are you try to achieve... I think i missed somewhere.

Thanking you

Vengaiah