cancel
Showing results for 
Search instead for 
Did you mean: 

Number of visible text fields

Former Member
0 Kudos

Hi all,

Trying to upload document numbers from Excel into SAP via transaction F-03 using SAP GUI Scripting.

My approach is to enter values one by one and press Enter when the last visible text field is reached. Then enter another batch of values, press Enter and so on..

The problem is that I do not know how to get that event when the last visible field is reached.

I know the solution but for tables when you can count a number of visible rows (.visibleRowCount).

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Dmitry.

Try using verticalScrollbar.PageSize property

script_man
Active Contributor
0 Kudos

Hi Dmitry,

in this case, I would proceed as follows:

1. before the position command the system error handling switch off with

on error resume next

2. behind the position command the test of error number with

if err.number < 0 or err.number > 0

For example:


. . .
on error resume next
err.clear
'position command from existing script
if err.number > 0 or err.number < 0  then
'processing . . .
end if
on error goto 0
. . .

Declaration on the solution: In a non-relevant line will it not work. This one can evaluate it.

Regards,

ScriptMan

Edited by: ScriptMan on Apr 19, 2010 7:36 PM