Posting an XML Variable to a BLS Transaction from a web page

I am working in xMII 11.5 with all the latest service packs. I know this is probably a really basic question but I am stumped.
I am trying to pass a multi row and multi column XML data set from a web page into a BLS transaction (actually, two of them) in order to populate the parameter. I want to use the Web Service interface to the transaction. I have tried using parameters on an Xacute Query in an Applet as well with an equal lack of success. I cannot persuade the transaction to see the incoming variable as an XML data type. I have tried encoding and decoding and string to xml conversions and nothing seems to successfully allow the data set to be seen withing the BLS as anything but a string. The String to XML action will not handle the number of columns in the dataset though it seems to work if the data set has only one column. The data set is formatted in the proper "Rowsets/Rowset/Row" format. I have considered writing the data to an XML file on the server (I know I can deal with that) but that is not acceptable in this application.
Can someone share the secret with me?
...Sparks

Parameter value:
r1d1,r1d2,r1d3;r2d1,r2d2,r2d3;r3d1,r3d2,r3d2
Pass thru String List to Xml Parser with delim ";"
<Row>
<Item>r1d1,r1d2,r1d3</Item>
</Row>
<Row>
<Item>r2d1,r2d2,r2d3</Item>
</Row>
<Row>
<Item>r3d1,r3d2,r3d2</Item>
</Row>
Repeat on each row/item and pass thru String List to Xml Parser with delim ","
<Row>
<Item>r1d1</Item>
</Row>
<Row>
<Item>r1d2</Item>
</Row>
<Row>
<Item>r1d3</Item>
</Row>
Of course, your columns aren't flat but they are easy to ref, to get "column 2" for example:
StringListToXml_1.Output{/Rowsets/Rowset/Row[2]/Item}
So now you have rows and columns. Assign your data to your BAPI structured as needed.
We have passed complex XML via the SOAP interface in 11.5, but it involved some "hacks". Basically we passed the sterilized XML via a String Type Parameter, and then unserialized it inside the BLT.  
I have been told on this board that there is a solution to passing XML data vie the SOAP interface using ref docs, but i have never personally seen a working example.

