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 a customer / debtor but cannot find the right BAPI

Former Member
0 Kudos

I have to create a customer / debtor from a Portal which is calling my RFC. So I checked many BAPI's and other function modules, but none of them could create the customer that I need. I also checked SDN and saw may tips, but it did not solve my problem (most BAPI's and function modules create only partial debtors, but I want to enter all the fields that I can enter on-line).

So I decided to it the BDC-way: fill in the fields and values in a table and then cal thel transaction XD01. But even this way I cannot enter all the fields that I need to enter. The strange thing is that a call transaction XD01 shows screens that are different from the screens that are shown when running XD01 on-line.

The fields that I cannot create when doing a call transaction XD01 in my RFC are: email address, mobile phone, comments and po box.

I still would like to find the BAPI that gives me the opportunity to enter ALL debtor fields. I am desperate, because I have tried so many options.

Any good ideas?

THANKS A LOT !

Ger Hemmes

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I am (still) looking for a BAPI that can create a complete new customer. One of the first things this BAPI must do is: allow the specification of the "accounting group" for this new customer. This accounting group is also the first field when I create a customer with XD01. The BAPI's ...CREATEFROMDATA and ---CREATEFROMDATA1 cannot do this.

Anyone a good suggestion?

Thanks very much!

Ger.

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

Did you try these..

BAPI_CUSTOMER_CREATEFROMDATA

BAPI_CUSTOMER_CREATEFROMDATA1

0 Kudos

Ravi, thanks for a quick reply.

Yes, I tried these and they could not solve my problem.

Thanks very much.

Ger.

Former Member
0 Kudos

I am (still) looking for a BAPI that can create a complete new customer. One of the first things this BAPI must do is: allow the specification of the "accounting group" for this new customer. This accounting group is also the first field when I create a customer with XD01. The BAPI's ...CREATEFROMDATA and ---CREATEFROMDATA1 cannot do this.

Anyone a good suggestion?

Thanks very much!

Ger.

0 Kudos

Hello Ger

The BAPI BAPI_CUSTOMER_CREATEFROMDATA1 is the right one. However, it does allow to define only a minor subset of the debitor specific data. The new customer is not created from scratch but copied from a reference customer (I think IMPORTING parameter PI_REFERENCE).

Thus, if you have (e.g.) 5 different accouting groups then you would need 5 different template customers in order to use this BAPI.

Regards,

Uwe

0 Kudos

Uwe,

Thank you. I can see how this must be done. So for 14 account groups for debtors and also 14 for creditors I need to set up 28 MASTER records. OK, this helps me.

Thanks again.

Ger