on 04-17-2010 9:26 AM
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.
Hi Dmitry.
Try using verticalScrollbar.PageSize property
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.