cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to create BusinessPartner in SAP CRM

Former Member
0 Kudos

Hi All,

iam new to SAP CRM and i want to create Businespartner in crm

please tell me through which bapi i have to create businesspatner and what is the mandotary fields of those bapi's....

Thanks in advance...

Accepted Solutions (0)

Answers (4)

Answers (4)

kanthimathikris
Employee
Employee
0 Kudos

Yes u can create BP using the BAPI 'BAPI_BUPA_CREATE_FROM_DATA'.

Just refer the code below,

DATA : PARTNER_CATEGORY TYPE BAPIBUS1006_HEAD-PARTN_CAT,

CENTRALDATA TYPE BAPIBUS1006_CENTRAL,

PERSON_DATA TYPE BAPIBUS1006_CENTRAL_PERSON,

ADDRESS_DATA TYPE BAPIBUS1006_ADDRESS,

TELEFONDATA TYPE TABLE OF BAPIADTEL WITH HEADER LINE,

FAXDATA TYPE TABLE OF BAPIADFAX WITH HEADER LINE,

E_MAILDATA TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,

WA_RETURN TYPE BAPIRET2,

PARTNER_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP,

TITLE_KEY TYPE AD_TITLE.

PARTNER_CATEGORY = '1'. "Person

PARTNER_GRP = '0002'.

CENTRALDATA-SEARCHTERM1 = SEARCHTERM1.

CENTRALDATA-SEARCHTERM2 = SEARCHTERM2.

TRANSLATE TITLE TO UPPER CASE.

IF TITLE = 'MR.'.

TITLE_KEY = '0002'.

ELSEIF TITLE = 'MS.'.

TITLE_KEY = '0001'.

ENDIF.

CENTRALDATA-TITLE_KEY = TITLE_KEY.

PERSON_DATA-FIRSTNAME = FIRSTNAME.

PERSON_DATA-LASTNAME = LASTNAME.

PERSON_DATA-TITLE_ACA1 = TITLE_ACA1.

PERSON_DATA-TITLE_SPPL = TITLE_SPPL.

PERSON_DATA-NAMEFORMAT = NAMEFORMAT.

PERSON_DATA-BIRTHDATE = BIRTHDATE.

PERSON_DATA-CORRESPONDLANGUAGE = CORRESPONDLANGUAGE.

PERSON_DATA-SEX = SEX.

PERSON_DATA-MARITALSTATUS = MARITALSTATUS.

PERSON_DATA-NATIONALITY = NATIONALITY.

ADDRESS_DATA-STANDARDADDRESS = 'X'.

ADDRESS_DATA-HOUSE_NO = HOUSE_NO.

ADDRESS_DATA-STREET = STREET.

ADDRESS_DATA-PO_BOX = PO_BOX.

ADDRESS_DATA-POSTL_COD1 = POSTL_COD1.

ADDRESS_DATA-CITY = CITY.

ADDRESS_DATA-REGION = REGION.

ADDRESS_DATA-COUNTRY = COUNTRY.

ADDRESS_DATA-LANGU = LANGUAGE.

TELEFONDATA-TELEPHONE = TELEPHONE.

APPEND TELEFONDATA.

FAXDATA-FAX = FAX.

APPEND FAXDATA.

E_MAILDATA-E_MAIL = EMAIL.

APPEND E_MAILDATA.

CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'

EXPORTING

BUSINESSPARTNEREXTERN = BP_NO

PARTNERCATEGORY = PARTNER_CATEGORY

PARTNERGROUP = PARTNER_GRP

CENTRALDATA = CENTRALDATA

CENTRALDATAPERSON = PERSON_DATA

ADDRESSDATA = ADDRESS_DATA

IMPORTING

BUSINESSPARTNER = BP

TABLES

TELEFONDATA = TELEFONDATA

FAXDATA = FAXDATA

E_MAILDATA = E_MAILDATA

RETURN = RETURN

.

Former Member
0 Kudos

HI

Business Partner Creation



Use


This function allows you to create business partners after the address data is mapped successfully to SAP standard structures.

· You can create business partners for the successfully mapped records only if the records do not contain any postal errors or are not marked as duplicates.

· If you create business partners for a rented address list, then they are flagged as Rented in the business partner master data. This flag is deleted once the business partner is acquired successfully. For more information, see Customizing for Customer Relationship Management (CRM) by choosing Marketing External List Management Actions in External List Management.

Prerequisites

·
To create business partners under the roles Business Partner General or Consumer:

You have made settings in Customizing for Customer Relationship Management (CRM) by choosing Enterprise Marketing -> External List Management -> Define List Origin. If the Consumer role is selected, business partners are created under the role Consumer. Otherwise, they are created under the role Business Partner General.

· To create business partners in other roles:

You have implemented the Business Add-In Define Execution of Steps and inserted the code to create business partners in other roles under the method CREATE_BUSINESS_PARTNERS. For more information, see Customizing for CRM by choosing Enterprise Marketing ® External List Management ® Business Add-Ins (BAdIs) ® Define Execution of Steps.

· You have executed the Upload Address List and Map Data steps, or selected the steps for execution.

http://help.sap.com/saphelp_crm40/helpdata/en/8b/0c7d4dc8dcd847abf1dd5b314e2703/content.htm

http://help.sap.com/saphelp_crm40/helpdata/en/77/4a213cc534f20ae10000000a11402f/content.htm

Reward if usefull

Former Member
0 Kudos

Dear Suma,

Why do you need BAPI for creating Business Partner. You can do that by using standard transaction "BP"..you can create the business partner of type "Person", "Group" or organization.