Similar Messages

  • Is there any way to read XML directly from a Web Page ??

    i have a url, which on sending request, shows XML in browser.
    Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
    actually the process is. :
    1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
    2.)then i have to read the Xml and show it in according to my requirements.
    Is there any way to read XML directly from a Web Page ??
    is their logic to accomplish this.
    e.g in Servlet i can do somewhat like this :
    String wholeXml=Somemethod(url);
    Please Advice

    the average Java XML parser will accept an InputStream, so just open an URLConnection to the webpage, get the inputstream from it and feed that inputstream to the XML parser. If the URL has valid XML data, it will get parsed without problems.

  • Lag when calling BLS Transaction from within another

    Using MII 12.0.
    In MII class, they told us a "best practice" was to check the "Reload Transaction after Execution" box in the configuration of a Transaction call within a BLS.  The reasoning behind it was that should this not be checked, a previous result of that called BLS transaction would still be cached in memory and used instead of the newly assigned values from within your calling BLS.
    Checking the "Reload transaction after Execution" box forces MII to reload that transaction when it is called.
    In time analysis, what has been noticed is that there's a significant - up to 9 seconds - lag time when one BLS calls another BLS.  On a time-sensitive operation, that is an eternity.  That amount of overhead defeats any hope of using common code libraries.
    Questions -
    1.  Is this a true "best practice", or is it one that adds unnecessary overhead to a BLS? 
    2.  If the calling BLS executes 1 time - but is subject to be executed multiple times over a certain interval - is checking the Reload box of the BLS it is calling unnecessary? 
    3.  Even if you pass new data each time you call that BLS, is it still going to use/return whatever data it has cached until the cache expires?
    4.  Is there another way to ensure that the called BLS uses the data you pass it (and returns the corresponding result set) without incurring the amount of overhead that we have noted? 
    Thanks

    The version we're on is 12.0.6 Build 13, and moving to  12.1 (something I am not directly involved in).  In this version, I'm not seeing the menu options you describe, so it's apparently in 12.1 or later. 
    The issue we are having if the "Reload transaction after execution" box is not selected is indeed caching of values. 
    For example -
    BLS1 runs every 5 minutes
    BLS2 is called from BLS1, and in this case, retrieves error log info from a table - a common module used by several BLS's.
    BLS3 is also called from BLS1, and in this case, writes to an error log using information retrieved from BLS2 from within the execution of BLS1.  BLS2 & BLS3's calls are in 2 separate sequences, one after the other. 
    If BLS2 & BLS3 DO NOT have the "Reload Transaction after execution" checked, each will run with whatever the cached data in memory is for them, even though inside BLS1 I am assigning values to the input of BLS1 to send to BLS2, and passing the returned data from BLS2 into BLS3.  Unless it's checked, BLS2 & BLS3 would continue to be called, however, it would be with whatever data has been cached for them. 
    If that "Reload" switch is checked, it will reload each transaction & call it with whatever data is being passed.
    This was mentioned in the MII class I was in also.  This is a generalization, but the way they described it was being similar to how you might save a web page to your local PC, and that unless that page is refreshed & changed, that from that point on, every time you brought up your saved web page, it would always display the same values in it.  They didn't go into great deal to explain the mechanics of it, but MII would only load it the first time it executed, and that unless you forced it (by checking the Reload switch), it would always execute using the same cached values no matter what you were passing.

  • XML Publisher Report EXCEL output Huge stored as Web Pages

    Hello
    I have a XML Publisher Report which generates EXCEL output and the output file size is huge.
    What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
    If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
    I don't know how to save as ".xls" through XML Publisher using PL/SQL.
    Any body knows? please Help..
    XML Publisher Template Builder for WORD
    Version 5.6 Build 45
    PATCH        BUG_NUMBER
    XDO.H     *3263588*
    4.5.0     *3554613*
    5.0.0     *3822219*
    5.5.0     *4206181*
    5.0.1     *4236958*
    5.6.0     *4561451*
    5.6.1     *4905678*
    5.6.2     *5097966*
    5.6.3     *5472959*
    Thanks.

    Hi Vetsrini,
    We're on 10.1.3.4.1 and siebel 8.1.1.3 and when trying to open a report from within siebel in the output format EXCEL (selected from the parameter applet), it just opens the document in the browser.
    Is there a way to get it to open directly in Excel? I guess the reason is the file extension*.EXCEL, how could we get the extension to be in excel format (xls)?
    We don't want our users to have to do this themself.
    Regards,
    Hakan

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

  • Linking a transaction code through web page

    Hi All,,
    I ve created a Transaction code for a ABAP program ,, i want to make it as a web page.. Is it possible to create a web page or BSP page for the transaction code,,
    If yes,, please say me the procedure of how to do it,,
    Thanx in advance
    Ill assign points for it
    Regards
    Dinesh

    Dinesh,
    you could use a BSP for the selection conditions.. ad as for web enaling the transaction itself .. check whether you can use WEB ITS for the same... or maybe a web dynpro...
    Arun
    Assign points if it helps..

  • Calling an SAP transaction from a BSP page

    Hi, I have created some BSP pages that are rendered inside SAPGUI screens using a HTML control object. When looking at a CRM system I came across the Business Partner Cockpit (CRMD_ORDER_BP) which displays activities for a business partner using a BSP implemented by CL_CRM_CCKPT_CFS_SERVICE_HTTP.
    The interesting thing about this BSP, is that you can click on the transaction number in the BSP and it launches the appropriate SAPGUI transaction to display the details of this activity.
    Looking at the HTML source, the link is defined like this: -
    <a href="SAPEVENT:OBJTYPE=BUS2000115&OBJKEY=CDAEBBF5BD903E4390DA7984D3054A65">0920000086</a>
    In the above example this activity is a sales order.
    Can anyone help me understand how this works, and how I can use it to navigate to SAP transactions using links in my BSP pages that are placed in SAPGUI HTML controls?
    Thanks
    Graham

    Hi Graham!
    I have a similar problem in transaction CIC0 and the Sales summary tab in CRM.
    I have created a new class and assigned it to a new fact sheet. One column in this fact sheet should be a hyperlink defined in the way that you have described.
    When using method get_event_parameter I are not getting any data for the SAPEVENT parameters - I don't get the value, only the keys:
    <a href="SAPEVENT:?OBJTYPE&OBJKEY>
    How should I procced to assign an object type and object key to this SAPEVENT???
    Would also be very nice if anyone could explain how to "call transaction" works.
    Help understanding this would be very appreciated.
    BR
    Mattias

  • Read Idoc Data In xMII 12 BLS Transaction

    Hi All,
    I am new to xMII.
    I followed the instructions suggested in the Document "How to Send an IDoc from the SAP R/3 Enterprise to the SAP xMII IDoc Listener" By Diana Hoppe and Michael Appleby written on 04 Dec 2008. It was pretty simple  and i was able to complete all the steps.
    In the Message Monitor in xMII 12.0 i am able to see " 5 Messags Found" and they are listed below in a grild with the server name, Message Name, Message Type etc
    Example
       Server Name   Message Type    Message Name    Message Category   Received Time                      Processing Time
       MII_IDOC          IDoc                     LOIPRO01            MII_IDOC                    2009-07-10 02:11:25.911  
    Now i would like to know how do i read the contents of this IDOC i.e Production order? Is there a sample or  stepby step guide which explains how i can get this data into an xML message in a BLS Transaction?
    Are there any simple steps to be followed to get this data from the IDOC?
    Please help me undestand this. Thanks in advance.
    Regards
    Suraj Prabhu

    Hi Dipankar,
    I had Pre ordered your book and I  just received a copy. The first impression wrt the Contents & Coverage of the book looks excellent.
    Congratulations to you and Abesh on this achievement. Writing a book on a topic which there has been no book written earlier is a great feat on its own.
    Will be spending more time with the book today evening.
    My Expectations from this book:
    1. A good intermediate to Expert developer/ BA / Architect guidance.
    2. Error Handling & Implementation - Best practices
    3. A Reference book for the current implementation I am doing with a customer :).
    Will keep you updated with my comments on the book. Since this is a first time I am working on a xMII implementation this book will be a life saver for me and could not have come at a better time. Thanks again.
    BTW u2013 First thing I checked in the book was steps on how to read the data from the IDOC in the Buffer and that has been explained pretty well and in detailsu2026.. Thanks again for that.
    Regards
    Suraj Prabhu

  • How to search for a particular element within a XML variable using studio?

    All,
    I am using studio 7.0 to develop a webbased application. In this, i need to access
    an oracle db using a WLAI Application View from my Workflow. I get some data back
    from Oracle as an XML variable and then apply an XPath statement to access the
    individual columns returned.
    My problem arises when there are no records in the db matching my criteria and
    an empty XML variable is returned to me from the app view. In these cases my
    XPath statement fails in studio causing an improper exit.
    Does anybody know how to check for content in a XML varaible using studio? So
    that if there is content i can proceed with XPath and if there is no content,
    then i will take a different route.
    Thanks in advance
    Regards
    Sri

    If I remember correctly, the adapter will return an XML document that contains
    XML elements for each row. You can just simply check the count of these elements
    with an XPath statement: ie. count(response/row)
    "Sri " <[email protected]> wrote:
    >
    All,
    I am using studio 7.0 to develop a webbased application. In this, i need
    to access
    an oracle db using a WLAI Application View from my Workflow. I get some
    data back
    from Oracle as an XML variable and then apply an XPath statement to access
    the
    individual columns returned.
    My problem arises when there are no records in the db matching my criteria
    and
    an empty XML variable is returned to me from the app view. In these
    cases my
    XPath statement fails in studio causing an improper exit.
    Does anybody know how to check for content in a XML varaible using studio?
    So
    that if there is content i can proceed with XPath and if there is no
    content,
    then i will take a different route.
    Thanks in advance
    Regards
    Sri

  • Disabling transactions from WLI Workshop Web Service application?

    I need to disable the transactions from a Workshop generated Web Service for WLI (Workshop 8.1.6).
    I can accomplish this by changing and repackaging the builded EAR-package by altering the ejb-jar.xml:s in the .workshop directory and setting the transactions from Required to NotSupported. It would be much more convenient, if I could do that change from the Workshop.
    Actual question: is there a way to disable transactions from a Web Service in Workshop? I have not found any place to change this property.

    Hi
    You have 2 options.
    As you mentioned you can modify the generated ejb descriptors. Unfortunately this attribute is not exposed as a property in the workshop, so you cannot change there.
    Other option is to suspend the transaction created by workshop so that your webservice functionality or any control called within that won't be part of the workshop transaction.
    More info at http://forums.bea.com/bea/message.jspa?messageID=600045134&tstart=0
    Thanks
    Vimala

  • Launching GUI transactions from BSP

    Dear Gurus,
    I have requirement to launch ECC Transaction from CRM Web Client UI. Now, i dont want ITS based version of ECC version but WIn GUI version. I found Wiki link below which suggests the steps however it does not work.
    I have exactly same requirement in CRM 7.0 (Support Pack Level 5) and i implemented same steps as desribed in the article. However I am facing issues tha It first asks for the right applicaiton to open object, i choose SAP Applicaiton exe file but later it gives error -
    Erro Statusing "C:\Users\windowsloginid\App Data\Local\Microsoft\Windows\Temporary Internet Files\Low\Content.IE5\2DG74TFC\win_gui[1].sap'(rc=-2)"
    Here win_gui is the name of .HTM page with flow logic. I copied all the code in Page Layout and i am also not able to debug this as breakpoint does not hit.
    Please suggest as this is something really urgnet for me.
    Thank you very much in advance!!!
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI-LaunchingtransactionsinGUIforWindows

    Hello,
    I am able to launch GUI for Windows though SAPshortcut method. I am also able to pass the Tx type and sales area on VA21 screen and skipping the first screen. However Now I am facing issue to pass customer number on VA21. I am using KUAGV-KUNNR field to populate customer but it never works. KUAGV-KUNNR buffer is emplty even when i am passing this through shortcut.
    Please suggest.

  • How to read XML from web page inside servlet/jsp ?

    i have a url, which on sending request, shows XML in browser.
    Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
    actually the process is. :
    1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
    2.)then i have to read the Xml and show it in according to my requirements.
    Is there any way to read XML directly from a Web Page ??
    is their logic to accomplish this.
    e.g in Servlet i can do somewhat like this :
    String wholeXml=Somemethod(url);
    Please Advice

    Hi,
    if u wanna extract data from XML. you can use Digester(Apache-jakarta) parser. All u need to create the beans(as per the data in xml), that will be populated by Digester.
    Digester takes xml(string) as parameter and populates the bean specified.
    U can use this bean in ur JSP.
    :::Note:::; use Digester in ur servlet.
    for more read:::
    http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html
    I hope it shall work..
    @mit

  • Post Moved web-page-freezing

    Post moved http://community.bt.com/t5/Other-BB-Queries/web-page-freezing/td-p/629418
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    changing providers will not solve that problem as your problem is PC based
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • XML INPUT parameter in a MII BLS Transaction

    Hi.
    Please anybody has some good XSD file that can be used as a data type for a xml input parameter of a BLS Transaction ? could share it with us ? I will use it as a sample to create my own XSD file.
    Until now, all XSD files that I created worked but I could not import the webservice on ECC.

    Hi Stephen Kuykendall, thank you.
    I still have to following error message when try to execute the webservice in wsnavigator:
    [location : http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/Default/teste2] ERROR : Definition of /definitions/types/s:schema/s:complexType[1]/s:sequence/s:element/s:complexType/s:sequence/s:element is not correct. Missing top level component (uri: 'http://schemas.xmlsoap.org/wsdl/'; name: 'GET_DETAILS').
    I created a XSD file and put your xsd contente there:
    so, I created a transaction propert of type "Input" with Data Type "xml" and assined your XSD with the element "GET_DETAILS":
    The WSDL url (/XMII/WSDLGen/Default/teste2) generated the wsdl with the following content:
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
        <!-- Types -->
        <types>
            <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII"><s:import schemaLocation="http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/db/Default/WEB/Entrada.xsd"/>
                <s:complexType name="InputParams">
                    <s:sequence id="InputSequence">
                    <s:element maxOccurs="1" minOccurs="0" name="P_Entrada"><s:complexType><s:sequence><s:element ref="GET_DETAILS"/></s:sequence></s:complexType></s:element></s:sequence>
                </s:complexType>
                <s:element name="XacuteRequest">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
                <s:complexType name="Rowset">
                    <s:sequence>
                        <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row"/>
                    </s:sequence>
                    <s:attribute name="Message" type="s:string"/>
                </s:complexType>
                <s:complexType name="Row">
                    <s:sequence id="RowSequence">
                    <s:element maxOccurs="1" minOccurs="1" name="P_Saida" type="s:string"/></s:sequence>
                </s:complexType>
                <s:element name="XacuteResponse">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:schema>
        </types>
        <!-- Messages -->
        <message name="XacuteSoapIn">
            <part element="s0:XacuteRequest" name="parameters"/>
        </message>
        <message name="XacuteSoapOut">
            <part element="s0:XacuteResponse" name="parameters"/>
        </message>
        <!-- Ports -->
        <portType name="XacuteWSSoap">
            <operation name="Xacute">
                <input message="s0:XacuteSoapIn"/>
                <output message="s0:XacuteSoapOut"/>
            </operation>
        </portType>
        <!-- Bindings -->
        <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="Xacute">
                <soap:operation soapAction="http://www.sap.com/xMII" style="document"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
        </binding>
        <!-- Service mapping -->
        <service name="XacuteWS">
            <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
                <soap:address location="http://srvsdmii01.malwee.com.br:50000/XMII/SOAPRunner/Default/teste2"/>
            </port>
        </service>
    </definitions>

  • IDOC Listener not calling BLS Transaction

    All,
    I am running xmii 11.5.4.  I have a single IDOC Listener configured with a Routing Rule for Message Type = "PROCESS_MESS_DOWNLOAD".  The Routing Rule is defined to trigger a BLS called "TEST_BLS".  The Listener is configured with the BLS Input Parameter.
    The Listener processes the incoming message by writing the XML file to the defined Path with no problems.
    The issue is the BLS Transaction will not trigger.  The Transaction has a single Transaction Property of data type XML with no default value defined.
    I have tried using a simple Transaction with nothing but an Event Logger or XML Trace actions to verify the Transaction is being executed. But nothing occurs.
    I have viewed the General Log and see no errors or warnings or fatal log entries.
    The Transaction works fine manually from inside Logic Editor and even runs from a URL invokation.
    Any ideas of what to look for or try would be greatly appreciated.
    Thanks,
    Chuck

    Udayan,
    The Transaction consists of only an Event Logger Action and an XML Tracer Action.  Neither of these are apparently executing.  No event is logged and no entry is made to the XML Tracer file. The Transaction has a Transaction Property defined as stated in my first post.
    I have noticed through trial and error that the IDOC Listener only works with the asterick message type.  The actual message type of the IDOC is evidently not being read by the Listener.  The IDOC being created is coming from a PPPI Process Message.  The first few lines are:
    <?xml version="1.0" encoding="UTF-8"?>
    <PROCESS_MESS_DOWNLOAD>
    <INPUT>
    <CLIENT>200</CLIENT>
    </INPUT>
    <TABLES>
    <MSEL>
    <item>
    <MSID>100000000000000537</MSID>
    Thanks,
    Chuck

Maybe you are looking for

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All, Please Help me and Help other Beginers in this : Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1) Should i save the report as .rdf or .jsp ? Should i save the report in a specific path ? Should i add th

  • How to extract single file from multipart zip archives?

    Hello, I have a 10 parts of zip files that contains single file. When I extracted these, each program taking an action seperatly to each parts and gave me 10 files in a different folders. In a Windows, it is so simple. Winzip,winrar automaticaly disc

  • Forgot password/account locked

    I am trying to login to the web version of application express (https://iacademy3.oracle.com/) and get a message that my login is incorrect.  I have verified that the ID and workspace are correct, but I do not remember what i set my password to the f

  • Need to chg text of a field in SM30: Compare Flag

    Hi, I created a table & created a table maintance Generator. I want to change the text of a field in SM30. Currently it is taking from Dictonary Field text. I went to SE11->Table Maintance Generator-> Modification->Maintance Screen->Flow Logic There

  • Client Proxy Error in UAT System

    Hi, I am having a Client Proxy - PI - File Scenario. The Client proxy is working perfect in Development and Test system, but its raising exception "CX_AI_SYSTEM_FAULT" in UAT system. Please advice. Is there any setting/configuration missing. Thanks,