Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

create customer master

Former Member
0 Kudos

Hi Gurus,

I have a requirement to create customer,i have used the following bapis but cudnt help o create.

but tried all the bapis like :

/SAPNEA/SMAPI_CUSTOMER_CREATE2

/SAPNEA/SMAPI_CUSTOMER_CREATE

BAPI_CUSTOMER_CREATEFROMDATA1

BAPI_CUSTOMER_CREATEFROMDATA

SD_CUSTOMER_MAINTAIN_ALL,

bapi_customer_create,

these are not suitable for my requiement.

i have to pass customer,address,control data,shipping and billing details of xd01.

please help me to sort out this problem.

thanks & regards,

sap8752.

15 REPLIES 15

Former Member
0 Kudos

Hi

Check the standard programs RFBIDE00 & RFBIDEK0. This programs used to update customer master records.

Ragards,

Raghu

0 Kudos

Hi,

You can use RFBIDE00 or

BAPI_BUSINESS_PARTNER_CREATE using this BAPI u can update the address also.

Former Member
0 Kudos

thanku for ur quick reply,

sry these are not helpful to my req, plz suggest me to sortout my problem.

thanks & regards,

sap8752

Former Member
0 Kudos

thanku for ur reply,

i have to pass the values IN XD01, SO THAT IS NOT HELP FUL..

THANKS & REGARDS,

SAP8752

0 Kudos

Hi,

Have u tried this FM

go for this /SAPNEA/SMAPI_CUSTOMER_CREATE

CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'

EXPORTING

pi_personaldata = pi_personaldata

pi_opt_personaldata = pi_opt_personaldata

pi_companydata = pi_companydata

pi_opt_companydata = pi_opt_companydata

pi_consumeren = pi_consumeren

pi_copyreference = pi_copyreference

pi_credit_control_flag = pi_credit_control

IMPORTING

customerno = customer_code

return = return.

IF return IS INITIAL.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = pi_wait_commit.

ELSE.

CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

ENDIF.

For creation of classification data you can use below one

'BAPI_OBJCL_CREATE'.

Former Member
0 Kudos

THANKU Devireddy omkar

that cudnt help me,

error : double creation of company and user address not permitted.

thanku.

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

There is no standard bapi available to create with all data like sales data..You can try a bdc and bapi combination that is the easiest way to achieve this all the fields mapping and create customer master.If you need any help in this please post.

Regards,

Madhu.

Former Member
0 Kudos

Hi madhu,

Can u please provide me with a sample code...

thanks & regards,

sap8752abap.

0 Kudos

Hi,

1) Create your own bdc program first.Now data is ready in your internal table from file

2) Use this fm and collect return messages from bdc log FORMAT_MESSAGE.

3) CONVERT_BDCMSGCOLL_TO_BAPIRET2 will pass this messages ti bapi ret

4) Use import ,export memory concept

5) When you pas the values from the bapi as a import parameters that will come into bdc program and will create customer

6) Once the customer created or any other error messages that will move to bapi return messages

7) Only issue here if you need any extra fields again you have to map that in bdc program and in import parameters in bapi.

Try this if there is any issue post.

Regards,

Madhu.

Former Member
0 Kudos

hi madhu,

In my requirement i should not use bdcbut can use 2-3 bapis,

can u plz suggest me...

thanks & regards,

sap8752abap.

0 Kudos

Hi,

There is a fm but it is not that much useful.Here we are not using bdc directly we are calling that in back ground of this program.As i know there is no option.Are you planning to call this from external system.

Regards,

Madhu.

Former Member
0 Kudos

not from external system, can u plz let me know that fm...

0 Kudos

Hi,

Check with this fm SD_CUSTOMER_MAINTAIN_ALL.

Regards,

Madhu.

Former Member
0 Kudos

Even that bapi is noy useful, i can use 2-3 bapis if necessary can u plz help me...

0 Kudos

Hi,

I think there is no standard on this.My suggestion is better t go with this.

Regards,

Madhu.