Avoid "Do not allow manual entry" while posting the Journal in Ax 2012.

Dear Friends,

I have selected one main account in posting profile… In main account form, for that account- do not allow Manual entry field checked…

I have created one Journal by X++ code which has the same account in Ledger Dimension of Journal lines …

While posting that Journal… It throws the error " Do not allow manual entry"…

How to avoid this validation?

Thanks in advance…