Sitemap

Amicuk Programming Answers

File adapter operating system command exit code

2015-10-11   Views:1

Advertisement

Hello, If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this. If I call 'true', I expect the file adapter to succeed. If I call 'false', I expect the file a

Hello,
If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this.
If I call 'true', I expect the file adapter to succeed.
If I call 'false', I expect the file adapter to fail.
Hope someone can calrify.
Best regards
/Otto Frost

The replay answer
Advertisement
Hi, Yes, you are rigth, it spawns a subprocess, that runs without control.
In java you use Runtime.exec().
It returns a process.
process.exitValue() returns an int.
The process is already used to terminate the process after timeout I suppose.
You would like to be able to have the fileadapter succeed or fail depending on this exitValue.
Depending on the command you execute, the exit code is different. RTFM on unix.
You would like to define which codes should be treated as success, and which ones that should be treated as failure.
true typically returns 0 and false not 0
However, a comparison command could for example return 0 for equal, -1 if the frist argument is smaller and 1 if the first argument is larger.
For the diff command, Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
Thanks
/Otto

Go to See the other 8 answers

File adapter operating system command exit code

Category:DefaultRelease time:2015-10-11Views:130

Hello, If you call an operating system command in the file adapter, how is the exit code of the command handled? The documentation says nothing about this. If I call 'true', I expect the file adapter to succeed. If I call 'false', I expect the file a[More]

Unzip file using operating system command in file/ftp receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm wonderdering how to unzip a zip-file in the receiver file/ftp adapter. I know it is possible to do it using the 'Operating system command' feature, but somehow the command I use seems to be ignored! (I'm using SP14, unix). The command I enter[More]

Unable to run a Batch File Operating System Command

Category:DefaultRelease time:2015-10-11Views:130

Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing. My Batch file: gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin My Command Line (ID scenario) exec "cmd.exe /c C:\Progra[More]

Operating system command in file adaptor

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am doing file to Idoc scenario, can i use the Operating system command in file adaptor to compress the file at FTP server and decompress the file at IE. I don’t know is it possible and if yes then how or is there any other way to handle the big[More]

Operating system command in file receiver adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi, How to use the Run Operating system command after message processing option in the parameters tab of the file receiver adapter. I am working on a scenario wherein a batch file needs to be invoked after the file is written on the file system. So h[More]

File Adapter 7.11 - set operating system command line dynamically

Category:DefaultRelease time:2015-10-11Views:130

Hi, is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute? I need to set  a command line exec depending on some XSL mapping values. thx holgerhi, >>>is there any way to set the "[More]

File Receiver Adapter:Run Operating System COmmand after message Processig:

Category:DefaultRelease time:2015-10-11Views:130

Dear All, I have gone through this link [http://help.sap.com/saphelp_nw2004s/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] But i have a problem. In the scenario which we have, File name is DYNAMICALLY GENERATED by a UDF I want to call th[More]

Operating System Command After File Processing in Sender File Adapter

Category:DefaultRelease time:2015-10-11Views:130

Hello guys, actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI. Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we[More]

Run operating system command for sender File adpter (NFS)

Category:DefaultRelease time:2015-10-11Views:130

Hi All, iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed). I mention OS command like this: sample_server\scripts\Test\Rename.bat" Rename.[More]

Re: Error while Execute External Operating System Command using T.code SM49

Category:DefaultRelease time:2015-10-11Views:130

Dear Experts, I Have uploaded one .exe file in the application server (eg: sum.exe) and created the OS command in SM69 transaction . And maintained the application server path in the 'operating system command' field in SM69 t.code. Our SAP system, op[More]

Operating  System commands in FTP adapter

Category:DefaultRelease time:2015-10-11Views:130

Hi I have a requirement to use "Operating System Command" option in the Sender/Receiver side File Adapter. And in help.sap.com they have brief notes on this. http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.[More]

Hot
HOW TO CONVERT PDF FILE IN TO XML FILENo Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web. Rod Gill The one and only Project VBA B [More]
hello folks, I am trying pull some data using the date condition and for somereason its taking too much time to return the data    and trunc(al.activity_date) = TRUNC (SYSDATE, 'DD') - 1     --If i use this its takes too much time   and al.activity_d [More]
I have one problem, I would like, that I could see and Faroese islands fonts and cirilica (Russian fonts) at the same time in TextBox, List and TextArea (awt). How it is possible to do? Please write me to email: [email protected] or here in forum.Eac [More]
Hi, I'm new in the community and I'm also new with SAP, so sorry for any errors. For my work I need to open SAP by excel (VBA); and I have found the code below but it don't work. Sub Work() Set app = CreateObject("Sapgui.ScriptingCtrl.1") Set Co [More]
I have what I thought was a simple task -- place a horizontal TilePane inside of a resizable parent, and have it use as many rows as its current width would suggest.  Setting its prefColumns to zero accomplishes that.  Unfortunately, it also causes i [More]
I have screen 2000 (Main tree) and 3000 (Sub tree). From main tree an item is double click the corresponding item id is to be taken and populate the data based on the id and display in second Sub tree. I did the process. My problem is 1st time the da [More]
大家好: 我在看<<oracle database 10g performance tuning tips & techniques>>时,看到索引那一章时,关于索引的二度高度,讲的不够细致,请高手指点一下,为什么删除了表中的20%-25%的数据后会增加二度高度的值? 还有直方图的那一节也讲的不够详细,谁能详细的给讲一下直方图创建后是如何提高的性能,如果能细致的讲一下,更是感激不尽. 谢谢各位大侠了!为什么没有回答呢?是不是我问的不够详细,大家没有看懂呀?Read othe [More]
Hi,    I dont know how to create table type through se11. what is line type. please help me.hi, Self-Defined Table Types You can start a screen sequence from an ABAP program using TYPES dtype TYPE|LIKE tabkind OF linetype [WITH key] ... . This define [More]
I am trying to run capture-schema on command line with Oracle and am getting the following error: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java 532) I have set the CLASSPATH to /u01/app/oracle/8. [More]
Hi. I've tried getting an answer from BT directly on this question several times with no joy. I would like to order Infinity (I am currently with Sky Broadband), whilst keeping my existing call package which is an Anytime calls special offer at £3 pe [More]