The code your provided is not javascript. It is formalc.Pay attention what language you are using. as for code itself - it looks good, but substitute EQ to ==
for 1st approach in event 01 (before saving)in the 2nd approach - in event 05 (adding new entry)https://blogs.sap.com/2019/09/26/update-and-create-events-in-table-maintenance-generator/to use this approach - you should create global class in that cas...
approach with check before add
CLASS lcl_check_from_to DEFINITION.
PUBLIC SECTION.
METHODS approach_with_check.
PROTECTED SECTION.
PRIVATE SECTION.
TYPES: BEGIN OF ts_group_n_serial
, Prd_grp TYPE char10
, from_serial T...
approach with message (change e to s with dislplay like 'E' and add flag)
DATA lt_group_n_serial TYPE tt_group_n_serial.
DATA lt_range_serial TYPE RANGE OF char10.
DATA lv_sytabix_main TYPE sytabix.
DATA lv_sytabix_sub TYPE sytabix.
...
Hi Vikash,>>> Thanks for your suggestion , i have already applied this loop approach but while throwing error its coming back to initial screen instead indicating the duplicate row,I think it is because of message type. Could change this one
MESSAGE...