Skip to Content
0
Former Member
Apr 06, 2009 at 07:52 AM

Add method returns: Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

358 Views

Dear all,

I have a problem updating my addon from 2005B to 2007B with PL09.

Code Blocku2026.

vIssue = (Documents)AppConfig.diCompany.GetBusinessObject(BoObjectTypes.oInventoryGenExit);

vIssue.DocDate = PostDate;

vIssue.Comments = InvNo;

vIssue.Series = 51;

vIssue.Lines.ItemCode = u201CItemCodeu201D;

vIssue.Lines.Price = 120;

vIssue.Lines.Quantity = 10;

vIssue.Lines.WarehouseCode = u201C01u201D;

<condition. for batch items only>

{

vIssue.Lines.BatchNumbers.BatchNumber = u201CXYZu201D;

vIssue.Lines.BatchNumbers.SetCurrentLine(0);

vIssue.Lines.BatchNumbers.Quantity = 10;

}

RetVal = vIssue.Add(); // return(-1) an exception The server threw an exception (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

This error is only happning with batch item. For other items which are not maintained by batch working fine. And the same code was running fine in 2005B.

Also surprisingly if I create a new batch item in 2007B and get its stock by GRPO or Goods Receipt the same code is working fine.

Tried almost everithing to solve this issue but nothing worked.

1. Deleted <SM_OBS_DLL> folder.

2. Reinstalled SAP 2007 with PL 09. And followed other solusion from SDK forum.

But nothing seems to work for this. Had a horrible week past.

It seems it is happning only with items areated in 2005B.

Is there any trick???

Please help......