cancel
Showing results for 
Search instead for 
Did you mean: 

FM/BAPI to add sales area data to a BP , FM to assign relationship to BP

Former Member
0 Kudos

Friends of CRM world,

I need your help in finding out BAPI or FM to

add sales area data to an existing Business Partner (BP).

Also I need to assign a relationship to this BP.

Please help me with info on BAPIs or Function Modules for this if you can.

Best Regards,

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

former_member927251
Active Contributor
0 Kudos

Hi Vivek,

1. To add sales area data use BAPI_BUPA_FRG0030_ADD.

2. To assign relationship to BP use BAPI_BUPR_RELATIONSHIP_CREATE.

Hope this helps.

<b>Kindly reward points and close the thread.</b>

Regards,

Amit Mishra

Answers (3)

Answers (3)

Former Member
0 Kudos

hi can you explain how did you do ? becos i got same issue to create, delete bp relationship with sales organisation, parterfunction,distribution channel?

Former Member
0 Kudos

Hello Amit & Frederic,

This is indeed very helpful of you. I am checking these

APIs. I will definitely come back and reward points.

Best Regards,

Vivek

Former Member
0 Kudos

Hi Vivek,

You should use separate function modules for each tab in the sales area data. Please find the following code:

  • For shipping data tab of sales area data

CALL FUNCTION 'BAPI_BUPA_FRG0020_ADD'

EXPORTING

businesspartner = g_partner_no

sales_area = wa_sales_data

data = wa_ship_data

TABLES

return = it_return.

  • For billing data tab of Sales area data

CALL FUNCTION 'BAPI_BUPA_FRG0030_ADD'

EXPORTING

businesspartner = g_partner_no

sales_area = wa_sales_data

data = wa_price_data

TABLES

return = it_return.

  • Use function module BAPI_BUPA_FRG0140_ADD - For organization data tab of Sales area data

CALL FUNCTION 'BAPI_BUPA_FRG0140_ADD'

EXPORTING

businesspartner = g_partner_no

sales_area = wa_sales_data

data = wa_org_data

TABLES

return = it_return.

Thanks

Swagatika

Former Member
0 Kudos

Hello Vivek,

Go to SE37 and search for FM BAPI_BUPA, you will get a list of BAPI's regarding BP. For sales data, search maube on BAPI_BUPA_FRG. For relationships, check BAPI_BUPR_RELATIONSHIP_CREATE.

Regards,

Frédéric