how to add loop in to get more lines
how to add loop in to get more lines
Hi Evincibles Solutions,
do you still have some open questions on the topic? If not, could you please mark the helpful answer(s) as verified? Thanks!
MyTable myTable; InventJournalTrans inventJournalTrans; while select myTable { inventJournalTrans.clear(); // Add here all code that you need to populate InventJournalTrans record inventJournalTrans.insert(); }
Ok, let's assume you want to create one InventJournalTrans for every record in your other table called MyTable.
i want to apply while loop in it and my data is coming from tables
buisness requirment is to add more lines in inventory journal by using while loop
You can use a while loop or a for loop. It really depends what you are looping. Where is your data coming from? Could you explain your business requirement? And in which process are you going to run your code?
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156