XML Datatype as transaction output property

Hello everyone,
I'm having some problems while using the XML datatype as an output for a transaction and would like your input on this.
I've created a transaction that has one output property set as a XML. This transaction reads information from a SAP BAPI call and I assigns the response XML to the output parameter. I've checked the output value with a trace block and it is ok.
This transaction is called from within another transaction, but when I read the output parameter after the transaction block is executed, the output parameter is empty...
The only work-around this problem that I have found it to encode the XML as a string and then decode it in the outer transaction, but that just doesn't seem like the right thing to do... There must be a reason to have a XML datatype!
Thanks in advance,
Marcelo

Marcelo,
I too tried this on 12.1.8 build 20 and this seems to be working for me.
Here's what I did, I am calling BAPI_ALM_ORDER_DETAIL in the "called" transaction. This has an output property called "outXML" of type XML.
I assign the response of the BAPI to outXML after the BAPI is executed.
I tried a tracer here and all's well.
In the "calling" transaction I have a tracer after the Transaction call where  am able to see the respose from the called transaction.
Thanks
Udayan

Similar Messages

  • Need to Download FAGLL03 transaction output list to XML

    Hi Experts,
    I want to download FAGLL03 transaction output to an XML file, but there is no such button to download the data.
    Is there any way to add button in application toolbar and to code corresponding download code in an enhancement.
    If is there any alternative, could you please let me know.
    Thank and regards,
    Srinivas.

    Hi Srini,
    Syntax for calling simple transformations are different... Like to call a Simple Trans..
    Syntax
    CALL TRANSFORMATION {trans|(name)}
                        [PARAMETERS {p1 = e1 p2 = e2 ...}|(ptab)]
                        [OBJECTS    {o1 = e1 o2 = e2 ...}|(otab)]
                        [transformation_options]
                        SOURCE {XML sxml}
                             | {{bn1 = e1 bn2 = e2 ...}|(stab)}
                        RESULT {XML rxml}
                             | {{bn1 = f1 bn2 = f2 ...}|(rtab)}.
    Regards

  • Manipulating "Exclude from XML Output" property at runtime

    Hi !
    Here's one for reports 10g
    Is there a way/function to manipulate the "Exclude from XML Output" property for attributes at runtime (say, in the after param form trigger ?)
    The srw.package contains functions to manipulate the "other 4" XML properties of an attribute, but not this one... ?
    Any help greatly appreciated...
    Cheers,
    Jens Rettig

    Hi,
    I posted a solution for this in the thread: Dynamically show/hide columns for DelimitedData output
    Thanks.
    Paul
    (If the link doesn't work then I re-post the solution from that thread).

  • Problem cf10 installation xml error - Conflicting values for output property method

    We just completed a ColdFusion 10 installation on Windows Server 2008 R2. After taking care of some configuration issues, we're now faced with a problem that we can't figure out. Searches on Google for the error returned almost nothing.
    The error occurs when xmltransform is called in a CFC file. The error we get from CF is:
    An error occured while Transforming an XML document
                 Failed to compile stylesheet. 1 error detected.            
    It's not very helpful. In the coldfusion-error.log file, we have this entry:
    Error at xsl:output on line 2 column 193
      XTSE1560: Conflicting values for output property method
    Anyone have any ideas how to fix this? Is it something simple that we overlooked, or a fundamental difference in the way CF10 handles xmltransform?
    Thanks,
    Jamie Carter

    Here is the XSLT:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
    <xsl:output method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" media-type="application/xhtml+xml" />
    <xsl:include href="E:\Inetpub\wwwroot\cfroot\cms\aacc-cms\general\xslt\aacc_main_browse.xsl" />
    <xsl:include href="E:\Inetpub\wwwroot\cfroot\cms\aacc-cms\general\xslt\rotator\aacc_home_rotator.xsl" />
    <xsl:include href="E:\Inetpub\wwwroot\cfroot\cms\aacc-cms\general\xslt\nav\aacc_home_side_menu.xsl" />
    <xsl:include href="E:\Inetpub\wwwroot\cfroot\cms\aacc-cms\general\xslt\news\aacc_home_news.xsl" />
    <xsl:template match="page">
      <!-- homepage --> 
            <div class="home_rotator_nav_div">
              <div class="nav" id="nav"><xsl:comment>nav div</xsl:comment></div>
            </div>
            <div id="home_rotator_container">
              <xsl:call-template name="home_side_menu" />
                <xsl:choose>
                  <xsl:when test="string-length(text/child::*[attribute::seq=12])=0" >
                    <xsl:comment>emergency alert not active</xsl:comment>
                  </xsl:when>
                  <xsl:otherwise>
                    <div id="emergency">
                    <div id="emergencyClose">
                      <a onclick="document.getElementById('emergency').style.display='none';">
                        close <img src="/aacc-cms/general/images/icons/controls/close.png" />
                        </a>
                      </div>
                      <div id="emergencyHeader"><h1>AACC Alert</h1></div>
                      <xsl:apply-templates select="text/child::*[attribute::seq=12]" />
                      <br /><br />
                    </div>
                  </xsl:otherwise>
                </xsl:choose>
              <div class="home_rotator_img">
                    <xsl:call-template name="aacc_home_rotator" /><xsl:comment>rotator</xsl:comment>
              </div>
            </div>
      <div id="body_container_top_bg"><div id="body_container_bottom_bg"><div id="homepage_body_container">
            <div class="bottom_center_home">
              <div id="bottom_center_content">
                <xsl:if test="string-length(image/child::*[attribute::seq=1]/imgFile)>0" >
                  <div id="homepage_ad_1a">
                    <xsl:apply-templates select="image/child::*[attribute::seq=1]" />
                  </div>
                </xsl:if>
                <div id="homepage_ad_1b">
                  <xsl:comment>bottom ad</xsl:comment>
                  <a href="#"><xsl:apply-templates select="image/child::*[attribute::seq=2]" /></a>
                </div>
              </div>
            </div>
           <div id='e2campus' style="visibility:hidden;"> <script type="text/javascript" src="http://widgets.omnilert.net/f300fe3c5dccfdb6d076ecb0048934fa-1791">//</script> </div><!--E2campus smart code-->
            <div id="body_bottom_left_home">
              <div id="body_bottom_right_home">
                <h2>AACC Highlights </h2>
                <div class="highlights">
                  <div class="highlights_title">
                    <xsl:if test="string-length(text/child::*[attribute::seq=7])>0" >
                      <div id="tertiary_1_txt1" ><xsl:apply-templates select="text/child::*[attribute::seq=7]" /><img src="/aacc-cms/general/image/cleardiv.png" /></div>
                    </xsl:if>
                  </div>
                </div>
                <div class="highlights">
                  <div class="highlights_title">
                    <xsl:if test="string-length(text/child::*[attribute::seq=8])>0" >
                      <div id="tertiary_1_txt2" ><xsl:apply-templates select="text/child::*[attribute::seq=8]" /><img src="/aacc-cms/general/image/cleardiv.png" /></div>
                    </xsl:if>
                  </div>
                </div>
                <div class="highlights">
                  <div class="highlights_title">
                    <xsl:if test="string-length(text/child::*[attribute::seq=9])>0" >
                      <div id="tertiary_1_txt3" ><xsl:apply-templates select="text/child::*[attribute::seq=9]" /><img src="/aacc-cms/general/image/cleardiv.png" /></div>
                    </xsl:if>
                  </div>
                </div>
                <div class="highlights">
                  <div class="highlights_title">
                    <xsl:if test="string-length(text/child::*[attribute::seq=10])>0" >
                      <div id="tertiary_1_txt4" ><xsl:apply-templates select="text/child::*[attribute::seq=10]" /><img src="/aacc-cms/general/image/cleardiv.png" /></div>
                    </xsl:if>
                  </div>
                </div>
                <div class="highlights">
                  <div class="highlights_title">
                    <xsl:if test="string-length(text/child::*[attribute::seq=11])>0" >
                      <div id="tertiary_1_txt5" ><xsl:apply-templates select="text/child::*[attribute::seq=11]" /><img src="/aacc-cms/general/image/cleardiv.png" /></div>
                    </xsl:if>
                  </div>
                </div>
                <xsl:if test="string-length(image/child::*[attribute::seq=3]/imgFile)>0" >
                  <div class="highlights_last">
                    <div class="highlights_last_title">
                      <xsl:apply-templates select="image/child::*[attribute::seq=3]" />
                    </div>
                  </div>
                </xsl:if>
                <xsl:if test="string-length(image/child::*[attribute::seq=4]/imgFile)>0" >
                  <div class="highlights_last">
                    <div class="highlights_last_title">
                      <xsl:apply-templates select="image/child::*[attribute::seq=4]" />
                    </div>
                  </div>
                </xsl:if>
                <xsl:if test="string-length(image/child::*[attribute::seq=5]/imgFile)>0" >
                  <div class="highlights_last">
                    <div class="highlights_last_title">
                      <xsl:apply-templates select="image/child::*[attribute::seq=5]" />
                    </div>
                  </div>
                </xsl:if>
                <xsl:if test="string-length(image/child::*[attribute::seq=6]/imgFile)>0" >
                  <div class="highlights_last">
                    <div class="highlights_last_title">
                      <xsl:apply-templates select="image/child::*[attribute::seq=6]" />
                    </div>
                  </div>
                </xsl:if>
                <xsl:if test="string-length(image/child::*[attribute::seq=7]/imgFile)>0" >
                  <div class="highlights_last">
                    <div class="highlights_last_title">
                      <xsl:apply-templates select="image/child::*[attribute::seq=7]" />
                    </div>
                  </div>
                </xsl:if>
              </div>
              <div class="bottom_left_home">
                <h2 style="font-size:16px; font-weight:bold;"><a href="/newsroom" style="color:#ffffff;">AACC Newsroom</a></h2>
                <div id="home_news_content">
                  <!--<div class="homepage_news_item" style="color:#ff0000;">
                     <div class="homepage_news_headline">
                      <h3>Password Management Tool Unavailable 3/7-3/8</h3>
                    </div>
                    <div class="homepage_news_preview">
                      As part of the Friday scheduled system downtime which starts at 9:30 p.m., we will be upgrading the password management tool on March 7th. Due to the nature of this upgrade, we anticipate the password management tool to be unavailable until 3:30 p.m. on Sat., March 8th. During this time, you will not be able to reset your password. We will provide updates here on the AACC website and the portal.
                    </div>
                  </div> -->
                  <div id="news_articles" class="news_articles">
                  Loading newsroom feed...
                    <img src="/aacc-cms/general/image/cleardiv.png" />
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </xsl:template>
    <xsl:template match="image/child::*[attribute::seq &lt; 3]" ><xsl:call-template name="genImg" /><br /></xsl:template>
    <xsl:template match="image/child::*[attribute::seq &gt; 2]" ><xsl:call-template name="genImg" /></xsl:template>
    </xsl:stylesheet>

  • How to get the list of columns of a transaction output

    Hi All,
    My requirement is like this:
    I want the list of columns of a transaction.In a drop down, I am displaying all the transactions.I will select any transaction and want to populate the list of columns of that selected transaction in another drop down.
    Please suggest me how to achieve this.
    Thanks in advance.
    Regards
    Manisha

    Hi Manisha,
    I would add a second SAP MII Output Document action, configured with a column to hold the column name, followed by a Repeater action.  Configure the Repeater to repeat on the first document's columns:
    FirstDoc.Output{/Rowsets/Rowset/Columns/Column}
    Add a Row action and assign the first document's column names:
    Repeater_0.Item{/Column/@Name}
    Assign the output of the new document to an XML output property, which can then be captured in an Xacute Query.
    Kind Regards,
    Diana

  • XML Payload to Transaction Input

    Hi,
    For clarification, used to be (and still appears to be) that for transaction input properties, data type needed to be 'simple' (ie: string etc), and although we can have transaction input properties of type XML, they still appear in the WSDL as string.  Although I can see that this works fine even if the string content is actually XML, and the inbound data (which in fact is XML as a string) still looks like XML in the transaction, is this still the recommended approach?  Or is there another recommended way to get an XML payload passed in to a transaction using Runner / SOAPRunner from an external application.
    Additionally, when calling the Runner (or SOAPRunner) from an external application, is there then any limit to the length of the URI call?  I know that browsers have limits on the path, but here we're playing with a path + query string outside of browsers? 
    Are there any limitations on the Netweaver side?
    By the way, currently using MII V12.2.2
    Regards
    Kevin.

    Hi Kevin,
    You can pass XML as string to a transaction and make input parameter as XML in transaction.
    That is perfectly fine.
    As far as I know about the limit of URL, It depends on the server.
    However there are two methods to call a http webservice. GET and POST.
    Use the POST method which is having more limit than GET method. I have faced issue with GET on high volume of data so replaced it with POST method. I have used the url with query parameters of a few MB's (approx 4-5) and never faced the limit issue with POST. You can check exact limit with some load testing on the server.
    Thanks
    Anshul

  • Adding field in standard SAP transaction output results.

    Hi,
    I have to add a new field in standard SAP transaction output results.
    Can any one tell me what are the ways (brief explanation) that I can do this?
    If using exists - then what kind of exists I have to use? And how to find out the possibility with user exists?
    Thanks for your time.
    Thanks.
    Chris.

    Hi,
        There are so many ways to find out the user exits.
    Hi,
    To see SAP Exits -> Use Tcode SMOD
    To See create a project for Customer Exits -> Use Tcode CMOD
    There are projects to which Exits are assigned. Selects the relevant projects.
    What is User Exit:
    http://www.sap-img.com/abap/what-is-user-exits.htm
    How to find then:
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    All Exits List:
    http://www.easymarketplace.de/userexit.php
    Do a search on SAP Exits, Customer Exits, enhancements, etc
    Step 1 :- Execute transaction
    step 2 :- Click on Status Menu
    step 3 :- Double click on the program (screen) __?????___
    Step 4 :- Search source code for the 'Customer-Function' string using the find button. Remember to select 'In main program'.
    Step 5 :- A list of search results should be displayed indicating where all function exits can be found.
    You can now double click on each of them to go to its position in the source code. This also
    allows for the insertion of breakpoints so that you can test if the exits are called in the
    appropriate place.
    Step 6 :-Once you have found the Function Exit within the source code (Find Function Exit) you need to
    access the actual function module it executes. This is done using the following steps:
    Step 6.1 :-
    Step 1
    Locate desired 'Call Customer-function' statement within source code.
    Step 2
    If code is not within main program (module pool) e.g. SAP* then you will need to find this
    out by selecting 'Main Program' from the 'GOTO' menu. The Main program for transaction
    Step 3
    The actual function module name can now be calculated based on the information retrieved,
    it is defined by the following format:
    EXIT_<Program name>_<Exit number>
    eg :- 'EXIT_SAPLMR1M_004'.
    Step 7.1:-
    Once you have found the Exit function module
    Step 1
    Execute transaction CMOD
    Step 2
    Select 'SAP Enhancements' from the 'Utilities' menu.
    Step 3
    Select 'All selections' from the 'Edit' menu.
    Step 4
    Now populate the Component name field with the exit function module and press
    the execute button.
    Step 5
    A list of all Exits(Enhancements) containing that function module should now be displayed.
    Step 5
    You can now double click on the desired exit to display a detailed description of its uses and a list of all
    components contained in it.
    Implementing Function Exit
    This is required in-order to activate Function exit:
    Step 1
    The first step is to enter source code into function module in the usual way i.e. via SE37.
    There will already be an include declaration within the code with the following
    format: Include zx*.
    Double click on this to create it, source code can then be entered within here.
    Although it is good practice to create another include with this to store your
    code, this allows separation of difference enhancements allowing them to be easlity
    removed without de-activating the enhancement.
    Step 2
    Execute transaction CMOD and create new Enhancement. Enter name and press the create
    Button.
    Step 3
    The following screen should be displayed, enter short text then click on the 'Enhancement
    Step 4
    Now enter the Exit name (enhancement) which contains the desired Function Exit.
    Step 5
    Return to initial screen of CMOD and press the activate icon. The exit is now ready for use.
    Please Mark The Helfull Answers & close the thread.
    regards
    dj
    reward for all useful answers.

  • XML Datatypes in Oracle 9i

    My database architect would like to leverage the XML datatype support that is new in Oracle 9i. How can I configure TopLink to directly map object attributes to elements in an XML structure that is stored in an XML-type column?

    Marc,
    Yes. It is possible to map XMLType columns into your object model. It is accomplished using a direct-to-field mapping where the database column is an XMLType and the object model's attribute is a Document or String. In 9.0.3 of Oracle9iAS TopLink you must include the xdb.jar on your classpath, customize your configuration with an extended ConversionManager, and use a DescriptorEventListener.
    ConversionManager: Subclass the provided one and provide a conversion from XMLType to either the underlying DOM Document or XML representation of the string.
    DescriptorEventListener: Implement and register an event listener that will provide aboutToInsert and aboutToUpdate events for the class you are mapping the XML into. In these events you'll need to make use of the provided JDBC connection to convert the Document or String back into an XMLType object. (NOTE: If using Strings I believe you must use Oracle's XML parser to re-build the Document)
    A more detail technical tip will be availble soon and will be available through TopLink's OTN page (http://otn.oracle.com/products/ias/toplink/).
    Doug Clarke
    Product Manager
    Oracle9iAS TopLink

  • How to map javax.xml.datatype.XMLGregorianCalendar to java.util.Calendar

    Hi ,
    How to map javax.xml.datatype.XMLGregorianCalendar to java.util.Calendar so that i can use pass String parameter in YYYY-MM-DD format to my Web service.
    I generated the schema classes using Jaxb 2.1.5.
    Please give suggestion
    Thanks in Advance.

    toGregorianCalendar().getTime()

  • Set transaction code property of PCD Iview

    Hi ALL
    I have a SAP transaction Iview sitting in my PCD. I want to access this Iview, set its transaction code property to the transaction that the user selects on the Iview of my web dynpro application.
    The idea is to set the Tcode and then navigate to that Iview taking pcd location.
    Please help on how to set the properties and invoke the iview

    Sanjay,
       That's what the mentioned post talks about, isn't it?
    You should pass the parameter while doing a portal navigation.
    Go through the following blogs:
    1. /people/prakash.singh4/blog/2005/10/07/how-to-launch-sap-transaction-pass-parameters-via-url
    2. /people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
    You should use a code like this:
    String parameter = "System=" + <portal system> + "&TCode=" + <transaction code as selected by user>;
    WDPortalNavigation.navigateAbsolute(
    "ROLES://<pcd location>",
    WDPortalNavigationMode.SHOW_EXTERNAL,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    parameter,
    true,
    true);
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

  • TopLink 10.1.3.0 and SQL Server 2008 XML datatype

    We use TopLink 10.1.3.0 and SQL Server 2008 database. We are trying to map a table with a column of XML datatype, but the 'Direct to XMLType' Mapping is disabled in the Workbench.
    Is it possible to map an XML datatype? If so, can you please some guidance on how it can be achieved.
    Thanks for the help.
    Edited by: amehta5 on Nov 4, 2010 4:09 PM

    The Direct to XMLType was desired for the Oracle XMLType. TopLink does not currently support it for SQL Server. You could extend the SQLServerPlatform to add you own support. You must also be able to just map it to a String using a DirectToFieldMapping. If the MW does not let you use the mapping, you can add it in a customizer/amendment method.
    FYI: If you are using TopLink 11, you should be using the eclipselink.jar and ideally using JPA, and not using the Mapping Workbench.
    James : http://www.eclipselink.org

  • [JS] Simple question: Is importing XML from variable of XML datatype still not possible?

    Hi,
    Am I correct assuming that there is still no way to import XML into an XML element, directly from a variable of data-type XML?
    Will I still need to save data to disk, just to be able get it into the XML structure?
    Thanks,
    Andreas

    I totally agree. I look for this improvement once in a while, when I do changes and improvements in my code. I hoped I just hadn't noticed some other way to do it "in memory". It seems very unnecessary with this disk access.
    I filed a feature request at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.
    Perhaps more people wish for the same... and evntually the XML import functions will be able to handle an XML datatype object as argument.
    Best regards,
    Andreas

  • Generate XML file from Billing Output

    Hello,
    We have a business requirement to generate XML file from billing output and the same needs to send to external system for document printing.  In this regard, could you please guide the steps to configure or share the document on how the system to be configured to support the XML file generation from billing document.
    Anticipating a positive reply
    Thanks in advance
    Best Regards,
    Goutham

    another  option is to configure an outbound IDOC and set the port for this IDOC to generate an XML file.
    here again there will be IDOC control record in the first section of the IDOC XML generated.'
    rgds

  • Transaction output on custom subscreen

    Hi All,
    We have a requirement where we need to display one transaction output on a custom subscreen.That's means i need to display call transaction result on subscreen of another transaction.
    Can you please help.
    Thanks
    Mohit

    Hi All,
    Any sugestion for this requirement.
    Thanks
    Mohit khandelwal

  • Index within timestamp column of XML datatype

    Team , Thanks for your help in advance !
    I'm looking out for some suggestions about creating indexes within XML datatype , Preferably a timestamp . Pasted below sample xml data ..I'm googling it in the interim while some one help me here .
    <RingBufferTarget truncated="0" processingTime="0" totalEventsProcessed="2" eventCount="2" droppedCount="0" memoryUsed="1054">
    <event name="object_created" package="sqlserver" timestamp="2015-03-09T08:20:17.550Z">
    <data name="database_id">
    <type name="uint32" package="package0" />
    <value>41</value>
    </data>
    <data name="object_id">
    <type name="int32" package="package0" />
    <value>933578364</value>
    </data>
    <data name="object_type">
    <type name="object_type" package="sqlserver" />
    <value>8277</value>
    <text>USRTAB</text>
    </data>
    <data name="index_id">
    <type name="uint32" package="package0" />
    <value>0</value>
    </data>
    <data name="related_object_id">
    <type name="int32" package="package0" />
    <value>0</value>
    </data>
    <data name="ddl_phase">
    <type name="ddl_opcode" package="sqlserver" />
    <value>0</value>
    <text>Begin</text>
    </data>
    <data name="transaction_id">
    <type name="int64" package="package0" />
    <value>284364642</value>
    </data>
    <data name="object_name">
    <type name="unicode_string" package="package0" />
    <value>DUMMY</value>
    </data>
    <data name="database_name">
    <type name="unicode_string" package="package0" />
    <value />
    </data>
    <action name="cpu_id" package="sqlos">
    <type name="uint32" package="package0" />
    <value>0</value>
    </action>
    <action name="task_time" package="sqlos">
    <type name="uint64" package="package0" />
    <value>14322587</value>
    </action>
    <action name="client_app_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>Microsoft SQL Server Management Studio - Query</value>
    </action>
    <action name="client_hostname" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>VDDBARY</value>
    </action>
    <action name="database_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>TEST_R_D</value>
    </action>
    <action name="nt_username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value />
    </action>
    <action name="server_instance_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>SQLDEV01</value>
    </action>
    <action name="server_principal_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>ryelug01</value>
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>99</value>
    </action>
    <action name="session_nt_username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value />
    </action>
    <action name="session_resource_group_id" package="sqlserver">
    <type name="uint32" package="package0" />
    <value>2</value>
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>USE TEST_R_d
    CREATE TABLE DUMMY
    id int not null
    )</value>
    </action>
    <action name="username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>ryelug01</value>
    </action>
    </event>
    <event name="object_created" package="sqlserver" timestamp="2015-03-09T08:20:17.552Z">
    <data name="database_id">
    <type name="uint32" package="package0" />
    <value>41</value>
    </data>
    <data name="object_id">
    <type name="int32" package="package0" />
    <value>933578364</value>
    </data>
    <data name="object_type">
    <type name="object_type" package="sqlserver" />
    <value>8277</value>
    <text>USRTAB</text>
    </data>
    <data name="index_id">
    <type name="uint32" package="package0" />
    <value>0</value>
    </data>
    <data name="related_object_id">
    <type name="int32" package="package0" />
    <value>0</value>
    </data>
    <data name="ddl_phase">
    <type name="ddl_opcode" package="sqlserver" />
    <value>1</value>
    <text>Commit</text>
    </data>
    <data name="transaction_id">
    <type name="int64" package="package0" />
    <value>284364642</value>
    </data>
    <data name="object_name">
    <type name="unicode_string" package="package0" />
    <value>DUMMY</value>
    </data>
    <data name="database_name">
    <type name="unicode_string" package="package0" />
    <value />
    </data>
    <action name="cpu_id" package="sqlos">
    <type name="uint32" package="package0" />
    <value>0</value>
    </action>
    <action name="task_time" package="sqlos">
    <type name="uint64" package="package0" />
    <value>14322583</value>
    </action>
    <action name="client_app_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>Microsoft SQL Server Management Studio - Query</value>
    </action>
    <action name="client_hostname" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>VDDBARY</value>
    </action>
    <action name="database_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>TEST_R_D</value>
    </action>
    <action name="nt_username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value />
    </action>
    <action name="server_instance_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>SQLDEV01</value>
    </action>
    <action name="server_principal_name" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>ryelug01</value>
    </action>
    <action name="session_id" package="sqlserver">
    <type name="uint16" package="package0" />
    <value>99</value>
    </action>
    <action name="session_nt_username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value />
    </action>
    <action name="session_resource_group_id" package="sqlserver">
    <type name="uint32" package="package0" />
    <value>2</value>
    </action>
    <action name="sql_text" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>USE TEST_R_d
    CREATE TABLE DUMMY
    id int not null
    )</value>
    </action>
    <action name="username" package="sqlserver">
    <type name="unicode_string" package="package0" />
    <value>ryelug01</value>
    </action>
    </event>
    </RingBufferTarget>
    Rajkumar Yelugu

    Thanks for the link Visakh !
    It helps me getting  started , I applied few tips on to my ongoing stored proc ( Below ) but not a great improvement though  , Thanks for your further assistance .
    CREATE TABLE #XML_Hold
    ID INT NOT NULL IDENTITY(1,1) PRIMARY KEY , -- PK necessity for Indexing on XML Col
    BufferXml XML
    INSERT INTO #XML_Hold (BufferXml)
    SELECT
    CAST(target_data AS XML) AS TargetData --BufferXml
    FROM sys.dm_xe_session_targets xet
    INNER JOIN sys.dm_xe_sessions xes
    ON xes.address = xet.event_session_address
    WHERE xes.name = 'Capture DDL Schema Changes'
    --RETURN
    SELECT GETDATE() AS GETDATE_1
    CREATE PRIMARY XML INDEX [IX_XML_Hold] ON #XML_Hold(BufferXml) -- Ryelugu 03/09/2015 - Primary Index
    SELECT GETDATE() AS GETDATE_2
    --create secondary xml value index
    CREATE XML INDEX [IX_XML_Hold_values] ON #XML_Hold(BufferXml)
    USING XML INDEX [IX_XML_Hold]
    FOR VALUE
    SELECT GETDATE() AS GETDATE_3
    SELECT
    p.q.value('@name[1]','varchar(100)') AS eventname,
    p.q.value('@timestamp[1]','datetime') AS timestampvalue,
    p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') AS objectname,
    p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') AS ObjectType,
    p.q.value('(./action[@name="database_name"]/value)[1]','varchar(100)') AS databasename,
    p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') AS ddl_phase,
    p.q.value('(./action[@name="client_app_name"]/value)[1]','varchar(100)') AS clientappname,
    p.q.value('(./action[@name="client_hostname"]/value)[1]','varchar(100)') AS clienthostname,
    p.q.value('(./action[@name="server_instance_name"]/value)[1]','varchar(100)') AS server_instance_name,
    p.q.value('(./action[@name="nt_username"]/value)[1]','varchar(100)') AS nt_username,
    p.q.value('(./action[@name="server_principal_name"]/value)[1]','varchar(100)') AS serverprincipalname,
    p.q.value('(./action[@name="sql_text"]/value)[1]','Nvarchar(max)') AS sqltext
    FROM #XML_Hold
    CROSS APPLY BufferXml.nodes('/RingBufferTarget/event')p(q)
    WHERE -- Ryelugu 03/05/2015 -
    p.q.value('@timestamp[1]','datetime') >= ISNULL(@Prev_Insertion_time ,p.q.value('@timestamp[1]','datetime'))
    AND p.q.value('(./data[@name="ddl_phase"]/text)[1]','varchar(100)') ='Commit'
    AND p.q.value('(./data[@name="object_type"]/text)[1]','varchar(100)') <> 'STATISTICS'
    AND p.q.value('(./data[@name="object_name"]/value)[1]','varchar(100)') NOT LIKE '%#%'
    It appears that filtering  and selecting from #XML_Hold  is TIME taking .
    Rajkumar Yelugu

