cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove Groupware role of an employee using the program in CRM system?

Former Member
0 Kudos

Hello Friends,

I need to create utility program in the CRM System to update Employees in the system and Remove the Business Role of "Groupware Employee" when an Employee Leaves the Organization or is no longer in a Role where they use Sales CRM.

But i am not aware of what are the different steps i should follow to create this utility.

my specific queries are as below:

1) How to find programatically (using the program) whether the Groupware Role has been assigned to an employee or not?

2) If the Groupware Role has been assigned to an Employee then how to find programatically (using the program) whether Employee left the organization

3) Finally how to delete the Groupware Role programatically (using the program) of an employee when the employee left an organization.

Please friends help me out on this.

Accepted Solutions (1)

Accepted Solutions (1)

stephenjohannes
Active Contributor
0 Kudos

1) For a given BUPA - BUT100 contains the roles assigned

3) Try function module BUPA_ROLE_REMOVE

Honestly nobody is going to be able to tell you how to solve problem number two, because we have no clue how your org chart is setup.  Logically your program should grab all BP's with the groupware role then find them in the org chart and see if that position of the employee is in a sales organization. However that's just a guess.

Take care,

Stephen

Former Member
0 Kudos

Hello Stephen,

Thanks for your valuable reply.

However, I have a 1 query here:

How can we find whether the Business Partner is an Employee or not?

Former Member
0 Kudos

Using TCODE - 'BP". Enter the Business partner id and click on "start" button. Double click on the result. You will find  it in "Display in BP role" field you will see as ''Émployee''

Regards

Rahaman

Former Member
0 Kudos

OR in the BUT100 table filter by the ''BP role = BUP003"' and execute.  You will find the list of employees.


Regards

Rahaman

Message was edited by: Joaquin Fornas

Former Member
0 Kudos

Hello Abdul,

Thanks for your reply.

In which database table, we can find whether Employee left the organization?

Is there any table or BAPI or Function Module is there where we can get information whether the employee has left the organization?

Please help me out on this.

I will reward the points for sure.

Former Member
0 Kudos

Aditya,

Are you connected to ECC?

Check this BAPI - "BAPI_EMPLOYEE_GETLIST".

Regards

Rahaman

Former Member
0 Kudos

Hello Abdul,

I have checked in my CRM system.

BAPI - "BAPI_EMPLOYEE_GETLIST" doesn't exist in my system.

Could you please suggest me the alternative function module or table from where the Employee information can be retrieved?

Former Member
0 Kudos

Can  you please check in ECC?

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Aditya,

Is your issue resolved?

Rahaman

Former Member
0 Kudos

Hello Abdul,

Yes my issue got resolved.

Thanks for your prompt help.

Regards,

Aditya

Former Member
0 Kudos

Hi Aditya,

Could you please confirm if the provided solution worked for you ?

Thanks & Regards

Abdul