cancel
Showing results for 
Search instead for 
Did you mean: 

BP/Account - Employee Responsible

Former Member
0 Kudos

Hi,

I have created a BP/Account using the following BAPI

BAPI_BUPA_CREATE_FROM_DATA

Now the requirement is to assign a default employee responsible to it. I have used this bapi for this;

BAPI_BUPR_RESP_EMPLO_CREATE

Now my problem is - I cannot see employee responsible updated in WEB UI, but when I go to transaction BP and try to look newly created BP - the employee responsible is updated here in relationships.

Any idea why it's not coming in WEB UI. Do i need to use some other FM?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can try using the Function Module 'BUPR_RELATIONSHIP_CREATE'.

CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'

EXPORTING

iv_partner_1 = partner1

iv_partner_2 = partner2

iv_relationship = rel_type

TABLES

et_return = lt_return.

Kassindro

Former Member
0 Kudos

I tried using this FM BUPR_RELATIONSHIP_CREATE also, but no difference. It does not populate the EMPLOYEE RESPONSIBLE field in Web UI. It's working fine when I use BP transaction to look at BP.

Could you please suggest any other way to achieve this?

Thanks,

robert_kunstelj
Active Contributor
0 Kudos

Use this coding...

CALL FUNCTION 'BAPI_BUPR_RELATIONSHIP_CREATE'

EXPORTING

businesspartner1 = bp_no

businesspartner2 = bp_salesman_no

relationshipcategory = 'BUR011'

xdfrel = 'X'

TABLES

return = lt_return.

Former Member
0 Kudos

Thanks, I already solved it. The problem was - I was not passing xdfrel = 'X'

I am going to close the thread.