How to fetch and save file in common server using FTP in SAP
Dear All,
My requirement is to fetch a image and save an image in a common server through SAP .
I think there is some concept of doing the same using FTP.
Please put some light on this issue.
REgards,
Amruta
Hi,
Below are the FM's use to FTP.
FTP_CONNECT Connect to FTP server
FTP_COMMAND Execute FTP Command
FTP_DISCONNECT Disconnect from FTP server
You can search SDN for more details on each of the FM's.
Hope this helps
Regards
Shiva
Similar Messages
-
How can I create a directory on my server using FTP in applescript?
Hi
I have created a script which successfully uploads files to my server using FTP and a curl command.
The one thing I haven't worked out how to do is how to create a directory on my server using applescript. At the moment I have to manually create the correct directory for the script to work, but would like to be able to automate everything.
Would this be possible?
Thanks
NickThanks Bernard.
I have tried that and still get the error message:
"curl: Can't open '--ftp-create-dirs'!
curl: try 'curl --help' or 'curl --manual' for more information
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (9) Server denied you to change to the given directory"
The other relevant parts of the script are:
set ftp_url to "ftp.****.org.uk/artists/" & artistName2 & "/assets/"
set ftp_username to "*****@*****.org.uk"
set ftp_password to "****"
set ftp_entire to ftp_username & ":" & ftp_password & " ftp://" & ftp_url
set outPath to outputFolder & fileCounter & ".jpg"
and then...
do shell script ("curl -T --ftp-create-dirs " & outPath & " -u " & ftp_entire)
Like I said, all works fine when the directories are already in place. I have permissions for the artists folder set to "777", i.e. writable. Because the script is trying to create two directories at once, i.e. "artistName2" and then "assets" under it, I wondered if this was significant, but then I tried with just one new directory, and still got the error. -
How to open and save file like the Notepad Demo do?
I am a newer to Java Web Start. I found that in the Notepad Demo, when user try to open or save file, a message box appear and give the user some security suggestions.
In my application, I used a JFileChooser and set the <security> element to <j2ee-application-client-permissions/> in the jnlp file. But the application will thow an exception:
access denied (java.io.FilePermission C:\Documents and Settings\Administrator\desktop\Java Web Start.lnk read)
Can someone tell me how to solve this problem. By the way, where can I find the source of the Notepad Demo. I want my application to open and save file just like the Notepad Demo do.The Notpad demo uses the JNLP api to read and write files. The api doc can be found at:
http://java.sun.com/products/javawebstart/docs/javadoc/index.html
Although the Notpad demo source is not available, there is other sample code available at:
http://developer.java.sun.com/developer/releases/javawebstart/
Included here is the webpad demo, which uses the FileOpenService and
FileSaveService API's. -
HOW TO OPEN AND SAVE FILES TO/FOR MS-WORD 2007 .docx format
MS-Office 2007 will open .docx files as well as .doc files. Apple's Pages '08 can OPEN MS Word 2007 documents with the new file format ".docx". Pages '08 can not save as ".docx" files, just ".doc" files, but since MS Office 2007 can open these ".doc" without a problem, you should be covered.
Here is how.
To open: Just double click the file and Apple's Pages '08 will import the file and open it for you to use and modify.
To save and use at your work or school's Windows MS Word 2007: When you are done and ready to save the file, go to FILE in the menu bar in Pages '08 and select EXPORT. Then pick the icon DOC WORD and click NEXT. Then in the SAVE AS box, give it a name and tell where you want to save your file to. Click EXPORT. Export is like Save, as it will now save the file where you told it to save it to. Remember you can use the same name, or give it a new name. Thats it. EASY.
It will save the file in a Windows Word format of ".doc" that MS Word 2007 can open and use.
Hope this helps people.
-Apple //GSWhy yes. How did you know that I saw the way, the truth and the light?
I just had so many people ask me how to do this, that I thought I might share it with as many people as I could and help the masses To bad that Apple just did not have it as a simple "Save As:" Maybe in the next update.
-Apple //GS -
I have a problem to open and save the files.here is my code. can anyone help me to open the files.
public void actionPerformed(ActionEvent e) {
if ("open".equals(e.getActionCommand())) {
FileDialog fdopen=new FileDialog(this, "Load File", FileDialog.LOAD);
fdopen.show();
Thanks for ur timeHi fbnmir or who ever can answer my question,
My problem is similar to the code you wrote. I'm trying to make (or rather complete a half done) editor for text files. For opening and saving files I have so far:
public void actionPerformed(ActionEvent ae){
FileDialog filedialog;
final SearchDialog searchDialog;
String arg = (String)ae.getActionCommand();
// the Open ... case
if(arg.equals(Editor.fileLabels[0])){
if(Editor.VERBOSE)
System.err.println(Editor.fileLabels[0] +
" has been selected");
filedialog = new FileDialog(editor, "Open File Dialog", FileDialog.LOAD);
filedialog.show();
if(Editor.VERBOSE){
System.err.println("Exited filedialog.setVisible(true);");
System.err.println("Open file = " + filedialog.getFile());
System.err.println("Open directory = " + filedialog.getDirectory());
//the Save ... case
if(arg.equals(Editor.fileLabels[1])){
if(Editor.VERBOSE)
System.err.println(Editor.fileLabels[1] + " has been selected");
filedialog = new FileDialog(editor, "Save File Dialog", FileDialog.SAVE);
filedialog.show();
if(Editor.VERBOSE){
System.err.println("Exited filedialog.setVisible(true);");
System.err.println("Save file = " + filedialog.getFile());
System.err.println("Save directory = " + filedialog.getDirectory());
These are two components of a MenuHandler class. The problem with this code is that in the text editor window, even if the Open button is pressed the file I want to open isn't displayed. Although the System.err (I think that's what it is called) says:
Open ... has been selected
Exited filedialog.setVisible(true);
Open file = tutorial_01.rtf
Open directory = C:\dhruba\epgy_2006\tutorial\
Save ... has been selected
Exited filedialog.setVisible(true);
Save file = test.txt
Save directory = C:\dhruba\epgy_2006\tutorial\
How can I actually display the file I want to open, or save some text I've written?
I would appreciate any help, thanks. -
How to export and save a report at server or a remote machine?
Hi,
We have our BOE server XI R2 installed in Solaris SPARC machine. I would like to export the report to Word and then save it in a remote/another machine. Presently our application is showing a save as dialog to client. Instead we want it to be saved in a specific machine.
ThanksHi Bhave ,
Thanks for taking sometime to clear our doubt.
We were trying the solution your solution but still we had been thrown the save as dialog.
Let me clearly state the problem which we are facing.
Presently we are able to redirect user to BO server which in turn shows a save as dialog in client's machine. What we are trying to do is to run report at specific time---> exporting to word -
> saving it on a particular machine and mail the users location or a url which authenticates and redirects user to the file.
FYI We have a Business Objects Enterprise(server) XI Release 2 server installed on Solaris.
Thanks
Hi Bhave ,
We tried the code you have specified. There was some problem with Business Objects server. On solving the same your code works well.
We are able to save file in RTF format. But when we were trying to convert to PDF and save. RAS server goes down. We dont know the reason.
And where we will be able to find what are the responsibilities of all the servers running in BO XI R2.
Thanks
Edited by: lnarayanan86 on Aug 13, 2009 11:04 PM -
How to pass and print files through LPT1 port using thermal printer
hello,
We are developing POS for a retailer store and we most probably finished it. We are using the following hardware interfaces for the development.
1) Receipt Printer with Cash Drawer
Brand: POSIFLEX pp6000 serial thermal printer
Power Rated: DC 24v 2.0 A
Model no: 3902c492
2) Barcode Label Printer
Brand : Monarch Paxar
Model No: M09642PMU
Serial No: 20123152
3) POLE DISPLAY
Brand: CE
Model No: 07010517
4) Barcode Scanner
Brand: KB WEDGE
Model no: A307911
5) Programmable Keyboard
Brand: PREH COMMANDER MC 128
Model No: 90319-000/0000
Serial No: 014693
6) Touch Screen
Brand: 3M TOUCH SYSTEMS INC
Model No: 11-81371-129
The problem is , we never get the printout of the receipt .But we generaed the receipt. And the cash drawer is not opening.We use the following code for printing the receipt
import java.awt.print.*;
import java.io.*;
import java.util.*;
class PrintManager extends Thread
String STR_OUT="";
boolean CD_OPEN=true;
FileOutputStream fos;
PrintStream ps;
//char[] CMD_CUT={29,86,66,250}; //cuts paper
char[] CMD_CD_OPEN={27,112,0,25,250}; //kicks cash drawer 1
public PrintManager(){
setDaemon(true);
public void Init()
Init(true);
public void Init(boolean CDOPEN)
try{
fos = new FileOutputStream("LPT");
System.out.println("nnnnnnnnnnnnafter LPT2");
ps = new PrintStream(fos);
System.out.println("nnnnnnnnnnnnafter LPT2");
// System.setOut(new PrintStream(new FileOutputStream("LPT1.txt")));
//System.setOut(new PrintStream(new FileOutputStream("console.txt")));
System.out.println("SFWERWRW"+ps);
// STR_OUT=STR;
CD_OPEN=CDOPEN;
}catch(Exception ex)
System.out.println("Init:New::"+ex.toString());
public void run ()
try{
if(ps==null)
return;
//ps.println(STR_OUT);
//ps.print(CMD_CUT);
if(CD_OPEN)
System.out.println("ewqeqeqe");
ps.print(CMD_CD_OPEN);
System.out.println("ewqeqeq3453e");
ps.close();
fos.close();
}catch(Exception ex)
System.out.println("run::"+ex.toString());
public void Close()
try{
ps.close();
fos.close();
ps=null;
fos=null;
}catch(Exception ex)
System.out.println("Init:close::"+ex.toString());
public class PrintRcpt {
public static void main(String args[]) {
PrintManager objPM=new PrintManager();
//call Init always before calling start
objPM.Init(); //print and open cashdrawer
//objPM.Init("ZX",false); //print and do not open cashdrawer
objPM.start();
System.out.println("DONE");
//Below sleep is a simulation for time lapse between two sales- do not include this sleep in the final code
try{
Thread.sleep(1000);
System.out.println("DONE2");
}catch(Exception ex){}
//before starting second sale, close the port connection opened by first sales
//this close should be called when the user closes the receipt print preview screen
objPM.Close();
objPM=null;//destroy the print manager object
[/code]
You please post your suggestion for getting the printout from our POS system.[url http://forum.java.sun.com/thread.jsp?forum=31&thread=535737]Duel posted
-
Help Downloading a file from a server using FTP with only URL methods
Hi All
I have written this code and it is not working I dod not know why the download is not working please help is there anything that's missing?
* Download the file
public void download(String fileName, String destination)
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
// File destDir = null;
try
String urlString = "ftp://"+userName+":"+password+"@"+hostName+"/"+fileName;
URL url = new URL(urlString);
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.connect();
//set the destination directory
File destDir = new File("U:\\2004\\"+fileName.trim());
System.out.print("\n\n");
System.out.print("Destination set to :" +destDir);
System.out.print("\n\n");
bis = new BufferedInputStream( conn.getInputStream() );
bos = new BufferedOutputStream( new FileOutputStream(destDir.getName()));
System.out.print("get file name :" +destDir.getName());
System.out.print("\n\n");
int i;
while ((i = bis.read()) != -1)
bos.write( i );
System.out.println("Trying to download...");
bis.close();
bos.close();
catch (IOException ie)
System.out.println( "Input not available" );
This is what I get after runing this code.
get umlcourse.txt U:\2004
Destination set to :U:\2004\umlcourse.txt
get file name :umlcourse.txtTrying to download...AceV wrote:
String urlString = "ftp://"+userName+":"+password+"@"+hostName+"/"+fileName;
You probably need to specify the transfer mode. For example:
String url = "ftp://sam:spade@ftphost/myfile.txt;type=a";
// Specify type=i for binary. -
How to create and save a file in flex web application ?
Hi,
I want to create and save a file form flex web application. Is it possible ?
I have done some googling and found that its only possible through file referece, which needs some serverside implementation be called.
Is it not possible with file reference to create and save file directly ?
Can any one suggest how to over come this.
Thanks in advance.Alex,
code written with the Flex Builder 3 libraries will certainly run in Flash Player 10. However, what you need is not so much the capabilities of FP10 but the library functionalities of the Flex 4 package. And I think that Flex 4 code will only run in FP10 and not 9 (but haven't tested this as at work we have not yet been permitted to upgrade, so there is not a lot of point going for Flex 4!).
Richard -
How do I save a file to a server using flex and coldfusion?
How do I save a file to a server using flex and coldfusion?
On the CF side I might need to use this:
<cffile action="UPLOAD" filefield="Filedata"
destination="#expandpath('..\somepath)#"
nameconflict="overwrite">
And on the flex side I might need to use something like this:
var sendVars:URLVariables = new URLVariables();
sendVars.action = "upload";
var request:URLRequest = new URLRequest();
request.data = sendVars;
request.url = _strUploadScript;
request.method = URLRequestMethod.POST;
_refUploadFile = new FileReference();
_refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
_refUploadFile.addEventListener(ProgressEvent.PROGRESS,
onUploadProgress);
_refUploadFile.addEventListener(Event.COMPLETE,
onUploadComplete);
_refUploadFile.addEventListener(IOErrorEvent.IO_ERROR,
onUploadIoError);
_refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
onUploadSecurityError);
_refUploadFile.upload(request, "file", false);
I just don't know how to put it all together in Coldfusion.try this...
http://cf-creations.co.uk/blog/index.cfm/2008/9/20/Flex--File-Upload-Form--Part-One--Build ing-The-Initial-Form -
How to change and save a new file in Edge web Lumira server for Team ?
Hi Lumira folks,
I've installed SAP Lumira 1.0, Edge edition and View a sample 'Dairy Wholesaler-Sample"
I'd like to change it and save as new file, but "Save" button is disabled and when I put my mouse over the button,
it says "Save Option is disabled in this version".
Is there any idae how to change and save as a new file in Lumira Edge ?
Many Thanks.
JHI've just found the reason as below.
http://scn.sap.com/community/lumira/blog/2015/03/20/lumira-server-for-teams-edge-edition-version-compatibility
The current version of Lumira
server for teams is 1.0. This version uses Lumira 1.22 as its 'engine' as this
was the version of Lumira Desktop that was shipped at the same time.
Hence with the current Lumira
version compatibility; namely that a newer version of the product can open an
older document, but an older version cannot open a newer document, care must be
taken when deploying Lumira server for teams.
Lumira server for teams is only
compatible with Lumira desktop 1.22. If you intend to deploy Lumira server for
teams, ensure your desktop users do not move to a later version of the desktop.
Content created in a later version of Lumira desktop can be uploaded and shared
via Lumira server for teams, but it cannot be viewed or edited online in the
browser.
Ensure desktop users disable the
auto update capabilities in the desktop preferences, and set the update to
none. -
How to render and save a file as windows media file or mp3?
I have worked in Sony Vegas 9 and I was hoping Adobe Premier Pro CC was similar--- but its not. I can't figure out how to render and save a file as a windows media or mp3 or in any format for that matter.
Search for exporting in the help file
Not all for PProCC, but The PPro/Encore tutorial list in message #3 http://forums.adobe.com/message/2276578 may also help, with more help in message #5
PS - rendering is the process of creating temporary files to aid in timeline playback, while exporting creates new files -
How to incorporate File name and timestamp automatically into select and save file dialog box?
Hello,
i am trying to incorporate the file name which is inputed by the user along with the timestamp into the selected and save file dialog box. Can you help?
Thanks
Solved!
Go to Solution.You can pass a default file name to the 'File Dialog' Express VI.
Use the 'selected path' output to open the file.
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness
Attachments:
FileDialog.vi 21 KB -
Popup with open and save file option
Hi,
I have created a button on my page name as "Export File" and created a process and called on "EXPORT FILE" button. I am using utl file in this procedure and i want to download this file and file will be .ics file using for calendar.
My page process code is
begin
pro_create_ical(:P6_START_DATE,:P6_END_DATE);
end;when i click on export file button it should raise a popup with open and save file option.
How i can do this?
Thanks & Regards
Vedant
Edited by: Vedant on Jan 25, 2013 1:59 AM
Edited by: Vedant on Jan 25, 2013 2:00 AM
Edited by: Vedant on Jan 25, 2013 3:49 AMShiv,
Have you installed any new Software/Spyware/Virus Scanner etc.Check it out.It might have caused the issue for last 5 days.
This issue is fixed in Latest Support Package Versions.
Which Version of Support Package you are using?
If EP6 <SP19 you will face this issue.
Just upgrade it to EP6, Support Pack-19,this will be resolved.
Upgrade of Support Pack wont take much time.you can get the document under http://service.sap.com/instguides
Hope it helps
Regards,
Karthick Eswaran
*Reward Points for helpful answers. -
Revision: 7661
Author: [email protected]
Date: 2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
Log Message:
Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
QA Notes:
Doc Notes:
Bugs: SDK-21636
Reviewers: Corey
Ticket Links:
http://bugs.adobe.com/jira/browse/iso-8859
http://bugs.adobe.com/jira/browse/utf-8
http://bugs.adobe.com/jira/browse/utf-8
http://bugs.adobe.com/jira/browse/SDK-21636
Modified Paths:
flex/sdk/trunk/templates/swfobject/index.template.htmlsame problem here with wl8.1
have you sold it and if yes, how?
thanks
Maybe you are looking for
-
Invoking a BDC from within a BADI method executing in an update task
To finish up the MIGO/QM interface we started sometime ago, we need to invoke a BDC of transaction QA02 within the method method IF_EX_INSPECTIONLOT_UPDATE~CREATE_IN_UPDATE. of the BADI: INSPECTION_LOT_UPDATE. Should the BDC be tucked inside: a) an f
-
Hi Experts, i got this message when i try to run invoicing settlement through MRIS, and it gave me this message: Invoicing plan: No message was found for partner 1234567890/company code 1000 Message no. M8447 Diagnosis You are using an invoicing plan
-
System Copy of our Production Server using orabrcopy method.
Hi We are planning to do a System Copy of our Production Server using orabrcopy method. But as the Production Server Java Version is below 1.4.1, Orabrcopy could not be executed. As per the planned downtime of the Production Server, we have copied al
-
The latest version of Adobe Flash Player doesn't work on my Mac
The latest version of Adobe Flash Player doesn't work on my Mac? What is the solution?
-
I have PS CC 2014, and cannot find in the menu the option variations
Were can I find it, and how must I install this option