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

How to create a batch for a material, with batch characteristic input?

former_member220801
Participant
0 Likes
850

I am currently using BAPI_BATCH_CREATE to create batch for materials in my program. However, I find no way to input the batch characteristics. Is there any existing function module responsible for that? Thanks!

I am currently using BAPI_BATCH_CREATE to create batch for materials in my program. However, I find no way to input the batch characteristics. Is there any existing function module responsible for that? Thanks!

3 REPLIES 3
Read only

Former Member
0 Likes
771

Hi,

You can use FMs 'CLVF_INSERT_AUSP' or 'CLVF_INSERT_AUSP' to insert or update characteristics for materials.

In the structure INS_AUSP or UPD_AUSP -

OBJEK corresponds to the material number,

ATINN is the characteristic name,

KLART is the class type which is '001' for materials, and

ATWRT is the characteristic value.

Populate values into the above fields for the batch of materials and call this FM.

Reward points if found useful...!

Cheers

Abhishek

Read only

0 Likes
771

I want to update batch characteristics rather than material characteristics.

Thanks!

Read only

0 Likes
771

Gundam,

You can use the fm VB_CHANGE_BATCH followed by BAPI_TRNSACTION_COMMIT for update the batch characteritsics,I have successfully implememted the same,

You all need to populate the structure CLBATCH with characteristics name,value,atinn.

Sandy