cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member917522
Participant
0 Kudos

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

}

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Akshaya,

Use a query to the OITW table

SELECT CONVERT(INT,ROW_NUMBER() OVER (ORDER BY WhsCode))-1 Line, * FROM OITW WHERE ItemCode = 'YourItemCode'

Pass the Line value to the SetCurrentLine method.


Regards

Edy

former_member917522
Participant
0 Kudos

Hi

Thanks For reply

Answers (0)