general ledger offset account blank

hi all

i have written the code to insert general ledger with custom dimension, when i run the code its creating the journals, but

its the values r not cumming in the lines, account and offset accounts values r blank

My code is,

static void Raj_Demo_CreateGLJournalPosttest(Args _args)

{

AxLedgerJournalTable journalTable;

AxLedgerJournalTrans journalTrans;

container acctPattern;

container offSetAcctPattern;

LedgerJournalTable ledgerJournalTable;

ledgerJournalCheckPost ledgerJournalCheckPost;

;

journalTable = new AxLedgerJournalTable();

journalTrans = new AxLedgerJournalTrans();

//Journal Name

journalTable.parmJournalName(“GEN_JNRL_H”);

journalTable.save();

journalTrans.parmJournalNum(journalTable.ledgerJournalTable().JournalNum);

journalTrans.parmTransDate(systemDateGet());

journalTrans.parmCurrencyCode(“INR”);

journalTrans.parmAmountCurDebit(2000);

// journalTrans.parmAccountType(LedgerJournalACType::Ledger);

acctPattern = [“0102-Disp”,“0102”, 8, ‘EstateA’,‘1’, ‘CustomDivision’,‘DIV2’, ‘CustomClust’,‘CLUST2’,‘CustomFL’,‘FIELD2’,‘CustomCostCenter’,‘CC3’,‘CustomSubLedg’,‘SL3’,‘CustomPurp’,‘PUP3’,‘CustomCrp’,‘FSO’];

//[‘1’,‘DIV2’,‘CLUST2’,‘FIELD2’,‘CC3’,‘SL3’,‘PUP3’,‘FSO’]

journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(acctPattern));

journalTrans.parmAccountType(LedgerJournalACType::Ledger);

journalTrans.parmOffsetAccountType(LedgerJournalACType:: Ledger );

offSetAcctPattern = [“0103-Disp”,“0103”, 8, ‘EstateA’,‘10’ ,‘CustomDivision’,‘DIV1’, ‘CustomClust’,‘CLUST1’,‘CustomFL’,‘FIELD1’,‘CustomCostCenter’,‘CC1’,‘CustomSubLedg’,‘SL1’,‘CustomPurp’,‘PUP1’,‘CustomCrp’,‘CROP1’];

journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId( offSetAcctPattern));

journalTrans.parmOffsetAccountType(LedgerJournalACType:: Ledger );

journalTrans.save();

//ledgerJournalCheckPost = ledgerJournalCheckPost::newLedgerJournalTable(journalTable.ledgerJournalTable(),NoYes::Yes);

//ledgerJournalCheckPost.run();

info(strFmt(“Journal No. %1.”, journalTable.ledgerJournalTable().JournalNum));

}

any one help plsssssssssssssssssss

Hi

the same code working fine in ax2012 r2, when i am using the code in ax2012 r2 with cu7 am facing the issue

any suggesion plsssssssssssss