‎2008 May 08 11:50 AM
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 ,
‎2008 May 08 11:58 AM
I guess the message is straightforward. Check if, for this material, sales data exist (transaction MM03, pick sales views)
‎2008 May 08 12:17 PM
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,
‎2008 May 08 12:54 PM
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
‎2008 Jul 30 10:32 AM
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.
‎2008 Jul 30 11:12 AM
Thanks,
Already done with same, but thanks for suggestions.
Regards,