Quantcast
Viewing all articles
Browse latest Browse all 9080

Re: Modify a table with a secondry index

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!


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>