XML tag with attributes and one value via XSU

I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
<PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
Without an object type, I can just create tags like this
XML3
<PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
(with no attributes, but a single value) via the followig statement
SELECT sys_xmlgen ('9.99',
sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
).getClobVal() "XML3"
FROM DUAL;
Having an object "productlisteprice_type", defined by
CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
"@NET-PRICE" VARCHAR2(10),
"@CURRENCY" VARCHAR2(10),
"PRICE" VARCHAR2(20)
I just get XML like this
XML2
<PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
<PRICE>9.99</PRICE>
</PRODUCT-LIST-PRICE>
(with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
).getClobVal() "XML2"
FROM DUAL;
Not what I need :-(
Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
Thanks in advance,
Holger

I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
<PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
Without an object type, I can just create tags like this
XML3
<PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
(with no attributes, but a single value) via the followig statement
SELECT sys_xmlgen ('9.99',
sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
).getClobVal() "XML3"
FROM DUAL;
Having an object "productlisteprice_type", defined by
CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
"@NET-PRICE" VARCHAR2(10),
"@CURRENCY" VARCHAR2(10),
"PRICE" VARCHAR2(20)
I just get XML like this
XML2
<PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
<PRICE>9.99</PRICE>
</PRODUCT-LIST-PRICE>
(with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
).getClobVal() "XML2"
FROM DUAL;
Not what I need :-(
Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
Thanks in advance,
Holger

Similar Messages

  • Fill BEx Variable with more than one value via Custom Exit

    Dear SDN comunity,
    I want to fill a BEx Variable via a custom exit. My problem is, I don't know how to fill this variable with more than one value.
    I try to give you some background info based on an exaple:
    <u><b>Variable-Details</b></u>
    <b>Type of Variable:</b> Characteristic Value
    <b>Variable Name:</b> ZCCD
    <b>Description:</b> Company Code Selection
    <b>Processing by:</b> Custom Exit
    <b>Characteristic:</b> Company Code
    <b>Variable Represents:</b> Multiple Single Values
    <u><b>This is the used ABAP code:</b></u>
    WHEN 'ZCCD'.
    CLEAR l_s_range.
    l_s_range-low = '2002;2004'.
    l_s_range-sign = 'I'.
    l_s_range-sign = 'EQ'.
    APPEND l_s_range TO e_t_range.
    <u><b>The system returns this message:</b></u>
    Value "2002;2004" is too long for variable ZCCD
    appreciate your help!
    //michael

    Eugene, Marcus
    it works now, thx a lot!
    Please find attached the final code:
    CLEAR l_s_range.
    l_s_range-low = '2002'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR l_s_range.
    l_s_range-low = '2004'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    (Delta to Marcus's code is bold)

  • Inserting XML files with attribute and frontslash(/) in database

    Hi,
    I want to get and insert the data from XML file into database. Below is the XML file:
    <bne:document xmlns:bne="http://www.oracle.com/bne" bne:apiVersion="1.0">
         <bne:workspace>
              <bne:layout id="242:AMW_PROC_UPLOAD">
                   <header><line/>
                   </header>
              </bne:layout>
         </bne:workspace>
         <bne:collection id="collection_1">
              <bne:data bne:id="data_1" bne:integrator="242:AMW_PROCESS_IMPORT_INTG" bne:layout="242:AMW_PROC_UPLOAD" bne:date_format="yyyy-MM-dd" bne:validation="full" bne:recreate="TRUE" bne:columns_mapped="FALSE" bne:nls_numeric_characters=".,">
                   <header AMW_PROCESSES_INTERFACE.HEADER_PARENT_PROCESS_ID="All Processes">
                   <line bne:IDX="1"
    AMW_PROCESSES_INTERFACE.PROCESS_DISPLAY_NAME="Process test 1" AMW_PROCESSES_INTERFACE.SIGNIFICANT_PROCESS_FLAG="Yes"
    AMW_PROCESSES_INTERFACE.REVISE_PROCESS_FLAG="N"
    AMW_PROCESSES_INTERFACE.PROCESS_CATEGORY="Routine"
    AMW_PROCESSES_INTERFACE.APPROVAL_STATUS="Approved"
    AMW_PROCESSES_INTERFACE.STANDARD_PROCESS_FLAG="Yes"
    AMW_PROCESSES_INTERFACE.PROCESS_OWNER_ID=""
    AMW_PROCESSES_INTERFACE.FINANCE_OWNER_ID=""
    AMW_PROCESSES_INTERFACE.APPLICATION_OWNER_ID=""
    AMW_PROCESSES_INTERFACE.PARENT_PROCESS_NAME=""/>
                   </header>
              </bne:data>
         </bne:collection>
    </bne:document>
    and the table structure is:
    12:53:58 SQL> desc bne
    Name Null? Type
    HEADER_PARENT_PROCESS_ID VARCHAR2(80)
    PROCESS_DISPLAY_NAME VARCHAR2(80)
    SIGNIFICANT_PROCESS_FLAG VARCHAR2(3)
    REVISE_PROCESS_FLAG VARCHAR2(1)
    PROCESS_CATEGORY VARCHAR2(30)
    APPROVAL_STATUS VARCHAR2(30)
    STANDARD_PROCESS_FLAG VARCHAR2(3)
    PROCESS_OWNER_ID VARCHAR2(80)
    FINANCE_OWNER_ID VARCHAR2(80)
    APPLICATION_OWNER_ID VARCHAR2(80)
    PARENT_PROCESS_NAME VARCHAR2(80)
    So I want specific attribute values to be inserted into this table. I know the way to insert the simple XML document into database by using DBMS_XMLSave methods, but in this case I need to extract specific attribute values. I have learned that in order to use XML SQL Utility to "auto-load" XML into relational tables, I have to transform this XML file into Oracle's "canonical XML format" perhaps by using XSLT, not sure.
    Can someone please advise the correct way to accomplish above thing.
    Thanks in Advance.
    Manoj

    Great detective work. It's odd how that click-to-call extension creates such random issues...

  • Call Transaction and fill a select-options field with more than one value?

    Hello everybody,
    how can I fill a select-options field with more than one value.
    Here is the code example:
      CLEAR: GT_BDCDATA, GS_BDCDATA.
      GS_BDCDATA-program = 'RHALEINI'.
      GS_BDCDATA-DYNPRO = '1000'.
      GS_BDCDATA-DYNBEGIN = 'X'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      GS_BDCDATA-FNAM = 'PCHOTYPE'.
      GS_BDCDATA-FVAL = 'P'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
        GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
        GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
        APPEND GS_BDCDATA TO GT_BDCDATA.
        CLEAR: GS_BDCDATA.
      ENDLOOP.
      CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
                       MESSAGES INTO GT_MESSAGES.
    THX.

    Hi,
    Please refer the code below:
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Thanks,
    Sriram Ponna.

  • Remove XML Tags with White space.

    Hi All, I have a scenario like the below code where I have empty spaces in few columns of my tables. I create XML of the data and send it. There is a lot of code such and I can't add ISNULL() on each and every column. Is there any simple one line code working
    with the XML so that I can remove the tags with only empty spaces. TIA.
    DECLARE @xml1 VARCHAR(max)
    DECLARE @xml2 VARCHAR(max)
    set @xml1 = (SELECT 1 AS Col11, ' ' AS Col21, 'ABC' AS Col31 FOR XML RAW, ELEMENTS)
    set @xml2 = (SELECT 2 AS Col12, ' ' AS Col22, 'ABC' AS Col32 FOR XML RAW, ELEMENTS)
    DECLARE @xml xml;
    SET @xml = Cast('<ROOT>' + ISNULL(@xml1, '') + ISNULL(@xml2, '') + '</ROOT>' as xml)
    SET @xml.modify('delete //*[not(node())]');
    -- Some Way to Remove the XML Tags with Empty space here.
    select @xml as XMLString
    /* Output of the Above script.
    <ROOT>
    <row>
    <Col11>1</Col11>
    <Col21> </Col21> -- This XML Tag with a white space should be removed
    <Col31>ABC</Col31>
    </row>
    <row>
    <Col12>2</Col12>
    <Col22> </Col22> -- This XML Tag with a white space should be removed
    <Col32>ABC</Col32>
    </row>
    </ROOT>
    Welcome to MSDN Forums.
    Feel free to ask your questions and Please Note to Vote all helpful topics and
    Mark all answering posts.
    You Value Community's efforts and Community values your faith.
    - Arun Kumar Allu

    It would have helped if there had been a trim() function in XQuery.
    With some trial and error and inventive thinking I came up with this:
    <span style="color:Blue">SET</span> @xml.modify(<span style="color:#A31515">'delete //*[. <= " "]'</span>);
    As they say: it seems to work. But I leave no warranties.
    Erland Sommarskog, SQL Server MVP, [email protected]
    Wow Erland  this
    seems to work, I need to test it against my data and update on this. Thanks again.
    Welcome to MSDN Forums.
    Feel free to ask your questions and Please Note to Vote all helpful topics and
    Mark all answering posts.
    You Value Community's efforts and Community values your faith.
    - Arun Kumar Allu

  • p tags with attributes not removed from JTextPane

    We are using HTMLEditorKit with JtextPane to create a HTML Document Editor, for our project. [JDK 1.3.1.]
    When we have a simple <p> tag for paragraph in HTML and we start deleting things from end of the document, it works fine. But when we have a <P> tag with attributes like <p align='CENTER'> the delete key deletes the characters but the cursor remains in the line below and doesnot move up as the characters of above para get deleted. The HTML also retains the <p align='CENTER'> tag, which should have been removed. It seems its not able to identify <p> tags with attributes as Html para tags, and so not deleting it.
    How do we solve this without migrating to jdk1.4 ? Please help.

    Usually attributes such as 'align=center' are deleted along with a tag, regardless of whether it is a p tag or another one. But you would have to carefully test what exactly gets deleted because attributes are not only stored with paragraphs. They can exist for single characters and as well come from a style sheet.
    The best is to generate a dump of your document before and after deletion.
    You can use something like the below code (it is not optimized at all and thus could be implemented better but it works) to produce a dump
      public void listElements(Element elem, int indent) {
        int i;
        String is = getIndent(indent);
        String elemName = elem.getName();
        Document elemDoc = elem.getDocument();
        String cont = "";
        String theText = "";
        System.out.println(is + "--start-----");
        System.out.println(is + "Element Name:" + elemName);
        if(elemName.equals(new String("content"))) {
          try {
            theText = elemDoc.getText(
                    elem.getStartOffset(),
                    elem.getEndOffset() - elem.getStartOffset());
            System.out.println(is + "Content: " + theText);
            if(theText.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(theText.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
          catch (Exception e) {
        listAttributes(elem, indent);
        if(!elem.isLeaf()) {
          for(i=0;i<elem.getElementCount();i++) {
            listElements(elem.getElement(i),indent+2);
        System.out.println(is + "---end----");
      public void listAttributes(Element elem, int indent) {
        Object key;
        String attr;
        String attrName;
        int pos;
        String is = getIndent(indent);
        AttributeSet as = elem.getAttributes();
        Enumeration an = as.getAttributeNames();
        try {
          while(an.hasMoreElements()) {
            key = an.nextElement();
            attrName = key.toString();
            attr = as.getAttribute(key).toString();
            System.out.println(is + "Attribute Name: " +
                      attrName + " Attribute Content: " + attr);
            if(attr.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(attr.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
        catch (Exception e) {
          e.printStackTrace();
      }Hope that helps
    Ulrich

  • XML tag Main/@versionMajor has incorrect value 002; expected value is 003

    Dear experts!
    I have created a file to proxy scenario. When sent out of XI the following message occurs:
    O, btw, I have tried both XI 2.0 and 3.0 in the comm. channel and a fault message is present.
    What's the matter???
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
      <SAP:P1>Main/@versionMajor</SAP:P1>
      <SAP:P2>002</SAP:P2>
      <SAP:P3>003</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>XML tag Main/@versionMajor has incorrect value 002; expected value is 003</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your suggestions!
    <i>Will reward points if answers are helpful</i>

    Hi.
    Can you copy past your xml input payload...
    Check out this thread...he has same issue...n its resolved..
    XI 3.0 and external Java client/web service
    Use the url:
    http://hostname:port/XISOAPAdapter/MessageServlet?version=3.0&channel=:SOAPRequest:SOAPIn
    Nilesh
    Message was edited by:
            Nilesh Kshirsagar

  • Error? on Example 16-7 XMLFOREST: Generating Elements with Attribute and Ch

    Error in example on page http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1028612
    Example 16-7 XMLFOREST: Generating Elements with Attribute and Child Elements
    Example appears as
    SELECT XMLElement("Emp",
                      XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                      XMLForest(e.hire_date, e.department AS "department"))
    AS "RESULT"
    FROM employees e WHERE e.department_id = 20;
    1. employees table not qualified as hr.employees
    2. e.department as "department" should be e.department_id as "department"
    corrected would be
    SELECT XMLElement("Emp",
                      XMLAttributes(e.first_name ||' '|| e.last_name AS "name"),
                      XMLForest(e.hire_date, e.department_id AS "department"))
    AS "RESULT"
    FROM hr.employees e WHERE e.department_id = 20;albert

    It was subreport-related, though I still do not know the exact root cause.
    I was having trouble with both the built-in export as well as a custom process.
    Removing the subreports as suggested, I isolated the failure to one of the three subs and rebuilt this subreport from scratch (it was only three fields) and now the report has no trouble with the pdf export. I am not sure if it had a resolvable technical issue or if it was just corrupted, as it is now working, I am not going to expend much energy on finding out.
    Thanks for the suggestion.

  • I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either.

    I have an airport express and want to know how to set up two different wireless networks. One with 5GHZ and one with 2.4GHZ so different devices can connect to either. I have an iphone 4 that will not connect to 5ghz.
    thank you!

    Your AirPort Express is already providing two separate 2.4 GHz and 5 GHz bands, but each band is using the same wireless network name.
    This is the default setup for the AirPort Express, which is recommended for most users. The theory here is that devices will automatically connect to the best quality signal based on their capabilities and distance in relation to the AirPort Express.
    It is possible to assign a different name to the 5 GHz band, and then "point" devices at that network to connect. Some users swear by this option.....(I am not one of them).... but you might want to give it a try to see how it works for you.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the AirPort Express
    Click Edit in the smaller window that appears
    Click the Wireless tab at the top of the next window
    Click Wireless Options near the bottom of the next window
    Enter a check mark next to 5 GHz Name.....which will automatically add "5 GHz" to the network name....so you can identify it
    Click Save, then click Update and wait a full minute for the Express to restart
    Now you will need to "point" your 5 GHz capable devices at the 5 GHz network name.  2.4 GHz devices will connect to your "other" network name.

  • Embedding inline HTML data in XML using the mx:XML tag with &lt; and &gt;

    What is best practice for embedding HTML within the
    <mx:XML> tag? Programmatically, I can implement this
    successfully:
    [Bindable]
    public var xmlDP:XML = <component data="&lt;" />;
    However, I get the following error if I try to store the same
    data inline in an mx:XML tag, as such:
    <mx:XML id="xmlDP">
    <component data="&lt;" />
    </mx:XML>
    Error #1095: XML parser failure: Unterminated attribute.
    If I change the MXML tag as follows, it works fine:
    <mx:XML id="xmlDP">
    <component data="&amp;lt;" />
    </mx:XML>
    Unfortunately, I also can not source the mx:XML tag to an XML
    file which uses &lt; or &gt; codes, as it yields the same
    results. This leads me to believe that the <mx:XML> tag does
    not support the special character codes for < and >, but why?
    Incidentally, this code also gives a 1095 error:
    <mx:XML id="xmlDP">
    <component data="&#0060;" />
    </mx:XML>
    This is causing an issue with my source data as it is not
    hand typed into Flex, and standard XML supports the &lt; and
    &gt; codes. I have tried a full HTML string, as shown below,
    but this also generates the error:
    <mx:XML id="xmlDP">
    <component data="&lt;b&gt;Test&lt;/b&gt;"
    />
    </mx:XML>
    Many thanks for any input you may have!

    I’m generating the XML source file with
    Microsoft’s XML Notepad 2007. It will encode invalid special
    characters automatically. My understanding is that this is the
    proper way to handle the less than symbol in a XML string, that is
    to say using the &lt; code.
    With respect to the escape and un-escape methods, I am able
    to successfully implement these in AS, but not in MXML. This makes
    sense considering they are AS methods, but I was hoping to be able
    to do something like:
    <mx:XML id="xmlDP">
    <component data="escape('<');" />
    </mx:XML>
    This gives the following compilation error:
    The value of attribute "data" must not contain the '<'
    character.
    As does using the escape character as such:
    <mx:XML id="xmlDP">
    <component data="\<" />
    </mx:XML>
    Below is an example of what the escape character may be used
    for in AS:
    var myString:String = "\"";
    trace(myString);
    // result: "
    Likewise, I can escape the < character as such:
    var myString:String = escape("<");
    trace(myString);
    // result: %3C
    <mx:XML id="xmlDP">
    <component data="%3C" />
    </mx:XML>
    trace(un-escape(xmlDP.@data));
    // result: <
    As you can see, using %3C and unescaping in AS will yield the
    correct result; however, this is not a practical method of
    representing the data in MXML as I would have to write an AS method
    to un-escape the XML string anyway, so I might as well just store
    the data in AS to begin with. I was hoping for a way to source an
    mx:XML object, without having to load it into ActionScript
    manually. Here’s an example of the functionality I would
    expect:
    <mx:XML id="xmlDP">
    <component data="&gt;" />
    </mx:XML>
    trace(xmlDP.@data);
    // result: >
    Only this does not work for the less than symbol. I’m
    assuming at this point that this is a bug in the Flex compiler.
    Thanks again for your help troubleshooting this one!

  • Issue with working on a webservice that has  xml elements with attributes

    This is  a branchout of Thread: Some more complex sample of invokin WS needed_
    We are working on a project that involves a outbound SALT Web service call that includes complex elements with attributes..We are looking for options of how to use FML API's to pass these attribute values from the application code.
    We opened a ticket with oracle where we were suggested to frame the entire xml and pass the xml using the FML32 of the complex element. But when we framed the xml for Service and put the entire XML which includes the attributes using the FML ID of Service.
    Please find a sample Schema and XML similar to the one we are working on...its associated code
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="Service" type="Service_Type" nillable="true">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="Service_Type">
              <xs:sequence>
                   <xs:element name="DateTime" type="xs:dateTime" nillable="true">
                   </xs:element>
                   <xs:element name="UUID" nillable="true">
                   </xs:element>
                   <xs:element name="Status" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded">
                   </xs:element>
              </xs:sequence>
              <xs:attribute name="Version" type="xs:string" use="required">
              </xs:attribute>
              <xs:attribute name="Name" type="xs:string" use="required">
              </xs:attribute>
         </xs:complexType>
    </xs:schema>
    The sample XML is :
    ___<?xml version="1.0" encoding="UTF-8"?>___
    ___<!--Sample XML file generated by XMLSpy v2010 rel. 2 (http://www.altova.com)-->___
    ___<Service Name="TestService" Version="1.1" xsi:noNamespaceSchemaLocation="Untitled6.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">___
    ___     <DateTime>2001-12-17T09:30:47Z</DateTime>___
    ___     <UUID>text</UUID>___
    ___</Service>___
    wsdlcvt generated the mif file with Service as a FML32 type and all its child elements as "mbstring". We tried to leave as it is and we also tried to replace all the child elements and just had a mif entry for "Service" as a mbstring neither produced a different output...Tried to dump using Ferror32 which did not dump any..._
    The sample C/C++ code as per suggestions were to do the following...
    _1) Have a string with the entire XML for Service_
    xmldata="<Service Name=\"TestService"\ Version="1.1\"_ xsi:noNamespaceSchemaLocation=\"Untitled6.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">_
    _     <DateTime>2001-12-17T09:30:47Z</DateTime>_
    _     <UUID>text</UUID>_
    _</Service>";_
    _2) Use Fmbpack32 to create a mbstring data_
    _memcpy(reqmbptr, (char*)xmldata.data(),xmldata.length());_
    _len=xmldata.length();_
    _Fmbpack32(mbcodeName,reqmbptr,len, packdata,(FLDLEN32 *)&packedlen,0);_
    userlog("Size of packedlen is %d",packedlen);
    3) Add the packed data to the output buffer
    Fadd32(fmlbuffer,Service, packdata,packedlen );
    But we do not see the Service tag populated in the GWWS outbound request.Everything else makes it....any help on how to move ahead would be appreciated...

    It seems you switch to the 10gR3 GA and now the whole XML data is mapped to FLD_MBSTRING.
    I will forward my sample to you by mail, but this sample is not offical sample, it is just QA test case. You can refere it and check what's the difference.
    Please let me know your mail address.
    Regards,
    Xu he

  • Combing jstl/xml tags with jsf - can't pass parameter

    I'm using the jstl/xml tags to parse portions of an xml document. For some value of an attribute I want to render a search link, many of these links may be rendered on a page and I need to track which one has actually been selected using the id of the generating xml element.
    This is what I've tried, both using h:commandLink and a f:param and t:commandLink (tomahawk) and a t:updateActionListener.
    It doesn't seem to be possible to expose the resolved value of the xpath ="@id" in any way that either the tomahawk or core jsf tags can see.
    <x:when select="$control[@type='SEARCH']">
    <input type="text" id='<x:out select="@id"/>' disabled="true">
    <x:set var="selectedId" select="@id"/>
    <h:commandLink action="#{pack.search}" value="#{msg['actionPack.label.search']}" styleClass="linkNoUnderline">
    <f:param value="${selectedID}" name="selectedID"/>
    </h:commandLink>
    <%--<t:commandLink action="#{pack.search}" value="#{msg['actionPack.label.search']}" styleClass="linkNoUnderline">
    <t:updateActionListener property="#{pack.searchingId}" value="${searchId}"/>
    </t:commandLink>--%>
    </x:when>

    The JSF and JSTL tags don't really play well together.
    Particularly conditional and looping tags.
    My suggestion would be - if you're using JSF, don't use JSTL.
    You are right in that the JSF tags don't bother with the xpath expression.
    Would it be possible to shift the xml logic into an action/bean somewhere, and just present the jsp page with a list of relevant objects?
    If I understand you are trying to determine which link was clicked on a page? In the JSF action "pack.search"?
    What method of iterating are you using? an x:forEachLoop? A datatable?

  • Extending VOs with attributes and creating new treetable columns

    Hi,
    I am relatively new to the ADF scene so please bear with if what I have in my mind is not even possible with ADF. I have searched hi and lo for a solution and now I thoughts it time to ask the community.
    Anyways this is what I want to do. I have a simple DB Table that has a hierarchy i.e Trees with roots much like the Employee hierarchy. Except this table has ids for items that come from external systems ( via Web Services in my case ) and / or ids to items in a table that resides in the local schema. So basically this structure table of mine only has relationships and the detail items need to be joined via an association ( in ADF terminology ) in the treetable component somehow.
    * Now creating the structure hierarchy is not a big issue. I have that part done already.
    * I have the VO from WS ready that gets the items that I might need to show as detail columns in the tree table.
    * Querying the local item Detail VO for detail rows might also be not that problematic.
    * Merging the above 2 columns to create a consolidated row set is also not that challenging whereby each column header is premapped to internal and external fields. This mapping is configurable to add more fields as required by a user to the treetable.
    What I am struggling with is that when I have this merged row set, how will I make it appear on the UI. The treetable seems to utterly not support this i.e. adding new columns at runtime. Following is what I have been able to establish till now.
    * The addDynamicAttribute methods on the View Object are not meant for this purpose. While they do add the attributes and you can set and get them after using this method, they do not render and I can't find a way to dynmically rendering them somehow for tree table.
    * Looked at the ADF dynamic components. They support only table and page. No go. Or do the whole tree thing somehow in the table component, Will look odd but might still work.
    * Looked at this article ( http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html ) . I found a comment in the forum regarding this that this might not be all that efficient. Not to mention the fact that it uses the deprecated TreeModels class in 11g.
    ** Just regarding this apporach what are the new 11g recommended TreeModel classes to be used instead of the deprecated one. I have read the follow-up post but that just points to the location of where the deprecated classes moved to in 11g under the apache contribution. And makes the example work under 11g. What was this TreeModel class replaced with. Anyone knows ?
    ** How could I access my VO objects in the TreeTableApater ? Can I declare my merged View object wrapped in a TreeItem POJO object. Theoretically it is on the view layer right ?
    ** If this approach is inefficient has anyone another solution that might work ?
    Or just has anyone managed to extend the treetable in any different sort of way. Any tips/help pointers would be deeply appreciated.
    Best Regards,

    Hi,
    So I had some time to look at this problem again. I created a ChildPropertyTreeModel and binded it to my treetable component and moved the generation of the columns to the jspx page. I got it mostly working but the columns generation part mostly escapes me still.
    here is how the jspx page looks like that renders the treetable, and which works fine :
    <af:treeTable rowBandingInterval="0" id="dynTTbl" var="row" expandAllEnabled="true"
    binding="#{backingBeanScope.DynamicTreeTableBB.dynamicTreeTable}"
    value="#{backingBeanScope.DynamicTreeTableModel}">
    <f:facet name="nodeStamp">
    <af:column sortable="false" headerText="Node Stamp" id="c1">
    <af:outputText value="#{row.tableColumnVal[0]}" id="ot1"/>
    </af:column>
    </f:facet>
    <af:forEach begin="1" end="2" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{row.tableColumnVal[status.index]}"/>
    </af:column>
    </af:forEach>
    </af:treeTable>
    I want the forEach loop to look a bit differently like below :
    <af:forEach items="row.tableColumnVal" var="columnVal" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{columnVal}"/>
    </af:column>
    </af:forEach>
    This should work for a list or array but evidently in my case it is not. I have a suspicion that the "items" attribute is unable to recognize the row.tableColumnVal attribute of mine. I have no way of checking this out or finding out if I am doing something wrong.
    My sample project can be found here, if anyone quickly wants to run this on Jdev 11g
    http://rapidshare.com/files/438880281/TreeTableTest.zip
    P.S. I have tried to convert the tableColumnVal attribute to a List an array and a Map. The first forEach syntax works everytime but the second one fails always and I want the second one to work somehow.
    Regards,

  • Error "XML tag Main/@versionMinor has incorrect value 001; expected value."

    I'm going to describe our scenario.
    We have created an Abap proxy in a BW system to run a XI interface. The abap proxy in BW is connected to the IE of a XI 3.0 system. That scenario runs without problems with BW 3.5 (basis 6.40). Now, we are migrating the release of BW to 7.30. we have created the Abap proxy in the migrated BW system but when we run the interface the next message is returned:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
      <SAP:P1>Main/@versionMinor</SAP:P1>
      <SAP:P2>001</SAP:P2>
      <SAP:P3>000</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>XML tag Main/@versionMinor has the incorrect value 001. Value 000 expected</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    does anyone know what the problem is? is there a version conflict between BW 7.3 and XI 3.0?
    Thanks very much

    Hi,
    I'm not an expert, but it might be that you would also need to update the XI content to match the new release and then regenerate the proxy.
    It does indeed seem to be a difference in the version of the proxies between BW 3.5 and BW 7.3.
    Regards,
    Horia

  • Open Hub with Attributes and Texts

    Hi,
    I´d like to know if it´s possible to have one open hub (database table) with texts and attributes.
    There´s no problem when I create it or it´s transformations and DTP´s, but when I try to load texts, after attributes load, it always generates a dump: SAPSQL_ARRAY_INSERT_DUPREC.
    I´d like to know a way without using a DSO, any suggestions?!
    Kind Regards,
    Tomas

    Hi,
    Pls chk SAP notes system, check SAP note 668466 for some help for this error.
    *As according to SAP NOTE ;668466*
    Summary
    Symptom
    You load master data attributes or texts for a characteristic. The loading terminates with runtime errors of the type SAPSQL_ARRAY_INSERT_DUPREC or with error message RSDMD 199. The termination point is in the DBFIRE method of the CL_RSDMD_UPDATE_MASTER_DATA class.
    Other terms
    Loading master data, attributes, texts, SAPSQL_ARRAY_INSERT_DUPREC, CL_RSDMD_UPDATE_MASTER_DATA, DBFIRE
    Reason and Prerequisites
    When you load attributes or texts, data records are usually inserted in the master data tables of the characteristic using an array insert statement (P, Q, X, Y, T tables). This results in a SAPSQL_ARRAY_INSERT_DUPREC runtime error if data records that are to be inserted and that relate to the unique primary key of the relevant database table already exist in this table. The following possible reasons are currently known for the occurrence of the SAPSQL_ARRAY_INSERT_DUPREC runtime error:
    1. Data inconsistencies in the master data tables of the characteristic
    SAPSQL_ARRAY_INSERT_DUPREC runtime errors or RSDMD 199 may occur if the data appears in an inconsistent status in the master data tables of the characteristic before you load attributes or texts. Notes 323140, 566044, 592757 and 599269 describe this (among other things) in more detail.
    2. Parallel loading of nondisjunct data packages
    If master data attributes are loaded over several dialog processes that are running in parallel, you must guarantee that the data packages of the relevant request are strictly disjunct concerning the characteristic value. This means that all data records that belong to a certain characteristic value may only be contained in a single data package. If data records of a certain characteristic value are distributed over several data packages, this may cause conflicts during the parallel loading of these packages when the master data tables are accessed and this may result in SAPSQL_ARRAY_INSERT_DUPREC runtime errors.
    The same conditions that apply to loading attributes also apply to loading language-independent master data texts. If language-dependent texts are loaded in parallel, the data packages must be disjunct in relation to the combination of characteristic value and language indicator.
    Note 566044 also describes the problematic nature of nondisjunct data packages or duplicate or overlapping data records.
    3. Parallel loading of time-dependent attributes or texts
    When you load time-dependent attributes or texts, a data record that is to be loaded is assigned to a characteristic value and also specifically to a time interval within which the contained attribute values or texts are valid. For this reason, requests for loading time-dependent attributes or texts typically contain several data records for each characteristic value. If data records of a certain characteristic value or the combination of characteristic value and language indicator are distributed over several data packages, this may (as already explained) cause conflicts when the master data tables are accessed and may result in SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199.
    4. Delta update of an ODS object in a characteristic
    If you use a delta update from an ODS object to load master data attributes or texts, the activation of the ODS object determines the contents of the data packages that are used for loading the attributes or texts. If all of the ODS loading requests that are used as the data basis for the update into the characteristic are activated together in one step, this guarantees that the system sets up the data packages strictly disjunct in relation to the key fields of the ODS object. If the key fields of the ODS object are displayed one for one on the compounded characteristic value in the update rules, the data may be updated to the characteristic in parallel and by package.
    However, if ODS loading requests that were activated at different times appear in the data basis for the update, data records of a certain ODS key or characteristic value may be distributed over several data packages. As already explained, this may cause conflicts when you access master data tables of the characteristic, and it may result in SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199.
    This problem is also described in Note 666213.
    5. Simultaneous loading of attributes and transaction data
    If, when loading attributes of a characteristic, you discover that there are still no entries in the master data tables (P, Q) for a specific characteristic value, the system prepares to insert corresponding data records into these database tables. You can load transaction data into an InfoCube or an ODS object, for example, with the option to create missing master data entries for characteristics that involved during the loading. If a request now creates entries for transaction data in the master data tables (P, Q) of the characteristic before the process has inserted corresponding data records into the master data tables (P, Q) for loading attributes for this characteristic, this may result in a SAPSQL_ARRAY_INSERT_DUPREC runtime error or error message RSDMD 199.
    This problem may also occur if you load attributes simultaneously for a characteristic that contains the other characteristic as a navigation attribute or compounding part. If a characteristic is compounded to other characteristics or if it contains characteristics other than the navigation attributes, the system also creates SID values for these dependent characteristics when the attributes are loaded depending on the settings in the InfoPackage.
    Solution
    To repair a possible inconsistency in the data, implement the RSRV test for master data.
    To avoid SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199 when you load master data, carry out the following actions. The actions to be performed in each case depend on which of the above-mentioned reasons is responsible for the runtime error:
    1. Data inconsistencies in the master data tables of the characteristic
    If data inconsistencies are responsible for the runtime error, you can usually use the tests in transaction RSRV or the RSDMD_CHECKPRG_ALL program to solve this problem. Notes 323140, 566044, 592757 and 599269 describe these (among other things) in more detail. If you cannot implement an automatic correction in this way, you may have to use an ABAP program that is adjusted to the relevant situation to restore the data consistency.
    2. Parallel loading of nondisjunct data packages
    If the runtime error does not lead back to the parallel loading of nondisjunct data packages, you must identify the duplicate data records that cause the problem. As described in Note 566044, you can change the insertion into master data tables from one array insert to an individual insert statement. If you use a single record insert statement to insert data records, duplicate data records are logged in the monitor by error messages (RSDMD 196). If the data records of a failed request are still available in the PSA, you can also search for duplicate data records directly in the relevant PSA table.
    You may also create duplicate data records if key values are changed in the transmission rules or update rules. If relevant rules are defined, you should check these to see if they can possibly create duplicate data records. If this is the case, you must correct the rules accordingly.
    3. Parallel loading of time-dependent attributes or texts
    The extractors used for loading time-dependent attributes or texts cannot guarantee that all data records assigned to a certain key value are contained together in only one data package. For this reason, to avoid SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199, you should not load time-dependent attributes and texts in parallel. Data packages are processed serially if the 'PSA only' and 'Update Subsequently in Data Targets' settings under 'Processing' are used in the InfoPackage.
    4. Delta update of an ODS object in a characteristic
    To avoid SAPSQL_ARRAY_INSERT_DUPREC runtime errors or error message RSDMD 199 during the delta update from an ODS object to a characteristic, you must ensure that the data basis used for the update to the characteristic consists exclusively of ODS loading requests that were activated together in one step only. Note 666213 describes in detail how you can ensure this.
    5. Simultaneous loading of attributes and transaction data
    If the runtime error occurs because another load task creates SID values or master data for the same characteristic at the same time when attributes are loaded, you can only solve the problem by rescheduling. The load task in question must be scheduled in such a way that you can exclude simultaneous processing.
    *pls assign points,if info is useful*
    Regards
    CSM reddy

Maybe you are looking for

  • Write up for current year acquisition

    Dear Friends, I have acquired asset worth 10000 in current fiscal year (date 01.09.2008)  and also calculated depreciation for 7 months ie upto 31.03.2009. We have posted depreciation through tcode AFAB. Now we want to writeup some amount to this ass

  • Font In Title Bar in Xfce4

    I've accessed the User Interface dialogue in Xfce's System Settings to change the font appearance in Xfce4-beta and indeed everything is altered correctly -- except for the title bar which continues to use the Sans font. What should I do to get that

  • IPhoto Library gone after update to OSX Yosemite 10.10.3

    Put another way, how do I get the new "Photos" program associated with the new OSX Yosemite v. 10.10.3 to see my former iPhoto library that is stored on an external hard drive? Here's the full story: This morning I updated my MacBook Air to OSX Yosem

  • Help with a program (object modelling)

    Hi. I hope someone can help me with this, give me some hints. First there is a category Human, which has information about name, gender and age. Human shall be saved in a class Town using a table. The constructor Town(int numberhumans) has parameters

  • Failed BEXANALYZER gateway errors stay in DISCONNECT state

    When I check SMGW I can see gateway errors for BEXANALYZER. Normally the parameter gw/conn_disconnect would cleanup these sessions (session w/ state of DISCONNECT). But this parm does not cleanup registered  server programs. Any ideas how these can b