cancel
Showing results for 
Search instead for 
Did you mean: 

'Modify' stmt showing sy-subrc = 0 for duplicate record

ricky_shaw
Contributor
0 Kudos
68

Hi,
In my prog, I am updating a Z*table using Modify from a workarea stmt within a loop..endloop.
The work area is exactly like DBtable structure with 4 unique keys. I have 4 keys in a Z*Table.

I have a Modify Z*INVDBTAB from wa_invdoc stmt. Modify is showing sy-subrc = 0 even when it encounters a duplicate record with same set of unique keys but fortunately the Z*DB table is NOT updating that duplicate record(which is correct).

The Modify stsmt should show sy-subrc = 4 right? 

Can someone Pls clarify.

Accepted Solutions (0)

Answers (0)