we create SD orders by BAPI_SALESORDER_CREATEFROMDAT2.
This works fine, but when we try to create an item by just giving a customer material number (cust_mat35) instead of our material number (material), we get the error message "E No item category available (Table T184 ZAPO TEXT )".
The error message is correct, there is no entry for text items in that table, BUT we are not trying to create a text item!
In VA01, when we enter the same customer material number, SAP automatically determines our material, finds the correct item category group (NORM) in material master and creates an item with item category TAN, which is correct.
Any idea why this automatic determination does not work when using the BAPI?