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: 

need help in BAPI's

Former Member
0 Kudos

Hi Guru's,

could please help me anyone of you..

what are the BAPI's are using for upload the CUSTOMER Master data..from flat file (presentation server (or) desktop) .

once uploaded the data from flat file to KNA1...the uploaded data should be reflect in KNA1..

please provide if any one of you have related program logic that would be helpfull to me..

thanks in advance

thanks&regards

Srinivas

12 REPLIES 12

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

BAPI BAPI_CUSTOMER_CREATEFROMDATA1 should serve your purpuose. You will have to write a program that will do the following:

Uplaod the File from Prenetation server--->Pass the Data to the BAPI Structure> Call the BAPI-->Do a Commit if Sucessful.

See: http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1

Another way is via LSMW and also via BDC.

Regards

Saket Sharma

Former Member
0 Kudos

Hi Guru's,

could please provide any program logic related to this...(custorme master creation using BAPI 'BAPI_CUSTOMER_CREATEFROMDATA1')

that would be helpfull to me...

and also with this BAPI (BAPI_CUSTOMER_CREATEFROMDATA1) for customer master creation..

i am unable to find components for these fileds...

Discription FIELD TABLE

1.customer account group KTOKD RF02D

2.comapny code BUKRS RF02D

3. customer group KDGRP KNVV

4.customer pricing procedure KALKS KNVV

5.delivery priority LPRIO KNVV

6.inco term(part-1) INCO1 KNVV

7.inco term(part-2) INCO2 KNVV

i got these fileds in BAPI : STRUCTURE NAME

CUSTOMER NUMBER BAPIKNA103

SALES ORGANISATION BAPIKNA102

DISTRIBUTIONAL CHANNE BAPIKNA102

DIVISION BAPIKNA102

NAME BAPIKNA106

COUNTRY BAPIKNA106

RECONCILITION A/C BAPIKNA105

TERMS OF PAYMENT BAPIKNA105

SHIPPING CONDITION. BAPIKNA105

please guide me how to approch to create customer master using BAPI with out these fileds...(or) guide me where we can find these fileds...in BAPI.

Note : these fileds are mandatory fileds while creating thru XD01.

thanks in advance

Srinivas....

Edited by: Srinivas2378 on Jun 16, 2008 10:45 AM

Edited by: Srinivas2378 on Jun 16, 2008 10:57 AM

Former Member
0 Kudos

Hi Guru's,

Please confirm me if my question is not clear...

respond ASAP...

thanks in advance

Srinivas.

Former Member
0 Kudos

Hi Guru's...

please confirm me ist weather my approchment is correct or not...

this the BAPI i am using coreect me correct or not...?

BAPI_CUSTOMER_CREATEFROMDATA1

thanks in advance

Srinivas...

0 Kudos

Hi srinu,

i think you want to create customer master creation using bapi . right?. i am providing the information pls chk it out.

use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi

'BAPI_VENDOR_CREATE' to create vendor.

For customer and vendor master data there are also direct input programs you

can use.(RFBIDE00 and RFBIKR00) Check out transaction SXDA (data Transfer

workbench).

see this link

http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_CREATEFROMDATA1

thanks

karthik

Former Member
0 Kudos

using this BAPI (BAPI_CUSTOMER_CREATE) we can create one customer only...

i wanted to upload the n of ustomer deatails using BAPI...

please let me know the BAPI and please provide any program logic realted to this....

please let me know if my question is not clear...

thanks in advance.

srinivas

Former Member
0 Kudos

Hi Guru's...

i am unable to go forward...

can you please help me out in this customer master creation....

what are the fileds i am using while creating in XD01 (account group,name,country)then i am able create and the customer number is autogenerated.

using same field values i am trying to test the BAPI initially but i am unable to execute the BAPI BAPI_CUSTOMER_CREATEFORMDATA1.

in this one draw back is when compare to the XD01 peocess is account group.

account group is mandataory in XD01 process and in BAPI test there i sno field for giving this account group field value.....may be this is one reason....(if it is mandatory where i have to provide in BAPI test..)

and i tried in BAPI test using customer reference ID also....

please guide me....

please let me know if my question is not clear...

Thanks in advance

Srinivas...

Former Member
0 Kudos

please respond on this anyone of you...

thanks in advance....

0 Kudos

Hi,

I don't know the BAPI_CUSTOMER_CREATEFROMDATA1, but maybe it can only get the account group from the customer you have to pass as a reference.

We use the SD_CUSTOMER_MAINTAIN_ALL to create customers and it works just fine for the moment. You can fill the account group in the i_kna1 structure.

Btw, if you don't manage to program the logic around the bapi to process your input file and execute it multiple times, and if the volume of data is not that high... maybe you can use a recording/lsmw as explained in http://www.saptechnical.com/Tutorials/LSMW/Recording/Recording.htm ?

Kind regards,

Nico

Former Member
0 Kudos

Thanks for reply....

using LSMW recorder we can create one customer at one time...

but i wnated to create 'N' number of customers at a time using flat file data in desktop....

please let me know if u have any alternative for resolving above issueee...

Thanks in advance and will give full points...

Srinivas...

0 Kudos

HI Srinivas,

Its correct that you could use LSMW recording to create the customer master, and you could use this LSMW to upload the file containing the n number of customers, thereby ther LSMW creates a BDC session wherein you could run the session in background.

I do not find any problem in this, if that is not please clear us the requirement you have.

Yugandhar