on 11-21-2007 12:17 PM
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...
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
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Business Partner Creation
Use
Prerequisites
·Reward if usefull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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>
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
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 ......
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
Hi
use the Tcode BPC1 to create business partner
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.