Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
987

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
633

Try sending customer number with padding zero’s, 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

3 REPLIES 3
Read only

Former Member
0 Likes
633

Hi Elam,

Keep the zeros infront of customer number 106 (to field length of KUNNR) You need to convert.

Hope this helps.

Siva

Read only

Former Member
0 Likes
634

Try sending customer number with padding zero’s, 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

Read only

0 Likes
633

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.