CRM and CX Blogs by Members
Find insights on SAP customer relationship management and customer experience products in blog posts from community members. Post your own perspective today!
cancel
Showing results for 
Search instead for 
Did you mean: 

The Function Module CRM_ERMS_FIND_BP_FOR_USER is used for this purpose.

Sample Code:

DATA:l_partner TYPE bu_partner.

**** Get Current User's Business Partner No.

  CALL FUNCTION 'CRM_ERMS_FIND_BP_FOR_USER'

    EXPORTING

      IV_USER_ID       = sy-uname

      IMPORTING

        EV_BUPA_NO       = l_partner.

The field l_partner contains a 10 digit Business Partner Number.