IDOC - XI - post HTTP on .ASP?& DATA_CONTENT

HI ALL !
I have this scenario :
1) R3 send IDOC ORDERS01 to XI (3.0) 
2) XI elabs IDOC fields (in mapping step)
3) XI with HTTP Adapter post data to a "page".asp on webserver using querystring (like page.asp?&ID_CUSTOMER=123&ORD_DOC=WE ...etc..)
My ASP page use this stantments for get values:
ID_CUSTOMER = Request.Form("ID_CUSTOMER");
ORD_DOC = Request.Form("ORD_DOC");
xml_content = Request.Form("xml_content");
At the moment XI call the page but the query string is empty ! I think that the message type of interface will be automatically added on URL (as when flags Additional Query on Comm.Channel - Sender Party, Sender Service... are selected).... it's wrong ?!? If yes how it's possible complete the flow ?!
Thks !!

Hi Jari,
Thanks for the reply,
I have the asp file as below and plz suggest for any changes,
<%
Function BinToText(varBinData, intDataSizeInBytes)
            Const adFldLong = 128 '&H00000080
            Const adVarChar = 129
            Set objRS = Server.CreateObject("ADODB.Recordset")
            objRS.Fields.Append "txt", adVarChar, intDataSizeInBytes, adFldLong
            objRS.Open
            objRS.AddNew
            objRS.Fields("txt").AppendChunk varBinData
            BinToText = objRS("txt").Value
            objRS.Close
            Set objRS = Nothing
End Function
server.scripttimeout = 600
dim binXML, strXML, outXML, objFundsDelete
'if Request.TotalBytes > 0 then
'           binXML=Request.BinaryRead(Request.TotalBytes)
'           strXML=BinToText(binXML,lenb(binXML))
'else
'           strXML=""
'end if
strxml = Request("xmlData")
'Response.ContentType="TEXT/XML"
'Response.Write(strXML)
   'dim fs, LogFile
   'logFile = "c:\received.xml"
   'set fs = server.CreateObject("Scripting.FilesystemObject")
   'on error resume next
   'if fs.FileExists(LogFile) = false then
   '  set ts = fs.CreateTextFile(LogFile)
   'end if 
   'set ts = fs.OpenTextFile(LogFile,2)
   'ts.writeline strXML
   'ts.close
   'set fs = nothing
   'set ts = nothing
set objFundsDelete=server.CreateObject("FundsDelete.CFundsTransfer")
outXML=objFundsDelete.FundsProcess(strXML)
set objFundsDelete=nothing
Response.ContentType="TEXT/XML"
Response.Write(outXML)
%>
Thanks,
srini

