on 09-08-2008 7:20 AM
Hi Experts,
Can somebody tell me what all are the mandatory fields to create a BP using the Function Module 'BUPA_CREATE_FROM_DATA' in CRM?
Also, I have the following data for the BP to be created:
First Name
Last Name
House Number
Street
City
Zip Code
Country
Telephone
Fax
Email.
Where in the input parameters can these be entered?
Any pointers/help is appreciated. TIA.
Regards,
Kris.
hi Kris
plz chk this code it will create a BP .
data :IS_DATA_PERSON type BAPIBUS1006_CENTRAL_PERSON,
IS_ADDRESS type BAPIBUS1006_ADDRESS,
is_data like BAPIBUS1006_CENTRAL,
IT_ADTEL type table of BAPIADTEL,
IT_ADFAX LIKE BAPIADFAX,
EV_PARTNER type bu_partner,
IT_ADSMTP LIKE BAPIADSMTP.
IS_DATA_PERSON-firstname = 'first'.
IS_DATA_PERSON-lastname = 'last'.
IS_ADDRESS-HOUSE_NO ='123'.
IS_ADDRESS-STREET = 'street'.
IS_ADDRESS-CITY = 'CITY'.
IS_ADDRESS-CITY = 'CITY'.
IS_ADDRESS-POSTL_COD1 ='zipcode'.
IS_ADDRESS-COUNTRY = 'country'.
IT_ADTEL-TELEPHONE = '123456'.
append it_adtel.
IT_ADFAX-FAX = '1234'.
append IT_ADFAX.
IT_ADSMTP-E_MAIL = 'Email-id'.
append IT_ADSMTP.
is_data-PARTNERTYPE = 'CRM000'.
CALL FUNCTION 'BUPA_CREATE_FROM_DATA'
EXPORTING
IV_CATEGORY = '1'
IS_DATA = is_data
IS_DATA_PERSON = IS_DATA_PERSON
IS_ADDRESS = IS_ADDRESS
IMPORTING
EV_PARTNER = ev_partner
TABLES
IT_ADTEL = IT_ADTEL
IT_ADFAX = IT_ADFAX
IT_ADSMTP = IT_ADSMTP
.
If u face any problem then plz tell me.
Cheers,
Hemlata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kris,
this is what you need ( YOU WILL NEED TO CHANGE SOME DATA FOR WHAT YOU NEED ) :
DACLARATION :
DATA : lv_category TYPE bu_type VALUE '1',
ls_centraldata TYPE bapibus1006_central,
lv_partner TYPE bu_partner,
ls_central_person TYPE bapibus1006_central_person,
lv_group TYPE bu_group VALUE '0001',
ls_tel TYPE bapiadtel,
lt_tel TYPE TABLE OF bapiadtel,
lt_return TYPE bapiret2 OCCURS 0,
ls_return TYPE bapiret2 ,
ls_address TYPE bapibus1006_address,
lt_051 TYPE bus051___i OCCURS 0,
ls_051 LIKE LINE OF lt_051,
ls_0512 LIKE LINE OF lt_051,
ls_bp_cperson LIKE LINE OF bp_cperson.
BP name :
ls_central_person-firstname.
ls_central_person-lastname
BP language :
ls_central_person-correspondlanguage
ls_central_person-namcountry
ls_centraldata-partnerlanguage
BP PHONE DATA :
ls_tel-country = 'IL'.
ls_tel-countryiso = 'IL'.
CONCATENATE '+972' ls_bp_cperson-tel_number2 INTO ls_tel-tel_no.
ls_tel-consnumber = '002'.
ls_tel-std_no = space.
ls_tel-telephone = ls_bp_cperson-tel_number2.
ls_tel-r_3_user = '3'.
ls_tel-home_flag = space.
INSERT ls_tel INTO TABLE lt_tel.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
partnercategory = lv_category
partnergroup = lv_group
centraldata = ls_centraldata
centraldataperson = ls_central_person
addressdata = ls_address
IMPORTING
businesspartner = lv_partner
TABLES
telefondata = lt_tel
return = gt_return.
HOPE THIS WILL HELP
LILACH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Kris,
I think the following answer would help you in someway.
The following are some of the predefined tables in CRM for maintaining some basic information related to a customer.
These are some important tables in CRM :
-BUT000 : BP: General data - Contains Business Partner Number, Partner Category, Partner Type, First Name, Last Name etc.
- BUT020 BP: Addresses
- BUT050 BP relationships/role definitions: General data - Contains Relationship, Partner Number (PARTNER1), Relationship Category
- BUT051 BP Relationship: Contact Person Relationship Similar to
- BUT050 additionally contains Contact Person's Address data
- BUT0BK Business Partner: Bank Data & Details BP Number, Bank Key, Bank Country Key, Bank Account Number
- BNKA Bank Master Data
- BUT100 BP: Roles
- ADR2 Telephone Numbers (Business Address Services)
- ADR6 SMTP Numbers (Business Address Services) - Contains Email u2013 Id of the BP.
- ADRC Addresses (Business Address Services) - BP's Complete Address Details- City, Country, Post Code, District,Street, Title No Etc
Regards,
SHARMILA BRINDHA.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.