cancel
Showing results for 
Search instead for 
Did you mean: 

Add Goods Receipt using DI API

Former Member
0 Kudos

Hi all,

I want to add a new Goods Receipt using DI API, for each of the lines:

oBatchReceipt.Lines.SetCurrentLine(1)

oBatchReceipt.Lines.ItemCode = "ItemA"

oBatchReceipt.Lines.WarehouseCode = "WH01"

oBatchReceipt.Lines.Quantity = 1000

instead of entering the unitcost of the item, i want to enter the line total.

(unitcost or oBatchReceipt.Lines.Price is commented out)

'oBatchReceipt.Lines.Price = costUnit

oBatchReceipt.Lines.LineTotal = 1563

so, when the Goods Receipt is added, there is no error popped up, but the total of created Goods Receipt is 0 (zero).

I want to use the LineTotal instead of Price. Using the SBO system UI, user can enter quantity and linetotal and sytem will automatically calculate the price. But using DI API, i dont think it works because someone from forum says that LineTotal is NOT read/write property as written in SDK documentation.

Anyone knows about this issue?

Thanks.

Cheers'

erwine

Accepted Solutions (1)

Accepted Solutions (1)

former_member189387
Active Contributor
0 Kudos

Hi Erwine Sukardy ,

For eg. you have used an item named as " ItemA". Please go to the "Item Mater Data " . Set the unitprice as you required .Then no need to enter unitprice at line level using DIAPI .

If unitprice exists in item master data then . It will automatically calculates the LineTotal.

Hope it helps....,

Best Regards

V.Rangarajan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi guys,

Yes, Ranga. That's not what we're looking for. We wanted to add a new Goods Receipt using DI API by entering both price and linetotal information for each item lines. And the successfully created Goods Receipt appears to have all lines' price set to 0. I'm not sure whether it's a bug or not.

Thanks for your reply.

cheers,

erwine

Former Member
0 Kudos

Hi Erwine,

Finally someone replied to you :P. Sorry is not the answer I think were looking for. This might be a bug and you should report it (if you haven't done already).

Regards,

Ian