Message
From
07/12/2006 10:07:37
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Automate SAP
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Oracle
Miscellaneous
Thread ID:
01175636
Message ID:
01175636
Views:
66
Hello,

I've developped a little programm which is doing the logon to SAP.
Then I call an internal SAP program which has to run with different variants for 35 times (35 variants).
I've solved this with API-Functions which are sending keystrokes to the SAP window:
(FindWindow(Null, "SAP Logon 640")
= keybd_event(ALT_CONTROL, 0, 0, 0) etc.)

This works fine if you do pauses between the keybd_events.
Also it is easy to find out which SAP window is active at the moment.

But now my question:

is it possible (and how) to read/write the content of an input filed of the SAP mask?.
In my program I have to count how many tabs or "Downs/Ups" I have to send to reach the input field I want.
Would be more elegant to write the value directly to the field.


many thanks in advance for your answer


best regards

Marcus




Next
Reply
Map
View