XML Document Format for JDBC Receiver(Between operation)

Hello everybody,
is there a way to use a BETWEEN operation for the key in a SELECT XML document format????????, I need to filter in the Where for different Statements in teh strcuture as BETWEEN, thanks in advance.
Regards,
Julio

http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Not sure but Check the option of
<key1>
     <col2 compareOperation=u201DLTu201D>val2old</col2>
     <col2 compareOperation=u201DGTu201D>val2old</col2>
</key1>
Thanks,
Beena.

Similar Messages

  • XML SQL format for Prepared statements in batch mode

    Hi
    I want to use the batch mode in JDBC adapter for inserting huge volume of records with better performance.
    so i need to execute the prepared statements in one batch.   Is the XML SQL format for prepared statements below correct ?to<root>
      <stmt>
        <Customers action="SQL_DML">
          <access> INSERT INTO Customers (CompanyName,Address,CustomerID) VALUES($NAME$,$ADDRESS$,$KEYFIELD$)
          </access>
          <key>
            <NAME>IBM</NAME>
            <ADDRESS>Street 3 </ADDRESS>
            <KEYFIELD>CO</KEYFIELD>
          </key>
          <key>
            <NAME>PWC</NAME>
            <ADDRESS>Street 4 </ADDRESS>
            <KEYFIELD>NO</KEYFIELD>
         </key>
        </Customers>
      </stmt>
    </root>
    Please advise

    Hello Experts
    Please throw some light on the above question.
    Thanks in advance.

  • Handling Fault Messages for JDBC Receiver (Syn Inbound)

    Dear Freinds,
    Can we handle fault messages for JDBC Receiver which is synchronous.
    OB Proxy Syn  <>  IB JDBC Syn
    1. How to handle the same ? Please give some examples.
    2. Should we use Stored Procedures at Oracle side to handle the fault messages and send back as response to the Proxy Response. Will it work.
    Thanks & Regards
    K.Ramesh

    Dear Friend,
    I have 2 interfaces where Proxy is OB & JDBC is IB. In the first interface both sender and Receiver are synchronous and in the second one it is Async.
    In the first interface i have to send one field from R/3 table along with Native SQL query string to XI and the response of the SELECT query is sent back to the sender.
    Assume if no fields are selected based on the field sent then proper error message has to be sent instead of the response message.
    In the second interface i will be using UPDATE query at Asyn JDBC receiver.
    How to do this if you are having JDBC Receiver.
    I saw in many blogs where they had mentioned that we cannot handle fault messages in the Receiver JDBC.
    KIindly explain.
    Thanks
    K.Ramesh

  • SQL XML Document format - Sequence of excecution for the sentences

    Hi, I am using XML SQL Document format to send actions to an Oracle database.
    My concern is this:  I need to insert several invoice header lines then after that I need to insert the Invoice position lines and then, at the end, i need to excecute an store procedure.
    If I do all that in one message, each sentence is treated by the DB in order  ? or is it treated  in paralel?
    It is possible to excecute StatementName1 StatementName2 and StatementName3 in that exact order?
    An example of the xml message is this...
    <Message>
    <StatementName1>
    <dbTableName action=u201DINSERTu201D>
    <table>TABLE1</table>
    <access>
    <col1>val1</col1>
    <col2>val2</col2>
    </access>
    <access>
    <col1>val11</col1>
    </access>
    </dbTableName>
    </StatementName1>
    <StatementName2>
    <dbTableName action=u201DINSERTu201D>
    <table>TABLE2</table>
    <access>
    <col1>val1</col1>
    <col2>val2</col2>
    </access>
    <access>
    <col1>val11</col1>
    </access>
    </dbTableName>
    </StatementName2>
    <StatementName3>
    <storedProcedureName action=u201D EXECUTEu201D>
    <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName >
    </StatementName3>
    </Message>

    I just want to clarify I need to execute the sentences serially, also i am using a JDBC adapter in XI to do the connection.
    On the other hand I believe the order of excecution has relation with the DB and not with the SAP program, because once the message is received by de DB, how it treats it is a responsability of the DB.
    Thanks.
    Mariano.

  • Multi Mapping for JDBC Receiver JDBC Adapter

    Hi All,
        I'm trying an IDoc to JDBC (canonical XML) scenario using multi mapping (single IDoc as source and two different JDBC messages in receiver end). But, this is failing in RWB with some parser error. So, am not sure whether multi mapping is allowed for JDBC Canonical XML format. Please clarify.
    Thanks,
    Hussain.

    Hi ,
    JDBC Adapter supports multi mapping,so you can implement the same,but what do you mean by Canonical XML format??
    Regards,
    Raj

  • Problem with XML document created by JDBC Sender adapter

    We are using a sender JDBC adapter to publish data out of a DB2 table.  The message generated by the XI sender adapter seems to have 2 extra characters that break our mapper.  You can see the characters (the dashes on lines 2 and 4) in the XML document that I copied from message monitoring.  Once I remove these dashes and test the mapper in test mode, it works.  If I test with the dashes, the mapper fails. Has anybody else seen this issue?
    Regards,
    Ivailo
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:CUSTOMER_SCOPE xmlns:ns="http://com.gatx/xi/RCRepairEstimate">
    - <row>
      <CM_CUST_GROUP_CODE>2915</CM_CUST_GROUP_CODE>
      <CM_CUST_SUB_CODE>2</CM_CUST_SUB_CODE>
      <CM_CUST_ID />
      <CM_TERMS>30</CM_TERMS>
      <CM_CUST_SHIPTO_GRP>2915</CM_CUST_SHIPTO_GRP>
      <CM_CUST_SHIPTO_SUB>2</CM_CUST_SHIPTO_SUB>
      <CM_BILL_NAME>GATX RAIL/CANADA</CM_BILL_NAME>
      <CM_BILL_ADDR1>540 5TH AVENUE SW SUITE 1225</CM_BILL_ADDR1>
      <CM_BILL_ADDR2 />
      <CM_BILL_ADDR3 />
      <CM_BILL_CITY>CALGARY ALBERTA</CM_BILL_CITY>
      <CM_BILL_STATE />
      <CM_BILL_ZIP5>0</CM_BILL_ZIP5>
      <CM_BILL_ZIP4>0</CM_BILL_ZIP4>
      <CM_FOREIGN_ZIP>T2P 0M2</CM_FOREIGN_ZIP>
      <CM_ATTENTION>AL FREDERIKSEN</CM_ATTENTION>
      <CM_SALESMAN_INI />
      <CM_DB_RATING />
      <CM_CRED_LIMIT>0</CM_CRED_LIMIT>
      <CM_CRED_FLAG />
      <CM_LAST_CHG_DATE>1282005</CM_LAST_CHG_DATE>
      <CM_CHANGED_BY_USER>XSKISSEL</CM_CHANGED_BY_USER>
      <CM_REORG_CODE>N</CM_REORG_CODE>
      <CM_CORP_GROUP_CODE>0</CM_CORP_GROUP_CODE>
      <CM_CORP_SUB_CODE>0</CM_CORP_SUB_CODE>
      <CM_RECORD_CODE />
      </row>
      </ns:CUSTOMER_SCOPE>

    Hi Ivailo,
    I think the problem lies in the way you copy the data from monitor.
    whenever you want to copy data from XI monitor to test in your IB,make sure you select "view source" and then copy the source message otherwise you will get the browser view of the XML document which contain those "-" for expanding and collapsing the document.
    Regards,
    Sridhar

  • Message Protocol for JDBC receiver adpater used in mapping lookup

    hi mates,
    I'm trying out the scenario explained in this blog <a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler">Lookup’s in XI made simpler</a>. Since we are building a query string in the UDF and executing it, shouldn't the message protocol in adapter be 'Native SQL String' against that is given in blog 'XML SQL Format' (which is used if MT is created as per the 'Statement' structure)?
    I'm yet to execute my scenario..figuring out JDBC params...will try with both protocols once I get the info..meanwhile was wondering how 'XML SQL' would work in this.
    I appreciate your inputs.
    praveen

    I got the answer...the message protocol doesnt matter in case of lookups..coz all we are doing is getting an accessor to the channel but not passing any payload...
    the message protocol is for payload...
    XML SQL if it contains 'Statement'
    Native SQL if it contains native SQL string..

  • How to modify oracle stored procedure for JDBC Receiver Adapter?

    Hi all.
    This is Urgent.
    Scenario is
      SELECT a TABLE with procedure and update column with it,
      then send data to SAP System with RFC Adapter.
    When I executed a sync bpm, scenario was finished internal error.
    Pls, let me know how to correct procedure using JDBC Receiver Adapter?
    Regrds all.
    Procedure Code -
    SET SERVEROUTPUT ON
    CREATE OR REPLACE PROCEDURE zwtn2
    IS
       v_seller_company      wtnivhd.seller_company%TYPE;
       v_invoice_no      wtnivhd.invoice_no%TYPE;
       v_report_date     wtnivhd.report_date%TYPE;
       v_customs_date     wtnivhd.customs_date%TYPE;
       v_ap_post_date     wtnivhd.ap_post_date%TYPE;
       v_gr_date          wtnivhd.gr_date%TYPE;
    CURSOR l_cursor IS
       SELECT seller_company,
              invoice_no,
              report_date,
              customs_date,
              ap_post_date,
              gr_date
         FROM wtnivhd
        WHERE wtn_send_flag = 'N'
          AND rownum < 31
    FOR UPDATE;
    BEGIN
       OPEN l_cursor;
       LOOP
         FETCH l_cursor
          INTO v_seller_company,
               v_invoice_no,
               v_report_date,
               v_customs_date,
               v_ap_post_date,
               v_gr_date;
         EXIT WHEN l_cursor%NOTFOUND;
         UPDATE wtnivhd
            SET wtn_send_flag = 'Y' 
           WHERE CURRENT OF l_cursor;
       END LOOP;
    CLOSE l_cursor;
    END zwtn2;

    Hi Alex,
    plz have a look to Runtime Workbench / Adapter Monitoring to find an error message.
    Regards,
    Udo

  • Can I print a document formatted for a smaller page size on larger paper?

    I have a document that is formatted for a small size for a booklet using a customer paper size setup, 21 x 24 cm. I want to print this on A4 paper for proofreading. But when I do so, the printer (a Brother laser printer) spits out giant pages enlarged to A4. When I try to reduce the scale percentage, it reduces down to the right font size, but reflowed into the A4 size.
    Is there a way to just have it print in its true size in the middle of the A4 sheet?

    You could change the percent in File > Page Setup. But I think fruhulda's suggestion of using PDF would probably result in better resolution although any enlarging will likely cause some loss.

  • Alerts for JDBC Receiver Adapter

    Hi ,
    I am using JDBC receiver adapter. I have configured the alert category and Alert rules. Alerts are getting for Mapping etc.
    When ever error occured in the SQL server whether its firewall issue or some other issue. The alerts are not created. Instead I can see the error message in RWB Message monitoring and communicaton channel monitoring.
    Please let me know How can raise alerts if the error occured at the JDBC receiver side.
    Thanks in advance,
    Kevin

    Hi Kevin,
    Probabaly the alert rule did not capture the error in the adapter engine.
    The filter for sender and receiver interface details in the alert rule can cause this issue depending on when and how the error occured. Can you create an alert rule with * for all entries, for adapter engine and check?
    Also do NOT check the option "suppress multiple alerts from this rule" because it will prevent subsequent alerts from this rule, if there is already one and not yet confirmed.
    Further please check the alerts in SALRT table in se16 if its created properly or via transaction ALRTDISP.
    Please use the report SXMSALERT_LOGREADER for troubleshooting and checking the alert logs.
    Hope this helps.
    Regards,
    Francis

  • Date  format for JDBC

    Hi, can anyone tell be what format a date should be in when querying a database. I have some old code that was transfered to a new app server which follows Java standards very strictly. Now it gives me problems when comparing dates, for example a query that finds records for a date BETWEEN two other dates. The old format was dd-mon-yyyy, but this doesn't work anymore and neither does dd-mon-yy OR yyyy-mon-dd. When I do the query in the text editor(SQL Plus) it works, but not within the Java code.
    Any ideas?
    Thanks

    Of course you're right, thor_b. My point is that Oracle's "to_date" can convert a string to a date, but that's not how Access or SQL Server or any other RDBMS do it. They're all different. If you hardwire "to_date" into your SQL you'll have to rewrite the whole thing if you move from Oracle to SQL Server.
    I like the PreparedStatement because it takes care of all that for me.
    Performance penalty? Over Statement? I've read some stuff about that, but I find it hard to believe.
    Whenever you send SQL to a relational database it has to parse the SQL, determine if the tables and columns exist and have the right types, optimize the query, and then execute it. You have to do that whether you're using Statement or PreparedStatement. If PreparedStatement allows the RDBMS to do all that work once and then store it, I can't see how you'll do worse. - MOD

  • Wrong Encoding for JDBC-Receiver

    Dear all,
    we've to convert from UTF-8 to ISO-8859-1 before we write payload data into database. We've tried with "AF_Modules/XMLAnonymizerBean"  but it does not work!
    Is there any issue regarding JDBC? Should we use "AF_Modules/TextCodepageConversionBean" instead?
    Kind regards, Stefan

    Hi Stefan,
    Sorry for the delay in response:
    Please use the following parameters:
    Module Name                                                                  Type         Module Key
    localejbs/AF_Modules/MessageTransformBean              Local         Plain2XML
    Module Key                                 Parameter Name                               Parameter Value
    Plain2XML                        Transform.ContentType                 text/xml;charset=utf-8
    Also,if this doesn't work ,please try charset=iso-8859-1 as well.
    Let us know if it helps.
    Thanks.
    Regards,
    Shweta

  • Office Document Formats for my Windows friends...

    Hello All :
    Good news-after a month of playing with every OS Classic app I could find for free on the web, and a HD upgrade...my G3 B&W has now become my main box. It's a nice feeling.
    I do have one unusual problem, however-I tend to mail attachments to my Windows-using friends...Appleworks is great for me, but the folk I mail to have no apps to read the AW format,and while I can READ Rich Text, Word and many other formats with AW, I can't seem to SEND in those formats. I had ths problem in Openoffice on my Red Hat PC, but O/O has a built-in PDF converter...I don't think AW has this feature.
    Here are a few of my options as I see it:
    1) Send Text only-this is my current solution, but I consider this a stopgap measure.
    2) Give up on AW and find a copy of Microsoft Office 98 or 2000 for Mac-nope, I LIKE my Appleworks, and i'll not be switching.
    3) A freeware, shareware or relatively inexpensive PDF creator/converter...nothing fancy like the full Acrobat suite, just something to switch formats with.This is rhe solution I was happy with in Linux with O/O, and it would work well for me in OS9. Any good converters out there I should know about?
    4) Buy all my friends some gently used Macs with Appleworks installed-not gonna happen.
    So-any solutions I haven't thought of yet? How do my fellow OS9 users get by in a Microsoft Office world?

    Hi, order99. Two additional possibilities:
    Buy (used) an old OS-9-compatible version of MacLink Plus Deluxe. It will translate every common type of non-graphic file from almost any Mac application's native format to almost any PC application's native format. You'll be able to send your AW documents as Word files.
    Buy the shareware PrintToPDF: a "printer driver" (Chooser extension) that will write PDF files from any application. Just select it in the left panel of the Chooser as you would any other printer driver, then use the Print command in AW to save your files in PDF format.

  • Message structure for JDBC receiver adaptor

    Hi experts,
    IN JDBC reciever adaptor i want to insert 3 fields in table.....!
    the structure i have created is as follows:
    TestReceiver
    StatementName
    Test
        Action (attribute)
       TABLE
       access(1-unbound)
           FirstName
           MiddName
           LastName
    and source is
    testSender
      Row(1-unbound)
        FirstName
        MiddleName
        LastName
    I am getting error ="MAPPING">EXCEPTION_DURING_EXECUTE
    can somebody plz tell me what is wrong?
    Thanks
    Rohan

    <?xml version="1.0" encoding="utf-8"?>
    <ns:TestSender xmlns:ns="http://test.com/EmpData">
    <Recordset>
         <Row>
              <FirstName>Aaa</FirstName>
              <MiddleName>Bbbbb</MiddleName>
              <LastName>Ccccc</LastName>
         </Row>
    </Recordset>
    </ns:TestSender>

  • Document format for business applications

    Hi all,
    I want to create a technical documentation of my company's business applications which i can also managed with on going system changes.
    I have included the following topics:
    - Project Description
    - Process Flows
    - ERD (logical and physical)
    - Database details
    - forms details
    - reports details
    Please provide feedback on my selection of topics, give your suggestions for any modification. If any body have some format please let me know.

    http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Not sure but Check the option of
    <key1>
         <col2 compareOperation=u201DLTu201D>val2old</col2>
         <col2 compareOperation=u201DGTu201D>val2old</col2>
    </key1>
    Thanks,
    Beena.

