Application Development 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: 

MCH1-CUOBJ is not updated in Material Batch classification update

Former Member
0 Kudos

Hi,

I am trying deletion and addition of material batch classification using the bapi BAPI_OBJCL_DELETE and  BAPI_OBJCL_CHANGE. The bapis are working fine and no error message returned but the issue is with the filed MCH1-CUOBJ_BJ. This field is not updating or not in sync with INOB-CUOBJ.

But when I tried standard tcode MSC5N for this purpose, both MCH1_CUOBJ and INOB-CUOBJ are in sync.

Could you please let me know how to make both the tables sync when bapis are used for batch classification deletion and creation.

Regards

Shoban

1 ACCEPTED SOLUTION

Former Member
0 Kudos

It seems the above BAPIs ar enot intended to update MCH1 table. So I have updated the MCH1-CUOBJ_BM manually using the fm VB_UPDATE_BATCH  and MSC5n not showing Classification data inconsistent error.

6 REPLIES 6

Former Member
0 Kudos

Hi,

is it MCH1-CUOBJ_BJ or CUOBJ_BM? can you verify?

0 Kudos

yeah it is CUOBJ_BM.

0 Kudos

Hi,

Two fields are can't be the same functionality.  Please check is there any enhancements were happen for this transaction or check your batch characteristics are passing correctly in BAPI.

Generally:

CUOBJ_BM:   Number assigned by the system. This number specifies the selection values according to which batch determination was carried out.

CUOBJ:

Consecutive number used to assign objects within a class type. Here, the object number refers to the assignment of a variant to a plant-specific configurable material via the values assigned.

0 Kudos

Hi Kiran,

Sorry for the confusion. It is the same field CUOBJ_BM in both tables INOB and MCH1.

These two values should be same always but when I used the above bapi, it has updated only INOB but not MCH1-CUOBJ_BM.

0 Kudos

Hi,

Can you provide the screen shots of a two tables.!

Former Member
0 Kudos

It seems the above BAPIs ar enot intended to update MCH1 table. So I have updated the MCH1-CUOBJ_BM manually using the fm VB_UPDATE_BATCH  and MSC5n not showing Classification data inconsistent error.