RE- Code for vendor invoice journal in ax 2009

Hi Everyone,

Can anyone provide me the code to create a Vendor invoice journal through a job?

It should post automatically.

Regards,

Madhan