SAPscript problem: writing data based on a condition.
I am currently having a problem on how to solve my problem. Now, my forms(write form, new-page, etc) are inside a loop. Now, what I want to do is for example, in the first loop, customer A is present then I would write its details on the corresponding windows. Now on the 2nd loop, customer B is present so I would trigger a new page for him. But what if on the 3rd loop customer A again is present so I need to write his details on the original page where the customer A appeared(during the first loop). Is there a way to this? again, thank you very much guys and I appreciate your help...
Use the control events for the internal table.
First sort the internal table and use AT NEW customer to first print all the customer A related info on first page and then use AT END and trigger a new page and start printing the second data of the new customer on the next page.
You can also use CONTROL_FORM to control it from the program.
Message was edited by: American Dreams