Skip to Content

how to restrict & update the multiple data while sending extention bo to custom Bo?

hi sap ,

i have created some extention fields in standard bo .then after clciking on save button:the data reflects to custom bo..

1)i want to restrict duplicate data

2) i want to update the data as well when i entered the standard bo

please heck this code:-

var itemData : elementsof HrLetters; var newitem; foreach (var a in this) { if (a.IsSet()) //{ //var HrLettersQry = HrLetters.QueryByElements; //var Creass = HrLettersQry.CreateSelectionParams(); //Creass.Add(HrLettersQry.A_EMPID.content, "I", "EQ", a.ID.content); //var res = HrLettersQry.Execute(Creass); //if (res.Count() == 0) { itemData.EMPID.content = a.ID.content; itemData.Hire_date1 = a.ValidityPeriod.StartDate; itemData.EmpName1 = a.EmpName; itemData.reason_of_leave1=a.reason_of_leave; itemData.FirstName1 = a.FirstName; itemData.Department1 = a.Department;

newitem = HrLetters.Create(itemData);

}

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers