on 06-13-2011 11:36 AM
Hi experts.
I need to assign via abap a resource to a task.
The scenario is the following:
I have a RoleA with 4 resources staffed (Resource1, Resource2, Resource3, Resource4) and 2 tasks assigned (Task1, Task2).
I need to assign for example Resource1 to Task1 via abap knowing:
- Task1 guid
- RoleA guid
- Resource1 business partner guid.
How is it possible?
Is there a function module or a method to do this?
Thanks,
Luca
Solved on my own with function
RPLM_PSS_UPDATE_BL_EL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Luca;
Take a look to this MF:
You have the BAPI --> BAPI_BUS2175_ROLE_ASSIGN_ADD to assign a Role to a Task or BAPI_BUS2177_TASK_ASSIGN_ADD to assign from Project Role to a Task GUID.
The BAPI --> BAPI_BUS2177_CANDIDATE_ADD you can assign candidates to a Role.
To create staffing into the project, you have the BAPI --> BAPI_BUS2177_STAFFING_ADD.
I assign to all the task's the Roles and Resources with the Upload Excel File --> DPR_DX_PROJECT.
Hope this help you.
Best regards.
Mariano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mariano, I know.
My scenario is:
A role with tasks and resources assigned...
I need to assign a resorce of the role with a task of the role knowing all guid of objects...
The operation that we have pushing the button 'Assign Resource' in TASKS tab of a role after the selection of a task from table Tasks Assigned to Selected Project Role (task assigned to the role previously) and a resource from table Resources (resource assigned to the role previously)...
Luca;
I'm thinking that we are talking about the same.
Are you talking about this screen --> http://www.imagehosting.com/photo/resource-tab-from-project?context=user ?
Best regards,
Mariano
Exactly...My scenario is exactly the same.
I need to do via abap in your screenshot:
- select row of task Eleboracion Definicion de la necessidad
- select row of resource N.N.1
- push the button 'Asignación de recursos'
After this the resource N.N.1 will be assigned to task Eleboracion Definicion de la necessidad...
I need to do this via abap...
Luca;
I never used this functionality.
This "Resource" tab strip that you mentioned used the Object BUS2177.
I found this BAPI's:
BAPI_BUS2177_CREATE
BAPI_BUS2177_CANDIDATE_ADD
BAPI_BUS2177_STAFFING_ADD (this BAPI may helpyou)
Explore with this, I think that you are closer to solve this thread.
Hope this help you.
Best regards,
Mariano.
PD: Points will be apreciated.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.