Skip to Content
0

"Please input valid ship from code of your business partner" While creating GRPO through DI API

Jul 21, 2017 at 11:07 AM

32

avatar image
Former Member

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();

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers