解决了

如何找到托斯卡的空行号?

  • 2023年7月31日
  • 4回复
  • 18岁的观点

Userlevel 5
徽章 + 2
  • 社区经理
  • 72回复

你好,我已经开始学习托斯卡自动化。可(SAP菲奥里)我必须输入行项目细节. .我必须找到空行。

请你告诉我有哪些步骤托斯卡找到空的行号。

(最初要求和解决支持中心)

图标

最佳答案社区管理员2023年7月31日16:08

Try out the following.<\/p>

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>

\"514e709e47ce55947e155752e36d43e9.iix\"<\/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>

\"8b6e74de47ce55947e155752e36d4383.iix\"<\/p>

\"fdefbc96470295947e155752e36d4374.iix\"<\/p>

Best,<\/p>","className":"post__content__best_answer"}">

查看原始

4回复

Userlevel 3
徽章 + 2

在创建销售订单总是这个表将空所以提供1美元在<行>和<细胞> 1美元,这样它选择第一行输入的值

Userlevel 5
徽章 + 2

在创建销售订单总是这个表将空所以提供1美元在<行>和<细胞> 1美元,这样它选择第一行输入的值

谢谢你的更新。

我给VA01行项目表的一个示例。但有时我们必须通过搜索空行输入值。,请让我知道如果你知道步骤。

Userlevel 3
徽章 + 2

那么它应该通过重复和验证每一行如果是null那么其他迭代值传递给下一行

Userlevel 3
徽章 + 2

尝试以下。

1。选项1 -使用firstEmptyRow美元

托斯卡本身提供了一个对比critera叫firstEmptyRow美元。但是对我们来说并不很可靠工作。有时托斯卡不能识别一个空行和抛出一个错误消息。你必须检查它是否适合你。

514年e709e47ce55947e155752e36d43e9.iix

2。选项2,同时声明

这就是我们用来识别一个SAP表中第一个空行。这是稳定的,我们因为它到目前为止还没有任何问题。适应你的用例可以在一个循环中检查是否细胞“物品”不是空的。while循环停止细胞时发现,不包含任何价值。然后缓冲{B(行)}的数量,空行,可以用于进一步的操作。默认值为最大重复的语句是30。如果你想提高它,去时的属性声明。

8 b6e74de47ce55947e155752e36d4383.iix

fdefbc96470295947e155752e36d4374.iix

最好的,

回复


Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu
map