Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Creating BP using 'BUPA_CREATE_FROM_DATA'

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.

Tags:
replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question