Dima,
Thanks for your input.Even more "natural" way to do this is to set the Block's property "DML Returning Value property" to Yes but has following restrictions:
Restrictions
->Forms uses the DML Returning clause only with an Oracle8 database server. This property is ignored when using a non-Oracle8 server.
->Forms uses the Returning clause with Insert and Update statements, but (currently) not with Delete statements.
->Forms does not use the Returning clause when processing LONGs.
->The updating of unchanged columns is controlled by the setting of the Update Changed Columns Only property, which in turn is affected by the setting of the DML Array Size property.
Regards
Himanshu