on 2025 Feb 03 5:03 PM
Hello Experts,
I have a UDT of type "No object with Auto Increment" and I am adding records to it using DI API. This is working fine.
I am trying to catch the Last Inserted ID/Code after the Adding the record to the UDT but for some reason the Event et_FORM_DATA_ADD is not catching it.
public static void SBO_Application_DataEvent(ref SAPbouiCOM.BusinessObjectInfo pVal, out bool BubbleEvent)
{
BubbleEvent = true;
try
{
if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD && !pVal.BeforeAction && pVal.ActionSuccess)
{
// This is not working
bool v = true;
}
}
catch (Exception ex)
{
Program.SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Medium, true);
BubbleEvent = false;
}
}
Does the et_FORM_DATA_ADD event does not work for UDT? If so, how can I retrieve the last inserted ID?
Thank you in advance,
Federico
Request clarification before answering.
| User | Count |
|---|---|
| 39 | |
| 23 | |
| 20 | |
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.