你好,我已经开始学习托斯卡自动化。可(SAP菲奥里)我必须输入行项目细节. .我必须找到空行。
请你告诉我有哪些步骤托斯卡找到空的行号。
(最初要求和解决支持中心)
最佳答案社区管理员
1. Option 1 - Using $firstEmptyRow<\/strong><\/p> Tosca itself provides a seletion critera called $firstEmptyRow. But for us it doesn't work very reliable. Sometimes Tosca doesn't recognize an empty row and throws an error message. You have to check whether it works for you.<\/p> 2. Option 2 - While Statement<\/strong><\/p> That's what we use to identify the first empty row in an SAP Table. It's stable and we haven't had any issues whith it so far. Adapted for your use case you could check in a loop whether the cell \"Item\" is not empty. The while loop stops when a cell is found which doesn't contain any value. The buffer {B[row]} then has the number of that empty row and can be used for further operations. Default value for maximum repetitions of while statements is 30. If you want to increase it, go to the properties of the while statement.<\/p> Best,<\/p>","className":"post__content__best_answer"}"><\/p>
<\/p>
<\/p>