You need to do some of the following configurations (as applicable) for the Business Partner:

Number Range:

Define Number ranges

Assign Standard Number Range to Groupings

Middleware Setting for Transferring BP from CRM to R/3

Setup the Function Modules in the table CRMC_BUT_CALL_FU through transaction SM30 transaction in CRM

Setup the Function Modules in the table COM_BUPA_CALL_FU through the transaction SM30 transaction in R/3

Set up of Custom Roles and Relationships

Define the BP view

Create BP Roles

Creation of Role Categories

Creation of Relationships

Configure Field Attributes for Each BP Relationship Category

Creation of Partner Functions

Creation of Access Sequence

Maintain Title

Define Salutation

Define Partner Determination Procedure

Assign Partner Determination procedure to Transaction Type

Assign procedure to item categories

Define cutomer price group (Customer Credit Tier)

Define Customer Group

Business Agreement

FI CA Activation in CRM

Define No. Range for Business Agreement

Define Business Agreement Class

Thanks,

Atin

<b><b>Reward points if it helps.</b></b>

Former Member
0 Kudos

Thank you Shee,

I already created businesspatner using standard "BP".

but now i want to create bp using BAPI.

i found one bapi like BAPI_BUPA_CREATE_FROM_DATA.

but i doubt this is or not if it is ok please tell me mandotary fields

for this bapi.

or any other bapi is there plaese tell me......

Thank you..

Sumalatha

Former Member
0 Kudos

Dear Sumalatha,

I am a CRM functional consultant so will not be able to help you much on this but why do you want to use the BAPI for this? I wanted to know the scenario. Are you uploading any Legacy customer data, you can do that through LSMW.

<b>BAPI_BUPA_CREATE_FROM_DATA BAPI for business partner creation as Organization, Person or Group in general role. Same BAPI can be used to create Contact Person for the Business Partner</b>

BAPI_BUPA_FRG0130_CREATE Bapi to create Business Agreement for a customer

BAPI_BUPA_ADDRESS_ADD Add invoice address for business partner. Pass the address type as 'rechnung' to add invoice address

BAPI_BUPA_BANKDETAIL_ADD Add bank details for the business partner

BAPI_BUPR_RELATIONSHIP_CREATE Function module to establish the Business Partner and Contact Person

Relationship. Pass the Relationship Category as ‘BUR001’

BAPI_BUPA_ROLE_ADD Add Role to Business Partner for e.g. Sold to Party ‘CRM001’, Contact Person ‘BUP001’

BAPI_BUPA_TAX_ADD BAPI Add Tax Number for the existing Business Partner

BAPI_BUPA_FRG0040_CREATE Create Classification Data for a Business Partner

BAPI_BUPA_FRG0130_CREATE Create Business Agreement

I belive you can see which filed are manadatory and which are optional looking inside the BAPI.

Thanks,

Atin

<b><b>Reward points if it helps.</b></b>

Former Member
0 Kudos

Thank you Atin,

I created business partner using BAPI_BUPA_CREATE_FROM_DATA bapi

but one thing can u tell me partner categories in brief....

Thank you

Sumalatha k.

Former Member
0 Kudos

Dear Sumalatha,

You are most welcome.

The Business partner Category classifies a business partner.

A differentiation is made between the following business partner categories:

Organization

Natural person

Group of natural persons or organizations

You can create the BP of any of the above categories and in configuration setting you can maintain different settings for different categories. As for example say the salutation field if it's a person in the drop down list it should come like "Dear Ms" or "Dear Mr.", if you are creating a BP of category group in the drop down list it should come like "Dear Family" or "Dear Mr. and Mrs.", if it is a Organization it should come like "Company". In the Title field also the values will be coming in the drop down list as per category.

Pls let me know if that answers your query/please let me know if you want to see the configuration path/screen print of those.

Thanks,

Atin

Former Member
0 Kudos

Thank you Atin,

When iam creating businesspartner i entered information in "centraldataperson"

like firstname and seconname and maritalstatus and all...

when iam trying to execute this bapi it is asking catagory 1 (its fine created BP).

but i want enter the address to that bapi or other information

it is return error "BP category 1 does not fit the data in category 2"

i changed category 1 into 2.... but again its return error like

"BP category 2 does not fit the data in category 1".

Till now i created business partner with centraldataperson information only...

i confused about there category numbers please let me know about these category information Briefly ......

Former Member
0 Kudos

Dear Sumalatha,

You are most welcome. Sorry for late reply as somehow I didn't get notification after you updated the thread. As I mentioned I am a functional consultant so will not be able to help you much on this but would like to see the code. If possible pls send me at atin_shee@yahoo.com and confirm me.

For person category should be 1 only and for Organization it's 2. It should be like:

CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'

EXPORTING

<b>PARTNERCATEGORY = '1'</b>

CENTRALDATA = CENTRALDATA

<b>CENTRALDATAPERSON = PERSON</b>

ADDRESSDATA = ADDRESS

IMPORTING

BUSINESSPARTNER = BUSINESSPARTNER

TABLES

RETURN = BAPIRETURN.

Thanks,

Atin

Former Member
0 Kudos

Hi

use the Tcode BPC1 to create business partner

Regards

Anji

Former Member
0 Kudos

Thank you AnjiReddy,

But i did not find tcode like BPC1.

if iam trying to give this Tcode it is saying

transaction codeBPC1 does not exist..

please if u know another process to create businesspartner

let me know .

Thank you...

Sumalatha