Application Development and Automation 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: 
Read only

Create Customer whit u0093BAPI_CUSTOMER_CREATEFROMDATA1u0094

Former Member
0 Likes
846

HI

I'm trying to create a new customer using the bapi “BAPI_CUSTOMER_CREATEFROMDATA1”

The bapi creates the customer, it does not display errors and it returns the value CUSTUMERNO relative to the new customer.

But when I try to display the customer using the standard transaction DX03 the system goes in dump.

If I create a customer with the standard transaction dx01, it would have to create two record (one in the table Adrc and another one in the table kna1).

But the bapi creates only one recond in the table kna1.

Perhaps this is the reason of the dump.

How I can resolve this problem? Why the bapi does not insert the record in table ADRC?

Thanks.

Giorgio

5 REPLIES 5
Read only

Former Member
0 Likes
781

hi,

Check this out

Hope this helps

Regards,

Santosh

Read only

Former Member
0 Likes
781

Hi Giorgio,

Did you use the bapi_transaction_commit fm?

ARe you sure if you have a record created in kna1 and no record in adrc?

Go to kna1 record and see id the adrnr is filled or not.

Go to adrc table and see if a record exists or not.

Regards,

Ravi

Read only

Former Member
0 Likes
781

hi,

i am tryig to post data to this bapi but getting a error as:

832 invalid tax jurisdiction code.

can somebody give some sample sets of data for which one is able to create a new customer...it's urgent

thanks and regards,

sachidanand.

Read only

uwe_schieferstein
Active Contributor
0 Likes
781

Hello Giorgio

Can you display (XD02) your newly created debitors? If so, then have a look ad the address tabstrip if everything looks like at the interface of the BAPI.

I am currently using this BAPI, too, and everything is working fine.

Regards

Uwe

Read only

Former Member
0 Likes
781

Hi,

u r saying that the BAPI returning the Customer no relative to the customer.

if u r using recording, the transaction is called and at the end automatically internal commit is called in that SAP LUW. but in case of bapi the scenario is different.

If the BAPI has returned all message types 'I' or 'S', then we shuld explicitly commit the process.

you have to read the return message. i mean if ur BAPI has not returned any messages 'E' 'W' 'A' you can commit that process using BAPI_TRANSACTION_COMMIT and pass wait = 'x'.

then only it updates in the relavent tables or screens.