‎2008 Apr 17 5:18 PM
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
‎2008 Apr 17 5:24 PM
I think you can create a single classification using the import parameters BATCHCONTROLFIELDS in the BAPI
a®s
.
‎2008 Apr 17 6:57 PM
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
‎2008 Apr 17 7:04 PM
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®
‎2008 Apr 17 7:15 PM
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
‎2008 Apr 17 8:21 PM