Edvandro, The following scenario is what I did to perform a settlement process through X++.
1. Write a ledgerjournaltable record 2. Write a ledgerjournaltrans record which has the reversing total of the settlements you want to select, or you can wait until after you read through settlements to get your total and then update this record so the journal is in balance. // definition CustVendOpenTransManager manager; ; // Initialize manager manager = CustVendOpenTransManager::construct(ledgerjournaltrans); 3. Read through custtransopen and call the following for each one you want to select. // select manager.updateTransMarked(custTransOpen, noyes::Yes); 4. Post journal Randy Pedersen Microsoft Certified Business Management Solutions Specialist - Development for Microsoft Dynamics AX From: Axapta-Knowledge-Village@yahoogroups.com [mailto:axapta-knowledge-vill...@yahoogroups.com] On Behalf Of Edvandro Santos Sent: Thursday, February 18, 2010 4:38 PM To: axapta-knowledge-village Subject: [Axapta-Knowledge-Village] Simulate markTrans on CustTransOpen_DS Hi all, I´m need to create a routine in AX that create journal lines with a line of custtransopen (Functions > Settelments). So, I see that have an method in CustTransOpen_Ds called markTrans that mark the transaction to be settled. So, How can I do that? Regards, -- Santos, Edvandro Microsoft Dynamics Development Consultant fale...@edvandro.com<mailto:fale...@edvandro.com> http://www.edvandro.com http://www.axfordummies.com