Skip to Content

Batch Status Update


I want to update batch status using SDK

can anyone help which object or how can I update batch status using my add-on?

Nilehs Shah

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2014 at 08:44 PM


    This can be done using the BatchNumberDetail in conjuction with the BatchNumberService objects.

    Here is a sample code:

    SAPbobsCOM.CompanyService oCompanyService ;   
    String docentry = 1; //Put here the actual AbsEntry of the Batchnumber record
    oCompanyService = oCompany.GetCompanyService();  
    SAPbobsCOM.BatchNumberDetailsService oBatchNumbersService ;  
    oBatchNumbersService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.BatchNumberDetailsService);  
    SAPbobsCOM.BatchNumberDetailParams oBatchNumberDetailParams; oBatchNumberDetailParams = oBatchNumbersService.GetDataInterface(SAPbobsCOM.BatchNumberDetailsServiceDataInterfaces.sndsBatchNumberDetailParams); oBatchNumberDetailParams.DocEntry = docentry;
    SAPbobsCOM.BatchNumberDetail oBatchNumberDetail ; oBatchNumberDetail = oBatchNumbersService.Get(oBatchNumberDetailParams);
    oBatchNumberDetail.Status = BoDefaultBatchStatus.dbs_Locked; //put here the status you want oBatchNumbersService.Update(oBatchNumberDetail);


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.