I am using BAPI_BATCH_CREATE to create batch...after using the statement BAPI_TRANSACTION_COMMIT and passing wait = "X" to save the data at database level.
After this select statement is written on MCHA table to check newly created batch and getting the info of Internal object no(CUOBJ_BM).
When I go in debug mode....everything is fine and getting the CUOBJ_BM field info and also batch is created in MCHA table.
BUt when we ran the transaction directly...we are not able to get the batch info from MCHA table.
Note: I don't want to use wait upto statement for this.
I use DO...ENddo also.
Is there any reason why it is not saving in database level even when we are using BAPI_TRANSACTION_COMMIT?