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

Values not getting updated in Classification tab by BAPI_BATCH_SAVE_REPLICA

Former Member
0 Likes
525

Hello Experts ,

I am currently facinmg problem with value updation in Classification Tab for Batch Master. To create the classification I have marked BATCHCONTROLFIELDS-DOCLASSIFY = 'X' and to pass values to classification I have done the below coding.

wa_classvaluationschar-value_char = wa_itab-value1.

APPEND wa_classvaluationschar TO it_classvaluationschar.

wa_classvaluationsnum-value_from = wa_itab-value1.

wa_classvaluationsnum-unit_from = wa_itab-meins.

APPEND wa_classvaluationsnum TO it_classvaluationsnum.

Finally called the FM 'BAPI_BATCH_SAVE_REPLICA'. But , inspite of this I am not able to see values in the created Batch. Please advice on the same.

Thanks

-Trishna.

1 REPLY 1
Read only

Former Member
0 Likes
414

Hi Trishna,

You need to update below mentioned fields to udpate that.

OBJECTKEY = concatenate (Internal Material number & plant & batch number)

OBJECTTABLE = MCHA

in both the structures CLASSALLOCATIONS and CLASSVALUATIONSCHAR. It will udpate.

Cheers,

Luri