How to make SAP Script/Macro run in background like xl macros
Hi,
I have a recorded sap script to run, but I can see all the steps visible in the screen. Is there a solution in SAP to set displayalerts or screenupdate as false like excel. I do not want the viewers to see the macro running in all steps. I tried iconify, but it works only for main screen, the child screen are still visible. Please help.
Thanks
Mercy
Hello.
In my knowledge there is no Option from SAP GUI Scripting.
When you run this from VBA you can use USER32-API function
Public Declare Function LockWindowUpdate Lib "user32" _
(ByVal hwndLock As Long) As Long
Call function via public Sub:
Public Sub DisableScreenUpdating(xhWnd&)
If xhWnd <> 0 Then LockWindowUpdate xhWnd
End Sub
Public Sub EnableScreenUpdating()
LockWindowUpdate 0&
End Sub
And call this whenever you have a new handle during your script:
Session.FindById("wnd[0]/usr/btn%_STAE1_%_APP_%-VALU_PUSH").Press
DisableScreenUpdating Session.FindById("wnd[1]").Handle
Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,0]").Text = "DLFL"
Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,1]").Text = "INAC"
Session.FindById("wnd[1]/tbar[0]/btn[8]").Press
DisableScreenUpdating Session.FindById("wnd[0]").Handle
Session.FindById("wnd[0]/usr/btn%_STRNO_%_APP_%-VALU_PUSH").Press
DisableScreenUpdating Session.FindById("wnd[1]").Handle
Session.FindById("wnd[1]/tbar[0]/btn[24]").Press
Session.FindById("wnd[1]/tbar[0]/btn[8]").Press
When your script is completed call
EnableScreenUpdating
Of course People can get nervous at it seems like nothing happen. May they kill this session as they think it´s crashed.
Hope this help.
Br, Holger
Similar Messages
-
How to make OTM scripts to run on remote machines
Hi,
I came across lot of posts which tells how to configure OTM to connect to remote machines.
Some how i dont understand when they say stop the OATS service and configure it manually
Also to use the password for authentication manager.
What i really want to know is step by step for a layman to set up OTM to run scripts on a remote desktop and on the local with the execution being displayed (not suppressed)
How do we configure that?
Any help is deeply appreciated!! my test cases are just stuck inprogress status
Thanks
RadhikaHi Radhika,
For running Scripts from either the server or the remote machine using OTM you need to run the Agent Manager service as a console not the OATS service. For that you need to stop that service--> set the startup type as manual--> the run the ' C:\OracleATS\agentmanager\bin\AgentManagerService.exe –c AgentManagerService.conf ' command in the CMD to run this service as a console. Because this agent manager service is for OLT to communicate with its agents and works fine even if it is set to automatic or manual and started normally. Hope this helps.....
Regards,
Charles Kingsly -
How to make SAP B1 connection with Windows Sharepoint Service 3.0
how to make SAP B1 connection with Windows Sharepoint Service 3.0 through asp.net web part code.. I get the security error when i run that web part......
public bool ConnectToCompany()
oCompany = new SAPbobsCOM.Company();
oCompany.Server = "192.168.1.58";
oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
oCompany.CompanyDB = "SBODemoUS";
oCompany.DbUserName = "sa";
oCompany.DbPassword = "abc";
//oCompany.UseTrusted = true;
oCompany.UserName = "manager";
oCompany.Password = "manager";
oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
oCompany.LicenseServer = "192.168.1.58:30000";
int i = oCompany.Connect();
if (i != 0)
return false;
return true;
protected override void RenderContents(HtmlTextWriter writer)
if (conn.ConnectToCompany() == true)
writer.Write("Hello" + this.Context.User.Identity.Name);
Edited by: bikalg on Nov 28, 2010 9:43 AMHi.......
Welcome to SAP Business One Forum.....
Unfortunately this is the wrong forum you posted here.
I would suggest you post it in SDK or System Administration Forum and definitely you get the solution and close this thread from here......
Regards,
Rahul -
How To send SAP SCRIPT AS an email.
Hi,
Any one knows how to send sap script output to users in the form of an email.
Is there any other way to send it apart from sending the script output to spool and converting the spool to PDF and send that PDF to user?
It would it helpful for me if u can let me know any peace of code as an example for the same.
Message was edited by: NarasimhaHi,
This may be too late but here is a really easy way
Here is a snippet of code that will help you out.
You can use the OPEN_FORM of the SAPscript to have a device type of MAIL instead of PRINTER
Form OPEN_FORM
Open SAPscript form to send to user
FORM OPEN_FORM .
*--- Set recipient
GW_COMM_VALUES-ADSMTP-SMTP_ADDR = '[email protected]'.
*--- Set NAST details as these will not currently be set....
CLEAR GW_SNAST.
GW_SNAST-ANZAL = 1.
GW_TITLE = 'Mail Header Title'.
MOVE GW_TITLE TO GW_SNAST-TDCOVTITLE.
*--- Set sender and recipient details
CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
EXPORTING
PI_COMM_TYPE = 'INT'
PI_COMM_VALUES = GW_COMM_VALUES
PI_REPID = SY-REPID
PI_SNAST = GW_SNAST
PI_MAIL_SENDER = SY-UNAME
IMPORTING
PE_ITCPO = GW_ITCPO
PE_MAIL_RECIPIENT = GW_RECIPIENT
PE_MAIL_SENDER = GW_SENDER
EXCEPTIONS
COMM_TYPE_NOT_SUPPORTED = 1
RECIPIENT_CREATION_FAILED = 2
SENDER_CREATION_FAILED = 3
OTHERS = 4.
*--- Open SAPscript in MAIL mode for e-mailing
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'MAIL'
DIALOG = 'X'
FORM = SapScript Form Name
LANGUAGE = SY-LANGU
OPTIONS = GW_ITCPO
MAIL_SENDER = GW_SENDER
MAIL_RECIPIENT = GW_RECIPIENT
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12.
When you have finished your SAPscript and call function CLOSE_FORM make sure you do a COMMI WORK after the call of this function.
You should then see the mail created in SOST.
Kind regards
Colin -
How to create sap scripts? script is a language how to create script ?
how to create sap scripts?
script is a language how to create script ?hi ,
step by step procedure.
SAP Scripts
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://www.sap-img.com/sapscripts.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
Other Links
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
http://www.allsaplinks.com/dialog_programming.html
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://www.geocities.com/ZSAPcHAT
http://www.sappoint.com/abap/ssintro.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/lsetssap.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
sri -
How to make an user into Service authenticated user like cmadmin_service
Hi All,
I am trying to fetch the list of documents, properties, log on/logoff functionality with an iUser ex: epuser, through java code.
The list of docs are presented in the Documents Folder with teh following sample code
|
RID rid = RID.getRID("/documents");
String userName = "epuser";
IUserFactory userFactory = UMFactory.getUserFactory();
com.sap.security.api.IUser userNew;
userNew = userFactory.getUser(userName);
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(userNew);
ctx.setUser(user);
IResource res = null;
res = ResourceFactory.getInstance().getResource(rid, ctx);
wnen i am trying to fetch all the docs and the corresponding properties by passing " cmadmin_service " as an user name. i am getting the right results. But when i tried with "epuser " i am getting the output as Service Authentication value false.
Then i added epuser in the System Principal--->System User. still i am not getting the right results.
plz help me how to make this epuser as service authenticated user like cmadmin_service userHi phani,
I have no direct solution but you should check the service permissions of the resources you are trying to fetch. The exception sounds like there is the problem. Go to the Details of the CM-Resource and Select Settings-->Service Permissions.
Does the epuser has the necessary permissions for your operations?
Another thing is the way you are creating users:
The WPUMFactory has a special factory-method for creating service users. Perhaps this is a better aproach:
WPUMFactory.getServiceUserFactory().getServiceUser(user);
Best regards,
Stefan Brauneis -
How do i turn off programs running in background with current updated software?
How do i stop the apps running in background on updated iphone software?
Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB. -
How to DEBUG a function module running in background mode? Please help!
Hi Experts,
I am calling a function module in my ABAP code in background module using the following syntax:
CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
TABLES
itab_std_format_inv = itab_std_format_inv
itab_snapshot_inv = itab_snapshot_inv.
COMMIT WORK.
If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
I cannot comment this "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
So how to DEBUG a function module running in background mode? Please help!
Thanks
GopalHi,
You could try to use the following trick:
(1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
DATA:
lx_exit_loop(1) TYPE c.
lx_exit_loop = ' '.
DO.
IF ( lx_exit_loop = 'X' ).
EXIT.
ENDIF.
ENDDO.
(2) Call your function module in background task
(3) Call transaction SM50 and search for the background process.
(3) Choose from menu Program/Mode -> Program -> Debugging
Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
<b>Reward points</b>
Regards -
Speed has slowed to nil how do i delete all icons running in background?
speed has slowed to nil. How do I delete all icons running in background?
To close an app, drag the app up from the multitasking display.
Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app thumbnail to close it.
this might help as well.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up. -
How to make a select list editable or searchable like the combobox
Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.
Hi Nilesh,
If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
get the combobox plug-in
http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
I have not tried this though. Found it while searching for some other plug-ins.
Regards,
-Senthil -
Launchd: how to make a script run every weekday?
I'm trying to make a script run every weekday as a LaunchAgent. Is there a way to do this like you could in cron?
Here is the relevant portion of my LaunchAgent plist:
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Minute</key>
<integer>0</integer>
<key>Weekday</key>
<integer>3</integer>
</dict>
I have tried changing the Weekday integer to 1-5 or 1,2,3,4,5 but neither worked. It only works with a single integer. Do I have to create 5 separate plists for each weekday?
Any ideas?Thanks VK, for others who are looking to do something similar, here is the relevant part of the code to make the command run every day (since that field is missing) at 7:00pm and 7:01pm:
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>19</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
<dict>
<key>Hour</key>
<integer>19</integer>
<key>Minute</key>
<integer>01</integer>
</dict>
</array> -
How to make Apple Script do a terminal command
Hey,
I am wondering how can I make an AppleScript do the following command :
"networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
Please mention step by step since I'm new to AppleScript
Best Regards,
Nadav.To run a terminal command it is usually sufficient to use do shell script. So for your command it would be
do shell script "networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4"
note if the command requires administrator privileges you would need to do
do shell script "command" with administrator privileges
will prompt for the password when the script is run.
do shell script "command" user name "me" password "mypassword" with administrator privileges
will store the password and username in the script. More convenient but much less secure.
See do shell script in AppleScript -
How to save sap script output in pdf document
hi abapers
how to save the output of sap script in sap so that can retrieve the saved document later.
i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
how to use dmsPDF Creation + connection to DMS
cheers
Aveek -
How to make SAP standard field as mondatory in a screen
hi all,
i need to make SAP standard field as mondatory in a screens EG31, EG34,EG71
TO DO THAT I HAVE TO USE : EXIT_SAPLE30D_002
so can anybody tell me how thatYou can use standard program RSMODPRF.
Execute this standard program without giving any input
and select the data element whatever you want to make mandatory and click on Assign prog/screen button click OK and come back.
now give required data element and execute the program again
and write the code to make that datea element mondatory.
hope it helps... -
How to make sure an applet runs with Java 5?
Hi all,
First let me say thanks for all the help in the past. You've help me go from noob to intermediate noob. I've just about finished my first applet game which can be checked out here .
Now I've been reading about problems with mac and 1.6. (note it works on Linux). I want to make sure that it runs fine and of course I don't own a mac. So I downloaded the 5 JDK. Selected it as the java platform in Netbeans, compiled and it ran fine.
Questions:
Do I have to always use 1.5 to compile and perhaps set it as default?
Since it works in 1.5, do I compile it with 1.6 and just upload?
I'm worried I'm not testing it correctly. I mean if I have both 1.5 and 1.6 installed on my machine, how to I make sure the applet is only using 1.5 to run?
Thanks
Darrincorlettk wrote:
I haven't got a clue RE your problem other than for max-portability you should compile with [-target 1.5|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html].
I must say I'm impressed, except I suspect my PC must be substantially faster than any of your test platforms... can you throttle it to CPU performance somehow? Or maybe it's just that my reflexes aren't what they once where.Thanks.
There seem to be two issues. The first is what people are using. This web stats shows pretty poor penetration of 1.6.
[http://www.statowl.com/java.php|http://www.statowl.com/java.php] Penetration: 54% with JRE1.6 + 19% with JRE 1.5. Total 73%.
The second is I've read that mac and 1.6 do not get along except on a 64bit platform.
So for applets there is not much choice but to compile on 1.5 for the broadest user base. I guess the good news is 1.4 and earlier are almost non-existent.
Edited by: Darrin.A on Apr 27, 2009 8:11 AM
Maybe you are looking for
-
What is your theory on what happened with ASUS Transformer Prime and BB?
This is my theory: First preorder batch 11/22: BB opened up for preorders based on expected date of anticipated 12/9 ship date. The buyers at BB that orders from vendors did not buy any preorder stock from ASUS in Champagne on first order. I gotta b
-
My iPhone 3 had been syncing fine with Outlook 2003 via Google Sync. I recently had to reload my PC, wiped it and installed Outlook 2010 as part of the reload; when I tried to install Google Sync I learned it was no longer available for download aft
-
Open Link In New Tab option has gone
When I right click, I expect for the options to include "open link in new tab". Yet instead, the only one that appears is "Open Link in new window". I've tried everything I can think of and there isn't an answer to how to get it back anywhere on the
-
During import Aperature wont show all photos on memory card.
During import Aperature wont show all photos on memory card. Typically loads the previews of the first 15 photos only showing "loading assets" and spinning wheel. Running Aperature 3.2.3 on MBP 2.16 core duo 2gb ram importing from a SD card reader co
-
I bought an iPod Shuffle today and trying to sync 1 audiobook. Keep getting error message. If I try again, it looks like it's ok but then the device won't play it... What can I do?