on 04-03-2014 11:24 AM
Hi,
I want to fetch the email address of buy on behalf user. I have only shopping cart number as input field.
based on that I am calling FM 'BBP_PD_SC_GETDETAIL' to get the Partner details with function group 16.
but the person number and address number in E_PARTNER table are different from what maintained in ADR6 table.
Kindly suggest how to fetch the email address of Buy on behalf user of shopping cart.
Thanks
Nishant Jain
Hi Nishant Jain,
you can try following.
You'll need to get the user name or partner guid, and then.
CL_BBP_ES_ENTERPRISE=>GET_EMPLOYEE_BY_USERNAME( UNAME )->IF_BBP_ES_PERSON~GET_PERSONAL_ADDRESS()
or
CL_BBP_ES_ENTERPRISE=>GET_EMPLOYEE_BY_GUID( GUID )->IF_BBP_ES_PERSON~GET_PERSONAL_ADDRESS()
SRM does not use addresses from SU01, but addresses of business partner of the user.
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Konstantin
I am using below method to get the User name and then follow the normal approach (usr21, adr6) to get the email address.
CL_BBP_ES_ENTERPRISE=>GET_EMPLOYEE_BY_GUID( GUID )->IF_BBP_ES_PERSON~GET_USER_NAME()
and for GUID, I am using Partner Number.
Just confused as I am new to SRM. As the method says "Get employee by guid" , so it means all the Buy on Behalf users are registered as employee ? just want to know if there is any exception.
Thanks
Nishant
Hi Nishant,
As soon as you integrate user in PPOMA_BBP, user get following assignments.
US is a SU01 user. Authorization and roles.
BP is a business partner of the user. In shopping cart BP is used for requester and goods recipient roles.
CP is a Central Person - it's a HR representation of the user.
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.