cancel purchase order for PO status 'Open Order'

Hi all,

i am newbie in dynamics ax2012.

i want to post the cancellation of PO from external source.
anyone have tried before?

kindly please share with me.

thanks in advanced,