12-18-2007 8:54 PM
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
01-09-2008 3:35 PM
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.
12-18-2007 8:58 PM
Did you try these..
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
12-18-2007 9:27 PM
Ravi, thanks for a quick reply.
Yes, I tried these and they could not solve my problem.
Thanks very much.
Ger.
01-09-2008 3:35 PM
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.
01-09-2008 9:02 PM
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
01-14-2008 10:57 AM
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