SELECT SINGLE * FROM crhd INTO s_crhd WHERE arbpl = arbpl
AND werks = werks.
s_crhd-lvorm = 'X'.
APPENDs_crhd to crhd.
here is the problem
you want to add a line with an existing key to a table, this can't work
you should either use MODIFY or UPDATE
edit: you also want to perform the COMMIT WORK before you update the dialoge
Message was edited by: Markus V