Hi,
In this post we will view the code to post general journal. For demo purpose, chosen already created journal entry that has no errors.
Step 1: Picked the journal that is not posted
Step 2: Click on lines and choose option "Simulate Posting" under Validate button.
Step 3: Verified that there are no error/warnings.
Step 4: Created a runnable class by name CG_GeneralJournalPosting to post this journal.
class CG_GeneralJournalPosting{ /// <summary> /// Runs the class with the specified arguments. /// </summary> /// <param name = "_args">The specified arguments.</param> public static void main(Args _args) { LedgerJournalCheckPost journalCheckPost; LedgerJournalTable ledgerJournalTable;
ledgerJournalTable = LedgerJournalTable::find("00636");
journalCheckPost = LedgerJournalCheckPost::newLedgerJournalTable(ledgerJournalTable, NoYes::Yes); journalCheckPost.runOperation(); }
}
Step 5: Executed the runnable class to post the journal.
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments