Is it possible to run host command from SAP environment? How do you run?
Hi
Is it possible to run host command from SAP environment? How do you run?
Thank You
Hello Subhash
You will more details in the following thread:
Re: How to define command for SXPG_COMMAND_EXECUTE
Regards
Uwe
Similar Messages
-
Is it possible to run host command in sap environment
hi
could any body tel me
is it possible to run host command in sap environment
then how..?yeah , by using FM
EXECUTE_FUNCTION
Regards
Prabhu -
Am calling the sql loader (sqlldr73) using HOST command from D2K Forms 4.5.
my code has following sequence,
<sequence of stmts 1>
Host(....);
<sequence of stmts 2>
the stmts(<sequence of stmts 2>) following the call to HOST commant should be executed only after successful execution of the sql loader.
curently the sql loader and stmts(<sequence of stmts 2>) are running parallely
Is there any work around?Hi,
Better way to do it would be to write a batch / shell script with the sequence of statements you want to execute and call the batch file using the host command.
Regards,
Arun -
hi all,
are there for SAP HANA a "Host Command" (from Oracle), which you can jump from HANA studio or HANA client to the operating system "SUSE Enterprise SERVER"?
greeting
ichtoukHi Ichtouk
the sqlplus command host does not allow you to execute commands on the server you're connected to. Instead, you can execute local command without leaving your current sqlplus session.
It is by no means an open window to the Oracle servers O/S (would be bad, don't you think?).
Having said that, SAP HANA does not include a SSH client in the database client software.
If you want to access the SAP HANA server on O/S level, you really need to use a proper SSH client with a regular O/S user logon.
- Lars -
hi experts ,
i need to execute DOS command from SAP .
earlier we have 'GUI_EXEC' WS_EXECUTE , 'WS_DOWNLOAD' etc which are Obsolete now.
as we are using ECC6.0. kindly guide how to do this.
best regards,
RahulTry out...
DSVAS_DOC_WS_EXECUTE_50
or
CL_GUI_FRONTEND_SERVICES=>EXECUTE
<b><REMOVED BY MODERATOR></b>
Thanks & Regards
ilesh 24x7
Message was edited by:
Alvaro Tejada Galindo -
It it possible to call web service from SAP 4.6 c..If yes how
Hi Friends,
It it possible to call web service from SAP 4.6 c..If yes how
Thanks in Advance.
Murali Krishna KIt is not possible to directly call a web service from SAP 4.6c.
Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
So as described above, the solution is indeed to make use of PI(XI) for this.
Rgds,
Karim -
Hi,
There is a requirement wherein one folder is created on presentation server ( Desktop ) in which we are putting excel files from
SAP ABAP using FM GUI_DOWNLOAD and now that folder contain file in excel forma lets say that folder name is INPUT. We have also created one more folder named OUTPUT and now the requirement is there is one executable converter file .exe in another folder lets say CONVERTER . Now the requirement is i need to execute that .exe file on excel file which it will then convert into necessary format which can be uploaded in bank site. The command works fine from windows i need to incorporate and execute the same command from SAP Kindly suggest any Function module,syntax or class n method exists for same.
The command which executed successfully from windows command prompt is
c:\>CONVERTER\ converter.exe C:\INPUT\FILE.XLS C:\OUTPUT\
The same command i need to execute it from SAP Report
Thanks
ParagHi:
Try with this:
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = u2018C:\CONVERTER\converter.exeu2019
parameter = u2018C:\INPUT\FILE.XLS C:\OUTPUT\u2019
minimized = u2018Xu2019
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
others = 10. -
my iPhone was stolen. I just got a new one and am trying to backup my contacts and data from iCloud. How do you do that?
If your backup is in iCloud, and your new iPhone is already set up, go to Settings>General>Reset, tap Erase All Content and Settings, then go throught the setup screens on the iPhone and when given the option, choose Restore from iCloud Backup and follow the prompts. (If it isn't set up yet, just choose this option when setting it up.)
Be sure your iPhone it connected to wifi and your charger while it is restoring the backup. -
once you have downloaded ESX24 sample packs from the internet how do you get them on to logic so you can use them ?
Mac App Store: Hiding and unhiding purchases
http://support.apple.com/kb/HT4928 -
Why do we have pop ups from google? How do you stop them entirely, it's annoying
Why do we have pop ups from google? How do you stop them entirely, it's annoying. I use the iPad 2' with the most current version of software
The contacts app is nothing more then looking at the contacts from the phone app.
What's the story here?"
The forums would be full of people complaining that you had to go through an additional step ( opening the phone app) to get to contacts. I use the contacts app from the home screen far more often then I use it in relation to calling someone.
I like the way it is far more than the way you propose.
You can leave feedback for Apple at:
http://www.apple.com/feedback -
When usinf Mac Address Book and you have entered the information for one contact from a company, how can you duplicate the card so you can add another person from same company?
I'm afraid the LU suffix is a new one on me.
As long as you have all of the content in your library then that remove and sync warning shouldn't cause any loss of data, but it shouldn't be happening every time. It may pay to take the following steps to reset the connection between the two,
Backup device.
Restore as a new device.
Restore the backup made earlier.
Again, this assumes all content on the device is in your library. If that isn't the case see Recover your iTunes library from your iPod or iOS device first.
tt2 -
How to run a HOST command from Report 2.5
Hello everybody,
I want to pass an unix command from a Report. I am running the report (Report 2.5) on an Unix server and I want to pass a unix host command inside the Before Report Trigger of the report. But Report2.5 is not recognising the HOST built-in. Is there is any way around?
Thank in advance.
Samujjwal BasuFirst off is that openssl command correct? Should it be this instead:
openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
After that.....
runtime.exec creates a Process object. If you do this:
Process openssl = runtime.exec("....")
then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
M -
How to run Unix Host commands from Database Triggers?
Hi
I need to create few directories in the Unix O/s under a specific directory (From a Database Trigger). And the directory names will be determined in the DB Trigger based on the data.
I hope someone would have come across a requirement like this and will be able to help me out.
Thanks.
MohanHi Christopher
How is it possible to use System calls from Triggers. Is it possible to use Runtime Libraries in DB Triggers.
Thanks
Mohan
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Christopher Racicot ([email protected]):
Try using the system calls available in
the C runtime library by calling an external
C procedure from the trigger. We will be
enhancing the support in UTL_FILE to address
issues like this in an upcoming release,
but for now an external procedure should
do the trick.<HR></BLOCKQUOTE>
null -
Calling SQL Loader using HOST command from Developer Forms 4.5
I want to execute a set of code from D2K Forms 4.5 which has interfface with Client - OS ( In my case Windows NT/XP). I want to execute SQL Loader from Forms using Host Command and then after completion of that process, I want to do next transcations ( depending upond success of HOST/SQL Loader).
How to achive this?
I tried writing code like this ...
l_vc_command := 'sqlldr73'
||' USERID='||l_vc_username||'/'||l_vc_password||'@'||l_vc_connect_string
||' CONTROL='||l_vc_filepath||'Upload.ctl'
||' DATA='||LTRIM(RTRIM(l_vc_fileloc))
||' LOG='||l_vc_filepath|| l_vc_log_file || '_' || l_dt_sysdate_str ||'.log'
||' BAD='||l_vc_filepath|| l_vc_bad_file || '_' || l_dt_sysdate_str ||'.bad'
||' DISCARD='||l_vc_filepath|| l_vc_discard_file || '_' || l_dt_sysdate_str ||'.dsc';
HOST(l_vc_command,NO_PROMPT);
After this command i want to do some other code execution. so even if it fails or success, next code is executed. How to control this?
Please help..
Regards,
MilindForms6i running on W2000, Rdbms 8.1.7
in Forms I added a button TEST,
Trigger when-button-pressed : host('test.bat') ;
in directory .......\frm I added file test.bat :
REM ===============
cd /d C:\........\ldr
pause
sqlldr parfile=test.par
pause
type test.log
pause
exit
REM ================
now, pressing TEST button opens DOS window, telling me what's going on, running sqlldr, finally going back to forms
Are you using NO_PROMPT or NO_SCREEN option of HOST command ?
Had a look at Forms 4.5 manuals, there is no mentioning of (a)synchronously operation in connection with HOST command. -
Host command from sqlplus based on a condition
I am on an Oracle 10.2.0.3.0 database running on sun solaris.
Am using my sqlplusw on my windows xp professional to do the below :
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Solaris: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
I have 4 variables declared in sqlplus for which I get my values from anonymous pl/sql blocks :
print db1_status;
DB1_STATUS
3
print db2_status;
DB2_STATUS
0
print db3_status;
DB3_STATUS
1
print db4_status;
DB4_STATUS
0
I needed some help with doing this :
Based on the values of each these variables, I wanted to invoke the host command to run stuff like
if db1_status = 3 then
host ...something
if db2_status = 0 then
host ...something
I am looking for a way to do this without creating an external procedure or java stored programs. Are there any?
ThanksNeed to use a batch file (.bat) to utilize SQL Plus while generating the SQL statements within the .bat file.
Example:
Inside SQL Plus
SQL> create table testme (name varchar2(255), value number(5));
Table created.
SQL> insert into testme(name, value) values ('db1_status', 3);
1 row created.
SQL> insert into testme(name, value) values ('db2_status', 0);
1 row created.Create a .bat file (Using test.bat)
test.bat
@echo off
echo select value from testme where name = 'db1_status';>temp.sql
echo exit >> temp.sql
sqlplus -S %2/%3@%1 @temp.sql > result.dat
for /f %%x in ('more result.dat') do set RESULT=%%x
if "%RESULT%" == "3" goto :DB1_STATUS_3
if not "%RESULT%" == "3" goto :DB1_STATUS_NOT_3
goto :EOF
:DB1_STATUS_3
echo db1_status = 3
**ENTER SYS COMMANDS HERE**
goto :EOF
:DB1_STATUS_NOT_3
echo db1_status != 3
**ENTER SYS COMMANDS HERE**
goto :EOF
echo select value from testme where name = 'db2_status';>temp.sql
echo exit >> temp.sql
sqlplus -S %2/%3@%1 @temp.sql > result.dat
for /f %%x in ('more result.dat') do set RESULT=%%x
if "%RESULT%" == "0" goto :DB2_STATUS_0
if not "%RESULT%" == "0" goto :DB2_STATUS_NOT_0
goto :EOF
:DB2_STATUS_0
echo db2_status = 0
**ENTER SYS COMMANDS HERE**
goto :EOF
:DB2_STATUS_NOT_0
echo db2_status != 0
**ENTER SYS COMMANDS HERE**
goto :EOF
:EOF
del temp.sql
del result.dat
@echo onAs you can see, this is a simple if/then which takes the value from a dynamically created SQL file (temp.sql) and uses it do determine the next system commands to execute.
Hope this is what ya needed.
-Tim
Maybe you are looking for
-
How do you add contacts to a favourites list on th...
I cannot find anywhere how to add a contact to a favourties list on the Asha 300. I need to do this in order to put it on the home screen.
-
Urgent need to install Internet Explorer or replacement
Please urgent need to install Internet Explorer or replacement
-
ASCp - Planner Workbench, PO in receicing order type record
Dear Friends, In ASCP, Planner Workbench ,under a plan, supply and ddemand screen has an order type "PO in receicving" with firm flag enabled with future date for due dates We could see all the PO's for that item is closed. On hand Quantities also go
-
Revision: 16514 Revision: 16514 Author: [email protected] Date: 2010-06-09 16:09:18 -0700 (Wed, 09 Jun 2010) Log Message: Initial push of all projects for Zeri Certification Tests. Added Paths: osmf/branches/zeri-certification/Tes
-
Load ASCII files in flash 7 (flash lite 3)
I'm trying to load ASCII text in flash, I tried with XML load but I have a file that stops the load after the first char :(( kind of EOS(end of string) sequence, I don't know... with loadVars same inconvenient... I've tried to loadMovie, but I don't