Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automate SAP
Message
De
07/12/2006 10:07:37
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Automate SAP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Oracle
Divers
Thread ID:
01175636
Message ID:
01175636
Vues:
65
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




Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform