cancel
Showing results for 
Search instead for 
Did you mean: 

How do I "Receipt from Production" through DI?

Former Member
0 Kudos

Hi all,

is there an Object that do "receipt from production'. In addition is there something for "Issue for Production"?

SAP 2005 A

Thanks in advance.

Vangelis

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vangelis,

Owen is true, there are types as he wrote. The code is somethink like

inv = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)

inv.Lines.BaseEntry = doc_entry

inv.Lines.BaseType = 202

inv.Lines.Quantity = qty

inv.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete

inv.Lines.WarehouseCode = store

inv.Lines.Add()

inv.Lines.BaseEntry = doc_entry

inv.Lines.BaseType = 202

inv.Lines.Quantity = qty1

inv.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntReject

inv.Lines.WarehouseCode = store

...

and for exit as

inv = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)

inv.Lines.BaseLine = line

inv.Lines.BaseEntry = doc_entry

inv.Lines.BaseType = 202

inv.Lines.Quantity = base_qty * planned

inv.Lines.WarehouseCode = warehouse

x = inv.add

Answers (2)

Answers (2)

Former Member
0 Kudos

I think there are objects for it, check out the documents object, document type:

Documents(oInventoryGenEntry) - OIGN

Documents(oInventoryGenExit) - OIGE

former_member201110
Active Contributor
0 Kudos

Hi Vangelis,

As per the post above, the correct objects are oInventoryGenExit (issue) and oInventoryGenEntry (receipt). These objects can also be used to do a Inventory Goods Issue or Receipt. To issue or receipt from production you need to set the BaseType to 202 and the BaseEntry to the production order DocEntry on the document lines.

Kind Regards,

Owen

rasmuswulff_jensen
Active Contributor
0 Kudos

Hi Vangelis

As far as I know the know the SDK these are not yet exposed to the SDK (SBO2007A SDK does not seem to have tit either)... Sorry