Skip to Content

DI:Batch-Numbers Object only adds BatchNumbers to table OIBT

The PurchaseDeliveryNotes-Object has a BatchNumbers object. With this BatchNumbers- Object it is possible to add BatchNumbers to Items and this Information that will be written to the table OIBT. That works fine.

Doing the opposite, that means getting Items from stock, I use the DeliveryNotes-Object which has as well the BatchNumbers object. This will not remove the BatchNumbers Information from the table OIBT. It’s just doing the opposite, it will as well add Batch Numbers to the table OIBT.

This seems to me like being a mistake in the BusinessLogic of the DeliveryNotes-Object

My question:

Why is DeliveryNotes->Lines>BatchNumbers not removing Batch Numbers from table OIBT ?

The lines of code used for the DeliveryNotes-Object


Dim sbo_bns As New SAPbobsCOM.BatchNumbers

Dim sbo_dn As SAPbobsCOM.Documents

Dim lReturnCode As Long

Set sbo_dn = sbo_cx.GetBusinessObject(Object:=oDeliveryNotes)

With sbo_dn

.DocDueDate = VBA.Date

.CardCode = "C00001"

With .Lines

.ItemCode = “BI100").StringValue

.Quantity = 2

.ShipDate = VBA.Date

.WarehouseCode = "01"

.Price = 10.5

With .BatchNumbers

.BatchNumber = "Bnr20.1019"

.Quantity =2

End With

End With

lReturnCode = .Add

End With

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 05, 2004 at 01:32 PM

    Hoi Kurt

    Sorry SAP guys, but I think the SBO model of batches submitted by SBO 6.5 is absolutely insufficient for practical use! The batch object has just ONE usefull method: Add. But in real business life we have to sell batches as well as storing them to our warehoses...

    So, Kurt, the only way to work with batches is to write directly into the relevant tables of SBO, that are:

    OIBT: Batch list and batch balance

    IBT1: Batch transactions

    OSRD: Transactions concerning "batched" items, but item quantity of transaction is still not bound to a batch

    We have built an SBO-6.2-AddOn (without any batch object!) working with batches, that means working with OIBT, IBT1 and OSRD; it's running well.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Do you have any documentation about the new functionality of the BatchNumbers Object?

      I've got the patch 23 for SBO 6.5 and it also updates the sapbobscom65.dll version

      By any chance do you have any document about the new functionality on this object, because I need this functionality to avoid the manipulation of batches through SQL Stored Procedures.


      Kind Regards,

      L. Iván Juárez A.

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.