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

BAPI_BATCH_CREATE

Former Member
0 Likes
1,436

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.

1 ACCEPTED SOLUTION
Read only

former_member181966
Active Contributor
0 Likes
1,230

Also look at thread !!

Hope this’ll give you idea!!

<b>Pl... award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

7 REPLIES 7
Read only

Former Member
0 Likes
1,230

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>

Read only

0 Likes
1,230

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>

Read only

0 Likes
1,230

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.

Read only

0 Likes
1,230

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

Read only

0 Likes
1,230

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.

Read only

former_member181966
Active Contributor
0 Likes
1,231

Also look at thread !!

Hope this’ll give you idea!!

<b>Pl... award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Read only

Former Member
0 Likes
1,230

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