‎2006 Jul 06 4:03 PM
Hi Experts,
I'm creating the batches using the <b>'bapi_batch_create'</b>. Now I want some batches in that to be 'RESTRICTED' and some are not. For that I want to use the structure<b>(BAPIBATCHATT)</b> available in that. There is a field in that structure: <b>'DZUSCH'</b> [STATUSKEY]. But I dont know what exactly that field will do. Could you please tell me <b>how</b> can I use this field?
thnx very much.
‎2006 Jul 06 4:12 PM
‎2006 Jul 06 4:10 PM
According to the definition of this field, you should be able to set the value of this field to the character that is for 'Restricted' and that should do the trick.
<i>Short text
Batch status key
Definition
Key determining the status or usability of a batch.
Use
It is possible to define several status keys for a certain status (e.g. restricted-use, blocked) thus permitting a more detailed breakdown according to status.
</i>
‎2006 Jul 06 4:12 PM
Check this note on the status field in the documentation of the BAPI itself.
<i>The status of the batch is set in the target system. The batch contains the status that has been specified as the initial status in Customizing for the target system.</i>
‎2006 Jul 06 4:48 PM
Srinivas,
I have checked in my system, they haven't specified anything for the 'Restricted'. It is blank for all the values. In that case how can proceed.
thnx again.
‎2006 Jul 06 4:55 PM
Do they set a batch to restricted online? If not, then how can you do it through program? System has to be configured to be able to set the status. Go through the following IMG path to configure or read more about the status.
Implementation Guide for R/3 Customizing (IMG)
-->Logistics - General
-->Batch Management
-->Specify Batch Level and Activate Status Management
‎2006 Jul 06 5:21 PM
yes. actually now i'm writing a upload program to upload all the data from legacy system to SAP through an interface. in the flat file which i have to upload, there is a field <b>"batch status"</b> which i have to map to a field in SAP. i'm looking for that field.
thnx.
‎2006 Jul 06 4:12 PM
‎2006 Jul 06 4:13 PM
Documenation of the field
Batch status key
Definition Key determining the status or usability of a batch.
Use It is possible to define several status keys for a certain status (e.g.
restricted-use, blocked) thus permitting a more detailed breakdown
according to status.
Kiran
*Please reward useful answers