Hallo Manish,
I have experimented following your explanation.
I have created a table named "zadresses" with the primary key "Name"
NAME NACHNAME STADT
CARINA INGENDAE REMSCHEID
EMILIE SAL Duisburg
Emilie Salorte Duisburg
NIDAL ZIDAN HEIDELBERG
RUZICA DJENADIC DARMSTADT
salorte SALORTE Duisburg
I have created the uniques secondary index '001' with the fields "NACHNAME"(lastname) and "STADT" (city).
With the entries above already exist, I have written the following program:
data: lw_Address type zadresses.
start-of-selection.
lw_Address-name = 'CARINA'.
lw_Address-nachname = 'INGENDAE'.
lw_Address-stadt = 'Paris'.
Modify zadresses from lw_Address.
I would have expected that the program wouldn't be able to modify the first line of the above table (Value 'Paris' for column 'Stadt'), because based on the mentioned explanation, the field 'Stadt' is a part of the secondary index! sy-subrc was 0 and sy-dbcnt was 1 !!!!
do I understand something wrong here! Please give me your hint!