on 06-14-2012 9:41 AM
Hello Everyone,
We have a scenario where we are picking file from R/3 application server via adapter module because we are using FTP and not NFS.
The code that we have written is giving us two problem :
1) it gets error out with the below message
2) The Delete function is just making the file empty , but not removing the file from the folder.
For deletion this is the piece of code that we have written :
//last steps
out.close();
audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,"out is closed");
fClient.closeServer();
audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,"server connection is closed");
FileLocation = new URL("ftp://"+uname+":"+pwd+"@"+host+ fileLocation+ "");
audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,"entering the server again");
DeleteFile(FileLocation);
audit.addAuditLogEntry(key, AuditLogStatus.SUCCESS,"file is deleted");
return inputModuleData;
Hi,
>>>We have a scenario where we are picking file from R/3 application server via adapter module because we are using FTP and not NFS.
I don't get this requirement... why don't use use file adapter which can pull files from FTP
and do the deletion without any adapter modules ?
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>Based on "ABC.ok" (without content) file , i have to pick up the ABC ( content ) file from the directory .
this is also possible to do without any adapter module - just with file with attachment handling
so there is also no need to develop any adapter module for such functionality
I believe it's even described in one of the blogs (but it's pretty simple without it too)
Regards,
Michal Krawczyk
Hi Ravi,
Hope this blog will help you.
http://wiki.sdn.sap.com/wiki/display/XI/Sender+File+Adapter+Frequently+Asked+Questions
Regards,
Veerendra
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.