Background scheduling of FTP Connection through R/3
Hello Friends,
I have done FTP connection by using Z-pgm which uses function FTP_CONNECT. This is working fine in Foreground mode.
But in background scheduling of the z-pgm, i am getting the <b>error as 'RFC to program SAPFTP failed'.</b>
I checked RFC destination SAPFTP in SM59. There Activation type is 'Start on Front End Work Station'. I tested the connection also. Its alright.
How to do FTP processing in Background?
Cheers,
Seema
Hello,
you could try to use RFC destination 'SAPFTPA' - it's ftp on the application server. Since SAPFTP is 'Start on Front End Work Station' and in background there is no front end work station, it can't work.
Regards Wolfgang
Similar Messages
-
How do I get SQL Agent to perform an FTP connection through a SSIS package?
I have created a number of SSIS packages that I am running through SQL Agent in various jobs. I have set up a Credential / Proxy for the job steps and for the most part everything runs no problem. The issue I have is with the step where I make
a connection to a FTP server and download files. In BIDS the step works fine but in SQL Agent the step times out. I presume that it has to do with the account that it is being run under but that is what I thought the Credential / Proxy was supposed
to handle (as it does for all the other steps). I am running on SQL Server 2008 R2. I have created a test job that has only one step which is to connect to the FTP server and download some text files. I have tried utilizing package configuration
files and have tried various ProtectionLevels to no avail.
Anyone have any thoughts or direction for me to take? Will continue to research and will post if I resolve this.
Thanks, AndrewOn the dev environment the ProtectionLevel is set to EncryptSensitiveWithUserKey and that is what I tried first on the prod server. Subsequently I also tried utilizing a package config file (with ProtectionLevel then of DontSaveSensitive) and have
also tried working with the ServerStorage.
For deployment I copied the relevant dtsx files to a solution on the prod server. I verified that the packages all had tested connections in the Connection Manager. I have run all the packages in the BIDS on the prod server and they all worked.
I have created a test package from scratch on the prod server to test the ftp connection. This test package runs from BIDS fine. I have set the SQL Agent file to access through the file system (no luck) and have saved the package to the SSIS Packages
and had the job step access from there (no luck either). -
FTP Connection through R/3
Hi Friends,
I need to handle file transfer between non SAP system & R/3 application server, in both way. This is to be handled through R/3. and it should be automatic i.e. we need this transferring pgm as scheduled one.
1. Is there any STD pgm to handle File transfer?
2. will FTP_Connect, FTP_Command, FTP_disconnect functions work? Becoz i hv tried out with these functions but i was not able to connect to remote system. Could anybody help me out in this?
3. & i m not sure about scheduling of these functions?
Thanks in advance.
SeemaHI Seema
u can write small shell script program ,and store
these in application server(AL11 Tcode) ,these shell script program should be able to connect to remote server
and copy file from remote server to your application
server,
shell script program:
Connecting to ftp server to get the file on the current server
SOURCE_FILE_NAME=TSPAR_`date +%Y%m%d`.txt
#ur application server path
TARGET_FILE_NAME="/interf/torrance/TCW/FI/TS_PAR/TSPAR_`date +%Y%m%d`.txt
BACKUP_FILE="/interf/torrance/TCW/FI/backup/TS_PAR/TSPAR_`date +%Y%m%d`.txt"
#ur remote server path
cd /interf/torrance/TCW/FI/TS_PAR
ftp -nv << EOF
open 131.123.233.134
user e3ty capihg
get $SOURCE_FILE_NAME
put $TARGET_FILE_NAME
get $SOURCE_FILE_NAME $BACKUP_FILE
EOF
use function module SXPG_COMMAND_EXECUTE to trigger
these script and file is there in ur application server.
pls let me know if you need further input regarding this -
FTP connections through Finder not reporting correct file size
Hi,
I have a NAS that running as an FTP server. When I connect to it through Finder it reports the incorrect file size of 2.7GB (the real file size is 61GB)
Its an DMG image file so it obviously fails when I try to image a new IMAC.
FTP through windows reports the correct file size so rules out any problem on the NAS.
Any ideas anybody?
Many thanks.Hi,
I have a NAS that running as an FTP server. When I connect to it through Finder it reports the incorrect file size of 2.7GB (the real file size is 61GB)
Its an DMG image file so it obviously fails when I try to image a new IMAC.
FTP through windows reports the correct file size so rules out any problem on the NAS.
Any ideas anybody?
Many thanks. -
Unix command in FTP connection through File Adapter
Hi All,
I have a scenario IDOC to file in which the user requested for pushing file to FTP server as below
put localfilename %localfilename%CITISECUFLATNA%CITIGPASSIN%%B
Here my file name is test.txt.
so I tried giving in communial channel as
File Access Parameters
Target Directoy : put test.txt %test.txt%CITISECUFLATNA%CITIGPASSIN%%B
File Name Scheme: text.txt
But I go the error in Communication channel as
An error occurred while connecting to the FTP server 'ftp-gw.dx.deere.com:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter. usage: %[recipient id]%[APRF] where either [recipient] or [APRF] can be omitted. (to change your current default SEND relationship). %% (places you in your 'HOME' TR). &['s'|'single'] ('get' command gets single file). &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor
Please let me know how we can specify in our FTP parameter in Communication chanel.
Regards,
Dhill.Hi Satish,
Thank you very much for your help and your time. But I tried as you told
Target Directory as : \
File name scheme : test.txtCITISECUFLATNA%CITIGPASSIN%%B
and also tried as
Target Directory as : \
File name scheme : test.txt<b>%</b>CITISECUFLATNA%CITIGPASSIN%%B
still i got the same eror.... I am getting success only when I specify like
Target Directory as : %%
File name scheme : test.txt
but the vendor is saying he is not able to see the file anywhere in ftp.
Regards,
Dhill -
I am writing a java code to transfer a file from local machine to a server on another machine.
While uploading i am encountering with an exception which is showing as
java.net.ConnectException: Connection refused: connect
The file is getting transferred sucessfully if i am transferring it through command prompt instead of java code.
Please help me out.Duplicated here
http://forum.java.sun.com/thread.jspa?threadID=700335&messageID=4063726#4063726
and here
http://forum.java.sun.com/thread.jspa?threadID=700257&messageID=4063471#4063471 -
Background Scheduling - Deadline Monitoring
Hi Experts,
I have created new maintenance plan , its around 250 for Mechanical and 250 for Electrical
Maintenance plan having strategy like every two month , every three month , every six month etc..
Scheduling period is 3 year
Now scheduling will be done through IP10 one time , but after first call object scheduling will get hold.
I want to make it background scheduling - Deadline Monitoring
Now the requirement is , For Example :
Maintenance plan X have PM plan date is 21.07.2014
Maintenance plan Y have PM plan date is 24.07.2014
Maintenance plan Z have PM plan date is 29.07.2014
As per above example each equipment will have different plan date , background scheduling can be done through IP30 but by the date is concern how can make it possible ?
Please advise each maintenance plan has to be run as per their plan date.
Thanks,
AbhishekHi Mr.Jogeshwara,
Nice Document , Its really useful
But my query is each equipment have different plan date , as explained in above example
If Maintenance plan have Cycle Unit 60 day and Plan X date is on 21.07.2014 then 21.07.2014+60day , same as if maintenance plan Y date is 25.07.2014 then 25.07.2014 +60day
Like that
background scheduling needs to be done as per cycle unit
If i will do background scheduling together of both the above maintenance plan X and Y then scheduling will be run exactly after 60 day and order will be generated in advance for Maintenance plan Y.
Hope you understand my query.
Thanks,
Abhishek -
FTP connection failed in background
Hi Folks,
I'm connecting from SAP system to a FTP server using the FTP program. When I'm connecting to the FTP server through the RFC destination SAPFTP its working fine i can connect to the server however I have to run the program in the background mode so I cannot use the SAPFTP rfc destination as it can run only on the foreground so in my case I'm using the RFC destination SAPFTPA as this is the RFC destination which can be used in the background mode.
The problem arises here when I'm using SAPFTPA in place of SAPFTP as I have to run the program in background. When I'm using the RFC dest SAPFTPA I'm getting an error saying "Attemp To Set Up Connection To 179.65.23.203 Failed" however the connection is successful when the RFC dest SAPFTP is used.
Please provide your valuable inputs.
Regards,
SantoshYou may need to write a small utility and runs in background and check
report zaRs message-id 04 line-size 132.
tables: rfcdoc.
data: rfc_mess(132),
call function 'RFC_PING' destination 'SAPFTPA'
exceptions
system_failure = 1 message rfc_mess
communication_failure = 2 message rfc_mess.
if sy-subrc ne 0.
write: / 'Errors', rfc_mess.
endif.
a® -
File has to pass through FTPS connection.. Connection parameters?
Hi,
I want to transfer the file through FTPS connection. Partner side provided the following details as connection parameters.
- IP : 129.32.169.140
- POrt: 990
User name
Password
PASV mode
SSL Direct, OpenSSL,SSL Listing, SSL Transfers.
Kindly let me know what are all the parameters I need to pass in Receiver file adapter.
FTP Connection Parameters:
Server
Port
Data connection: Passive
Connection Security: FTPS for control connection or FTPS for control and Data connection.???
Command Order : ?????
Please let me know what are the security and command order parameters I need to use in Receiver file adapter.
They didn't provide any certificates.
Thanks
Deepthi.Hi Rajesh,
The message is not even failing.. It is in the status of "Delivering". The below are the logs from adapter and Messaging system.
File Adapter Log:
Success Message successfully received by messaging system. Profile: XI URL: http://xi-dev.intranet.XI.com.au:50200/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
Success Using connection File_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
Success Message successfully put into the queue.
Success The message was successfully retrieved from the receive queue.
messaging system log:
Message ID 44b756da-d9bd-42e2-3136-e34d75adfe03
Message Type Asynchronously Received Message (RECEIVE)
From Service Name: BS_1
To Service Name: BS2
Action Namespace http://XI.com/SAP_PI/ControlData Name: BYPASS
Connection Name File_http://sap.com/xi/XI/System
Status Delivering
Error Category
Error Code
Profile XI
Transport HTTP
Delivery Semantics Exactly Once
Times Failed 0
Number of Retries 3
Sent / Received 09/09/2009 11:22:52
Transmitted / Delivered 09/09/2009 11:22:53
Next Delivery 09/09/2009 11:22:53
Persist Until 10/09/2009 11:22:52
Valid Until 01/01/1970 10:00:00
Retry Interval 5 Minutes
Address http://xi-dev.intranet.XI.com.au:50200/MessagingSystem/receive/AFW/XI
Transport Headers authorization=Basic UElJU1VTRVI6dDFhbTRyaWE= Content-Length=3010 accept-encoding=gzip sap-xi-messageid=44B756DAD9BD42E23136E34D75ADFE03 content-length=3024 host=xi-dev.intranet.XI.com.au:50200 user-agent=SAP Web Application Server (1.0;700) content-type=multipart/related;boundary=SAP_4AA4E14330050131E10080000A722149_END;type="text/xml";start="" HTTP=POST soapaction="http://sap.com/xi/XI/Message/30"
Principal Propagation -
Connect to FTP site with Apache commons net FTP client through Proxy
Hello,
I am trying to run this simple code to connect to FTP site through a proxy.
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
public class MyTest {
public static void main(String[] args) {
String ftpHostName = "ftp.xxx.com";
int ftpPort = 21;
String ftpUserName = "myUserName";
String ftpPassword = "myPassword";
System.setProperty("socksProxyHost" ,"10.148.0.131");
System.setProperty("socksProxyPort", "1080");
FTPClient ftpClient = new FTPClient();
try {
System.out.println("connecting");
ftpClient.connect(ftpHostName, ftpPort);
System.out.println("connected");
System.out.println("loging in");
boolean successLogin = ftpClient.login(ftpUserName, ftpPassword);
if(successLogin)
System.out.println("success login");
else
System.out.println("fail login");
catch (Exception e) {
e.printStackTrace();
finally {
try {
System.out.println("loging out");
ftpClient.logout();
System.out.println("disconecting");
ftpClient.disconnect();
catch (Exception e) {
e.printStackTrace();
I am getting the following error:
C:\temp\ftp\test>java.exe -cp ./commons-net-ftp-2.0.jar;. MyTest connecting
java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:87)
at java.net.SocksSocketImpl.connectV4(SocksSocketImpl.java:265)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:437)
at java.net.Socket.connect(Socket.java:519)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:176)
at MyTest.main(MyTest.java:23)
loging out
java.lang.NullPointerException
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:471<ftp://FTP.java:471>)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534<ftp://FTP.java:534>)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:583<ftp://FTP.java:583>)
at org.apache.commons.net.ftp.FTP.quit(FTP.java:794<ftp://FTP.java:794>)
at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:697)
at MyTest.main(MyTest.java:39)
I am able to do this using a different FTP client library, ftp4j-1.5.1<ftp://ftp4j-1.5.1> using the following code:
import it.sauronsoftware.ftp4j.FTPClient;
import it.sauronsoftware.ftp4j.connectors.SOCKS4Connector;
public class MyTestFtp4J {
public static void main(String[] args) {
String ftpHostName = "ftp.xxx.com";
int ftpPort = 21;
String ftpUserName = "myUserName";
String ftpPassword = "myPassword";
FTPClient ftpClient = new FTPClient();
ftpClient.setConnector(new SOCKS4Connector("10.148.0.131", 1080));
try {
System.out.println("connecting");
ftpClient.connect(ftpHostName, ftpPort);
System.out.println("connected");
System.out.println("loging in");
ftpClient.login(ftpUserName, ftpPassword);
System.out.println("success login");
catch (Exception e) {
e.printStackTrace();
finally {
try {
System.out.println("disconecting");
ftpClient.disconnect(true);
catch (Exception e) {
e.printStackTrace();
So I know the proxy settings are correct.
The java version I used to compile and run my apps is 1.6.0_06 Does anyone can help figure out what is wrong when I use the Apache commons net FTP client?
Thank you
JonIs the old AirPort Extreme base station (AEBS)
configured so that the option to distribute IP
addresses is DISABLED? If so, configure the new AEBS
to act as a bridge.
Are you suggesting I use a set-up with TWO AEBSs? Set up a bridge (not sure how) and then use the old AEBS to connect to the DSL modem and broadcast to the new Extreme which will then be the router to the other computers on the network?
Do you have any port mapping or default host enabled
on the old AEBS?
I do not understand, not do I see these options in the Base Station utitlity; perhaps they are in the FTP options--but that, I'm sorry to say, is not obvious to my inspection.
Duane, can you give me a few more basic instructions? Thanks
iMac 17 -
Email background schedule report to gmail or yahoo mail
Dear Expert,
My self Nayan Lad having 1 year exp in SAP ABAP.
Now my request is How can I send mail the background schedule report to some person's personal mail id through SAP.
Please guide me so I can explore my knowledge.
Thanks & regards,
Nayan Lad
Moderator Message: Please search for available information.
Edited by: kishan P on Nov 11, 2010 11:03 AMhai ,
please go through this example bcs_example8.
thankyou,
anji. -
How can I find out the server port for a secured FTP site and creating a FTP Connection Manager
I have to create a FTP Task to go out and get the files that our 3rd party vendor will be dropping on a secured FTP site. I have all the credentials to access that Secured FTP Site and have successfully done so through FileZilla.
Now I need to set-up a FTP Task to go out and get their files and in so doing create a FTP Connection Manager. Is there any way I can determine the
Server Port number from the Secured FTP site? I let it default to 21 and tried the Test Connect and it failed.
Thanks for your review and am hopeful for a reply.Hi ITBobbyP,
SSIS has a built in FTP task, while this only works for the FTP protocol, it doesn’t support SFTP. But there are some free clients like WinSCP and
SSIS SFTP Task Control Flow Component
available in the CodePlex which can invoked from SSIS.
References:
SSIS SFTP Task Control Flow Component approach
WinSCP approach
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Background Scheduling Z Report
Hi,
I have developed one report , it can output its result in alv report and excel file, So my requirement is to schedule the report and in background only email the report to the specified email id's. How can I achieve functionality of background scheduling and automatic email.
I know we can do background scheduling with SA38 or SM36/SM37 but upon scheduling it is not saving my excel file at desired location.
AnkeshYou should search forums about this....
You will need to save to the SAP Application server (in a folder which has write permission for SAP jobs) and possibly FTP to some shared drive within the network. Local PC, local MS network, like C:\, D:\, etc. is not visible to a background job, since there is NO GUI/PRESENTATION server involved in a background job. Outside of MS Office, an .XLS file is an unknown file type, probably.... how do you think you're creating a .XLS file in a background SAP job? -
Background Scheduling tutorial
Hi All ,
I want step by step tutorial/links/docs for background Scheduling .
Thanks in advaceHi,
ABAP Editor transaction SE38 can be used to execute program in the background. In SE38 selection screen click on Program -> Execute -> Background and specify the name of the variant. You can schedule the program to run once at a certain time or periodically every month, week, days, hours or minutes.
Moreover Transaction SM36 can be used to Schedule Background Job without selections parameters.
Click on the steps, A popup window will open, Click on ABAP/4 button. The fields ABAP/4 Program name, Variant and Language will become input enable. Type the program name and save it by pressing on save Icon. Now Click on start condition, a popu up will appear asking about start date or Immediate etc.. pls provide applicable details and press on save Icon. and now finally press on Save Icon
Steps
SM36
Put in Job Name
Click on Steps
Put in the ABAP program name
The variant for your program if you have a selection screen and want certain values on there
Save
Click on Start Condition
Put in e.g. Start Date and Start Time and Click on Period Values
Save
Don't forget to Save on the Initial Screen as well (Define Background Job)
this will create you background job
Go through the following link
http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
Reward me if it is helpful. -
Sender File Adapter - FTP Connection Error 530
Need help!!!
I am getting the following error in XI when I try to connect to an ftp server.
"An error occured while connecting to server xxx.xx.x.xx:xx. The FTP server returned the following error message:'com.sap.aii.adapter.file.FTPEx: 530 Can't open passive connection---(4013)'. For details, contact FTP server vendor"
When I try the FTP connection on the OS level I am able to log in, but through XI I am unable to.
Has anyone seen this error before?I have seen Error Code 530 earlier, it is typically related to login related issues.
Check if the user mentioned in the Comm Channel has the correct password and read as well as write rights on the Server.
The most likely problem is with the User Credentials or Authorizations
Maybe you are looking for
-
OO ALV - How to highlight cell after value change
Hi All, I have an OO ALV with an input enable column and would like to highlight a cell in a different color when the user changes it's value. I am using pr_data_changed->get_cell_value to check the cells value has changed and pr_data_changed->modify
-
System Image Recovery on Win 7 - Spectre XT 13
There is no issue of creating a system image onto my seagate external Freeagent goflex hard disk. However, an issue is encountered during the restoring process in which the USB3.0 port turned out to be unavailable during pre-boot. The solution I disc
-
Hi All, In a ABAP program the Invoice amount is declare . data : w_amount like konv-kwert , ( which is curr(13) decimal (2). Due to small in size of amount field , prog gives dump error. I need to increase the size of this w_amount. What variable sh
-
External monitor will not sleep using 2012 MacBook Air and HDMI adapter
I am running a HP 27xi (27" display) using the apple thunderbolt to HDMI adapter, and using a HDMI cable. ISSUE: I run my 2012 macbook air in "clamshell mode", and solely use the 27" display, which works great. Problem, is when the macbook goes to pu
-
This is a weird problem we are having. When we create any garnishment elements and try to use them, we get an error saying that the compiled version of the formula cannot be found. At the time of the creation of the garnishment element, it gives an e