Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_BATCH_SAVE_REPLICA - classification data issue

Former Member
0 Likes
1,093

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.

2 REPLIES 2
Read only

PeterJonker
Active Contributor
0 Likes
743

did you use

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

Read only

0 Likes
743

Hi Peter,

Yes. I am using 'BAPI_TRANSACTION_COMMIT'