XMII Frustration, trying to hold " SAP xMII XML format" in variable

I have two queries that return the same result (same columns, different rows).  I'm running one or the other based on a condition.  I want to assign the result to something so that I can run a repeater against it after (one of the two) queries has run.
                     Cond   ....      3rd leg(After condition)
             Query 1    Query 2       Repeater

Paul,
If your two queries (different Query Templates?) both return the exact same columns, but just different rows, wouldn't it make more sense to just have a single Query action block instead of a conditional branch?  This way your Repeater logic could just work directly on the single query results and you wouldn't have to map or copy any xml objects around.
You could use the stringif function in the expression editor to handle the specifics of your current Query1 and Query2, even adjusting the QueryTemplate property of the action block itself if necessary.  The effective use of query parameters and/or the template(s) themselves should make this quite possible and streamlined in your logic flow.
Regards,
Jeremy

Similar Messages

  • Trying to store result in xml format in variable sql server

    i am just trying to compare two xml and try to store the difference into another variable called
    @DiffXML but getting error called Incorrect syntax near the keyword 'SET'.
    just guide what to fix. thanks
    DECLARE @XML1 XML
    DECLARE @XML2 XML
    DECLARE @DiffXML nvarchar(max)
    SET @DiffXML=''
    SET @XML1 =
    '<NewDataSet>
    <Employee>
    <EmpID>1005</EmpID>
    <Name> keith </Name>
    <DOB>12/02/1981</DOB>
    <DeptID>ACC001</DeptID>
    <Salary>10,500</Salary>
    </Employee>
    </NewDataSet>'
    SET @XML2 =
    '<NewDataSet>
    <Employee>
    <EmpID>1006</EmpID>
    <Name> keith </Name>
    <DOB>05/02/1981</DOB>
    <DeptID>ACC002</DeptID>
    <Salary>10,900</Salary>
    </Employee>
    </NewDataSet>'
    ;with XML1 as
    select T.N.value('local-name(.)', 'nvarchar(100)') as NodeName,
    T.N.value('.', 'nvarchar(100)') as Value
    from @XML1.nodes('/NewDataSet/Employee/*') as T(N)
    XML2 as
    select T.N.value('local-name(.)', 'nvarchar(100)') as NodeName,
    T.N.value('.', 'nvarchar(100)') as Value
    from @XML2.nodes('/NewDataSet/Employee/*') as T(N)
    SET @DiffXML=(select * from
    select coalesce(XML1.NodeName, XML2.NodeName) as FieldName,
    XML1.Value as OldValue,
    XML2.Value as NewValue
    from XML1
    full outer join XML2
    on XML1.NodeName = XML2.NodeName
    where coalesce(XML1.Value, '') <> coalesce(XML2.Value, '')
    ) x FOR xml AUTO,elements XSINIL)
    print @DiffXML

    hey it is solved
    i should use select instead of set
    SELECT @DiffXML=(select * from
    select coalesce(XML1.NodeName, XML2.NodeName) as FieldName,
    XML1.Value as OldValue,
    XML2.Value as NewValue
    from XML1
    full outer join XML2
    on XML1.NodeName = XML2.NodeName
    where coalesce(XML1.Value, '') <> coalesce(XML2.Value, '')
    ) x FOR xml AUTO,elements XSINIL)
    print @DiffXML

  • Send idocs to SAP in SAP's XML format

    Hi!
    currently we are sending idocs to SAP using the RFC IDOC_INBOUND_ASYNCHRONOUS. this requires us to break up the data so that we can populate rows in the EDI_DC40 and EDI_DD40 table.
    Is it possible, via a RFC call, (or rather, via some programmatic interface if via RFC is not possible) to send idocs to SAP in XML format?
    Thanks,
    Mustansir

    Hi Satish,
    Thanks for the reply. Do I need to do event driven message processsing in XI for this? The other way is to schedule the RBDAPP01 in R/3 to post idocs in sequence based on the message type and Partner number
    Does this makes sense?
    And any idea bout the second question for roll back?
    Thanks

  • Receive idocs from SAP in XML format

    Hi everyone.
    Currently, to receive idocs, what we're doing is, we create an external RFC server, and listen to invocations of the RFC IDOC_INBOUND_ASYNCHRONOUS and IDOC_PROCESS_INBOUND. However, this leads us to receive idocs in EDI_DD/EDI_DD40 and EDI_DC/EDI_DC40 formats.
    Is it possible to receive idocs in XML format via the RFC Server interface?
    Thanks,
    Mustansir

    hi shreya,
    function Module            Short text for function mod
    HR_BE_DMFA_XML_DOWNLOAD    Register XML conversionca
        HR_PT_TAX_XML_DOWNLOAD
    SDOK_LOIO_XML_DOWNLOAD_PUBLISH
    SPRX_XML_DOWNLOAD              Displaying the Payload
    DMEE_DOWNLOAD_XML_TREE
    DMEE_DOWNLOAD_XML_TREE_ABA     DMEE: Download format tree
    JITOUT10_DOWNLOAD_XML
    GLOS_DOWNLOAD_XML
    this function module you can use.
    regards,
    sandeep
    Edited by: Sandeep patel on Jul 7, 2008 6:36 PM

  • Com.sap.xmii.Illuminator.logging.LHException: java.lang.NoClassDefFoundErro

    Hello,
    Intermittently users get the following error when logging into the application which is built upon xmii:
    com.microsoft.sqlserver.jdbc.SQLServerResource
    At this point in the application it is trying to read information which is stored in a SQLServer database.
    We see the following errors in trace files:
    application [XMII] Processing HTTP request to servlet [Illuminator] finished with error.
    The error is: com.sap.xmii.Illuminator.logging.LHException: com.sap.xmii.Illuminator.logging.LHException: java.lang.NoClassDefFoundError: com.microsoft.sqlserver.jdbc.SQLServerResource
    Exception id: [00145E4D6... [see details]
    This is running on a NW JavaAs 7.0 SP18, MII 12.0 SP8.
    We've replaced the JDBC driver with one which SAP support told us would work, but that did not fix the problem either.
    We can get the problem to go away for a period of time by simply disabling and then re-enabling the Data Server connection.  It is using the IDBC Connector with a SQL connector type.  STATUS shows No. Connections Used 0, No. Connections Available 1, Max No. Connections Used 2.  Max. Wait Time 0.0.
    Ideas?

    Hi John,
    Before connecting SQL server with SAP MII, try connecting SQL server independently.
    It helps to narrow down the problem.
    If the independent connection works fine, try connecting with SAP MII with proper JDBC drivers
    Go through the SAP Note 1109274 & forum MII 12.1 - connection to MS SQL2005 database
    for more information on JDBC drivers.
    Thanks
    Rajesh Sivaprakasam.

  • DME file in XML format in SAP 4.6C

    Hi Experts,
    For a Belgium client, I have a requirement to generate DME file in XML format for payments made to foreign and domestic vendors.  I want to know the following,
    1.  Can DME file be generated in XML format using classic payment medium programs RFFOBE_E and RFFOBE_I.
    2.  If not why and what are the other options.
    3.  I also came to know that there is an options of using Payment medium workbench - through XML format trees BE_BEPDTA and BE_PIBDTA.  But since we are in 4.6C, i am not able to create a payment format.  Is there any support package or patch that is required.
    4.  I tried for SEPA_CT - again a XML format tree but was not very successful as that too was not available in SAP 4.6C.  Is there any way that I can get this done in 4.6C - any support packages or patches available?
    Thanks

    Hi Kaylan,
    could you please share that documentation with me too.
    Thanks, Regards,
    Alex Cardona

  • Abap report in XML format

    hello all,
    i need to downloadABAP report in xml format.
    can any body help me out.
    Thanks
    chandramani

    Hi
    Use
    FM
    SAP_CONVERT_TO_XML_FORMAT
    Re: GUI_Download for XML file ?
    How to download SAP standard report output into XML format
    Re: Download data from SAP in XML format.
    regards
    pavan

  • Dynamically creating XML using Sap-xMII Colum and Row Action Block

    Hi,
    I am trying to create a xMII-format XML using IlluminatorDocument Action Block.
    My problem statement is during run time I am required to create columns on the fly.which I have done using xMII Colum Action block.but now I am required to assing values to these dynamically created columns.I have tried using Data Item and Row action block but am not sucessful in doing so.Can anyone help in creating this xml Dynamically.
    The steps that I have followed is
    defined
    tagquery action block and defined tagquery
    blank Illuminator Document Action block
    put a repeater on result of tag query
    set a counter
    updated the counter
    used column action block and mapped the column name i.e IlluminatorColumn_0.Name------"test"&Local.count
    my column output looks like
    Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
              </Columns>
    </Rowset>
    </Rowsets>
    after this action block i want to assign values to each column i.e
         <Row/>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
    i.e erach row tags should be filled with columntag and value
    but i am not able to achieve the same
    Can anyone help me doing this

    After adding IllumColum Action block I have created 5 columns dynamically
    but now I am unable to add row.
    currently for everycolumn created it is giving one row  without any column node
    the configurations that I have done in Data Item Action Block is
    In My Link Editor
    IlluminatorColumn_0.Name----
    >IlluminatorDataItem_0.Name
    hardcoded the value i.e 20----
    >IlluminatorDataItem_0.Value
    IlluminatorDocument_0.Output----
    >IlluminatorDataItem_0.IlluminatorDocument
    current resultset I am getting is
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2007-03-27T12:59:39" EndDate="2007-03-27T11:42:40" StartDate="2007-03-27T11:42:40" Version="11.5.0">
         <Rowset>
              <Columns>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test1" SQLDataType="1" SourceColumn="test1"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test2" SQLDataType="1" SourceColumn="test2"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test3" SQLDataType="1" SourceColumn="test3"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test4" SQLDataType="1" SourceColumn="test4"/>
                   <Column Description="" MaxRange="100" MinRange="0" Name="test5" SQLDataType="1" SourceColumn="test5"/>
              </Columns>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
              <Row/>
         </Rowset>
    </Rowsets>

  • Java.lang.StackOverflowError in SAP xMII 11.5

    Hi All,
    I am using SAP xMII 11.5 and Java 1.4. I am trying to display a large iGrid using irpt file. But it is not displaying the grid. I checked log in servletExec folder,it have java.lang.StackOverflowError. How can i solve this issued? Can it be resolved by setting -Xms parameter in Java Run-time environment in server(I am using Windows 2003 Server)? Or should I need to set it in any conf file or pref file inside servletExec folder? Please advice. Thanks in advance.
    Regards,
    Subin

    Hi Thomas,
    MII display applets are nothing else than standard applets. They are executed in the client VM mostly provided by the JavaPlugin in the browser. To give the applets more RAM use the -Xmx parameter and set it in the command line for the JavaPlugin VM. In Windows this can be found in systemcontrol->Java. 64M ist standard. Give it 250M for testing.
    Oh, sorry. Just saw that you found the exception in the server log. Same holds for the server. So try to increase RAM for server VM with -Xmx. Server VM can easily be set to 1GB (but not more than about 1.5G in a 32 bit system).
    Do you have the stack trace for this StackOverflow? Normally this points to endless recursion.
    Good luck,
    Matthias
    Edited by: Matthias Wald on Jan 21, 2011 11:11 PM
    Edited by: Matthias Wald on Jan 24, 2011 3:46 PM

  • Question : SAP xMII 11.5 Servlet Exec Stack / Unresponsive

    Hello SAP xMII Master,
    I need your suggestion and assist.
    Since migrated from Lighthammer Illuminator 10.0 to SAP xMII 11.5, we frequently having problem Servlet Exec stack/unresponsive and looks like hang. If happened, fast solution usually to restart the services of Servlet Exec and situation will back to normal. But, there will happen again and until now we don't know what the root cause.
    ServletExec.log is clean for error messages. We already tried increase xml memory up to 1.5 GB. But, there not much help.
    Please for any suggestion to resolve those problem.

    Hi Mike,
    Thank for your response.
    Currently we using SAP xMII 11.5 with ServeletExec AS New Atlanta 5.0.0.09 version and powered by JDK 1.4.2_13, running on Windows 2003 Standard Edition IIS 6.0
    Yesterday, my staff tried running Servlet on console mode to catch what exactly error messages before crash.
    And below the result before servlet crash
    An unexpected error has been detected by HotSpot Virtual Machine
      EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x656033f2, pid=10064, tid=16192
    Java VM: Java HotSpot(TM) Client VM (1.4.2_13-b06 mixed mode)
    Problematic frame:
    C   0x656033f2
    An error report file with more information is saved as hs_err_pid10064.log
    If you would like to submit a bug report, please visit:
         http://java.sun.com/webapps/bugreport/crash.jsp
    The type of application we are using are not complicated. We using SAp xMII to retrieve information from OSISOFT PI Historian. There are standard HTML.
    Edited by: Heru.Suprihanto on Feb 16, 2011 11:47 PM

  • Problem in retrieving multiple records SAP xMII from SAP using BAPIS

    Hi friends,
             In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
    i want to display 10 records in sap xmii
    1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
    2)In BLS we placed JCO Interface inside Sequence
    3)In BLS I used ECC5 connectrion(using JCO Interface) and called  BAPI_USER_GELLIST
    4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
    Input what i mapped 
    Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
    Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
    Output what i mapped 
    SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
    5)Saved the Transaction.
    6)In Query Template -->xactuateQuery selected
    7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
    It was returned one user id from R/3 inSAP xMII
    please help me to retrive all  10 rows from r/3
    Regards
    Srikanth

    hi,
    What is the data type of Transaction output (userid)?
    Make this as XML type.
    The format which BAPI returns the result does not match with xMII XML format.
    Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
    Hope this will help to resolve the issue.
    Regards,
    Kishore

  • Conversion of Minitab to xMII XML format

    Hi,
      how to convert minitab file into xml format. i tried possibilities but facing problems. i tried for two psiibilities.
    1) i imported minitab file(.mtw) into BLS text loader. then i added flat file parser then StringList to XML parser. but it doesnt show correct xml output. it shows each row as single item.
    2) I saved minitab file as text file by applying comma seperator. then i opened that file in BLS. this file having column names but in BLS it consider each item as single row. for example if  i have 2x2 rows / columns means, BLS consider it as 4 rows and take column name also as row.
    how to solve it? how to convert minitab file as it is(with .mtw) extension to xMII XML format.
    -senthil

    Senthil,
    In xMII 11.5 SP3 in the Logic Editor under Misc Functions -> Minitab Export
    -Sam

  • Upgrade JAXP 1.2 to JAXP 1.3 in SAP xMII

    Hi All,
    I need a favour regarding JAXP (Java API for XML Processing).
    I am currently using SAP xMII 11.5 it uses both DOM as well as SAX parser to parse the xml. Also it uses JAXP to talk with DOM and SAX.
    Now the issue is it uses JAXP 1.2 which is not handling big xml. It makes a performance issue when the size of the xml is large.
    So I need to upgrade the JAXP in xMII system.
    Also I am using J2SE 1.4.2.
    So I can’t use JAXP 1.4 or more as it is not compatible with J2SE 1.4.2. JAXP1.4 uses J2SE 5.0 or more.
    I cant upgrade Java version rather I can upgrade from JAXP 1.2 to JAXP 1.3 or some other but lower than JAXP 1.3 & it should be compatible with J2SE 1.4.2 & windows.
    Now the need is to how to implement JAXP 1.3 in an existing system which is already using JAXP 1.2
    Thanks,
    Murugappan.

    Mark:
    Welcome to Apple Discussions.
    You can try using Pacifist to extract Safari from your install disk and install it. You may then be able to upgrade it more easily, although I can't promise that for sure.
    Unless you are absolutely wedded to Safari, I find Camino to be at least as good (I think better) as Safari, and looks almost identical, so that there should not be much of a learning curve. I also use Firefox and especially like it for the measure of security it provides.
    Please do not hesitate to post back with further questions or comments.
    Good luck.
    cornelius

  • How to caluculate standarard deviation in SAP xMII

    Hi friends,
    can please guide how to caluculate standarard deviation in SAP xMII
    Thanks
    srikanth

    Srikanth
    Thats right. there is an Action Block called <b>Simple Statistics</b>, whose function is much different from that of <b>Aggregate Statistics</b> in the usage of BLS.
    <b>Aggregate Statistics</b>
    This is used to return Statistical Calculation Values for a set of Values at one time. This is used with XPath Target (Value Source) hitting a Column in an XML Result. In turn, this gives the Statistical Calculation for the set of values in that column.
    <b>Simple Statistics</b>
    This is used to return Statistical Calculation Values for a dataset which dynamically gets updated with newly added value. So this Action Block is used inside a Repeater Action block, which in turn gets the value from an XML Source, sets that value with ValueSource Property in Simple Statistics. Hence, the calculated statistical value will be dynamically updated with newly added value while looping the XML Source.
    Regards
    Som

  • SAP xMII on a Mac?

    I have been able to access SAP xMII pages and development tools on a Mac using Firefox and Safari browsers. And I was able to do some Business Logic Development on a Mac using the Mac OS.
    Has anyone ever tried installing SAP xMII on the Mac OS? What web server did you use?  Were there any special settings or tweaks that needed to be done?
    The curiosity started a couple weeks ago for me while I was at an emerging tech conference in Philly.  There, to my surprise, the majority of presenters and attendees were using Macs.  I've been on a PC for a number of years, mostly becase of the software that I was using required it (Baan ERP and SAP xMII).

    You could try Apache Web Server and Tomcat.  I've had them working on multiple platforms, but not the Mac - though it should work fine.  The key to making it all work is getting your webapps configured properly and then tweaking the cmsconfig file, located at Lighthammer\WEB-INF\classes.

Maybe you are looking for