FTP-RFC-FTP
Hi
is possible without BPM to receive data from txt, call an RFC and the response map to a new txt file
Hi Rodrigo.
Yes. It is possible if you use RFC Lookup.
Above the links about it:
SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups/people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
Adding Lookups to Mapping Programs
http://help.sap.com/saphelp_nwpi711/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm
Ps: You can use Proxy lookup too.
Regards.
Bruno
Similar Messages
-
FTP RFC Connection setup - step by step
Good afternoon
I am not a BASIS/System Administrator; in my colleague's absence I have to attempt setting up an FTP RFC Connection.
I have the following information:
1. IP Address
2. Username
3. Password
The following is the setup I tried:
a. Connection Type == G - HTTP Connection to Ext. Server
b. Target Host (Technical Settings Tab) == &IP Address&
c. Logon username (Logon/Security Tab) == &Username&
d. Logon password (Logon/Security Tab) == &Password&
But, the 'Test Connection' fails with 'ICM_HTTP_CONNECTION_FAILED'.
Any suggestions to resolve will be much appreciated!
Thank you and best regards, AdrianHi Adrian,
Could you detail what you are trying to set up a connection to? This would help determine whether the connection type you are using is correct.
Regards.
Steve. -
Oracle AS B2B - Various Features in FTP Adapter (FTPS, SFTP...)
As part of the Oracle AS B2B 10.1.2.0.2 FTP adapter offering following features are supported. FTP Protocol forms part of the Generic Exchange Plugin.
1. Basic FTP
Identification of Trading Partner Criterion is slightly different for Internal and External Delivery channel, even though identification is based on the "Name" in both of this cases.
a. For External Delivery Channel.
i. Identification of Trading Partner is based on the name of the file and the name shoud follow the patterns as nameOfTP_UniqueID.
ii.Identification of Trading Partneris based on the name of the Directory. To enable this it is required to set
oracle.tip.adapter.b2b.allTPInOneDirectory= True as part of tip.properties setting.
b. For Internal Delivery Channel.
The identification of Trading partner and the Document is based on the name of the file and should follow the pattern as
TradingPartner_DocumentType_Revision_msgType_msgId_replytoMsgID_extension.xml
2. FTPS : FTP OVer SSL
Download any of the FTP server which can be configured to FTPS such as FIlezilla. Configure FTP server for FTPS as per the FTP server documentation.
Oracle AS B2B Configurtion:
The SSL configuration is drived by the value of parameter "Channel mask"
1. Depending on the mode of data transfer i.e Active/Passive , specify the data port for Active configuration and no data port for passive mode. Control port is there for both the mode and by default B2B considers this to be 21, there is a need to
mention it for any deviation.
2. Receiver Channel Mask (Host) : Depending on whether No channel encrypted, data channel to be encrypted , Control Channel to be encrypted or Both control and Data channel to be encrypted specity none, Data, Control or Both accordingly.
2. Sender Channel Mask (Trading Partner) : Depending on whether No channel encrypted, data channel to be encrypted , Control Channel to be encrypted or Both control and Data channel to be encrypted specity none, Data, Control or Both accordingly.
Refer to the user guide for FTP Transport configuration.
3. SFTP(New Feature available as part of latest B2B patch # 6353697)
SFTP implementation has been provided for Oracle B2B 10.1.2.0.2 version. This enables B2B to send and receive payload files over SFTP (SSH FTP) protocol.
SFTP protocol support added for both external trading partners and internal applications communications. The naming conventions of the payload files are in-line with File and FTP adapters.
Proxy support provided (HTTP)
Authentication Support :
Password based authentication – username/password combination authentication
Public key authentication – authenticating the identity based on the public key
create a key pair using OpenSSL keygen tool and the Public key need to be installed in the server. and the private keys fully qualified file location has to be specified in Private Key file and the passphrase has to be provide in Prive Key Pass phrase.
If the passphrase is present in the FTP configuration, B2B engine considers the password based Authentication else key based Authentication otherwise it is key based Authentication.Hello Ramesh
I want to configure FTPS using FTP adapter in Oracle BPEL,I am not configuring any wallet as of now.I am gettig following error while invoking the Put Operation of FTP adapter.
<messages><input><Invoke_1_Put_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Zebra_CRM005ProcessRequest"><Zebra_CRM005ProcessRequest xmlns="http://xmlns.oracle.com/Zebra_CRM005">
<input>test</input>
</Zebra_CRM005ProcessRequest>
</part></Invoke_1_Put_InputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
</part><part name="summary"><summary>file:/vol2/opt/oracle/product/10.1.3.1/soa/bpel/domains/default/tmp/.bpel_FTP_WRITE_NEW_v2008_09_24__47502_0c1781b2ce7e4236dffaaa7cabd43a0c.tmp/A.wsdl [ Put_ptt::Put(Zebra_CRM005ProcessRequest) ] - WSIF JCA Execute of operation 'Put' failed due to: Error sending file to FTP Server.
Unable to send file to server.
; nested exception is:
ORABPEL-11429
Error sending file to FTP Server.
Unable to send file to server.
Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
</summary>
</part><part name="detail"><detail>null</detail>
</part></remoteFault></fault></messages>
Please help in configuring FTPS in oracle FTP adapter.
Thanks
Satendra Pare
[email protected] -
FTP to FTP scenario. Pls advice urgent
Hi,
I have FTP to FTP scenario.
Do I need to install FTP server on both
Sender and Receiver File Systems
RegardsHi Aashish,
Since my Sender File System and Receiver File System are different:
1. I will install FTP Server A on Sender File System.
2. I will install FTP Server B on Receiver File System.
3. I will open the port for FTP request -- Port 21
4. I will open the port for FTP response -- Port 21
5. I will provide all authrozaitions
Pls let me know if anything missing -
I would a dynamic source filename and I my goal is to have that name be exactly the same on my target system.
So mainly I have FTP to FTP adapter, and I want the filenames to be the same on both ends, I have tried several things, but I am not having much success, can someone give me the details on how to configure this?
Thanks
Skip FordHi Skip,
Please check these threads too...
Dynamic Filename in File adapter
Problem: The same filename from a sender to a receiver file adapter - SP14
cheers,
Prashanth
P.S Please mark helpful answers -
I am interested in using an ftp to ftp adapter without converting to XML. Mainly, I want to pass a text file through XI without it being converted to XML or if it is converted to XML, I would like to be converted back to its original state.
The file I am moving contains text in it, and if I do not place the XML-env in the file with the text I get a mapping error...
Is there a way to move the file, so the inbound file is not in XML format?
Thanks
Skip FordHi Michal,
I'm sorry to use other's thread but it showing some similar problem.
I'm having mix of txt file and XMl files in the same source folder, jms adapter need to access this folder and send to targte system.
do we can use this method for this suggested blog?
I'm having security requiremnts , i need to apply on message level may be some decryption and encryption needed, in that case can i do it adapter level later can be used the same method?
Thanks,
srini. -
Hello,
I am using FTP to FTP..
Here is the sample input file:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
FILE_TYPE=F
rec_ind Element ID Element Type ID Element Value Language Code Element Short Description Element Long Description
1 O 510110 en Books & Publications Books & Publications
1 O 510120 en Recordings Recordings
1 O 510130 en Lib Mat-Binds Library Materials - Binds
1 O 510140 en Lib Mat-Books Library Materials - Books
1 O 510150 en Lib Mat-CD Roms Library Materials - CD ROMs
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Here is my send CC content conversion..
BMOCreditRecordSet.endSeparator 'nl'
BMOCreditRecordSet.fieldFixedLengths '1000'
ignoreRecordsetName TRUE
BMOCreditRecordSet.fieldNames BMORecords
Here is my receiver CC content conversion..
BMOCreditRecordSet.endSeparator 'nl'
BMOCreditRecordSet.fieldFixedLengths '1000'
BMOCreditRecordSet.fieldNames BMORecords
ignoreRecordsetName TRUE
Output file is look like below with lot of space...
FILE_TYPE=F
rec_ind Element ID Element Type ID Element Value Language Code Element Short Description Element Long Description
1 O 510110 en Books & Publications Books & Publications
1 O 510120 en Recordings Recordings
1 O 510130 en Lib Mat-Binds Library Materials - Binds
1 O 510140 en Lib Mat-Books Library Materials - Books
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
There are lot of blanks in my output file... there are empty spaces between lines..
My question is how can I keep output and input file format identical..
THanks
John
Edited by: JOHN YAJJALA on May 11, 2011 8:05 PM
Edited by: JOHN YAJJALA on May 11, 2011 3:16 PMPlease check the File adapter FAQ note:
[Note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267]
" Flat Files without File Content Conversion:
Whether to configure an encoding in this case depends on if
you want to pass through the file "as is", e.g. within a File
Sender to File Receiver scenario, or if you want to convert
the file's encoding on its way through the Integration Server.
For "as is" processing, configure both the sender and the
receiver using the File Type setting "Binary".
To apply an encoding conversion, configure the respective
source and target encoding in both the sender and receiver
channel.
Important: Configuring an encoding in the receiver channel
will only lead to the expected results if the payload sent to
the receiver channel is in UTF-8 format (e.g., by having
specified an encoding conversion in the Sender channel)." -
Hi,
I need to make a interface that take a file via FTP , with this data call a BAPI to update a SAP table and send the same file to other FTP.
The problem is that in when an error appears in the ftp receiver (ex. connection error or login error) this file must be sent to other FTP. It's possible do it, any idea?
thanks in advance
JoseHi Kulwant,
Yes the this is the scenario.
I get a file to send to other system, if the adapter fails I have to send the file to other system using FTP.
FTP sender -
> XI -
> FTP receiver (if sent ok the interface finish)
Error case:
FTP Sender -
> XI -
> FTP receiver (Error login in FTP)
> FTP receiver (Sent to other system)
Regards,
Jose -
Hi all,
In the FTP to FTP scenario, the source file is not picked up, but in communication channel monitoring for the sender channel the status says, Polling stated, file processed successfully. It doesn't show a link, for the source message.
It implies that the channel is able to connec to the FTP server, but its not able to pick up some file.
The channels are configured properly.
One more thing which I noticed is that, when i try to send a message through RWB->Integration Engine, its gets posted successfully in the same FTP server.
Please let me know the solution for this.
Regards
YounusHi,
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Thanks
Vikranth -
Diff between FTP & Secured FTP
Hi,
What is the diff between FTP & Secured FTP.
Thanks
Koteswa RaoRao,
The File Adapter does not support SFTP (File Transfer over SSH). It supports FTPS.
U may view this here at point 28 in SAP Note: 821267
Just an add-on, if u want to view the difference between FTPS (that XI supports) and SFTP, please refer this link
http://www.enterprisedt.com/forums/viewtopic.php?p=136&sid=28d66491b43c6bf90448deea4936bc15
. SAP is looking into this. Please see this thread on this discussion:
SFTP supports in SAP Netweaver 2004s
---Satish -
I need to FTP-SSL. Can I use FTP Task do FTPS? and How?
Thank you.
newbiewe use SFTP.
By default SSIS FTP task doesnt support SFTP. But there are free clients like WinSCP which can invoked from SSIS
We use Execute Process Task for the same. The WinSCP client requires a script file where you pass the required commands (put,get etc) for transfer of files from and to server.
This is a blog I wrote on the same for setting filename etc dynamically to do SFTP
http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
http://winscp.net/eng/docs/guide_ssis
And this is a comparison between SFTP and FTPS and of both SFTP is easier to setup
http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Abt RFC & FTP---- RFC to SAPFTP failed (urgent)
Hi all,
my program is working fine when i execute it in SAP GUI.
in this program i need to send some local file to FTP server from presentation server.
actually we have a scanner through which we can scan the barcode data from barcode label.this scanner is connected to sap test server through web console.
so ,i can see the sap screen on the screen of scanner for this perticular transaction.
after scanning a barcode,the barcode data comes to scanner.when i execute this report on the scanner, it is showing the error---- RFC to SAPFTP failed.
where as this same report is working very fine on the SAP server.it can send my file from presentation server to FTP server located at some other place.
web console is installed so i can connect scanner to SAP for this perticular transaction through web.i think, to execute on scanner is same as execute on sap server.
This error comes while executing a Function module FTP_CONNECT which is present in my program.
can u please tell where is the problem?it is very urgent as they need in 1 day of time.
code is as follows.
FORM ftp_send using printer dir.
data: user(64) type c value 'man',
pwd(64) type c value 'post',
host(64) type c value '172.160.122.30',
cmd1(80) type c ,
cmd2(150) type c ,
cmd3(80) type c ,
dest like rfcdes-rfcdest value 'SAPFTP',
compress type c value 'N'.
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.
data:begin of tab_oline occurs 0,
oline(200) type c,
end of tab_oline.
describe field pwd length dstlen.
LOOP AT bt.
CLEAR tab_oline.
CONCATENATE
bt-userid
bt-zdate
bt-seq
bt-charg
bt-batch
bt-matnr
bt-menge
bt-lgpla
bt-lifnr
bt-lot_code
bt-date_code
bt-lead_nolead
INTO tab_oline-oline SEPARATED BY ','.
append tab_oline.
endloop.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = 'c:\pabi29.txt '
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = tab_oline.
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
clear tab_oline.
refresh tab_oline.
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.
**Set FTP File Paths
call function 'FTP_CONNECT'
exporting
user = user
password = pwd
host = host
rfc_destination = dest
importing
handle = hdl.
if sy-subrc ne 0.
message e020 with 'RFC connection failed'.
endif.
DATA: zfilename(150) TYPE c,
zfilename2(150) TYPE c.
printer(5) TYPE c." value 'P0001'.
CONSTANTS: dir(50) TYPE c VALUE '\SAPuser\SAPfolder\'.
DATA: dir(50) type c.
select single pfolder from zkt014 into dir where printer = printer.
TEXT file name
CONCATENATE dir printer bt-userid bt-zdate sy-uzeit bt-seq '.txt'
INTO zfilename.
CONDENSE zfilename no-gaps.
Done filename
CONCATENATE dir printer bt-userid bt-zdate sy-uzeit bt-seq '.done'
INTO zfilename2.
CONDENSE zfilename2 no-gaps.
clear bt.
refresh bt.
concatenate 'put' '\pabi29.txt' zfilename
into cmd1 separated by space.
if cmd1 ne ' '.
call function 'FTP_COMMAND'
exporting
handle = hdl
command = cmd1
compress = compress
tables
data = result
exceptions
command_error = 1
tcpip_error = 2.
IF SY-SUBRC NE 0.
message e021 with 'bar tender is not submited due to error in RFC'.
endif.
loop at result.
write:/ result.
endloop.
ENDIF.
refresh result.
endif.
concatenate 'rename' zfilename zfilename2 into cmd2 separated by
space.
if cmd2 ne ' '.
call function 'FTP_COMMAND'
exporting
handle = hdl
command = cmd2
tables
data = result
exceptions
command_error = 1
tcpip_error = 2.
if sy-subrc eq 0.
MESSAGE w044(zv).
ELSE.
message e019 with 'RFC ftp_command problem'.
endif.
loop at result.
write:/ result.
endloop.
refresh result.
endif.
if cmd3 ne ' '.
call function 'FTP_COMMAND'
exporting
handle = hdl
command = cmd3
tables
data = result
exceptions
command_error = 1
tcpip_error = 2.
loop at result.
write:/ result.
endloop.
refresh result.
endif.
call function 'FTP_DISCONNECT'
exporting
handle = hdl.
thanks in advance.
Regards
pabitraWell may be the reason is that you are running report from SAP console.
SAPFTP is just an RFC destination which is actually pointing to an exe file on your frontend. filename is 'sapftp' and it is installed with your GUI frontend installation. May be while running through web console it is having problems accessing this file.
As a solution, why don't you use the rfc destination for the application server. It is called SAPFTPA. So instead of ws_download, you can save the file on application server through OPEN dataset ... ABAP commands. Than from application server ftp it using the same logic as it is in existing program. Just be sure to use the rfc destination SAPFTPA.
Hope this helps.
Cheers. -
Hi experts,
Could you please show me the link which guides to create a scenario such as: request sent from SOAP client to XI server to get data from an ECC system, then the response will be sent to FTP server as file.
Thanks in advanceHi,
RFC -> XI -> WebService - A Complete Walkthrough
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
SOAP-RFC-WEBSERVICE
SOAP-RFC-WEBSERVICE -
How to use FTPS using FTP adapter
I am trying to create one BPEL process using SOA 11g 11.1.1.4, which will put file on remote location using ftp adapter. I have created JNDI properly and using wallet.
useFtps= True
walletLocation= correct path of wallet created in Oracle HTTP Server(OHS)
walletPassword = walletPassword
host = ipaddress
username = myUsername
password = myPassword
For all this I have followed http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#BABEBGGD
Now, whenever I try to test that BPEL process it gives me error:
"Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Error in establishing SSL session. Error in establishing SSL session. Unable to establish SSL session on control channel. Reply String: 530 Please login with USER and PASS. Reply Code: 530) Please correct the setup for SSL. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution"
Any suggestion or resolutions are welcome.
Thanks!!
Regards
YogeshHi,
When you configure the Connection Factory for FTP Adapter in Admin Console, provide the following values for the attributes like the hostname, username, password, port and the path of remote location as where
you want to write the file in remote Server i.e., ftpAbsolutePathBegin. Please fill this
attribute with the path like /soa/ftp/file (example path). If you are writing to a remote FTP server you need to create a Connection factory for that as above.
Please try this and let me know...
Thanks,
N -
Mainframe Integration using File Adapter (FTP Mode):: ftp commands
Hi,
We are trying to integrate with Mainframe system using File Adapter. (FTP mode). We are able to write the file to Mainframe system but not able to format it properly. We had to provide FTP parameter, <b>ftp.quote site recfm=fb lrecl=150</b>
As per SAP Note 801926 :: XI 3.0 File Adapter: Additional Parameters, the only parameter that can be used is <b>ftp.timeout</b>. Has anyone tried out using other FTP parameters? (like ftp.quote)
Any help is grealy appreciated.
Regards,
Siva MarananiI am looking at running some OS commands especially the QUOTE SITE FILENAME, and found this OSS note:
https://service.sap.com/sap/support/notes/841704
In this note it says...
"Note that for the File Adapter transport protocol "FTP", the operating system command is NOT executed on the FTP server, but on the server hosting the Adapter Engine."
Maybe you are looking for
-
Search Help for field of standard table used on non standar report
Hi all. I need to know whether is posible to set up a "Search Help" / "Matchcode" for one standard field (LFBK-BKTVP) of a standard table (LFBK) that is going to be used on the selection screen of one new non standard report ZFK01. I was wondering if
-
Looking for Fm which display Blocked status
Hi , I was looking for a function module which displays the blocked status in GTS system, i know one '/SAPSLL/CD_STATUS_GET' which exist ECC system, but i am looking for which is in GTS system. Could you plz help me out with this issue.
-
Portal Eventing between WDP Java iView & non-WDP iView
Dear Experts, I have 1 Web DynPro Java iView and 1 non-Web DynPro (using JSPDynPage and JSP) iView, both attached to a page. When Web DynPro Java iView fire a portal raise event, the portal iView did not execute the javascript function tied to the ev
-
I have two blackberry's that won't load
I have two blackberry 8520 that won't load the operating system one loads a third then switches off and on,the other loads and writes reload software...I've tried force detection it does not show me any ports I downloaded the software but still nothi
-
Under my account -> Group video , I am trying to click on the link change skype premium settings , but the link opens a blank white page. Can you please advice how to open this link ? I tried with firefox, IE and chrome.