Skip to Content
avatar image
Former Member

Customer creation using BAPI with given customer number

Hi All,

Can we create the customer with our own customer number using the BAPI - BAPI_CUSTOMER_CREATEFROMDATA1.

Generally SAP Creates its own number using number range objects,but i want to create customer with our own specified number.

I found the BADI - CUSTOMER_ADD_DATA for XD01,but it is not working for BAPI.

Please give me the solutions.

Regards,

Srinivas.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 27, 2006 at 01:39 PM

    Hey,

    Customers are assigned to a account group and a number range is assigned to the account group.

    If you want to create a customer with an external number then assign an external number range to the account group.

    Search for the node "Assign Number Ranges to Customer Account Groups" in SPRO

    Also use function SD_CUSTOMER_MAINTAIN_ALL to create customers. Pass the external number in the import parameter I_KNA1-KUNNR

    -Kiran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey,

      You cannot use the BAPI to create customers with external numbers. There is no provision to set the external customer number in the BAPI's interface.

      This BAPI internally calls the function SD_CUSTOMER_MAINTAIN_ALL to create customers. You need to directly call the function SD_CUSTOMER_MAINTAIN_ALL instead of using the BAPI.

      -Kiran