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 to change Batch Status

Former Member
0 Likes
3,492

Dear All,

We are having Material No & Batch No and now want to change the status of the batch from Unrestricted to Restricted. We are trying to use BAPI_BATCH_CHANGE but are not able to change batch status.

Please let me know how can we change the batch status.

Reg,

NJ

Dear All,

We are having Material No & Batch No and now want to change the status of the batch from Unrestricted to Restricted. We are trying to use BAPI_BATCH_CHANGE but are not able to change batch status.

Please let me know how can we change the batch status.

Reg,

NJ

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,800

Look at BAPI BAPI_BATCH_RESTRICT and BAPI_BATCH_UNRESTRICT once they are released by SAP (*), so try BAPI_BATCH_SAVE_REPLICA which has a RESTRICTED field in  parameter BATCHSTATUS.  Else you could try BDC on MSC2(n).

Regards,

Raymond

(*) Already waiting for some years now...

Read only

Former Member
0 Likes
1,800

BAPI BAPI_BATCH_SAVE_REPLICA works.

Pass Material and Batch and

batchstatus = 'X'

batchstatusx = 'X'.

No need to call transaction commit bapi.