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: 

Create Batch - MSC1N

Former Member
0 Kudos

Hi All,

I am creating Batch (MSC1N) using LSMW - Method BAPI.

Business Object : BUS1001002

Method : SAVEREPLICA

Message type : BATMAS

Basic type : BATMAS03

I was able to create a batch but i was unable to update the characteristic values in Material data tab for fields BRIX Value , Pound Solids and Gallons.

Please help how to do.

Thanks

Ravi.

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos

You have to use the BAPI_OBJCL_CREATE .

REfer these links as well:

Regards,

Ravi

0 Kudos

Hi ,

Tried using the Bapi : BAPI_OBJCL_CREATE , to create batch charataristic values.But failed to use.

How to use the BAPI ?

Tried giving these input but does nt work.

input parameters:

objectkey new : <matnr><plant><batch>

object table new: MCHA

classnum : <class>

classtype : <classtype>

output:

1.assignment doesnt exist ,

2.table not supposted for class type

0 Kudos

Is this a onetime conversion or an ongoing interface? If it is conversion, try using LSMW for classification. The standard program is the best way to do it.

0 Kudos

Hi

Try BAPI_OBJCL_CHANGE

Pass <Material><batch> to OBJECTKEY

Pass 'MCH1' to OBJECTTABLE

PASS <classnum>

PASS <classtype>

and fill ALLOCVALUESCHARNEW with the charateristic names and values that you want to change.

Don't forget commit.

Hope this helps. I am able to create a batch and also fill the charaterisitics with values.

Let us know if it doesn't work.

Regards