Maybe you are looking for

  • Error while installing ORACLE 10G on Windows

    Dear All, Previously i had installed ORACLEM 9i. I deinstalled using UNIVERSAL INSTALLER .Now when i try to install ORACLE 10g it is giving error ERROR : ERROR IN Writing to direcotory c:\documets~\rajeshrr~1\temp\Orainstall2009-08-23.Please ensure d

  • Message mapping with dynamic node

    Hi, I am doing message mapping where my source structure is <root>      <EmpCount>2</EmpCount>      <Emp>           <item>                <code>1</code>                <name>ABC</name>           </item>                                  <item>        

  • Stored procedure which returns date error

    if have a function getGmtDate in the package pa which uses a date as parameter and returns a date conn.Connect() strSQL = "pa.getGmtDate" P_RETURN As New OracleParameter(":pRETURN", OracleDbType.Date, ParameterDirection.ReturnValue) Dim P_DATE As New

  • Creative Cloud not opening

    The CC desktop app is not working! Its showing  the spinning progress wheel and absolutely nothing is working. Trying to quit it docent work, or even going to the help doesn't go any where. Increadibly frustrating when you're prompted to download an

  • Booting form secondary BE when primary BE fails

    Hello, I have used separate disks to configure primary and secondary BEs on HP ML370 G5 I want to simulate a scenario where the primary BE and active disk fails. What are the possible ways to activate and boot from Secondary BE disk? Thanks and Regar