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

BAPI_SALESORDER_CREATEFROMDAT2 error

Former Member
0 Likes
1,651

Hi all,

While creating the sales order using BAPI - BAPI_SALESORDER_CREATEFROMDAT2

got the following error message

"Material is not defined for sales org., distr.chan., language EN"

Any suggestion welcome,

Thanks ,

5 REPLIES 5
Read only

Former Member
0 Likes
865

I guess the message is straightforward. Check if, for this material, sales data exist (transaction MM03, pick sales views)

Read only

0 Likes
865

thanks for reply,

I checked that material in table mvke for sales org and disti channel and that material exist .

If i execute that BAPI from se37 using same paramaters then it successfully creates the Sales order.

But in report got the following error message.

Any suggestions welcome,

Regards,

Read only

Former Member
0 Likes
865

Come to think of it, I've encountered this problem before, while material was fully extended in sales area. I do not recall the solution but I think tried to put a watchpoint in debugger to stop when sy-msgid and sy-msgno reaches the message in question

Read only

Former Member
0 Likes
865

I encountered the same problem and solved by changing the format of the material entered to the BAPI. Convert the material to Internal format using the

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = material

IMPORTING

output = wa_orders_in-material.

Example material 8956 is convereted to 0000000000008956 in wa_orders_in-material which is accepted by the BAPI and processed successfully.

Cheers,

Murali.

Read only

0 Likes
865

Thanks,

Already done with same, but thanks for suggestions.

Regards,