Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers