Skip to Content
Author's profile photo Deepak Ramchandran

Function Module to find Business Partner Number based on the Current Logon User.

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.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.