We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] New Techniques to Copy File in Background

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from TerryB on Jul 11 at 4:04 PM
Neal,

I emailed the following reply when you first posted, but I guess it never got to Toolbox. I hope this helps:
We have successfully used function module SXPG_COMMAND_EXECUTE to run a Windows batch file to do such things. I wonder if you could use it to execute a CL program on the AS/400. As for the inability to get an ACK/NAK from any of these methods, couldn't you simply check for the existence of the file in the target directory to determine if the copy succeeded?

Cheers,
TerryB

---------------Original Message---------------
From: R. N. Wilhite
Sent: Monday, July 01, 2013 12:17 PM
Subject: New Techniques to Copy File in Background

I need to be able to copy a file in the background on the application server. I have seen several suggestions but can make only one (FTP) work. As many have said, I was hoping for a FM or OO Method.
Oh, I forgot, Open | Read |Close |Open |Write |Close. I can also make that work. But there is fear that the file will not be binary identical.
Other options I've seen:

  • RSBDCOS0 - won't work because there is no way to know if it succeeded or not.
  • ARCHIVFILE_SERVER_TO_SERVER - I can't make this FM run. If anyone is using it, I'd love to see your code.
  • PFL_COPY_OS_FILE - Has been deleted by SAP!
  • SXPG_CALL_SYSTEM - may be a remote possibility, but I don't know how to construct the command for iSeries IBM App Server.
So I hope that no one will fuss that I haven't done my homework before posting. I will be pleased to read anyone's thoughts on this mater and of course, you might note that I'm doing something wrong (ask for any clarification that you need), so those comments are welcome too.
Neal

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2013 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
TerryB  

Senior SAP Developer
10 achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Have a technical question? Need to find IT solutions? Ask your peers in the Toolbox for IT community.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language