on 02-07-2008 10:20 PM
Hi
I am trying to do Inventory transfer, I used code as placed below.
and I wanted to pass BaseRef value, but StockTransfer object does'nt have this property.
and even below code giving the error like "chosen xxxxxxx is not a customerr [wtr1.shipdate][line:3], v9999"
I am passing proper values for CardCode and CardName.
SAPbobsCOM.StockTransfer oInvTransfer;
oInvTransfer= (SAPbobsCOM.StockTransfer)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer);
oInvTransfer.CardCode = oPurchaseOrder.CardCode;
oInvTransfer.CardName = oPurchaseOrder.CardName;
oInvTransfer.Comments = oPurchaseOrder.Comments;
oInvTransfer.FromWarehouse = "02";
oInvTransfer.Lines.ItemCode = line.Substring(6, 20).Trim();
oInvTransfer.Lines.Quantity = System.Convert.ToDouble(line.Substring(36, 15));
oInvTransfer.Lines.WarehouseCode = "02"; //line.Substring(3, 3);
oInvTransfer.Lines.Add();
result = oInvTransfer.Add();
Can any one help me in this case.
thanks in advance
kv reddy
Hi kv reddy,
I think the error message is pretty clear. The bussines partner you're selecting is not a customer. The stock transfer only allows you to select customers.
I think what you're trying to do is a Goods Receipt PO. If so you're using the improper object. You shall you the documents object instantiated as a Goods Receipt PO.
Hope this helps,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Ian,
Am trying to create Goods Receipt Po thru DI API.
But am not able to find the object to use...
In some of your post you mentioned that we have to use document object to instantiate GrP0.
can u please provide me with the code ....
Am also looking for objects like
Issue,consumtion....
It will be great help from you if you please provide me with the code...
Thanks
Hi Mayur,
There're all part of the Documents object. To instance a Good Receipt PO do (VB.NET):
Dim oGrPO As SAPbobsCOM.Documents
oGrPO = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
It's all documented in the SDK Helpcenter.
Can you be a little more specific about issue and consumption?
Hope this helps,
Ian
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.