I have a requirement to create a downpayment request (F-47). I have used bapi BAPI_ACC_DOCUEMENT_POST for this and implemented BTE RWBAPI01 and added the code in Function module for BTE.
BAPI is getting executed successfully and giving me a document number also, in the return table. But after calling BAPI_TRANSACTION_COMMIT the document no. doesnt get updated to tables. There is no error returned by either of the BAPI
In the next run, next document number gets generated.
Can anyone please help and let me know why the document is not getting updated in tables even though it gets generated.
Any help will be appreciated,