Hi Gurus,
I have requirement to create Custom Batch creation while process order release or save in COR2.
I have tried with these FMs VB_CREATE_BATCH and BAPI_BATCH_CREATE in few user exits.
in Debugging screen batch is creating and after the session the Batch is not created when checked thru MSC3N Tcode.
In some cases it is going to dump saying there is Unexpected COMMIT WORK.
Please help on this.
Request clarification before answering.
No need commit for fm VB_CREATE_BATCH.
Please change your input parameters as follows:
X_BNCOM-KZBEW = 'B'
KZCLA = '1'
XKCFC = ' '
After call fm VB_CREATE_BATCH, please make sure that sy-subrc = 0.
If still not work then please share your input parameter for YMCHA and X_BNCOM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try fm VB_CREATE_BATCH in tcode SE37 first.
In tcode SE37, you need run fm BAPI_TRANSACTION_COMMIT after you run fm VB_CREATE_BATCH.
Please check whether you can found new batch number in tcode MSC3N.
If batch number is still not found in tcode MSC3N then please share your input parameter for YMCHA and X_BNCOM.
| User | Count |
|---|---|
| 17 | |
| 12 | |
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.