To use ftp_connect to connect to our local system
hii
can anybody plz tell me how to connect to our local system using function module
ftp_connect
plz specify all the necessary parameters such as user, password and so on.
thanx in anticipation
answers will be rewarded
Hi,
Please find the sample program for your requirement.
report rsftp020 message-id zz.
parameters: user(12) type c lower case,
pwd(20) type c lower case,
host(64) type c lower case,
cmd1(100) type c lower case.
data: hdl type i,
key type i value 26101957,
dstlen type i.
data: begin of result occurs 0,
line(100) type c,
end of result.
authority-check object 'S_PATH'
id 'FS_BRGRU' dummy
id 'ACTVT' field '02'.
if sy-subrc ne 0.
message e000 with 'You are not authorized to run program: ' sy-repid.
endif.
describe field pwd length dstlen.
call 'AB_RFC_X_SCRAMBLE_STRING'
id 'SOURCE' field pwd id 'KEY' field key
id 'SCR' field 'X' id 'DESTINATION' field pwd
id 'DSTLEN' field dstlen.
call function 'FTP_CONNECT'
exporting user = user password = pwd host = host
rfc_destination = 'SAPFTPA'
importing handle = hdl.
if cmd1 ne ' '.
call function 'FTP_COMMAND'
exporting handle = hdl command = cmd1
tables data = result
exceptions command_error = 1 tcpip_error = 2.
loop at result.
write at / result-line.
endloop.
refresh result.
endif.
call function 'FTP_DISCONNECT'
exporting handle = hdl.
thanks,
sksingh
Similar Messages
-
Download of pdf to our local system by using classes in webdynpro abap
hi,
I createa an application ,in that i converted Smartform to Pdf.I want to download the generated pdf to our local system by using "cl_wd_runtime_services" because we cant directly use FM GUI_DOWNLOAD directly.So can any one please tell me the process.Hi ,
see the below code..
call function 'CONVERT_OTF'
exporting
format = 'PDF'
importing
bin_filesize = pdf_size
bin_file = LV_PDF
tables
otf = lt_otfdata[]
lines = l_dummy
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
lv_string = filename
cl_wd_runtime_services=>attach_file_to_response(
i_filename = LV_STRING
i_content = lv_pdf
i_mime_type = 'pdf/application'
i_in_new_window = abap_false
i_inplace = abap_false ).
this will open a popup same as when u download some file...
Regards
Yash -
How to download elearning class to our local system
hi
this is yugandhar,
how to downl;oad this link data to our local system.
is there any possibility to download data.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d92a039d-0d01-0010-82b7-a6e0bca87982I cannot open your link.
You must be willing to download so you can work offline on them. I don't think you can do that.
Try using IE and make sure to delete all files and cache before you start.
Sanju -
Connecting to an Solaris machine from our local system [windows]
Unable to connect using the below program - can any one please help me
public class J2SSHExample
public static void main(String[] args)
try
PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();
SshConnectionProperties properties = new SshConnectionProperties();
BufferedReader bin = new BufferedReader(new InputStreamReader(System.in));
AuthenticationProtocolClient authentication = new AuthenticationProtocolClient();
ConnectionProtocol connection = new ConnectionProtocol();
SshClient ssh = new SshClient();
System.out.print("Host to connect: ");
String hostname = bin.readLine();
ssh.connect(hostname);
System.out.print("Username: ");
String username = bin.readLine();
pwd.setUsername(username);
System.out.print("Password: ");
String password = bin.readLine();
pwd.setPassword(password);
int result = ssh.authenticate(pwd);
if(result==AuthenticationProtocolState.COMPLETE)
System.out.println("The authentication is complete");
if(result==AuthenticationProtocolState.FAILED)
System.out.println("The authentication failed");
if(result==AuthenticationProtocolState.PARTIAL)
System.out.println("The authentication succeeded but another"+ "authentication is required");
if (authentication != null)
List l= authentication.getAvailableAuths(username,connection.getServiceName());
catch (Exception e)
System.out.println(e);
output:
The authentication failedI was able to connect using the below program - problem is this is an sshfactory is an licensed version
import com.jscape.inet.ssh.*;
import java.io.*;
public class SshExample implements SshListener {
// state of SSH connection
private boolean connected = false;
* Creates a new SshExample instance.
public SshExample() {
String hostname = null;
String username = null;
String password = null;
Ssh ssh = null;
try {
BufferedReader bin =
new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter SSH hostname: ");
hostname = bin.readLine();
System.out.print("Enter SSH username: ");
username = bin.readLine();
System.out.print("Enter SSH password: ");
password = bin.readLine();
// create new Ssh instance
ssh = new Ssh(hostname, username, password);
// register to capture events
ssh.addSshListener(this);
System.out.println("Connecting please wait..."); -
Background: our desktop computer started shutting off sporadically. I researched the problem, reset the memory chip, checked battery voltage on the motherboard (it was okay), resinserted the battery and tried to boot. It started up successfully and connected to the internet via our DSL line. FF had trouble opening pages due to security certificates so I checked to see if upgrades were available (3.6.8 was) and I downloaded and installed it. After that it refused to work. Apparently a setting somewhere got changed but I don't know what it might be. The DSL connection works with other computers which are wireless (the desktop has a hard connection.) Operating system is Windows XP. Other browsers do not work.
Turn off your firewall and antivirus software.
-
Calling a executable from local system
Hi All,
Can we call a executable file stored on our "local" system? I know this goes against the 3 tier architecure but still lemme know.
regards
Puruhi
good
go through this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2d5a358411d1829f0000e829fbfe/content.htm
thanks
mrutyun^ -
Program/T-Code to load files from local system to XI system's tmp folder
Dear all,
Do we have any program or transaction to load files from our local system to the usr/tmp folder of XI system.
Please share the info, if anyone has already faced the similar requirement.
regards,
Younus1) goto SXDA_TOOLS Transaction code
2) Provide the Following details
Object Type : DXPROJECT
Program Type: BAPI
Program/Method: CREATE
3) Click on Copy Button
4) Select the Source as Presentation Server
a) Select the File where you saved in your Local machine
5) Select the Target as Application server
a) Check the check box Remote Server
b) Select the File type as Physical
c) In File name give /usr/sap/SSD/DVEBMGS00/work\Your file name (This the Server path
Where the file is going to save)
6) Click on Continue
Go to AL11 and check whether the File has been create in the following path /usr/sap/SSD/DVEBMGS00/work
Provide this path in the Communication channel path when you select the Transport Protocol as NFS and you place the file in AL11 directory. -
I have done all the troubleshooting from the support page. The ipod shows that it is connected to our wi-fi and sometimes even shows the ip addresses but it wont let us connect to the internet/itunes store etc... the other ipods in the house use the wi-fi with no issues and this ipod is able to connect to public wi-fi and other location wi-fis and access the internet with no problems. What else do I do?
luvlabs
Thank you for your reply. I have tried your suggestion. Emmm I have an AirLive router, there are so many wires o.O I don't know which one to plug out. I think it is the yellow one which says WAN? But I wasn't so sure. So I tried plugging out each wire and followed your instructions. Sorry, but it didn't work I'm going mad xD! I even tried re-doing your instructions on WAN wire, and it didn't work.
Hmm according to step 4 (Log back into your network using Settings > WiFi > Other. Re-enter your network name (SSID), security, and network password.)
My network name is already available in the list. So I didn't need to do that. Or is it neccesary?
Thanks a bunch! Reply soon
Message was edited by: carmenc23 -
hi, we are using mac mini's for our developement purpose. connecting the same through using Real VNC. Mac mini's are late 2009 and 2010. Now we have upgraded them to 10.8.5. after upgrading having display issues after launching the simulators, we are unable to view the icons we need to move the simulator (into different places) to view the icons.
Also we are having Mac book pro's (Late 2009 & 2010) after upgrading them to 10.8.5. Unable to launch the mac, getting only white screen with apple icon.
Let me know is there any specific Hardware (Graphic Cards) we need to use for the same.
Please provide me the early solutions.
Regards,
Suresh.Hi, try this first...
Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions. -
When I connect to our server using smb:// can't copy files or edit names on server?
Why not? What happens?
Do you get an error message? What does it say? -
We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means
Hello,
Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
For example:
Report server:http://uebi.cloudapp.net/reportserver
Report manager:http://uebi.cloudapp.net/reports
If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
on port 80.
Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
my iPhone 4 won't connect to our WiFi at home, but will at other WiFi spots. However, my parent's iPhones work and connect just fine at home using WiFi. I have called and talked to several people and no one seems to be able to help me.
The two things to try first are renewing your network lease, forgetting the network and if that doesn't work to reset all networks. You might have tried one of these but I'll repeat the steps just to make sure.
Settings > Wi-Fi > tap the blue arrow to the right of your network name > Renew Lease
If that doesn't work then
Settings > Wi-Fi > tap the blue arrow to the right of your network name > Forget this Network
If that doesn't work
Settings > General > Networks > Reset All Networks > then reset your iPhone by
Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart.
I hope one of these will help. -
My macbook air is not getting internet connection through our home wifi. It was working fine yesterday until I took the Air out of the house and used it on another wifi connection. One question is how to delete some of the networks that I don't use. Would too many networks cause the internet connection to fail?
Thanks.Would too many networks cause the internet connection to fail?
It shouldn't but sometimes deleting the list of networks actually does solve the problem you are describing. Have you turned WiFi off and then back on on the computer? -
Hi,
So I have 2 PC's and I sign with the same credentials. I have a hard drive which I decided to share. In the setting I created permissions for the user credentials of both vcomputers and have full control access.
Basically, everytime I open my laptop after and it wakes up and try to connect to the network drive, I get the error
An error occurred while reconnecting...The local device name is already in use. The connection has not been restored.
I need to stay disconnecting all drives and reconnecting them. WHen I restart my PC the network drives restore perfectly. I don't understand why it doesnt work on wake.
Any ideas?It seems that when a machine goes into sleep, the network connection is disconnected, naturally, but the machine still has the connection mapped. If you run the 'net use' you will see the connection. When you try to reconnect it, it sees the
connection and gives you the error.
I do not know if you can directly modify this behavior. However, as a work around, you could build a simple script like:
net use 'connection' /delete ( write it into a text file and save it has a .bat file.)
Use scheduled tasks to have the script run right before the machine goes into sleep. You can do so by setting the task to RUN ON Event: event 42 for the KERNEL_POWER source.
You can see http://superuser.com/questions/679195/run-a-script-when-hibernating-windows-8 for more info . -
Connecting SnapManager to Local SQL server using command line
Are there any commands (PowerShell preferably) that can be used to connect SnapManager to Local SQL Server and configure it with mostly default configuration? I tried the import-config command using SnapManager for PowerShell, it gives configuration successful import message but does not establish connection to SQL server. Running the new-backup or clone-database commands after importing gives the message that SQL server is not connected and configured.
After more investigation and even more chocolate, we've identified the problem and it's now working. For anyone else who strikes this problem in future, here's something to check/consider/try:
Even though Squirrel SQL Client was connecting and working ok using the MS JDBC driver (v 3.0), it recorded this in its logs:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the INTERSECT operation.
We've found that the open source jTDS driver does not have the same issue as the Microsoft one.
We've installed the current jTDS driver, recorded the driver name (net.sourceforge.jtds.jdbc.Driver) and the JDBC URL (jdbc:jtds:sqlserver://<hostname>:1433/<database>) and the connection is now working fine.
Hope this helps other people...
Thanks to those of you who offered suggestions and things to check...much appreciated.
Robyn
Maybe you are looking for
-
Can't log in with AIM name.
My friend is having issues logging into iChat with her AIM name. She can log in on regular AIM just fine, but can't log into iChat. Any idea of what's going on? Here's the error message she's getting.
-
Duplicate Contacts / Calendars
We have 12 Blackberry devcies and are running BES 4.1.6.10. 25% of the devices have issues where calendar items or contacts are duplicated. The only common thread seems to be that if you go into the options, you see duplicated Desktop lists. There do
-
I had to reset my iPhone, and when I did I lost all my music and ringtones and all my apps. Well i was able to get my apps and the other music that I bought on iTunes back onto my phone but my ringtones are still missing. I don't want to go buy them
-
My site is gone from iweb?
hi friends. i have a site published at .mac , for some reason my site isnt showing up anymore when i open iweb, anybody know how i can get this site back to iweb so i can edit it....thanks
-
HT201363 How do I get the answers to my security questions? Becase I forgot them
How can I reset my security questions because I forgot the answers