Execute c:\abc\myprogram.exe from abap
Hi,
How to execute my executable file c:\abc\myprogram.exe from abap. And I want to make sure myprogram.exe is finished execution before continue to the next line in abap. Can paste some code sample?
Thanks.
Hi friend,
Use FM 'GUI_RUN'.
Try this code:
REPORT zdemofun .
CALL FUNCTION 'GUI_RUN'
EXPORTING
command = 'c:\abc\myprogram.exe'.
This will exactly help u.
Thanks..
Similar Messages
-
Hi all,
I would like to call a Function (with 3 Param) of a given VB-EXE or VB-Script from my ABAP.
Is there anyone who can help me ??
ThanksHi,
Check these links :
/people/thomas.jung3/blog/2004/09/01/using-net-windows-controls-in-the-abap-control-framework
http://www.codeproject.com/dotnet/SapDBReader.asp
how to execute SalesOrder into R/3 DB using VBscript
Sample code in ASP to connect SAP?
Regards
Appana -
Execute .hta document from ABAP
Hi,
I want to execute a .hta document using ABAP. What way do I have to go?
.hta is an HTML Application (HTML and Java Script). In our case a form that has to be started by clicking on a file name.
In what direction do I have to look for a solution.
RonHi Ron,
if the file can be executed locally from your C:\ drive by double-clicking, it means that the extension HTA is directly executable OR it's linked to a program (e.g. EXEs are executable, but HTMLs are linked to your internet browser).
Anyway, if you can double click an HTA file, you can also launch it from ABAP with function module GUI_RUN.
I hope it helps. Kind regards,
Alvaro -
Problem in executing EXE from browser-URGENT
Hi all,
I am facing a problem in executing "c exe" file from my web based application, iam using IAS
on Solaris. my program is able to catch the path but its not executing (this is wirking fine in windows) i am giving a sample code here
Runtime rt=Runtime.getRuntime();
Process pro=rt.exec("/datadisk1/java/runsol.exe");
pro.waitFor();
runsol.exe will generate s text file when executed, when i run this in a independent java program then it is executing, on browser it is not executing and output text file is not creating.
Note: i am working on Solaris / Oracle AS 9i
Thanks
Bye.Security issue. Calling .exe from applet not possible by default.
-
Method class for calling/executing VB script from abap
Hi All,
I need to call a vb script from abap.
This vb script performs some function then.
For executing this VB script i use the method CL CL_GUI_FRONTEND_SERVICES=>Execute.
Now i need to pass data to the vb script in the from of a structure/workarea.
Does anyone have any idea on what class/method shoul i use?
Regards,
Harshit RungtaCheck Connect VB to SAP
Kanagaraja L -
To execute from ABAP code an external Unix program
HI,
I would like to know how to execute from ABAP code an external Unix program and check for a return code?HI,
There are different ways to this:
(1) OPEN DATASET <file> FOR OUTPUT 'unix command'
CLOSE DATASET <file>
This command executes the unix command and writes the output into <file>
Look into OSS Note 9391.
(2) or try the following program but unfortunately the command CALL SYSTEM is
not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0.
REPORT ZUNIXCOM .
DATA: U_COMMAND(200).
Table for system messages
DATA: BEGIN OF RT OCCURS 100 ,
LINE(100) ,
END OF RT .
START-OF-SELECTION .
MOVE 'unix command' to U_COMMAND .
REFRESH RT.
CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND
ID 'TAB' FIELD RT-SYS .
LOOP AT RT.
WRITE : / RT-LINE .
ENDLOOP.
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
Execute external WebService from abap
Hi Gurus!
Is it possible to execute an external WebService from an abap function/program without using the XI?
Best regards,
Adrianoyou can do this.
if you are on WAS6.4 there is a tool available within ABAP work bench to generate client proxy.
if you are on WAS 6.20 then you have to use class cl_http_client to consume the webservice,
check out the following weblogs for code sample
Send SMS to India from ABAP
BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
Regards
Raja -
Hi,
I am using the method mentioned by Durairaj (@ /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i )
to execute queries from ABAP.
When I try to execute a query with characteristics in rows and if the characteristics name is large then i get a dump:
'Field symbol has not yet been assigned'
@ <l_field> = wa_set-chavl .
I tried the same for another cahracteristic of lesser length and it works fine.
Initially the chara name was like:
<8 letter dim name>__<7 letter chara name >
when i used a dim name with lesser no of letters:
<7 letter dim name>__<6 letter chara name >
It works fine.
is there any restricition on the lenght of characteristics ?
Thanks,
Message was edited by:
Rithesh VijayakrishnanMatthias,
I have tried to use this method before, but with the follow URL:
/SAP/BC/WebDynpro/SAP/YWEBTEMPLATE_TEST/bi_template_page.htm?&varn1=0pcalmon&varv1=200901&varn2=0p_cocd&varv2=b047&url=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex
didn't work as I image.
Do I have to transform this url before execute the method?
Tnks for your patience. -
How to execute os command from ABAP program?
I want to execute some window commands from ABAP. What is the way to do it?
Hi,
See ht e coding below, I have used these Fm to connect to FTP server and get the Files..
*types for the ftp command result internal table
TYPES : BEGIN OF ty_result,
text TYPE char512,
END OF ty_result.
data it_result type standard table of ty_result.
*Connect to the FTP server
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = lv_user " user name pass word to connect
password = l_v_pwd
host = 'dev.eu.pm.com' " Host name here
rfc_destination = 'SAPFTPA' "destination name
*Ask your functional people for the above data
IMPORTING
handle = v_handle
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*Changing directory
CONCATENATE 'cd' '<file path>' INTO l_v_cmd SEPARATED BY space.
you can also ser 'DIR in l_v_cmd which opens the directory and all the folders *get into it_result table..
*Execute the FTP Command
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = v_handle
command = l_v_cmd
TABLES
data = it_result
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
rewards if useful,
regards,
nazeer -
Execute Lotus.exe from SAP Portal
Hi All,
I need execute the Lotus.exe from KM into SAP Portal , and need open the Lotus Application in the other windows..
Please , help me..Hi Roberto,
I hope following link will be useful to you,
<b>http://help.sap.com/saphelp_nw04/helpdata/en/28/b7341c0f3e7a4494227dfaa130e520/frameset.htm</b>
Regards,
Vivek
[Pls reward points if useful] -
Pda execute other exe from Labview
I'm looking for ways to execute an exe from Labview PDA that is stored on the PDA (another PDA application)... I'm running WM5.0 ... .any ideas ...
GreycatHey Greycat.
That is a great question! So as you noticed there is no equivalent to System Exec in LabVIEW PDA, so you cannot launch an application that way. I would think that there would be a DLL that could be called on the PDA that will allow you to launch applications. However, after several Google searches I was not able to come up with any specific code or DLLs. Once you found that DLL hoewever, you shouldn't have problems launch an EXE. I am assuming that these are not other LabVIEW PDA built EXEs, which is a shame since you might be able to open a VI reference to that VI.
Andy F.
Message Edited by Andy F. on 04-25-2006 06:52 PM
National Instruments -
Hi All,
I have to execute one DLL from ABAP, I have pass one file txt to parameters and execute the DLL.
Any could help me?Check this:
Re: How to call a FrontEnd DLL in ABAP Program
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/vb-function-module-or-dll-in-abap-programming-1659211
http://nonet.dyndns.org/b2e/blogs/index.php/2005/10/30/calling_dll_functions_within_sapgup_via?blog=5 -
Executing a exe from adobe air ??
I want to execute a exe from adobe air .currently i am using Adobe Flex Builder 3 can any one guide me on this please , It's very urgent ....
Flex Builder 3 does not contain AIR 2 (Beta) SDK.
Till AIR 2 is released, you can overlay the AIR 2 Beta SDK in FB3:
http://labs.adobe.com/wiki/index.php/AIR_2:Release_Notes#How_to_overlay_the_Adobe_AIR_SDK_ for_use_with_the_Flex_SDK
-romil -
Execute unix script from abap.
Hi friends,
I have a abap report which generate a text file in<b> /usr/tmp/</b> directory . Now i have a unix script which encript the text file. I want to this from abap report. How I can do this . and in which path I should keep this unix script Please help.
RegardsHi,
try the below code
parameters : p_sfile(60) lower case
"File to be moved
"Eg : /home/in/SFILE1.txt
p_dfile(60) lower case.
"File's Destination
"Eg: /home/archive/SFILE1.txt
data : t_btcxpm
like btcxpm occurs 0,
p_addparam
like sxpgcolist-parameters.
concatenate
'/home/ABAP/scripts/Archive_file.sh'
p_sfile
p_dfile
into p_addparam separated by space.
refresh t_btcxpm. clear t_btcxpm.
call function 'SXPG_CALL_SYSTEM'
exporting
commandname = 'ZSHELL'
additional_parameters = p_addparam
tables
exec_protocol = t_btcxpm
exceptions
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
others = 12.
if sy-subrc = 0.
write : /
'File',p_sfile,'moved to',p_dfile.
else.
write : / 'Error Occured'.
endif.
Reward points if found helpful
Cheers,
Chandra Sekhar. -
Execute webdynpro from abap program and return to the caller program
Guys,
I have a question here.
I know there is a way to call an abap webdynpro application from normal abap program by either using a class method, or use a function module WDY_EXECUTE_IN_PLACE by providing
the webdynpro application or using CALL TRANSACTION statement.
But, is there anyways that we can call the webdynpro application from abap program by supplying data to the webdynpro and display to the user from the portal, and then
once the user do some manipulation on the data, can we transfer back the data to the caller abap program?hey ,
you can pack any web-dynpro program in tranasaction code and run it from R/3 and not via portal :
search in " SAPTECHNICAL" how to do so - for some reason i cant post a link here
than you can use call transaction .
regards
ASA
Maybe you are looking for
-
Want to have My iPod Touch to be connected to a WiFi while away From Home
While at Home I am connected to my WiFi through my computer system but when I am away from home there isn't very much WiFi Hot spots in my area except when I am in a Star bucks or in a business that says that they have "Free" WiFi. I have a few WiFi
-
"My Music" app .. song name displayed in error
Hi, I have a C1-01. I have stored some mp3s on the memory card, and I checked with an ID3 editor on my PC, they have their ID3 tags correct. But in the "My Music" app on the phone, when I go to "All Songs", many songs have their name displayed in err
-
How can i know the no of servlets
how can i know the no of servlets present in single application
-
Different results on different computers
This is kind of complicated, so please bear with me.... Ok, I started out with at video encoded with sorenson 3 at 852x480, which is 16:9. My goal is put this through compressor to import to FCP in DV format so I don't have to render. I set up my com
-
Sub-directories in CRS_HOME /crs/auth
I find that there are a lot of directories created under <CRS_HOME>/crs/auth on all my RAC instances. These directories do not contain any files. Would like to find out what these directories are for and if it is ok to delete them. Tks.