How to send in xml tag a ESCAPE CONTROL ( chr27 )

Hi,
For a Check Printing custom (R12), I need to send to a matrix dot printer a xml file containing a "ESC J;" every 56 rows.
The template that I'm using is an e-Text type.
1) Does anybody know how I can write this ESCAPE CONTROL in e-Text?
2) Does anybody know why the xml parser gets error when I create a new tag with the value of chr(27) in the iby hook package (IBY_FD_EXTRACT_EXT_PUB).?
I do
l_escape := CHR(27);
SELECT XMLConcat(XMLElement("Extend",
XMLElement("XX_ControlPageESC",l_escape) )
INTO l_ins_ext_agg
FROM dual;
Thankss a lot!!
Valeria

Hi Valeria,
I've also tried getting escape characters into ETEXT and failed.
I think a better option is to create a new printer driver SRW file with pagebreak declared as char 27 every 56 rows, and use that to print to your printer.
Regards,
Gareth
http://garethroberts.blogspot.com
http://www.virtuate.com

Similar Messages

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • How to get the XML TAG name itself instead of TAG value

    Hi All,
    I have a question here
    I want to retrieve the XML tag from a XML file instead of its value.
    Example:
    <item>Colgate</item>
    Now I want to retrieve "item" as output from XPath expression, I dont want its value as "colgate"
    How to do that...?
    Thanks
    -Praveen

    You can do this with an axes XPatch expression:
    child::node()/name()
    For more info see: http://www.w3schools.com/xpath/xpath_axes.asp
    HTH,
    Bas

  • How to Find the XML Tag in indesign

    HI!!<br /><br />We are working with XML work flow in indesign. In indesign how could we find the XML Tag in indesign.<br /><br />Example::<br />In the Below list we could have to find the xml tag <chapter> in story editor or in the main text frame in indesign using find option. Kindely sent if any Plugins is available.<br /><br />For exmaple:<br />************<br /><book><br /> <part><br /> <chapter><br />  <head><br />   <para><br />    <bold><br /><br />Thanks,<br />C.K.Venkatesan

    I imported the xml file in vb.net. now i want to find the number of pages and no. of elements. i found out it. but i was not able to find which elements are placed in which page. i want that information. plz kindly help. i am using vb.net. for eg. <ce:figure> placed in which page no., <ce:sections> placed in which page no., etc..,

  • How to read duplicate XML tag?

    Hi to all gurus,
    Currently I am working on XSLT transformation. I encountered a problem when I have to read a random number of xml tag with the same names.
    sample:
    <product_code_list>
    <product_code>12345</product_code>
    <product_code>12333</product_code>
    <product_code>12233</product_code>
    </product_code_list>
    My xslt can only manage to read the 1st row. How can it be possible to read all the 3 rows?
    xslt:
    <product_code_list>
    <xsl:for each select-value-of='product_code_list'>
    <product_code_list1>
    <product_code><xsl: select-value-of ='product_code'></product_code>
    </product_code_list1>
    </xsl:for each>
    </product_code_list>
    Many thanks in advance for reading this. Please assist to solve this. Point will be generously awarded!

    Hi Mr Raja!
    Thanks again for your help. I felt so embarrassed.
    The product is produced from another source dynamically. Hence the list can contain from 1 to any number of products.
    I tried to use the for-each but another problem arise. the structure is created for the products, but it is all empty inside when i used the debugger to go through the code.
    TYPES:
    TPRODUCT(10) OCCURS 0,
    BEGIN OF PRODUCT_LIST,
      PRODUCT TYPE TPRODUCT,
    END OF PRODUCT_LIST,
    PL TYPE PRODUCT_LIST OCCURS 0.
    DATA:
    VENDOR TYPE STANDARD TABLE OF PRODUCT_LIST INITIAL SIZE 0,
    XML_STRING TYPE STRING,
    xslt_error     TYPE REF TO     cx_xslt_exception,
    xslt_message     TYPE     string.
    CLEAR xml_string .
    CONCATENATE
    `<myXML>`
    `<PRODUCT_LIST>`
    `<PRODUCT>12345</PRODUCT>`
    `<PRODUCT>12333</PRODUCT>`
    `<PRODUCT>62233</PRODUCT>`
    `</PRODUCT_LIST>`
    `</myXML>`
    INTO XML_STRING.
    CLEAR VENDOR.
    TRY.
          CALL TRANSFORMATION ('ZTESTCHINXSLT')
          SOURCE XML XML_STRING
          RESULT VENDOR = VENDOR.
        CATCH
        cx_xslt_exception INTO xslt_error.
          xslt_message = xslt_error->get_text( ).
      ENDTRY.
    XSLT:
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/abapxml" version="1.0">
    <xsl:template match="/">
    <asx:abap xmlns:asx="http://www.sap.com/abapxml">
    <asx:values>
    <xsl:for-each select="myXML">
    <VENDOR>
    <xsl:for-each select="PRODUCT_LIST">
    <PRODUCT_LIST1>
    <PRODUCT>
    <xsl:for-each select="PRODUCT">
    <P>
    <xsl:value-of select="PRODUCT"/>
    </P>
    </xsl:for-each>  
    </PRODUCT>
    </PRODUCT_LIST1>   
    </xsl:for-each>
    </VENDOR>
    </xsl:for-each>   
    </asx:values>
    </asx:abap>
    </xsl:template>
    </xsl:transform>
    Message was edited by:
            swee chin

  • How to send/receive XML using JSP

    Hi,
    I'm new to all this JSP/XML stuff so apologies if this is trivial.
    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?
    Once the XML has been sent, how do you use JSP to request the XML file? I've figured out how to parse it already.
    Also, is it possible to call xsql directly within JSP?
    Thanks!

    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?The question is, does anybody understand what you mean by this. Let me take a guess. You want to upload an XML file to a server. If this guess is right, then the answer is don't use JSP to do that. JSP is for generating output to be sent to a client. Use a servlet to handle an upload. And you don't need to write it yourself, there are already several file-upload servlets available on the web.
    Second guess: you have a POST request that asks your server to send an XML file back to the client. If it's a static XML file you don't need a JSP or a servlet or anything, just let your web server handle it just like any other static file. If it's dynamically generated then there's an answer worth giving, but I doubt that this is your question. But if it is, let us know.

  • [HTTP Sender]How to send different XML using static URL

    Hi all,
    I have a problem, my legacy system send XML messages to SAP XI by HTTP, I know that I need to use HTTP Sender adapter, the problem is that legacy system support only a static URL. I have more than one interface, how could I fix this problem?
    Can I send the XML message to SAP XI without define INTERFACE on URL? How can I handle this?
    Thank in advance,
    Daniel Torres

    Hi Srinivas,
    The legacy system is a java application, that send XML messages to SAP XI server using HTTP protocol. So I just ask to legacy system team to change the application to add <b>server</b>, <b>namespace</b> and <b>interface</b> attributes to the URL querystring.
    So for each XML message you should especify mesage interface that it belongs to. You do it by especifying on URL as message atribute for exemple:
    HTTP://[SAPXISERVER]:80[SYSTEM ID]/sap/xi/adapter_plain?service=[BS SERVICE]&namespace=[MESSAGE INTERFACE NAMESPACE]&interface=[MESSAGE INTERFACE]
    So if you have for example information belows:
    <b>MESSAGE INTERFACE</b> = MI_MYMESSAGEINTERFACE_IB
    <b>MESSAGE INTERFACE NAMESPACE</b> = urn:teste:mymessageinterface
    <b>SERVICE</b> = MY_LEGACY
    <b>SYSTEM ID</b> = 10
    <b>SAPXISERVER</b> = MYSAPXI
    Your url should looks like: http://MYSAPXI:8010/sap/xi/apadter_plain?service=MY_LEGACY&namespace=urn:teste:mymessageinterface &interface=MI_MYMESSAGEINTERFACE_IB
    You should have a different message interface for each XML that you send to SAP XI.
    Message was edited by:
            Daniel Torres
    Message was edited by:
            Daniel Torres

  • How to send the  XML  format SOAP request to retrieve the Opportunity

    Hello,
    Can any body suggest me how to send the SOAP request to CRM OnDemand in the format of XML to retrieve the Opportunity ?.
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                               

    I'm afraid you can't.
    If you want to export/import, you should consider using loader, insert (no sqldev needed for import) or even csv (sqldev needed for import) . If you have a lot of data, consider external tools like Data Pump.
    Have fun,
    K.

  • How to send concurrent xml request to Soap service.

    Hi
    I am working in a scenario. where i need to send more than 10 concurrent xml request to soap service hosted in IIS.
    and that service directly pools to biztalk recieve location. Presently i am sending a single request through soap ui.
    Is there any tool available to send more than 10 xml request to service. If not then how we send through C#.code

    Hi Anagh,
    Microsoft BizTalk LoadGen 2007 Tool would be the perfect fit for your requirement where you need to send "Concurrent" request to SOAP.
    Using LoadGen you can configure it use to number of concurrent threads to send messages. In its config file, it has a section called
    <NumThreadsPerSection> which can be used to set the number of concurrent threads that LoadGen will use to send messages.
    Read one of my old blogposts where I have talked about using LoadGen for simulating message load for SOAP services.
    http://indway-is.blogspot.co.uk/2009/01/loadgen-testharness-for-soap-transport.html
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to send a xml to a web service

    Hi All
    I've generated a xml report that I need to send to a web site that I could imagine have a web service to receive the report.
    The question is: how should I send my xml file ??
    I've tried to find docs about it but there are a lot of complex examples and I need to do just this simple job...
    Any idea, example or help will be appreciated...
    Thanks in advance
    <jl>

    You can do anything as simple as a socket all the way up to using a web services protocol like SOAP.
    - Saish
    "My karma ran over your dogma." - Anon

  • How to send a XML file from  SAP    to   WEB SERVICE

    Hi folks,
    i m creating a XML file with purchase order data, while saving the purchase order.now i need to send this XML file to some WEB SERVICE i.e to some perticular address in WEB.
    can anyone give the step by step procedure to do this web service configuration? it's really urgent.
    points must be awarded.
    Thanks & Regards
      pabitra

    Hi all,
    i need to send some purchase order data from SAP to WEB SERVICE. while saving the purchase order, i want to send some data from SAP to WEB SERVICE ( a perticular address in WEB).
    i want to see those datas in xml format in WEB.
    Now i am using SAP 4.7 version. Is this web service configuration is possible or not?
    In SE37, i can not see the CREATE WEB SERVICE option in utilitities--> More utilities menu.is it possible in 4.7???
    can anyone give any suggestion ? it's very urgent.
    Thnaks
    pabitra

  • How  to  send a  XML document using HTTPurlconnection as a  post

    Dear Guru's ,
    I am trying ot send a xml document to a httpserver
    using httpurl connection ..
    It works fine locally ..but over the net it is throwning an exception ..java.io.interupted exception ..
    any ideas .. please send me the code if possible
    Thanks in advance

    Are you opening the input stream or querying the reply headers after writing to the output stream? It's doing one or the other that actually triggers the send.

  • How to filter particular xml tag value using -DBMS_XMLGEN / DBMS_XMLSTORE

    Hi,
    I am using dbms_xmlgen and dbms_xmlstore package to extract xml datafile tag value from file server to oracle database table.
    I have used the below pl/sql program to extract the xml tag values to oracle relational table.Its working fine for me.
    But I would like to extract the values based on particular filter condition.
    The following xml program I have 3 rows I would like extract the xml data based on the following condition .
    Filter condition
    ==============
    the tag <STATE_ABBREVIATION> value shuold be 'CA' and the <CITY> tag value should be Palo_Alto then I will store the ZIPCODE
    ZIP_CODE_EXTN,STATE_ABBREVIATION tag values in the Oracle Relational table.
    The below pl/sql program storing all the three rows but I required the values based on the filter condition that I mentioned earlier.
    Kindly assist me what are the steps that I need to change in this program.?
    XML Program file content.
    ======================
    <ZIPCODES>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>94301</ZIPCODE>
    <ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
    <CITY>Palo_Alto</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
    <ZIPCODE>95302</ZIPCODE>
    <ZIP_CODE_EXTN>9279</ZIP_CODE_EXTN>
    <CITY>LA</CITY>
    </mappings>
    <mappings>
    <STATE_ABBREVIATION>TX</STATE_ABBREVIATION>
    <ZIPCODE>75038</ZIPCODE>
    <ZIP_CODE_EXTN>7837</ZIP_CODE_EXTN>
    <CITY>DALLAS</CITY>
    </mappings>
    </ZIPCODES>
    PL/SQL Program for XML extract.
    ==========
    declare
    charString varchar2(80);
    finalStr varchar2(4000) := null;
    rowsp number;
    insCtx DBMS_XMLStore.ctxType;
    ctx dbms_xmlgen.ctxHandle;
    v_FileHandle UTL_FILE.FILE_TYPE;
    begin
    v_FileHandle := utl_file.fopen('XMLTEST','XML_NEW_CITIES.XML','r') ;
    loop
    BEGIN
    utl_file.get_line(v_FileHandle, charString);
    exception
    when no_data_found then
    utl_file.fclose(v_FileHandle);
    exit;
    END;
    dbms_output.put_line(charString);
    if finalStr is not null then
    finalStr := finalStr || charString;
    else
    finalStr := charString;
    end if;
    end loop;
    insCtx := DBMS_XMLStore.newContext('SYS.ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'ZIPCODES');
    dbms_xmlgen.setRowsetTag(insCtx,'mappings');
    DBMS_XMLStore.clearUpdateColumnList(insCtx);
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIPCODE');
    DBMS_XMLStore.setUpdateColumn(insCtx,'ZIP_CODE_EXT N');
    DBMS_XMLStore.setUpdateColumn(insCtx,'STATE_ABBREV IATION');
    rowsp := dbms_xmlstore.insertXML(insCtx,finalstr);
    end;
    Thanks,
    nat

    Thanks for your reply. :)
    Its working fine in the DBMS_XMLSTORE package. Here I have given the code
    CREATE OR REPLACE TYPE typ_dummy AS  OBJECT
    ( "@ENO"   NUMBER,
      "@ENAME" VARCHAR2(100),
      eno      NUMBER,
      ename    VARCHAR2(100));
    CREATE TABLE EMP
      empno    VARCHAR2(25),
      sal      NUMBER,
      hiredate DATE,
      typ      TYP_DUMMY
    DECLARE
      insCtx DBMS_XMLStore.ctxType;
      rows NUMBER;
      xmldoc CLOB :=
        '<ROWSET>
           <ROW num="1">
             <SAL>1800</SAL>
             <EMPNO>739</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
               <TYP ENO="739" ENAME="Nazurullah">
               <ENO> 1 </ENO>
               <ENAME> ALDRIN </ENAME>
               </TYP>
           </ROW>
           <ROW>
             <SAL>18000</SAL>
             <EMPNO>7369</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP ENO="7369" ENAME="PEPPIN" />
           </ROW>
           <ROW>
             <SAL>37000</SAL>
             <EMPNO>20701</EMPNO>
             <HIREDATE>27-AUG-1996</HIREDATE>
             <TYP>
               <ENO> 20701 </ENO>
               <ENAME> VENKATACHALAM </ENAME>
             </TYP>
           </ROW>
         </ROWSET>';
    BEGIN
      insCtx := DBMS_XMLStore.newContext('emp'); -- get saved context
      -- Now insert the doc.
      -- This will only insert into EMPNO, SAL and HIREDATE columns
      rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
      -- Close the context
      DBMS_XMLStore.closeContext(insCtx);
    END;
    SELECT * FROM emp;
    EMPNO        SAL HIREDATE          TYP(@ENO, @ENAME, ENO, ENAME)
    739         1800 27-AUG-96     TYP_DUMMY(739, 'Nazurullah', 1, ' ALDRIN ')
    7369       18000 27-AUG-96     TYP_DUMMY(7369, 'PEPPIN', NULL, NULL)
    20701      37000 27-AUG-96     TYP_DUMMY(NULL, NULL, 20701, ' VENKATACHALAM ')

  • How to get all xml tags in a text frame?

    I want to get all the xml tags of the text in a text frame. I had tried the following methods but always get the tag binding the frame itself. <br /><br />1) XMLReference objXMLRef = Utils<IXMLUtils>()->QueryXMLReferenceData(textModel, 1);<br /><br />2) XMLReference objXMLRef = Utils<IXMLUtils>()->GetStoryThreadXMLReference(textModel, textIndex);<br /><br />Thanks in advance.

    I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
    Ian

  • Help: How do we retain XML tags inside BPEL

    I have scenario where the entire input (XML) needs to be converted as string object and passed to Java service (WSIF). getVariableData is removing XML tags.
    Input is a XML document with XML Signature in it. Without tags, Java code is not able to verify the signature.
    I am using Apache XML Security libraries. In order for me to verify, code creates Document object (org.w3c.dom.Document) from an inputstream.
    Any help is much appreiciated.

    Hi Clemens,
    First of all, thanks for the quick response. I would appreciate if you could help me little more to understand your suggestion. Currently, my BPEL process input is coming in with a structure, which includes XML information to load invoice along with its digital signature.
    Currently, I am trying to include an activity of Assignement after receiveInput activity to create an Xpath expression of something like this..
    concat(concat("<SignedInvoice>",concat(orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns2:EM_VOUCHER_IN')),orcl:get-content-as-string(bpws:getVariableData('inputVariable','payload','/client:SignedInvoice/ns3:Signature')))) , "</SignedInvoice>")
    Where would I be implementing your suggestion of casting with org.w3c.dom.Element? would it be in the expression builder or does it need to be done somewhere else.
    Thanks again..
    Ramesh

Maybe you are looking for

  • UNINSTALL

    Hello, can you please tell me how to uninstall my sound card drivers. I have a sound blaster audigy se running on windows 7 and my browser is explorer 9. add and remove program just locks up my pc when I try to uninstall anything to do with my sound

  • Making System Calls

    This question has two parts, though they are related. (My goal, in case anyone's curious, is to make a view that can find and index Dilbert cartoons saved on my hard drive.) 1. Can Java call system functions, such as "dir" (on a Windows PC), and catc

  • HT204406 my playlist's don't  match

    today most of my songs in all my playlist on my touch and pad just were gone. so I re-matched with my desk top pc. one of my playlist's has just over 1000 songs when my touch pick up on the re-match it loaded over 2000 songs in that play list. how do

  • F.27 to send e-mail

    Hello Guru: how to set up f.27 to send mail to customer according to e-mail in customer master please. thx in advance.

  • Regarding Support

    Hello , I am new to Production Support as well as BPM.Could you please give most regular problems we will come accross in BPM and please suggests methods to solve them