cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with resource staffing with BP in cProjects

0 Kudos


Hi All,

I created a resource through tocde BP as a business partner general (000000) and changed it to employee role BUP003 , but when I am trying to assign this resource in cProjects system displays message “The search provided no results; choose other search criteria”

I also tried to create a resource from Portfolio Project management administration > Services and it generate a BP No but when I am searching this BP No for assignment in staffing tab system again displays message “The search provided no results; choose other search criteria”.

Appreciate  if someone can help me to find out possible reason

Thanks
Amit

Accepted Solutions (1)

Accepted Solutions (1)

Brendan_Ward
Advisor
Advisor
0 Kudos

Hello Amit,

Can you set an external  breakpoint in method CL_PRP_RESOURCE_FINDER~SEARCH_RESOURCE_IN_DB after the call of function BAPI_BUPA_CENTRAL_GETDETAIL. Then reproduce the issue and when the breakpoint is hit check the contents of internal table lt_return. Let me know the contents of Lt_return.

Many Thanks,

Brendan

0 Kudos

Hi Brendan,

The table 'LT_RETURN' is blank. On further analysis, we found that there is a method 'cl_prp_authorisation_services=>get_all_authority_checked' which should return 'ev_not_active = X', but it is not doing as expected. However inside this method, we found that the FM 'RH_TYPE_STRUC_INDEX’ is always returning the 'LT_ROOTS' parameter blank. Can you let us know what to do futher to avoid this. I checked sap note 1848169 but not much help.
Note: we are using SAP PPM on solman.

Thanks,

Amit

judith_gabriel
Contributor
0 Kudos

Dear Amit,

I think the structural authorization causes the issue that the resources cannot be
found. This can be checked in debugger first:


At the following coding part the structural authorization is checked. Set a breakpoint
at the sy-subrc - line (see below).


CL_PRP_AUTHORIZATION_SERVICES
HAS_PROFILE


  select uname from t77ua up to 1 rows
               into (lv_uname)
               where uname = sy-uname.
  endselect.
* Start of note  1602586
* logic according online document
  IF sy-subrc <> 0.
    select single uname from t77ua
                        into (lv_uname)
                        where uname = 'SAP*'.
  ENDIF.
*   End of note  1602586

  if sy-subrc <> 0.                                                      <<<< BREAKPOINT
    rv_has_profile = cl_dpr_co=>sc_false.
  else.
    rv_has_profile = cl_dpr_co=>sc_true.
  endif.


You can test the systembehaviour, when changing sy-subrc = 4 in debugger.
(Then the structural authorization isn´t used.)
Then check the output of the resource-search.

When the issue is caused by structural authorization you can do the following:

In the following customizing path an authorization profile is assigned to the users:
> Spro: project management > resource management > organizational management >
structural authorization > assign authorization profiles to users

Please check, if there exists the entry:
SAP* 

When only one entry is available you have the following possibilities:


When structural authorization shouldn´t be used in general you can use BAdI
DPR_RES_SEARCH with method IGNORE_PROFILE. Set the parameter RV_YES on ABAP_TRUE ('X'). Information are also available in note 1672968.

Or

You can delete the SAP* - entry in the customizing which is mentioned above.

Best regards,
Judith

0 Kudos

Thanks Judith, Problem solved.

Answers (3)

Answers (3)

former_member226598
Participant
0 Kudos

Hi Amit,

It is sometimes as simple as choosing the searching help.

For example, choose search help 'Person with "Employee" Role' as shown in the picture. It may work.

rgds, Manjunadh.

Former Member
0 Kudos

Hi,

There are few things you need to take care of before doing resource search.

Resource availability needs to be maintained

Resource needs to in resource pool

The user doing resource search needs to be resource manager for that resource pool.

These are initial check. If you have already checked this, search in forum, I am sure you will get some additional pointers to resolve the issue.

Regards,

Pramod

0 Kudos

what is the full name of BP?