Thanks you very much Martin for the reply.
Martin i tried with below code
AxLedgerJournalTable journalTable;
AxLedgerJournalTrans journalTrans;
container accEntryPattern;
container offSetEntryPattern;
;
journalTable = new AxLedgerJournalTable();
journalTrans = new AxLedgerJournalTrans();
//Journal Name
journalTable.parmJournalName(“Journal Name”);
journalTable.save();
journalTrans.parmJournalNum(journalTable.ledgerJournalTable().JournalNum);
journalTrans.parmTransDate(systemDateGet());
journalTrans.parmAccountType(LedgerJournalACType::Ledger);
//LedgerDimension => Ledgeraccount, DAX 2009
accEntryPattern = [“113000”, “113000”, 0];
journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(accEntryPattern));
journalTrans.parmAmountCurDebit(2000);
//OffsetLedgerDimension => OffsetLedgerAccount, DAX 2009
offSetEntryPattern = [“132000”, “132000”, 0];
journalTrans.parmOffsetAccountType(LedgerJournalACType:: Ledger );
journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId( offSetEntryPattern));
journalTrans.save();
info(strFmt(“Journal %1 created”, journalTable.ledgerJournalTable().JournalNum));
Issue is if I run this code in dat legal entity,journal is getting created with values in Journal lines.But If I run the same code in New legal entity journal is getting created but values are not displayed in Journal lines form.
Can you please help me whether its problem with code or legal entity setup.