07-21-2017 12:07 PM - edited 02-03-2024 10:12 PM
Hi All,
I am getting below error while creating GRPO through DI API IN sap b1:
"Please input valid ship from code of your business partner"
Code:
string BPStateCode = string.Empty; SAPbobsCOM.Documents oPrReceipt = null; oPrReceipt = (SAPbobsCOM.Documents)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes));
oPrReceipt.Series = GRPOser; oPrReceipt.DocDate = postdate; oPrReceipt.AddressExtension.PlaceOfSupply = "MH"; oPrReceipt.Lines.SetCurrentLine(0);
oPrReceipt.Lines.ItemCode = "I001";
oPrReceipt.Lines.Quantity =10;
oPrReceipt.Lines.BaseLine = 0;
oPrReceipt.Lines.BaseEntry = 105;
oPrReceipt.Lines.BaseType = 22;
oPrReceipt.Lines.Add();
lretcode = oPrReceipt.Add();
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.