on 06-11-2015 12:44 PM
Hello all,
I found some videos concerning to the Subject "Table Handling and Navigation in SAP Screen Personas Scripts for version 3.0", but I found nothing for Version 2.0.) .
The special Question is:
Is it possible to find the first emty row in a table control in a SAP Screen Personas 2.0 flavor. and is it possible to fill fields of the first empty row of the table control using a script.
If the answer is "Yes": what I have to do realize it in SAP Screen Personas 2.0.
Thanks in advance and
Best regards
Adrian Scheffer
In general, the answer to this question is no. Because Personas 2 scripting does not support looping there's no way to look through a table looking for an empty row.
However, some transactions have an "add" button that adds a blank line in a predictable position - top row, or second row. Or sometimes there's a "page to the end" button that leaves the first blank line in a known position. If the transaction you are trying to use works this way, then you don't need the looping.
Does that help?
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Steve,
Thank you very much for your answer,
(I just prepare some steps for our customer. We have installed Version 3.0, our customer has installed 2.0 _SP 03 . So I can't test it in our house )
Our customer wants to automize the input for 10 most running materials using a script button. for each of this 10 Materials for sales orders .
If I will use the button to add a new row in the script, I fear, that the next step in the script will not remember this variable row but the row number I used when writing the script..
For example: I fear that the Material will be entered for example always in row muber 2.which was the first emty row at the time I wrote the script.
Do you agree ? or do you know an other solution ?
Thanks in advance and
Best regards.
.
.
As I said, this only works if there's a button that leaves an empty row in a known position. Some transactions do this.
You seem to be talking about transaction VA01, is that right? In VA01 there is a "Create item" button below the items table. That will scroll the table so that the first blank row is second. Except when the table is completely empty, in which case the first blank row is first. But, even then, you can enter data in the second row. So, for VA01 you can always do this:
At least, it seem to me that would work. Try it and see...
Steve.
Hello Steve,
we tried it as you said. an found a work around.
If you have a table minimized for example to 10 rows. you can always set the Focus on row 10 by script and add a new row with the same script .
The add new role button works at the first time but the script does not remember the Position dynamically but takes the absolute position used in the script at time of recording.
After ist done the new row is in the right Position. (All empty rows are deleted.
(If you scroll down and use for example row 50 you see an empty table and you can see your Input only after Scrolling up manually.) .
So thank you very much and best regards
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.