Well I have used two different methods to do this.
1) Used implicit enhancement and filled the Delivery Note field
2) Using the BAPI "BAPI_GOODSMVT_CREATE" , we could pass the necessary delivery number information to field 'REF_DOC_NO' to have the Delivery Note field getting populated.
Regards,
Chanakya