Similar Messages

  • How to convert XML into idocs and post in ECC using PI

    Hello All,
    I want to configure the scenario like this MDM->PI->ECC. Using FTP I am getting able to fetch the xml file from MDM Server Ready folder. Now, I need to convert this XML file into Idocs and post it in ECC. Can anyone provide me step by step configuration in PI to achieve this. I have configured communication channel with adapter type Idoc in Itegration Builder. But, I am not sure where it will do the conversion of XML into Idoc and how do post it to ECC. I am working first time on PI 7.1. I have worked on XI 3.0 in 2006-2007. Any help to configure this step by step shall be appreciated.
    Thanks & Regards,
    Hemal

    In you have the XML from MDM you have to use the mapping provided by the funtionals in the Funtional specification documents. once you did it you must configure the Receiver IDoc Adapter. and later dont fonget to configure properly the ReceiverAgreement.
    as you receive the docuement from MDM via FTP, thats not a SAP System that means that you have to define PI as the sender of the IDoc,otherwise you will have the Error "Unable to convert the sender service to an ALE logical system"
    to do that in the receiver Agreement>Header Mapping>Sender System-->Select PI server.
    Take in mind to send IDocs to any SAP System, the system that send it must be a SAP system too. thats why you configure it
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
    Another thing is you have configure the ALE distribution Model.
    se this:
    http://wiki.sdn.sap.com/wiki/display/XI/FileToIDOC
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    Let us know
    Rodrigo P-.

  • Need the suitable IDOC to post data.

    Hi all.
    I m working on an XI implementation. I need to find a suitable idoc to post sales data. Could you please help me how to find the idocs or please suggest me some sales related idocs.
    Some of the fields are:  item num, item name, shop num, receipt num, customer num, customer name, date, quantity, price, total price.
    Thanks in Advance,
    Regards,
    XI Beginner

    Hi,
    what is your business process?
    Are you supplier or vendor?
    ORDERS should fit.
    Creating Purchase Order Idoc through XI
    http://www.apentia-online.com/UP/Apentia/files/Article/SAPPress_Mastering_IDoc_Business_Scenarios.pdf
    Regards Mario

  • Configuration to trigger the EDI IDOC when posting

    Hi all,
    Can I know what is the configuration needed in order to trigger the EDI message type INVOIC IDOC when posting to certain company code (eg: AP10)?
    As I know for order acknowlegment need to do some configuration in Tcode v v13 in order to trigger the EDI...
    Please help.
    Thanks a lot.

    Hi,
    Please refer the below link:
    SAP IDoc Configuration Overview:
    http://www.topxml.com/biztalkutilities/walkthroughs/SAP%20IDoc%20Configuration.pdf
    SAP Network Blog: IDOC: EAN mapping in EDI orders:
    /people/michal.krawczyk2/blog/2006/12/22/idoc-ean-mapping-in-edi-orders
    Hope this helps.
    Please assign points as way to say thanks

  • Inbound IDOC to post goods receipt with inbound delivery as reference

    Kindly let me know the message and IDOC type for
    Inbound IDOC to POST GOODS RECEIPT  with inbound delivery as reference
    I tried using WMMBXY but it didn;t work.
    Pls let me know asap.Your help is appreciated.
    Thanks and Regards
    Priti
    Edited by: Priti Adukia on Feb 11, 2008 4:48 AM

    Hi Nicole,
    What I've to do is quite the same as the case. Outbound and Inbound are in the same SAP system. If I've good understanding, I must set partner profile as follows :
    INBOUND - Parter LI with
                            Message DESADV
                            Operation code DELS
    OUTBOUND - Partner KU
                            Message DESADV
                            Operation code ???
    Please advise
    Suchart

  • How to send Internal table records to Idoc Inbound posting FM to create Ido

    Hello Experts,
    I have all the data necessary to create shipments in one internal table inside my ABAP program.
    I can use BAPI_SHIPMENT_CREATE to create shipments. But associated with this BAPi there is one ALE message type SHIPMENT_CREATEFROMDATA. Now my requirement is to use this message type to cretae my shipments via idocs for one scenario for some of the records in the internal table.
    For this message type, I got the inbound function module IDOC_INPUT_SHIPMENT_CREATEFROM from TBDBE table.
    Can anybody please let me know how to send the data from the internal table to this inbound function  module?
    Becasue it has mandatory parameters INPUT_METHOD, MASS_PROCESSING. What values should be passed to these parameters if the data has to be sent to this function module?
    Regards.

    Hi Ravikanth,
    Thankyou very much for your quick reply.
    So If I split my internal table data and populate IDOC_DATA and IDOC_CONTROL and pass to the inbound function module directly in my ABAP program, will that be going to create idocs and post shipments?
    I mean is it enough to call the Inbound posting function module directly in my ABAP program or any other FMs to be called to take care of ALE settings and shipment creation?
    Please confirm.
    REgards.

  • BPM: IDoc to multiple HTTP-Requests

    Hello!
    I'm currently working on a scenario which is described as followed:
    My XI-System is receiving an IDoc from an SAP R/3-System.
    This IDoc contains a list of numbers together with the respective name of the customer an our internal customer number.
    Structure:
    IDoc
    |
    area01
       |
       |-NUMBER01
       |
       area02
         |
         |-NUMBER02
         |-CUSTNAME
         |-CUSTNUMBER
    This IDoc has to be split up in HTTP-Request to a server in the WWW. Each HTTP-Request consists of an URL together with two specific parameters (eg: http://www.xyz.com?param1=P1&param2=P2, where param1 is NUMBER01 from the IDoc and param2 is NUMBER02)
    I have two different problems:
    First one is that my BPM is showing errors with the transformation step (IDoc to single HTTP-Requests). It shows the "Expression must return the interface type xxxx"-error. I have mapped the incomming-IDoc into a abstract interface IDoc, as described in other topics.
    What is to be done, to convert the incooming IDoc into several HTTP-Requests? How can i solve this issue?
    Second one is the HTTP-Request itself.
    I've read the hints about the adapter specific settings and tried the HTTP-Request in a little "extra"-scenario. But it didn't work very well...I other words: It did nothing. How to map the two parameters to my specific HTTP-parameters?
    If I have to describe something more detailed, please let me now. I appreciate any suggestions!
    Many many thanks in advance,
    Roman Scholz

    Hi Roman,
    >"Expression must return the interface type xxxx"-error.
    The target of your interface mapping has to be the abstr interface used for BP container.
    >What is to be done, to convert the incooming IDoc into several HTTP-Requests?
    <a href="/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure</a>
    >How to map the two parameters to my specific HTTP-parameters?
    <a href="http://help.sap.com/saphelp_nw04/helpdata/de/43/64dbb0af9f30b4e10000000a11466f/frameset.htm">Configuring the Receiver Plain HTTP Adapter</a>
    Regards,
    Udo

  • IDOC is posting with Errors in File to IDOC scenario

    Hi,
       I did the File  to IDOC scenario for CREMAS  . IDOC is posting with Errors .. i.e. in the status record it was showing  56- EDI: Partner profile inbound not available  ..
    If I manually process that IDOC in WE19 , then it was processing successfully..    and in the  we19 it was showing Inbound Processing : Port Not Maintained    but even though manually it was posting fine...
    any ideas regarding this will be appriciated..... 
    Regards
    Babu

    Please check whether you had done the following assuming your doing File to Idoc
    Settings in your Business service for the receiving system
    Please specify the RFC detination, SAP System and Client of the Receiving System in the adapter specific detials.
    Settings in R/3
    WE20 - Add the partner profile for the particular message type cremas and process code.
    Your statement
    " and that same logical system name  had given as Message Specific Attributes in the Sender Business Sevice parameters in I.D "
    Please do mention R/3 Details in the receiver business service or system.
    Thnz

  • EDI / IDoc : While posting inbound IDocs, IDocs gets into status 56

    EDI / IDoc : While posting inbound IDocs, IDocs gets into status 56 with message "EDI: Sender port in control record is invalid".
    But if I reprocess the same idoc without doing any changes using RBDINPUT and select radio button to processs idocs for status 56, then it gets successfully posted.
    So not getting why this stucks for the first time.
    Thanks in Advance..........

    i fixed this my self

  • POST http(s) request with xml content in Power Query

    I have a POST http request which works good in HttpRequester (Firefox plugin). I know that it is possible to call POST request in Power Query but cannot find working solution. Here is the original request:
    POST https://svcs.ebay.com/FeedbackService
    X-EBAY-SOA-OPERATION-NAME: createDSRSummaryByPeriod
    X-EBAY-SOA-SERVICE-VERSION: 1.0.0
    X-EBAY-SOA-SERVICE-NAME: FeedbackService
    X-EBAY-SOA-APP-NAME: ***
    X-EBAY-SOA-SITEID: 0
    X-EBAY-SOA-SECURITY-TOKEN: ***
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>
    Power Query WebContent() function is capable to handle headers and xml content, however, there is no any documentation about its syntax.
    In Power Query I use this request:
    = Xml.Tables(Web.Contents(“https://svcs.ebay.com/FeedbackService”,
    [Headers =[" X-EBAY-SOA-OPERATION-NAME"= "createDSRSummaryByPeriod",
    "X-EBAY-SOA-SERVICE-VERSION="1.0.0",
    "X-EBAY-SOA-SERVICE-NAME"="FeedbackService",
    "X-EBAY-SOA-APP-NAME"="***","X-EBAY-SOA-SITEID"="0",
    "X-EBAY-SOA-SECURITY-TOKEN"="***"],
    Content=["<?xml version="1.0" encoding="UTF-8"?>
    <createDSRSummaryByPeriodRequest xmlns="http://www.ebay.com/marketplace/services">
    <dateRange>
    <dateFrom>2013-12-01T00:00:00.000Z</dateFrom>
    <dateTo>2013-12-31T23:59:59.999Z</dateTo>
    </dateRange>
    <dateRangeEventType>ListingDate</dateRangeEventType>
    </createDSRSummaryByPeriodRequest>"]]))
    However, it returns "Expression.SyntaxError: Invalid identifier." Maybe anyone has at least examples of analogous working syntax?

    Task is solved. First of all I updated PowerQuery since previous version does not support Headers option for Web.Contents function. Here is a correct syntax:
    =Xml.Document(Web.Contents("https://api.ebay.com/ws/api.dll",[Headers=[#"X-EBAY-API-COMPATIBILITY-LEVEL"= "871",#"X-EBAY-API-SITEID"="0",#"X-EBAY-API-CALL-NAME"="GetMyeBaySelling",#"CONTENT-TYPE"="text/xml"], Content=Text.ToBinary("<?xml version="&Character.FromNumber(34)&"1.0"&Character.FromNumber(34)&" encoding="&Character.FromNumber(34)&"utf-8"&Character.FromNumber(34)&"?>
    <GetMyeBaySellingRequest xmlns="&Character.FromNumber(34)&"urn:ebay:apis:eBLBaseComponents"&Character.FromNumber(34)&">
    <RequesterCredentials><eBayAuthToken>***</eBayAuthToken></RequesterCredentials><SoldList><DurationInDays>60</DurationInDays><Pagination><EntriesPerPage>100</EntriesPerPage><PageNumber>1</PageNumber></Pagination></SoldList></GetMyeBaySellingRequest>")]))

  • IDOC Invoice posting, LC3 doesnt have any amount.

    Hi GURUs,
    I have an IDOC invoice posting. Inside this document, I have line item which LC3 dont have any amount. Document Currenty, LC1 and LC2 have amount, only LC3 dont have any amount.
    For all these items, they are having same material number.
    Any possibility or idea what have cause this kind of entry? Thanks.

    we have similar scenario in EU.  One company code exists in SKK currency and that company supplier to customer in other EU.  Now that company code swtiched to EUR currency (with toher co.code) and using EUR to EUR as LC3
    ~Thanks!
    Rajesh

  • Idoc are posting to ECC with Status 64

    Hi All,
    We are receiving IDOC with status 64 from PI.
    We used tried by changing the options in partner profiles
    --> Trigger by Background program
    The inbound IDoc is processed in the background. In this case, make sure, that the report RBDAPP01 is scheduled in the transaction SM37 as a regular job with the correct variant to process all IDoc´s, which have this processing option maintained.
    --> Trigger immediately
    When using this setting, it is important to have sufficient resources for the immediate processing of the inbound IDoc´s. One dialog work process must be available for every single IDoc.
    If this dialog work process is not available, the IDoc cannot be processed and stays in status 64.
    I reffered the notes
    555229 ‘IDocs hang in status 64 for tRFC with immediate processing’
    734576   ‘IDocs retain status 64, but should be processed immediately’
    1055679 ‘IDoc-tRFC inbound with immediate processing may not work’
    Still the idocs are in 64 status, every time im re-processing them manually. even after re-processing some of them are going to 51 or 54.
    Please help me.
    Regards
    Bhargava Krishna

    Hello,
    Can you please explain your issue is with "Trigger by Background program" or "Trigger immediately"?
    For Trigger immediately, if there is no free dialog work process available than IDocs are posted with status 64.
    For Trigger by Background program, Background job RBDAPP01 will process IDocs depending on variant you define to select & process IDocs(i.e., IDoc Status = 64).
    It is always recommended to use "Trigger by Background program" for high volume interface which has large number of IDocs.
    Help on RBDAPP01
    Regards,
    Sameer

  • Generate DELVRY  Idoc when Post goods issue is done in SAP

    I need to generate an Idoc when post goods issue is done in SAP (outbound to SAP) .I understood that I can do this using the message control .The message type DESADV with the process code DELV will support this.
    But I didn’t understand how to trigger the Idoc.In the current scenario our Company is doing the post goods issue in SAP for the in three different ways.
    1.Manually doing the post goods issue through the transaction VL02N
    2. an Inbound Interface (using Idoc)  which will do Post goods Issue in SAP
    3.Another Interface using BAPI, which will, do post goods issue in SAP
    I have to run my outbound interface when the post goods issue is done by all the above three ways.  Can any one help me out in this?

    You have to configure the output first .
    You can use output type LAVA ( avaialble in Std SAP ) .
    ( Tcode is NACE , Select Application V2 -> Outputtypes ).
    ( Create condition records suitable to generate an output)
    Next is ALE.
    Setup a distribution Model ( for DESADV ) and all other setup for ALE i.e. Distribute Dist. Model / Generate Partner Profile .
    In the Partner profile in WE20 select your partner system. Double CLick on Outbound Message DESADV ( this wd be there after you generate partner profile , if not add it here in outbound ) . On this screen goto tab MESSAGE CONTROL .
    Application - V2
    Message Type - LAVA
    Process Code - DELV.
    Now you are ready to go. The moment a PGI is done in any form an output LAVA would be proposed and processed using process code DELV.
    Cheers.

  • RFC to send an idoc PEXR2002 using HTTP connection to an external server

    Hi,
      Iam working on RFC to send an idoc PEXR2002 using HTTP connection to an external server. first time iam working on this particular scenario on http connections. please clarify on this and explai me in detail about this.
    Points will be rewarded **
    Thanks & Regards,
    Ravi

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

  • Business Connector 4.8 post http 1.0 1.1

    Hello,
    I have one problem,
    I must post an xml file to a external server wich only use post http 1.1
    I have traced my tcp stream an i see, that the BC service "http" use http 1.0.
    Is it possible to give this service any paramter so that he use 1.1
    Or have anyone build an new java service the use http 1.1?
    regards
    Florian Martin
    Edited by: Florian Martin on May 18, 2009 1:34 PM

    The source code of the http service is not available.
    But i think i can write a new Java service.
    I don't now why it is not compatible.
    This is the first time we have this problem.
    The customer tells me, that his server only understand http 1.1
    4.7 and 4.8 are nearly the same
    In 4.8 a lot of the java services will updatet.
    The most of the changes are bugfix.
    Thanky for your answers guys.
    Then i will try to create a new java service
    Regards
    Florian
    Edited by: Florian Martin on May 19, 2009 1:16 PM

Maybe you are looking for

  • Mac keeps crashing even after multiple reinstalls

    Hi, recently my Mac HDD crashed. I reinstalled a Samsung evo SSD and it works great for about a month or two, then again crashes. Every time I erase the SSD and reinstall OSx Yosemite, and a month later it crashes. Please help.

  • Get DocNum from CFL (choose from list)

    Hi SAP gurus! Wish all of you a very Happy and Prosperous New Year 2012 ! is it possible to get Document Number from List of Goods Receipt (CFL) ..? in Landed Cost Screen, when user clicks on 'Copy From' button, i am trying to execute query based on

  • .mkv file does not have sound in Quicktime

    I downloaded Perian and a Flac decoder component and I can't get any sound from an HD video I downloaded. Quicktime says I need additional software to play this file. DivX says i need a direct show decoder to play the file. I cannot seem to find anyt

  • How do I resolve an internal error in Lightroom 3?

    I use a registered version of Lightroom 3. When I want to export a selected photo in Lightroom 3 to my harddisk, I receive the following message: export settings are missing the LR_export_destinationPathPrefix. Can anyone tell me how I can resolve th

  • No way to preserve Alpha channel with vanishing point?????

    Such a great tool to use for making "sets" in After Effects, but My alpha channel disappears when I use the vanishing point filter & export to AE. Any way to retain it?