cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a Function module or a BAPI available to get the Buisness partner

Former Member
0 Kudos

Is there a Function module or a BAPI available to get the Buisness partner for an employee or vice versa. ?

thanks

amit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amit,

You may use FM BP_CENTRALPERSON_GET.

Regards,

Vivek

Former Member
0 Kudos

i am not referring to central person. It is a business partner, which is used in c-projects.

My requirement is, that if the employee gets separated or becomes inactive, i want to deactivate or block its corresponding BP.

Former Member
0 Kudos

This FM can be used for cProjects BPs to find their corresponding PERNRs and vice versa.

If you'd like to mark the BP as inactive, there is a flag called 'Central Block' within BP data. This flag gets envoked if the exit action of the employee is run and is marked as inactive. HR integration is a pre-requisite for this feature. Else, you can block the BP manually as well.

Regards,

Vivek

Former Member
0 Kudos

How the block indicator is set automatically , when the employee in HR is set as inactive or withdrawn. Is there any program ?

OR we have to develop it ???

I executed the FM, but i am not getting the BP

what values to be given below :

Let's say, employee no is 75, BP created is EM00075. How to get the link ?

Import parameters Value

IV_PERSON_ID 00000000

IV_BU_PARTNER_GUID 00000000000000000000000

IV_EMPLOYEE_ID 00000000

IV_USERNAME

Former Member
0 Kudos

Input the Business Partner GUID in IV_BU_PARTNER_GUID

You'll get the GUID from BUT000.

Former Member
0 Kudos

Hi

This is std functionalilty

Which version you are in

The Solution:

check in table HRP1001 for relation A209
Im sure there is no relation between Person and CP
If it not there, the deactivation or Block will not be set

Create a new Hiring and then replicate to BP then check the link in table maintained.

If so, run separation and then check BP

BP exists but will not be there in search result

If you want to to know BP from Person use 
funtion module: BUP_PERNR_TO_PARTNER_CONVERT

If you want to to know Person from BP use 
funtion module: BUP_PARTNER_TO_PERNR_CONVERT

Niranjan

Let me know if it works

Edited by: Niranjan Dandekar on Aug 18, 2009 10:12 AM

Former Member
0 Kudos

Is there a Function module or BAPI, which gives the below result.

From Table : HRP1001

OTYPE : P

OBJID : 9329 ( Employee Number : PERNR)

SCLAS : CP

You will get the CP for PERNR as SOBID: 11536

Now again got the Table : HRP1001

OTYPE : CP

OBJID : 11536 ( Central Person Number obtained from Precious step)

SCLAS : BP

YOu will get the BP for CP as SOBID: EM00009329