AppleScript Subroutines
AppleScript Subroutines
- Subject: AppleScript Subroutines
- From: Rob Linton <email@hidden>
- Date: Thu, 29 Dec 2005 12:14:21 -0600
Anyone have any luck using subroutines (functions) in AppleScript
with SAP?
I've been reading here: <http://developer.apple.com/documentation/
AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.d5.html> but
cannot reproduce the effect of a function when scripting SAP.
-R
(* FOC suboutine *)
on doFOC()
try
tell application "SAPGUI 6.40rc1"
activate
--nav to va01 begin rma
set txt of OKCode field ("/app/con[0]/ses[0]/wnd[0]/tbar[0]/okcd")
to "/nva01"
send virtual key 0 to main window ("/app/con[0]/ses[0]/wnd[0]")
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/
ctxtVBAK-VKORG") to theSalesOrg
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/
ctxtVBAK-AUART") to "fd"
set txt of combo text field ("/app/con[0]/ses[0]/wnd[0]/usr/
ctxtVBAK-SPART") to "01"
send virtual key 8 to main window ("/app/con[0]/ses[0]/wnd[0]")
return true
end tell
end try
end doFOC
(* end FOC subroutine *)
doFOC -- does nothing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden