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

Adding classifications characteristics to batch

Former Member
0 Likes
1,522

Hi All,

I am creating a batch by using BAPI_BATCH_CREATE. I want to add classifications data to that batch.

Can anybody plz suggest me how to do that? Any function module available for same?

Thanks,

Atul

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
1,132

I think you can create a single classification using the import parameters BATCHCONTROLFIELDS in the BAPI

a®s

.

Read only

0 Likes
1,132

Hi a®s,

Thanks for you reply. Can u plz explain in details.

I am not able to figure out how exactly to use BATCHCONTROLFIELDS. parameter for entering values for batch charactristics.

Thanks,

Atul

Read only

0 Likes
1,132

Atul,

please check function module documentaiton

Here is the extract of the function module documentation

Control Parameters

Description

The control parameters are transferred in structure.

You will find information about the meaning of individual parameters in the appropriate data element documentation.

Structure

KZDCH Batch Level

Batch level is an optional field. You can use it to keep a uniform batch level in external systems and when distributing with ALE.

The batch level specified influences the following methods:

Material or client level:

The method can only create 1 batch with batch number i for the material. No plant batches are possible for an existing batch.

Plant level:

The method can create several batches with batch number i for the material. The difference between batches is made apparent by the plant.

If the batch level is transferred with KZDCH and does not correspond in the output and target system, the system issues an error message.

KLASSE_D Class number

XCLAS Classify object

The class of the batch (class type 022 or 023) is always checked and compared with class allocations that already exist. If no class allocations exist, the class of the material is checked. Only single classification is possible.

XKCFC Further classification via CFC

a®

Read only

0 Likes
1,132

Hi a®s,

I have a Batch characteristic named Center Code. When I create a Batch using FM “BAPI_BATCH_CREATE”, I also have to additionally assign some value (say ‘0123’) to this Batch characteristic.

Now using this Function Module I am able to create a Batch, but I have no idea how am I going to assign the value to this batch characteristic.

Can you possibly give me some sample code for this?

Thanks,

Atul

Read only

0 Likes
1,132

Hi,

I got it 'BAPI_OBJCL_CREATE'.

Thanks for your help.

Atul.