on 02-04-2016 7:21 AM
Hi,
I had a requirement , File to Proxy. File should go as an attachment to ECC.
I had gone through the following Doc
. In my case Sender is File , i can't take the reference of this doc.
I had tried of attaching the file to SFTP (Additional Files). But its throwing an error with Payload swap bean.
So can any body throw some light how can we attach a file to FTP/SFTP .
Also can ignore the main payload.
Or can we have any other approach to meet the above requirement.
Regards,
Samir
Hi Praveen/ Experts,
I do have similar kind of requirement but little different , In my case we don't have any main payload data, only .txt file will be placed in source directory I need to process the file to ECC inbound program.
could you please let me know what to maintain in SFTP channel Additional files and do I need to create ESR part like service interface and all in receiver side.
In Swap bean module what I have to maintain.
Appreciate your quick reply. This is very urgent requirement for me.
Thanks,
Gayathri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gayathri,
Do you have to send the file as an attachment to Proxy?
If yes, then you can achieve this requirement by following the below steps.
Refer the link http://scn.sap.com/thread/1918880 to get a sample code. However, you'll have to refine the code as per your requirement.
Regards
Charan
Hi Charan,
In my case we don't have any mapping involved in this. I have created one Receiver data type with one field,message type, and inbound service interface in ESR. Coming to sender side I have created one channel with FTP as adapter with payload swap bean.
I just want to pick the file from source directory(it is .txt ) file. and I have to pass the same file as it is to ECC through SOAP proxy.
Here is my channel config:
Please do let me know will it fulfill my requirement or not.
Note: For now i am testing myself with FTP. Actual requirement is with SFTP.
Appreciate your quick help!
Thanks,
Gayathri.
Hi Charan,
Now i am an impression that we have to convert that .txt file to XML and then we have to pass it to inbound proxy. Correct me if i am wrong.
If that is the case can you please help me is there any standard module for SFTP sender channel to convert the data into xml file.
Thanks,
Gayathri.
Hi Gayathri,
I guess you need to be clear with the requirement.
Regards
Charan
Hi Charan,
I will explain you my scenario in detail.
My Sender channel will be SFTP. I have to pick one .txt file which contains some unusual data.I am not sure about the structure of that .txt file. I have to pass the same txt file to ECC.
Unfortunately there is no direct mounting from PI to ECC in our landscape so I am not supposed to place the file in AL11 directory.
Now my query is how do I pass the txt file to ECC. I just created one DT,MT,SI for inbound in ESR.
Please suggest me how to proceed on thins. Hope this is clear to you.
Thanks,
Gayathri.
Hi Gayathri,
I guess you need to discuss with ABAP development team on how they want the file. As you are not sure about the contents of the file and the structure, it is better to go send it as an attachment to an inbound proxy or simply drop it in some FTP/SFTP server accessible to both PI and ECC systems.
Hope this is clear.
Regards
Charan
Hi Shaik,
In the File Adapter (NFS), there is an option to include additional files. So to have the attachment, you would need two files (one for the main payload, the other for the attachment). I'm not sure if you have this option in SFTP, but it is not there in the FTP adapter.
If you can zip the files, you can just extract them and create an attachment in operation mapping.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shaik,
PayloadSwapBean should work in your case. What is the extension of the first payload and the second? Can you share your config?
Since your scenario is a proxy, you need to have a defined structure for the target message type. Swapping the payloads will result in a proxy error.
Regards,
Mark
Hi Shaik,
In this document, https://help.sap.com/saphelp_nwpi711/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
the part and name e.g ".xml"="1.txt" is your text file name test1.txt?
Regards,
Mark
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.