Write to xml file

Hello,
You need to check that the buffer you are trying to copy is available with something like this:

Code:
FIND tt1 WHERE your condition NO-LOCK NO-ERROR.
IF AVAILABLE tt1 THEN DO TRANSACTION:
    CREATE tt2.
    BUFFER-COPY tt1 to tt2.
END.

Best Regards,
 
Top