cancel
Showing results for 
Search instead for 
Did you mean: 

deriving business partner / customer number form portal ID

Former Member
0 Kudos

Hi all,

Could anyone offer some advice to a struggling graduate who, for his first assignment, has been thorwn in the CRM deep-end...

I'm developing a 'credit report' portal component which allows business partners to view their credit information for a given date range via a portal. The intention is to emmulate transaction FBL5 on R/3.

The best solution i could come up with invoves essentially calling function module 'BAPI_AR_ACC_GETSTATEMENT' (which compiles the line item info for the statement) on R/3 via a function mudule in CRM.

Theoretically, this setup should work, however it requires a customer number / business partner number in order to invoke the Funcion Module on R/3; which is fair enough... however, the only user information available in the portal (from what i know) is the users login ID.

Is there a standard means of deriving the customer number/business partner number using the portal login ID in either the Portal or CRM?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marisa,

Thanks for your response. The 'BP_CENTRALPERSON_GET' FM could prove useful... Taking this a step furthur, is it possible to retrieve the customer number for a given EV_BU_PARTNER_GUID? (the R/3 kunnr equivilent - 10 character customer identifier)

i.e. For IV_USERNAME say 145736711D1, FM 'BP_CENTRALPERSON_GET' returnes 42CAFC7DB0DE00C7000000000A8C8248 as the EV_BU_PARTNER_GUID value. Unfortunatley this doesnt resemble the customer number (0000000682) im looking for.

Sergio

Former Member
0 Kudos

Hi,

With FM BAPI_BUPA_GET_NUMBERS you can get the numbers.

the number can be the same as in R/3 (kunnr)

depends how you set in chapter <b>Defining Number Assignment Strategy for Business Partners</b>

in file http://help.sap.com/bp_crmv340/BBLibrary/Documentation/B09_BB_ConfigGuide_EN_US.doc

Former Member
0 Kudos

Hi

Or maybe call CRM_BUPA_MAP_BP_TO_CUSTOMER - for the BP GUID it will return R/3 customer and account group.

Cheers

Dom

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sergio,

Try using FM 'BP_CENTRALPERSON_GET', with import parameter IV_USERNAME = the name of user. Then you have in EV_BU_PARTNER_GUID the guid of BP.

Regards,

Marisa