Skip to Content
author's profile photo Former Member
Former Member

need help in BAPI's

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2008 at 03:23 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2008 at 04:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 03:39 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:25 PM

    Hi Guru's,

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

    respond ASAP...

    thanks in advance

    Srinivas.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 03:47 AM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 05:17 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 04:23 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 07:46 PM

    please respond on this anyone of you...

    thanks in advance....

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:02 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.