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

Bapi to create customer

Former Member
0 Likes
941

Hi,

Someone Know any bapi to create a customer?

I'm trying BAPI_CUSTOMER_CREATEFROMDATA1, but it doesn't have all fields that I need.

I'm working with 4.6C.

Thanks in advance.

Alexandre Nogueira.

6 REPLIES 6
Read only

hymavathi_oruganti
Active Contributor
0 Likes
748

bapi_customer_create

Read only

Former Member
0 Likes
748

Hi Alex,

maximum information you can create using <b>BAPI_CUSTOMER_CREATEFROMDATA1</b>,but what is the data you are missing,

check these BAPI's..

<b>/SAPNEA/SMAPI_CUSTOMER_CREATE2

/SAPNEA/SMAPI_CUSTOMER_CREATE</b>

those are also BAPI's.

you can have a try with them..

regards

vijay

Read only

0 Likes
748

For example, the first field I notice that is missing is KNA1-KTOKD.

Read only

0 Likes
748

Hi alex,

did you check the BAPI <b>/SAPNEA/SMAPI_CUSTOMER_CREATE2</b>

in that if you look in to line number 398 there is comment , please check it.

*
*-(2) Fill Customer-tables --------------------------------------------*
*
* Fill "KNA1"
*
* Comment: Fields form reference customer or in the consumer case
*          from the reference customer of the consumer
*          Important Fields are account group  (number range = ktokd)
*          and transportation zone (lzone)
*

regards

vijay

Read only

0 Likes
748

I don't have this CREATE2 in 4.6c, only the simple CREATE.

I Found this comment that you set, it's is relevant when you are coping a customer.

I think I will try a call transaction, those bapis have few fields, they don't have fields from KNVV for example, sales organization, etc...

Read only

0 Likes
748

Hi ,

use BAPI_CUSTOMER_GETSALESAREAS bapi to update your sales organization data , this bapi will contain your KNVV structure.

this may solve you problem. use this bapi once you customer created.

feel free to mail on shaik0079@yahoo.com