cancel
Showing results for 
Search instead for 
Did you mean: 

Get BUPA GUID or Business Partner # based on the SAP user ID

former_member202077
Participant
0 Kudos

Hello

I want to get either Business Partner # or BUPA GUID based on the SAP user ID.

I mean, i will pass SAP user ID and i want to have either BUPA GUID or Business partner number (which is a exporting param in FM BUPA_NUMBERS_GET)

I tried in SE37 and SE24 by putting *BUPA* wild card search, but no use

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try using FM  HRWPC_AP_GET_EMPLOYEE_FOR_USER to get the pernr and pass the pernr in BUT000 table to get BP number.

Hope it helps.

Thanks,

Runjhun

former_member202077
Participant
0 Kudos

Thank you, but in our case table M_PREMU is not maintaining (the said FM is pulling the data from the table M_PREMU)

Any other ides pls.

Thank you

Answers (3)

Answers (3)

former_member228830
Discoverer
0 Kudos

Hi,

The relationship of BP(Employee) to Username is as follows:

Tcode: SE16 , In Table HRP1000

Field OTYPE = CP

Field UNAME = Provide Employee username (Should be maintained in Tcode BP, Role= Employee in tab identification)

You'll get OBJID.

Use the OBJID from above in table HRP1001.

OTYPE = CP

OBJID = OBJID (from HRP1000)

RELAT = 207

You'll get the BP number in field SOBID.

I hope this helps.

(Note: We have HR integration with CRM)

use FM BP_CENTRALPERSON_GET to get BP from USERName and vice versa.

Regards

Mike

former_member201206
Active Contributor
0 Kudos

Hi

should be following one, which is used to build up the my_task dashboard in PPM ( start from user-id, get the bupa_guid and find involved tasks).

   * get business partner GUID for user id
      call function 'BP_CENTRALPERSON_GET'
        exporting
          iv_username         = iv_user_id
        importing
          ev_bu_partner_guid  = lv_bupa_guid
        exceptions
          no_central_person   = 1
          no_business_partner = 2
          no_id               = 3
          others              = 4.

Kind regards,

Zhenbo

Former Member
0 Kudos

Try these FM to get the pernr

RP_GET_PERNR_FROM_USERID

HR_GETEMPLOYEEDATA_FROMUSER

HR_GET_EMPLOYEES_FROM_USER

not sure..it this helps

Thanks,

Runjhun

former_member202077
Participant
0 Kudos

Thank you, but the said FMs are not helpful in my case bcz the underlying tables are not populated at all hence am getting return error message as 'Does not exists'

Actually am working in PLM PPM modules

Any help pls.?

Thank you

Former Member
0 Kudos

If these FM's are not returning any value...you can pull this information directly from Infotype 0105 (table pa0105). You should be able to get the pernr by passing UName.

Thanks,

Runjhun