How to update field of the document

Hi, My case is I have two doctype and I want to update the field of one doctype. so how can i achieve this.