Skip to Content
author's profile photo Former Member
Former Member

CRM2007:Change a Business Partner Role or Create a BP with a different role

Hi - we have created a new role ZADDR and I need to programmatically create about 90,000 BP's from a flat file which I have imported into a Z table.

I have used BAPI_BPCONSUMER_CREATE to create the BP's no problem but they are then in the role CRM006.

I have tried to change the role using BUPA_ROLE_CHANGE but keep getting the message 'NO changes were made'

 
call function 'BUPA_ROLE_CHANGE' 
       exporting 
         iv_partner                   = lv_bpid 
         iv_partnerrole               = 'ZADDR' 
         iv_x_save                    = 'X' 
       tables 
         et_return                    = lt_return 

Can anyone tell me either how I can change the role or create BPs with the role of ZADDR instead of CRM006?

Many thanks - Nigel

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2009 at 02:09 PM
    • Now we need to set the role

    call function 'BUPA_ROLE_ADD_2'

    exporting

    iv_partner = lv_bpid

    iv_partnerrole = 'ZADDR'

    tables

    et_return = lt_return.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.