‎2006 Mar 17 5:44 PM
Hai,
i try to create a sales order using the bapi, " BAPI_SALESORDER_CREATEFROMDAT2", But the retrun table specified error like "No customer master record exists for customer 106 "
and the custmer 106 is in customer master and i created sales order with this customer using the transaction VA01.
Plz tell any one what is the problem?
thanks in advance,
Elamaran
‎2006 Mar 17 6:00 PM
Try sending customer number with padding zeros, i.e, 0000000101.You can use 'CONVERSION_EXIT_ALPHA_INPUT' to pad the zeros.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kunnr
IMPORTING
output = v_kunnr.
Thanks,
Vamshi
‎2006 Mar 17 5:54 PM
Hi Elam,
Keep the zeros infront of customer number 106 (to field length of KUNNR) You need to convert.
Hope this helps.
Siva
‎2006 Mar 17 6:00 PM
Try sending customer number with padding zeros, i.e, 0000000101.You can use 'CONVERSION_EXIT_ALPHA_INPUT' to pad the zeros.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_kunnr
IMPORTING
output = v_kunnr.
Thanks,
Vamshi
‎2006 Mar 17 6:09 PM
Create a data def and use it in the BAPI call.
data: TheCustomer like kna1-kunnr.
move '106' to TheCustomer.
Then use TheCustomer in your PARTNER table for the BAPI call.