Maybe you are looking for

  • How Can I restore my MacBook Pro mid 2009 running OS X 10.8.6?

    I was wondering if I could restore my computer to make it run faster.  I only have about 570 MB of free memeory.  The only things I want to keep on my computer are my itunes music and thats about it really.  I was told I could spend $80 on 8GB of mem

  • I had to wipe out my hard drive, along with my iTunes music. Now what? : (

    I had some sort of virus and had to reinstall my whole operating system on my Dell PC. Obviously I lost everything, including my iTunes files (both purchased from iTunes and from my own CD collection). I have all of my songs on my iPod currently, abo

  • Cross dissolve

    I am trying to make a simple video loop using a 30sec water ripple scene. I split and inverted the 2 halves so that the end/beginning would match but when I tried to cross dissolve the transition the video stops, the still frames cross dissolve then

  • Is JDE World version 7.3.19  compliant with V7R1 Operating System?

    We are working on an analysis project to upgrade our iSeries operating system level to V7R1.  Right now, we are reviewing all of the applications running in our iSeries environment to determine if they are compatible with V7R1 or what upgrade/changes

  • Server resending emails again

    Please could someone tell me why I would be getting emails resent from when we originally started our email service with BC right up until today. Last week this happened to my GM now today I'm getting all emails sent to me again.