Create price/discount agreement journal through X++

Initially created a price/discount agreement journal through above code , but by default discount journal gets created and I want price or RFQ journal to be created .
where i need to change the code.

hi,

Try including the journal name in your code.

You can also DIXF, see the list of entities in AX 2012
ax.help.dynamics.com/…/