File-XI-HTTP Scenario with multipart
Hello everyone,
Argentina has a legal requirement which is necessary to send a TXT file containing data related to outbound delivery (transaction VL03N) in a website created by the government.
Nowadays the users are using a HTML page to send this file. This HTML page has 3 parameters ( user, pass, file path+name ) and is sending data through "POST" method using encoding type "multipart". Please take a look on the statement below contained in the page:
<FORM action="http://cot.ec.gba.gov.ar/Transporte.do" enctype="multipart/form-data" method="post" name="form" onSubmit="">
I am not expert in SAP XI, but I would like to convert all in an automatic process using XI:
(SAP R/3) File -> XI -> HTTP.
My question is: How could I configure a communication channel in order to send a TXT File to a HTTP service with all attributes mentioned right above (multipart, user + pass)? I think its necessary to use HTTP adapter but I am not sure.
Best Regards
Gabriel Santana
Hello Gabriel Santana
I have the same requerimient as you and i need some help. As you know the web service have 3 obligatoies parameters . User , password and File.
I have no problems with the two first parameters passing them with the class
cl_http_client method ->request->set_form_field. and this values.
However i cant pass the third parameter (File) using the same mode.
i tried:
CALL METHOD http_client->request->set_form_field
EXPORTING
name = 'file'
value = 'Path source of my file'.
but i recive an error response from the web service .
Hope you can help me with this issue because it turned to me to an Urgent matter.
Thank you and will look forward for your answer.
if you prefer my e-mail address is [email protected]
Regards
Mcol.
Similar Messages
-
File to RFC scenario with no BPM
I want to create File to RFC scenario with no BPM. I want to invoke RFC synchronously to verify that I'm getting correct response back, but i dont wanna process the response. So, In SXMB_MONI i can check the response back from RFC right? Or do I need to have BPM if want to see the response back from RFC?
What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK?
Thanks,
DeepeshHi,
I need to have BPM if want to see the response back from RFC? ... yes
The BPM will help you find the response very comfortable.
What kind of business system i need to create for RFC? can i use same business system for both File and RFC? I'm using one Business System created on Third party technical system, which i'm using for file Input, also for RFC. Is that OK? ..Yes you can .
Regards
Agasthuri Doss -
File to mail scenario with dynamic email addess
Hi All,
I am doing a file to mail scenario with attachment(mail package is used), where i need to pick a file from folder and based on the file name(Country code is provided in file name. for eg. Collections_UK02_20091210.txt. here UK02 is the country code), i need to send an email to dynamically. I am using value mapping for country code with email address. please provide me suggestions like how can i pick the file based on the country name and send to the corresponding email address.
Regards,
Mahakrishnan T.Hi Mahakirshanan,
>>how can i pick the file based on the country name and send to the corresponding email address.
You cannot do this.. better will be to make a generic interface which will pick the file and based on its filename it will make the to field
Follow these steps:
1 Read the file using communication channel (check the adapter specific identifiers)
2. Using dynamic mapping read the filename and based on the name of file decide the To address and update it to the To field of mail package. You can use value mapping to decide what the targetvalue can be.
Regards
Suraj -
File-xi- mail scenario with attachements
Hi
Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
thanks
kumarHi,
>>>>Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
yes: your application puts order data into a file and generated a PDF file with it
XI takes both and send order file in mail and PDF in mail attachment
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Hello All,
My Requirement is File to HTTP Scenario Where i would read a xml file and send the data to webpage using Http receiver adapter. what are the steps for this scenario. How to configure Http adapter.
ThanksHi san
check these threads
HTTP to File ??
File to HTTP scenario
See here how u need to configure the reciever HTTP adapter.
/people/bla.suranyi/blog/2006/07/10/xi--sap-business-connector-integration-using-the-http-adapter
/people/siva.maranani/blog/2005/09/15/push-data-to-mvc-architectured-application-using-xi
Regards
BILL -
FILE TO IDOC SCENARIO WITH SCREEN SHOTS
can u please send me FILE TO IDOC SCENARIO WITH SCREEN SHOTS and do the needful for me
/people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
Also have a look at these forum threads...
IDOC TO FILE SCENARIO
idoc to file scenario
I hope this answers your query.
regards
Sreeram.G.Reddy
Message was edited by:
Sreeram Reddy -
File to mail scenario with zip file as an attachment
Hi experts,
I have a file to mail scenario.The mail contains a zip file as an attachment.
The file in the input folder is a zip file. I want to send this zip file via email using mail adapter.How can i achieve this?Please help me to solve it out.
Regards
DiviaHi Narath,
Do check the below link it will be helpfull
Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway
Thanks
Sampath -
File To Mail Scenario With An Attachment
Hi All,
I Want to Implement a FileXI--Mail Scenario With An Attachment
I Want to Send a Text File From the File System As An Attachment to the Mail.
Can We Do this With out Doing JAVA Or XSLT Mappings in this ???
Please Give me the Steps That I Have to Follow
Regards
BabuBabu,
I am not sure how complex is your file sturcture and the mapping. But we can also achieve without java or xslt mapping also. Please check these weblogs:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
Also you have to use module swap for sending the attachment as txt file. Please check this weblog for this:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
Regards,
---Satish -
File-PI-RFC scenario with extraction of contents in the filename
Hi All,
I am working on File to RFC scenario.
Here the file name is like 'ABCD_XYZ_1234_DATE' where the date is in yyyymmdd format.
I have to read this filename & the date in the filename is to be mapped with one of the RFC parameter.
Also how would I trigger the Interface if the file resides in PI server or on local mchine.
How to configure the processing parameters in sender comm channel if I want to read the file after every 15 mins?
Thanks,
Amit PatilHi,
By writing simple UDF in your mapping you can Acheive this
Try this Once
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String MyFileName = dynamicconfiguration.get(key);
String str[] = MyFileName.split("_");
return str1[1];
Map this to the date parameter(RFC) in the mapping .
If the file resides on Local machine then you can use FTP and if it is on PI server then NFS as Transport protocol.
If you want read the file for every 15 min there are 2 options
1) Set the poll interval time to 900 sec
2) Configure ATP in RWB
Configuring ATP in RWB :
http://www.dataxstream.com/2010/11/configuring-availability-time-planning-in-sap-pi/
Thank & Regards,
Deepthi -
Xml file to mail scenario with zip file as an attachment
Hi experts,
I have a file to mail scenario. File is in xml format.
At receiver side, first I want to zip this file and send the zip file as an attachment using mail adapter.
How can i achieve this?
Regards
DiviaHi Shabarish,
In the module tab i have specified the below beans
localejbs/AF_Modules/MessageTransformBean contentType
AF_Modules/PayloadZipBean zip
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
In the module configuration i mentioned as
Transform.ContentDescription file
Transform.ContentDisposition attachment:filename="file.xml"
zip.filenameKey contentType
zip.mode zipOne
Now i am getting the mail with zip file as an attachment.But the name of the attachment i got is MainDocument.zip
Even the file name inside the zip is MainDocument.xml.
How can i specify my own file name for both zip file and the file inside the archieve folder.Please help me.
Regards
Divia -
XML file to Proxy Scenario with BPM - ID Steps
Hi Guys,
Any one can help me to find about the scenario XML file to ABAP Proxy with BPM, ID steps please. Any link or logical routing, receiver determination and interface determination idea. Please correct me,
I have created Business Service as sender to send one xml file to BPM, BPM is sending a message to SNC system. I have created 2 receiver determinations, but I am confusing in interface determination, where to declare OM?
Please can any one respond bit quicker.
Thanks in advance
Regards
SanES Repository
*Service Interfaces*
Create one outbound service interface for XML file.
Create one Inbound synchronous Interface for SNC system.
Create one Abstract Asynchronous interface ,same message type as you used for outbound service interface .This is for Integration process receive step.
Create one Abstract async interface for receiving the response from SNC system in Integration process.
Create one Abstract synchronous interface to be used in the Integration process for Send sync step.
Create on inbound asyn service interface for sending the response from integration process (received from SNC system) to the Receiver System.
Operation Mapping.
Create an Operation Mapping using Abstract sync interface and inbound syn interfaces.
Integration Process
start--->receive Step---->send Synchronous step----->send step.
Create two container elements
first with abstrat async interface for the XML request.
second for abstract asyn interface with the XML response structure (asyn receiver system structure)
In the send sync step select your abstract syn interface from the F4 help.and select the corresponding request and response message from the container element you defined earlier.
Integration Directory.
Create one sender File adapter Communication channel for XML file reading.
Create two receiver communication channel for sync system(receiver XI adapte for ABAP PROXY) and other for asyn receiver system .
Create 3 receiver determination
1.from sender to Integration process.
2.from Integration process to SNC system.
3. from Integration process to Asyn Receiver System.
Create 3 Interface determination.
Specify Operation mapping while you are creating interface determination from Integration Process to Syn BS.
Create one sender agreement
Create two Receiver agreement.
Regards
Kubra Fatima. -
File to idoc scenario with controls
I am working on file to idic scenario.
file has four types of lines :
Begin of file.
header.
items.
end of file.
each line has a element Record type and some other elements.for header record type is A , for item its B , for Begin of file its C and for end of file its D.
we have to check for every line that it should have record type as one of these four and if not so we have to send a mail through alert functionality.we have to send a mail which has all errors by checking the whole file for record types.we have to ignore these lines in the file and proceed with the rest.
how can we implement this?
regards,
rohitHi,
Please go through these links
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
/people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
Thanks
Vikranth Khimavath -
File to idoc scenario with file size 16 MB
Hi experts
We are developing a file to idoc scenario.The file is a 16 mb CSV txt file.Is it feasible to poll a 16 mb file at a single shot or any mechanism can be followed which would split the 16 mb file into manageable size files so that it can be polled from the adapter engine side.Will there be any performance bottleneck fr polling 16 mb file .Plz provide help in this regardHi Sabyasachi,
There would be absolutely no problem , you need not worry. I myself am using a 16 MB master record file.
The problem only arises when you need to open this 16 MB file for into some errors or some other changes then invariably what happens is that my desktop hangs.
Regards
joel -
Reg File to IDOC scenario with Acknowledgment
Hi Experts!
In a File to IDOC scenario , how to get the acknowledgment back to PI after posting the IDOC to SAP system and send the acknowledgment to the sender system.
What setting needs to be done in Sap and PI? Is it better if we have a BPM or is it good to have another interface to pass the acknowledgment IDOC back to the file sender.
Regards,
SriniDear All,
For file to idoc scenario is there any possibility to get line items details or xml details i.e the segments and its related field details using reference id, transaction id or interface name or message id in SAP PI 7.0. I know we need to click each and every message in sxi_monitor and look for details.
For SAP(R3 System) I can create a report and set the job for specific time period so automatically it throws the details(like reference no, document date, invoice no from) in ftp path as .csv file. The same ftp path is maintained in program.
I wanted to check FTP--->PI postings and I have set the job at r3 system it is working fine and Im monitoring it too.
Now the end to end scenario is FTP--->PI--->ECC(R3 system). Please help.Many Thanks. -
Step by step File to RFC Scenario with BPM
hi
for the following scenario i m following the webblog
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
i have successfully created the design phase
in the configuration stage
i need to create a business system or business service will do to create the communication channel
i have not created the systems so i feel i should not create the business systems
i would like to create the business service
so in only one business service can i assign all the communication channel
useful answers will be rewarded
Regards
JMThere are 3 parts of communication: Sender service to Integration Process (Asynch.), Integration Process to RFC (Synch.), Integration Process to Receiver Service (Asynch.)
The configurations should be like as follows:
<b>Sender Service to IP</b>
Receiver determination:
Sender Service->Request Outbound Message Interface->Integration Processs.
Interface Determination:
Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface. (No interface Mapping is required as the interfaces share the same structure.)
Sender Agreement:
Sender Service->request Outbound Message Interface->Integration Process->Request Outbound Abstract Interface>FileRFC_Send
<b>IP to RFC</b>
Receiver determination:
Integration Process->Request Outbound Abstract Interface->Business service.
Interface Determination:
Integration Process->Request Outbound Abstract Interface->Business service->RFC Structure->Corresponding Interface Mapping between file structure and RFC structure.
Receiver Agreement:
Integration Process->Request Outbound Abstract Interface->Business service->RFC_Receiver
<b>IP to Receiver Service:</b>
Receiver determination:
Integration Process->Response Inbound Abstract Interface->Business service.
Interface Determination:
Integration Process->Response Inbound Abstract Interface->Business service->Response Inbound Message Interface. (No interface Mapping is required as the interfaces share the same structure)
Receiver Agreement:
Integration Process->Response Inbound Abstract Interface->Business service->FileRFC_Receive.
Hope you find this useful.
Regards,
Amitabha
Maybe you are looking for
-
Crash by gaming with MSI z97 Gaming 9 AC/ MSI 980GTX
Dear MSI Form The last couple of weeks I have a very bad crash, This is my system: Windows 8.1 64 Mother board: MSI Z97 Gaming 9 AC GPU: MSI GTX 980 CPU: Intel core i7 4790K 4 GHz CPU Cooler: Cooler Master Nepton 240M Memory: 16GB 4x4 Corsair vengean
-
How do I remove a photo from iPad camera roll taken by the camera?
How do I remove a photo from iPad air camera roll taken by the camera?
-
My phone is displaying "no sim card installed".
My iphone 4s is not recognizing the sim card as being installed. How do I fix this situation?
-
I have installed Oracle 8i Personal Edition for Windows 98, is working OK using scott/tiger as User Name/Password. Now I installed Oracle Forms Developer/Services 6i Release 2 for Windows 98/NT/... and I can't get the connection, This is the error: O
-
Computation ???
I am new to Apex. We have 3.2 on a 10.2.0.4 database. I have a table with a column MONTHLY_SAVINGS. When the user clicks Apply Changes I want to calcualte the ANNUAL_SAVINGS (MONTHLY_SAVINGS * 12). I cannot get it to work. I tried creating a new comp