MODIFY dbtab FROM wa - Not Working
MOVE-CORRESPONDING proj TO gs_proj.
gs_proj-aenam = sy-uname.
gs_proj-aedat = sy-datum.
gs_proj-zzdate = date.
MODIFY zrproj FROM gs_proj.
ZRPROJ is copy of PROJ table with an extra primary key as zzdate. Now though I give a unique entry with different zzdate, MODIFY is not working but is giving sy-subrc 4. When I checked, there were secondary indices in ZRPROJ (copied from PROJ) and hence deleted all the secondary indices. But still sy-subrc is 4 only.
Can anybody help me in figuring out what the problem is here?
Your help is highly appreciable.