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

BBP_VENDOR_GET_DATA2. equivalent FM for customer

Hiii

there is a Function module from which i can get all infor concerning the vendor .

I need the same for customer do you know if there is a FM for this????

I need a FM where i can get at least the sales org and general data of a customer

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 04:48 AM

    Use BAPI's

    BAPI_VENDOR_GETDETAIL for Vendo details

    BAPI_CUSTOMER_GETSALESAREAS

    BAPI_CUSTOMER_GETLIST

    BAPI_CUSTOMER_GETDETAIL2

    BAPI_CUSTOMER_DISPLAY

    Hope this helps..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 04:41 AM

    Hi,

    Use the BAPI 'CUSTOMER_READ' where

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

    Eg:

    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.

    ENDIF.

    Hope it helps you.

    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.