Skip to Content
0
Oct 31, 2013 at 07:27 AM

how i get row no.of whscode of Item master form ,same whscode is uesd in Good receipt PO form

50 Views

Hi Expert

oItem.WhsInfo.SetCurrentLine(19); here i pass direct value

how i get that particular whscode line no of item master matrix

cuurently i get that whscode from my GRPO but how i compare this whscode with item master n how i get row no.

----------------------------------

Please read my code

if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_GOT_FOCUS && pVal.Before_Action == false && pVal.ItemUID == "38" && pVal.ColUID == "11")

{

BubbleEvent = true;

oForm = clsAddOn.LDNA_Application.Forms.GetForm("143", pVal.FormTypeCount);

oMat = oForm.Items.Item(38).Specific;

string Item = oMat.Columns.Item(3).Cells.Item(1).Specific.value;

string whscode = oForm.Items.Item("edtwhsCd").Specific.value;

SAPbobsCOM.Items oItem;

oItem = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);

SAPbobsCOM.ItemWarehouseInfo oIW = oItem.WhsInfo;

oItem.GetByKey(Item);

oItem.WhsInfo.SetCurrentLine(19);

oItem.WhsInfo.DefaultBin = ldna_Rec.Fields.Item("BinCode").Value;

oItem.Update();

}