Skip to Content
author's profile photo Former Member
Former Member

Setting the prices in a goods receipt


I want to create good receipt notes for SBO 2005 A SP01 PL36 which I can do fine but I can't seem to set the price correctly, I just seem to end up with the last buy price

Can anyone help me please ?

The code is below


Regards Andy

Dim oimports As SAPbobsCOM.Documents

oimports = SBO.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)

oimports.Reference2 = "ab3"

oimports.Lines.ItemCode = "1110001"

oimports.Lines.Quantity = 1

oimports.Lines.Price = 7.77

oimports.Lines.LineTotal = 7.77

oimports.Lines.DiscountPercent = 0

oimports.Lines.AccountCode = "_SYS00000000917"

If oimports.Add <> 0 Then


End If

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 Dec 28, 2007 at 11:42 AM


    When you set the price on the lines it automatically sets the discount percent on that line. The reason for this is that the price is retrieved from the price list and when you change the price it is assumed that you're giving a discount. Try and remove the line that makes the discount percentage zero and see what the effect is. I think this line resets the price.

    Hope it helps,


    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.