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

to load customer master using bapi

HI GUYS ,

DOES ANYONE HAVE A SAMPLE CODE TO LOAD THE CUSTOER MASTER DATA USING BAPIS.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 07:40 AM

    Hi Nishanth,

    TO LOAD THE CUSTOER MASTER DATA USING BAPIS.

    In case you wish to read the customer data you can use the following BAPI, it retrieves the Customer Master (Company Code) Data and the General Data in Customer Master.

    CUSTOMER_READ

    You need to pass the Customer Number and the Company Code. See the example given below.

    REPORT ZEX_CUSTOMERREAD .

    Parameters: p_bukrs like KNB1-BUKRS,

    p_kunnr like KNA1-KUNNR.

    Data: ty_kna1 type kna1,

    ty_knb1 type knb1.

    Data: int_kna1 like ty_kna1,

    int_knb1 like ty_knb1.

    CALL FUNCTION 'CUSTOMER_READ'

    EXPORTING

    I_BUKRS = p_bukrs

    I_KUNNR = p_kunnr

    IMPORTING

    E_KNA1 = int_Kna1

    E_KNB1 = int_knb1

    EXCEPTIONS

    NOT_FOUND = 1

    OTHERS = 2

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    thanks

    karthik

    Add a comment
    10|10000 characters needed characters exceeded

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

  • Posted on Jul 23, 2008 at 07:47 AM

    nishant,

    just use either:

    BAPI_CUSTOMER_CREATE
    BAPI_CUSTOMER_CREATEFROMDATA
    BAPI_CUSTOMER_CREATEFROMDATA1

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 08:37 AM

    HI GUYS ,

    I WANT TO CREATE A CUSTOMER MASTER FROM A FLAT FILE .HOW CAN I DO THIS.

    THANKS.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 12:24 PM

    http://www.ashpeople.comashthomas

    www.sapfans.com/forums/viewtopic.php?f=13&t=314946&p=953638 - 21k - (check this link)

    With thanks & regards,

    Sravani yendru.

    Add a comment
    10|10000 characters needed characters exceeded

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.