Hi all,
I am using BAPI_BATCH_SAVE_REPLICA to create new batch from a reference batch.
The basic data and classification data of the refernce batches are obtained via
BAPI_BATCH_GET_DETAIL and BAPI_OBJCL_GETDETAIL respectively and passed to BAPI_BATCH_SAVE_REPLICA.
Most of the batches are getting created as expected with the all the classification data being populated and the respective back end tables MCH1, INOB and AUSP also populated correctly.
But for some batch material combinations we see strange issues.
1. None of the classifications are getting copied and hence the tab itself is missing in MSC3N.
2. Some classifications are missing.
3. Classifications are visible in MSC3N , but in MCH1 the object number is not updated and hence the classifaction data is missing from INOB and AUSP tables as well. When we open it in MSC2N and just do a save, the backend tables are updated properly.
Any thoughts on how to correct this issue.