My code created the material document, but I do not see it in MB03. I used a commit work in the code after the BAPI executes. Do i need tpo do a 'BAPI_TRANSACTION_COMMIT'?
Also, Now it says I have it locked when trying to test some more. Is there an ENQUEUE/DEQUEUE Function Module I should be using?