Skip to Content
0
Apr 23, 2014 at 10:38 AM

Event in Matrix with BOM?

80 Views

Hi expert,

As you can see i'm new in developing and I have e lot of boring questions 😊

Problem is that:

I want to copy from OITM values from UDF into the standard document "Quotation" rows.

So, I want OITM.U_II_001 field value will be copied in field U_II_001 in the matrix of quotation document.

Actually, i trap the event et_VALIDATE. When I insert a New ItemCode the code is executed:

if (pVal.ItemUID == "38" & pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE & pVal.Before_Action == true)
{
     // ColUID = 1 is "ItemCode"
     if (pVal.ColUID=="1")
     {
          string oValore;
          oValore = ReadItemCode(pVal) ;
          AddNewValueInRow(pVal, oValore);
     }
}

This code runs well if I add manually single rows in document.

Problem is that: If I add an Item with BOM, the code is not executed for each item in the BOM!

How can I solve the problem? I want to execute the code to fill the UDF fields for each item in BOM too...

Exist other event I need to trap instead of et_VALIDATE?

Could you say me where I can to find this kind of informations?

Thanks in advance,

Jonny Cortonicchi