Skip to Content

Having a problem in changing customer using CMD_EI_API

I am having a customer number with general data and I want to insert company code ,sales data . I have created the customer number when my bp is created using account group. I am trying to enter data using class cmd_ei_api class=>maintain method and passing update mode 'U'. but I am ending up with an error as below.


Customer 200003 has not been created for sales area AAL0 10 10.

I am trying to update the customer with data and the knvv table dont have data for this customer and I am getting an error. am I using the right method. if I am wrong please tell me the function module or other way to update the customer.


debugging errors .

Message was edited by: Matthew Billingham

filename11.png (38.9 kB)
fieldanme2.png (42.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 11, 2014 at 07:57 AM

    Hello Surendra Battula.

    I guess the problem may be because of no preceding zeroes for customer field.

    Have you hard-coded the customer number?

    While passing to any standard FM/BAPI, its internal representation should be passed.

    Make use of CONVERSION_EXIT_ALPHA_INPUT for your customer value and try.


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Arun

      No i am not hard coding but it is happening because if it has no data in knvv table it is raising the error. is this method for modifying on existing data.

      I have created one customer daat in xd01 by passing the customer no and then I ran the program as there is data in knvv it executed with out an error.

      so it is working only when there is sales data.

  • Posted on Jun 11, 2014 at 10:39 AM


    I have managed to execute the method. what I found is the sales data is created but the company code is not created. I couldnt trace out why the company code is not created so the knb1 table is not updated.

    but the sales data is updated and working fine.

    I am using the task as M which is change/create .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2014 at 11:23 AM

    I have edited your question so the subject is not in ALL CAPITALS. Please note the having a subject in all capitals can lead to your question being rejected.

    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.