06-11-2014 8:50 AM
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.
Error:
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
06-11-2014 8: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.
Regards.
06-11-2014 9:28 AM
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.
06-11-2014 11:39 AM
hi
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 .
06-11-2014 12:23 PM
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.