File to Http Scenario

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.
Thanks

Hi 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

Similar Messages

  • 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.

  • Need help for File to Http Scenario

    Hello all,
       I want to send flat file source to destination . my source side Adapter is File, destination adapter is Http. What are the steps need to do.
    Thanks

    1) Define the Data types ,message type , message interface for source and target messages.
    2) Create the required mapping and associate it to an interface mapping
    3) Create a communication channel for the sender (file adapter) and one for the receiver
    4) Create the 4 collaboration objects in directory

  • File to HTTP Mapping error in PI 7.1

    Hi Team,
    In my file to HTTP scenario- Im using file content conversion at source side . under MT , i have used Record node, under Record fileds. At target side I have used External definition. To generate multiple  records , Im using 0...unbound occurance in External defination.
    Example:
    MT_SOURCE
    -Record
    --fileds
    External_Definition
    -fileds
    After 0..unbound the structures looks like..
    Source:
    Message
    -Messages1
    --MT_SOURCE
    ---Record
    fields
    Target:
    Messages
    -Messages1
    --ExternalDefinatuion
    ---fields
    Now I record context to Messages1 from MT_SOURCE and mapped with Externl_Definition node. My reguirement is , For every record occurance the target structure should generate . I have changed the occurance in Interface mapping as 0..unbound. BUt when im testing with 2 Records ,  i got the below error...
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">ADAPTER_NOT_MMF</SAP:Code>
      <SAP:P1>PLAINHTTP</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Adapter PLAINHTTP cannot process message packages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    If I used file adapter at receiver side , the messages are processing successfully , so mapping is correct . If I use HTTP im getting the error in MONI. Can anyone suggest whats the issue is ?
    Cant we handle multiple records/messages in HTTP adapter.

    Hello,
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="INTERNAL">ADAPTER_NOT_MMF</SAP:Code>
    <SAP:P1>PLAINHTTP</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:Stack>Adapter PLAINHTTP cannot process message packages</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    If I used file adapter at receiver side , the messages are processing successfully , so mapping is correct . If I use HTTP im getting the error in MONI. Can anyone suggest whats the issue is ?
    Cant we handle multiple records/messages in HTTP adapter.
    Multi-mapping is not possible when you use Plain HTTP Adapter. You could use SOAP Receiver Adapter and check Do Not Use SOAP Envelope also make sure that your content-type is correct as checking this option changes the content-type to application/xml.
    Hope this helps,
    Mark

  • Error with HTTP scenario

    Hey guys
    i m doing a FIle to HTTP scenario and posting an XML file to one of our client who is outside our landscape.
    in MONI i see chequered flag but they are not getting the XML file,they are using Business connector on their side,they side they got the interface name,business system name and namespace,but didnt get any XML file.
    is there anythin i can do to check the scenario at my end,how will i monitor receiver HTTP adapter?
    if they are getting Interface name,business system name etc then y not the payload?
    thanx
    ahmad

    Ahmad,
    I would agree that the best way to convice your client that you have sent the payload would be to et up the TCP gateway tool between XI and the client system.
    Forward the HTTP message from the HTTP adapter to the TCP gateway and then you will be able to see the actual HTTP post message sent from XI and this is the message being sent to the target.
    Follow the blog pointed above. If stuck let us know.
    Regards
    Bhavesh

  • File t http

    In a file to http scenario, what can we use as a receiver system for testing? What are the parameters we can give?
    can we have an ftp to ftp scenario using http protocol in the receiver side?

    CSV File Lookup With Http Request and Response in XI
    This might help you...

  • Error in scenario "FILE to HTTP(with SSL)" - HTTP client code 110 reason.

    Hi friends,
    Our scenario is as follows:
    We are trying to send XML file from our SAP-XI to external tool "COMMunix XC" (a multi-protocol EDI platform tool).
    We have configured " FILE TO HTTP(with SSL)" scenario (trying to connect HTTPS/port)
    1. We have created RFC destination of type G and refered the same RFC in Communication channel (Adapter type: HTTP)
    2. We have send the SSL Server certificate to other party and ensure that they have imported at thier end.
    3. We have included the certificates from other party in our SAP XI STRUST under SSL Client (Standard) node.
    4. We have tried " CONNECTION TEST " in the RFC destination created in type G (in STEP 1) and it shows the GREEN TICK at bottom, no other message nor any error message
    When we trigger the communication we recieve the error: HTTP client code 110 reason in SXMB_MONI.
    Please let us know if we have missed out some step.
    What does error message indicate,
    Regards,
    Rehan

    Hi Rehan,
    I see that the PROCTIMEOUT was already at a very high value.
    Does this occur for messages of a particularly large size?  If yes, you could increase the parameter
       icm/HTTP/max_request_size_KB = 2097152
    This would need to be done in the sender/receiver system as well as XI.
    Otherwise you could try reproducing the issue and checking the dev_icm log in the work directory, or go to SMICM -> Goto -> Display trace file
    check for errors like NIECONN_REFUSED or "no service for protocol HTTPS" which can often be related to this type of issue.
    Kind regards,
    Sarah

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 PM

  • Error in File to IDOC Scenario

    Hi,
    I have File to IDOC scenario.
    I am getting error in sender file channel.
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
    Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
    Despite of this error in sender channel I am receiving the message in XI.
    But in XI also it throws error :
    "Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
    Any help on this ?
    Thanks,
    Vikas

    Hello Vikas,
    I am getting error in sender file channel.
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found "
    Although I have used this parameter in content conversion 'xml.keyfieldName' (for each sub structure and defined a key field).
    Check your flat file structure whether the key field you have chosen is appropriate and also recheck the FCC details whether you have assigned the value for the key field i.e.  keyFieldValue.
    "Unable to convert the sender service PG_TOM_CEEMEA_RU_SFA to an ALE logical system"
    regarding the above error refer this
    https://wiki.sdn.sap.com/wiki/display/XI/Unable%20to%20convert%20Sender%20system%20to%20ALE%20logical%20system
    Regards,
    Prasanna

  • Error while doing a File to IDOC scenario

    Hi Experts,
    I have created a File to IDOC scenario where in i have sent a file which has to pass data to ABSEN1 IDOC.I could see the IDOC reaching R/3 ,but with the status 56: "EDI: Partner profile inbound not available"
    I have checked with all the configurations and couldnt find where it went wrong.
    Kindly help me in this regard.
    Thanks.

    Hi
    Check the inbound parameter and the process code.
    To find Process code for IDoc use Tcode WE42.
    ALE idoc trouble shooting use
    Troubleshooting of ALE Process
    look also this configuration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34

  • Error while calling RFC adapter(FILE-XI-RFC scenario)

    Hi,
    I am trying for FILE-XI-RFC scenario. I am getting the following error. I have checked in message monitoring. The error is coming while calling the RFC adapter. Can any body tell what problem is this?
    Regards,
    Dhana
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
      <SAP:P1>af.f23.sofd00001530a</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>2: Unable to find URL for Adapter Engine af.u7a.us4296</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.f23.sofd00001530a</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi,
    I did SLD check.
    The status says 'Summary: Connection to SLD works correctly'.
    But it fails while checking the access to XI profile.
    Here is the status
    Summary: Connection to SLD works correctly
    Now checking access to the XI Profile
    Properties of RFC destination LCRSAPRFC
      RFC host:
    %%RFCSERVER%%
      program id:      LCRSAPRFC_DZ1
      gateway host:
      gateway service:
    Testing the RFC connection to the SLD java client...
    RFC ping returned exception with message:
    / CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679#Transaction program not registere

  • Post file over Http

    Hi All,
    I am working on EDI scenario in which EDI partner has given one HTTP site address with user name and password.  I will have to put EDI file at that site using http/soap adaptors at receiver end.
    One thing I know for sure that I can not use File channel at reveiver side as there is no FTP available. Now Can anybody please let me know how to generate file using http connection?
    I have absolutely no idea how to use http and soap adaptors so if any links to the blogs will also be helpful.
    Thanks in advance,
    Atul

    Hi Aamir,
    Thanks for your reply.
    I just want to generate a file at given location. I am confused what is the difference in data sent as a payload or as attachment?
    As you said in case of attachement we need to use some modules(Looks bit difficult ) I would perhaps like to generate file by using Payload .
    Can you suggest some blog for the same?
    Thanks and Regards,
    Atul

  • Flat file over HTTP or SOAP

    Hey Guys,
    I need to post a Flat file over HTTP (or SOAP), is this possible without developing my own Adapter module?
    I just need to get a Flat file from a FTP server and post to another server via HTTP,since there is no message mapping involved, i developed the scenario without any Integration Repository objects, it is just a pass-through scenario.
    Now i am stuck on the receiver side since i am unable to post Flat file over HTTP.
    Secondly i have Login URL, Logout URL and upload URL from the receiver system, i don't see any place in receiver HTTP adapter to put all these 3 URL's, can i use SOAP adapter to put all these URL anywhere?
    Any help would be appreciated.
    Thanks
    Saif
    Edited by: Saif Manzar on Jan 19, 2010 2:51 AM

    Hey Guys,
    I need to post a Flat file over HTTP (or SOAP), is this possible without developing my own Adapter module?
    I just need to get a Flat file from a FTP server and post to another server via HTTP,since there is no message mapping involved, i developed the scenario without any Integration Repository objects, it is just a pass-through scenario.
    Now i am stuck on the receiver side since i am unable to post Flat file over HTTP.
    Secondly i have Login URL, Logout URL and upload URL from the receiver system, i don't see any place in receiver HTTP adapter to put all these 3 URL's, can i use SOAP adapter to put all these URL anywhere?
    Any help would be appreciated.
    Thanks
    Saif
    Edited by: Saif Manzar on Jan 19, 2010 2:51 AM

  • About FILE to IDOC scenario

    Hi Experts,
    i need some help for doing file to idoc scenario.
    1. what are the configurations we must do while doing this scenario?
    2. How to communicate with Legacy system to sap system?
    3. How to create the business and logical systems for SAP systems in SLD?
    4. How to define parameters in communcation in ID?
    5. what work shold be done using SM59 and WE20? and specify the steps please?
    6. finally if u having word file please send from the creation of logical system for sap system?
    thanx.

    Go thru below mentioned links.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    once you go thru them you will find answers for questions.
    thanks,
    Venkat

  • Reg:file to idoc scenario

    In a file-xi-idoc scenario i created a business service for legacy
    system and a business system for R/3 receiver system
    i didn't assign logical system for the sender business service
    and assigned a logical system for the reciver business system
    so while maintaining partner profile in the R/3 system
    i have to give partner no:
                        partner type:
    here the problem is my sender business service i didn't assign any logical system,and it is not of LS type
    so then what do i need to give in the above two fields?
    answers required briefly

    Hello,
    you know this pdf:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a
    Could be helpful.
    Regards
    Patrick

Maybe you are looking for

  • Problem using the DVI to Video adapter

    I am using a MacBook Pro. I am using the DVI to Video cable to connect my MBP to the TV. It was working fine and I was watching movies and videos. Suddenly I am having problem and its not working. I hooked up the DVI to Video adaptor on the PC side .

  • Sap splash screen

    hi, in sap initial logon screen next to logon id & password i want to display different client detail as text like 100 -develo/200 sanbox /900 prod etc Pl tel me the steps how this can be done

  • MovieClip Loader Class - assigning Events to Movies

    Hi. I have a MovieClipLoader Class that loads a SWF into a holder clip that is on my main timeline. Then Im using "mclListener.onLoadInit" to check that the SWF is loaded so that I can continue to load some buttons into the holderclip from an XML fil

  • Archlinux setup on Toshiba r100

    Hi guys, I have a problem, i would install arch on a toshiba r100 (subnotebook) but i have no cd rom on this laptop so i would use a usb pendrive to install it. The problem is that i couldn't create a bootable image on my usb pendrive, i tried with s

  • Need power cord for my Pavilion Entertainm​ent PC mod #dv6753cl

    Where can I get a power cord for 4 year old Pavilion Entertainment PC mod# dv6753cl?