cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Business Partner to User

MichaelGreulich
Explorer
0 Kudos

Hello,

I'm setting up a service desk. My problem is, that I have a lot of business partner and user with the same name. I want to assign the existing users with the existing business partner.

The only way I found is to create a new business partner for each existing user in the solution_manager transaction. But I need to assign an existing business partner to my existing user. Thanks for your help and have a merry xmas.

Answers will be rewarded with points

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. Use transaction code DSWP or solution_manager.

2. Click on any existing solution

3. Click on Edit-->Create Business Partner

4. Click on Add icon

5. Select system for whose users you would like to create BP

6. Sometimes you may not find all the users

7. Then adjust date selection to view all users created that date onwards

8. Select all users by pressing shift+down arrow

9.Then press on block selection

10. Then you will find all selected users are got selected in right side under selected users list

11. Now click on Create button

12. Now system automatically creates BP for respective users with roles of Employee, Business Partner(Gen) and Financial Services BP

13. You can find respective BP, Employee role , In identification tab User ID is automatically assigned.

The above is the procedure to create BP and automatically assign respective user id in mass creation mode.

Regards

Srinivasa Rao Sanapathi

India

0 Kudos

HI Srinivasa,

Thanks a lot your solution was really very efficient for mass creation of BP.

Answers (3)

Answers (3)

Former Member

All these are really nice but I recently had to automatically create bussness partner for users created the same day, so I ended up using a standart FM that uses the BAPI but makes the life a lot easier when supplying the data. I had a UNAME of the user so this is what I used:


TYPES: BEGIN OF ltype_gen,

          fieldname(30)   TYPE c,

          counter         TYPE i,

          fieldvalue(132) TYPE c,

        END OF ltype_gen.

DATA: lt_gen_tab         TYPE STANDARD TABLE OF ltype_gen.

     SELECT BNAME FROM USR02 INTO ls_gen_tab-fieldvalue

      WHERE ERDAT EQ sy-datum.

      IF SY-SUBRC = 0.

        ls_gen_tab-fieldname  = 'UNAME'.

        APPEND ls_gen_tab TO lt_gen_tab.

      ENDIF.

      EXIT.

    ENDSELECT.

*---FILL user DETAILS ---*

    CALL FUNCTION '/SDF/SOLMAN_GET_USER_DETAIL'

*    DESTINATION lf_rfcdest

      TABLES

        pt_gen_tab = lt_gen_tab

        return     = lt_return.

      

      

*--- CREATE THE BP---*

    CALL FUNCTION 'CRM_DNO_MAINTAIN_BUPA_FROM_USR'

* EXPORTING

*   IV_COMMIT       = TRUE

      TABLES

        TI_DATA         = lt_gen_tab

        TE_RETURN       = lt_return

So the magic FM is CRM_DNO_MAINTAIN_BUPA_FROM_USR (maintain business partner from user).

I tried to simplify the example code here so read it before running it

I got this by debugging tcode BP_gen.

And do not forget the authority checks:


  AUTHORITY-CHECK OBJECT 'B_BUPA_RLT'

      ID 'ACTVT' FIELD '03'

      ID 'RLTYP' DUMMY.

  AUTHORITY-CHECK OBJECT 'B_BUPA_GRP'

      ID 'ACTVT' FIELD '03'.

Former Member
0 Kudos

Hi,

Please find the below steps I think it may help you ;

a. Go to transaction BP (Business Partner). From the menu, choose Business Partner -> Create -> Person or edit an existing Business Partner of type person.

b. Choose the role Employee.

c. Choose the Address tab and enter the address data for the message processor, see details below:

d. Choose the Identification tab and go to the Employee data section:

e. Enter the user ID of the message processor in the User field. The message processor has to have a user in the SAP Solution Manager system.

f. Click the save icon ( ).If an error message is displayed from the program CRM_MKTBP_ZCAL_UPDATE_30, see SAP Note 450640.

g. To create additional users, repeat the steps from a through f.

Regards

Sreedhar Reddy

Former Member
0 Kudos

Solution to this is

Create a BP of external employee type (or with Userid of users)and in the employee identification.....

enter the Userid

so the user id wil the name of their resp BP instead of no.s

Pls assign pts.

MichaelGreulich
Explorer
0 Kudos

Thanks for the answer.

Under BUP003 employee I added the Username and now it is working

Do you have an idea how I can assign the username to the business partner automaticly? I have a great number ob users...