XSQL output (XML) rows are clubbed

Any idea Why: When I run multiple xsql queries in xsql file
(One dml follwed by an xsql), all the rows the xml returned
are clubbed in to a single line.
ie. there's no line feed between elements? (Unix /Oracle8i)
Thanks - vma
Sample query/xsql:
<?xml version="1.0"?>
<Emp-Rec connection="test" xmlns:xsql="urn:oracle-xsql">
<xsql:dml rowset-element="" row-element="">
alter session set nls_date_format="dd-mon-yy"
</xsql:dml>
<xsql:query b="%" a="%" rowset-element="NAME" row element="TRANS">
SELECT
EMP,
NAME,
ID,
TEL,
DEPT,
F1,
F2,
JOIN_DT
FROM EMP_TBL
WHERE EMP = '{@b}'
AND ID = '{@a}'
AND JOIN_DT = '07-AUG-02'
</xsql:query>
</Emp-Rec>

Thanks.
But unfortunaely I don't use any browser.
but just the command line:
( java oracle.xml.xsql.XSQLCommandLine file.xsql)
Any how it looks like the effects are same.
However, if I use the program TestXpath, and retreive
all the elements and rows form the xml doc,
I get properly indented multi-row out put,
which leads that the output data it self is OK.
So, I still don't know why do I get all the elements
is a sigle line. May be line/row size got to do
some thing with it?

Similar Messages

  • Error in outputting xml formatted data

    Hello,
    I'm trying to output xml formatted data using apex.
    At about 70% into the formatted output I get this in the browser:
      <descript>punct= & > < /,() &</descript>
      </row>
    - <row The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource 'http://apex.oracle.com/pls/otn/f?p=158...
    <script language="JavaScript1.1" type="text/javascript">
    -^
    m">>
    <DIVI have a 600 row table (dml below) with identical string in each row of the descript column. (I put in some special characters just to push it through the escape function for html. It is displaying the text correctly.)
    The page has one report region (plsql below).
    The page template is stripped down.
    My local results are identical to the otn hosted workspace.
    I did dump the table in xml format and displayed the dump file in browser without a problem, so I'm missing something in the code.
    Thank you.
    Albert
    On OTN webspace, go to http://apex.oracle.com/pls/otn/f?p=15866:1:1291425545573680200:::::
    plsql
    declare
    xdescript varchar2(4000);
        begin
        -- xml preface is in the page template
        -- htp.p('<?xml version="1.0"?>');
        htp.p('<rowset>');
        begin
            for item in
            (select descript,cid from receipts order by cid)
            loop
            htp.p ('<row>');
            xdescript := htf.escape_sc(item.descript);
            htp.p('<cid>' || item.cid || '</cid>');
            htp.p('<descript>'|| xdescript || '</descript>');
            htp.p('</row>');
            end loop;
        end;
        htp.p ('</rowset>');
    end;
    dml
    CREATE TABLE  "RECEIPTS"
       (     "CID" NUMBER,
         "AMOUNT" NUMBER NOT NULL ENABLE,
         "CLEARED" DATE,
         "DESCRIPT" VARCHAR2(80),
         "DATEENTERED" DATE DEFAULT SYSTIMESTAMP,
         "CHECKNBR" NUMBER,
         "CLEARSEQ" NUMBER DEFAULT 0,
          CONSTRAINT "RECEIPTS_PK" PRIMARY KEY ("CID") ENABLE
    CREATE SEQUENCE   "RECEIPTS_SEQ"  MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 4319 CACHE 20 NOORDER  NOCYCLE
    CREATE OR REPLACE TRIGGER  "BI_RECEIPTS"
      BEFORE INSERT ON "RECEIPTS"
      FOR EACH ROW
    BEGIN
        SELECT "RECEIPTS_SEQ".NEXTVAL INTO :NEW.CID FROM DUAL;
    END;
    ALTER TRIGGER  "BI_RECEIPTS" ENABLE
    /

    May be it helps you. I use SQL/XML and APEX Application Process to generate XML succesfully
    Here is the result:
    http://htmldb.oracle.com/pls/otn/f?p=9774:101:0:APPLICATION_PROCESS=RSSNEWEVENTS
    and here is the Process Text source:
    declare
    a clob;
    begin
    owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
    htp.prn('<?xml version="1.0" encoding="UTF-8"?>');
    select
    XMLTYPE.getStringVal(
    XMLElement("rss",
    XMLAttributes('2.0' as version),
    XMLElement("channel",
    XMLConcat(
    XMLElement("title",'iActiveLife - novinky'),
    XMLElement("link",'http://www.iactivelife.cz/'),
    XMLElement("description",'iActiveLife - Zajímavý život snadn&#283;ji'),
    XMLElement("language",'cs'),
    XMLElement("pubdate",''),
    XMLAgg(
    XMLElement("item",
    XMLConcat(
    XMLElement("title",event_name),
    XMLElement("link",'http://htmldb.oracle.com/pls/otn/f?p=' || v('APP_ID') || ':37:' || v('SESSION') || '::NO::P37_EVENT_ID:' || event_id),
    XMLElement("description",'')
    ) into a
    from (
    select event_id,event_name,issue_date, last_update_order
    from (
    select events.event_id, events.event_name, events.issue_date, rank () over (order by events.issue_date desc) as last_update_order
    from events
    where exists ( select * from opportunities where events.event_id=opportunities.event_id and opportunities.user_id is not null)
    order by events.issue_date desc)
    where last_update_order<=10
    htp.prn(a);
    end;

  • Need Double quotes instead of Single quotes in output XML version header

    In XML output generated by XDODTEXE executable, its observed that header row looks like this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    It should look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    Browsers like IE deceive. Opening the XML in Text editors show single quotes and spaces.
    Data Template and XSL template files have proper headers with double quotes.
    The output XML file is rejected by a Government Authority as parsing the header line fails.
    Are there any ways to configure this?

    I dont know if this has anything to do with my problem or not, but I thought I should add this:
    When a user is filling out the form that has the textarea,  they put whatever text they want into the textarea field.
    textarea name="text"></textarea
    Then, they click on a 'Continue' button and the system shows them a preview of what they are about to have inserted
    into the database.
    Within the code on this preview page is a hidden field, which holds the contents of their textarea data so it can be
    passed on through the process once the user verifies the preview.
    This is done using this: input type="hidden" name="text" value="<cfoutput>#text#</cfoutput>"
    Like I said, I don't know if that has anything to do with this problem, but thought it might be good to mention it
    Kudos

  • Save Xml rows in table

    I am having Stored procedure where i am inserting category and subcategory from xml rows.
    I already have three tables i.e category,subcategory and combination of both i.e  catsubcatCombination.
    I would like to insert records in catsubcatCombination where columns are  pksubcatcomb, fkCatid,fksubcatId
    My sp looks like
    INSERT INTO [catsubcatCombination]
    ( [fkCategoryId] ,
    [fkSubCategoryId],
    [createdDate] )
    SELECT [Table].[Column].value(' Value0 [1]', 'varchar(50)') AS ' Value0' ,
    [Table].[Column].value(' Value1 [1]', 'varchar(50)') AS ' Value1',
    GETDATE()
    FROM @xmlData.nodes('/ SubCategorySkuData/SubCategorySku') AS [Table] ( [Column] )
    WHERE NOT EXISTS ( SELECT distinct fkCategoryId
    FROM [tblSubcategoryCombination]
    WHERE fkCategoryId =(select pkCategoryId from category where categoryName= [Table].[Column].value(' Value0 [1]', 'varchar(50)'))
    and fkSubCategoryId=(select pkSubCategoryId from subcategory where subCategoryName= [Table].[Column].value(' Value1 [1]', 'varchar(50)')))
    I am getting error 'Error converting data type varchar to bigint'
    I know the error is here
    SELECT  [Table].[Column].value(' Value0 [1]', 'varchar(50)') AS ' Value0' ,
    [Table].[Column].value(' Value1 [1]', 'varchar(50)') AS ' Value1',
    As fkCatid,fksubcatId are bigint, so i need to fetch the pkCategoryid from category and pkSubCategoryid fom subcategory, so i was trying int this way
    INSERT INTO [catsubcatCombination]
    ( [fkCategoryId] ,
    [fkSubCategoryId],
    [createdDate] )
    select pkCategoryId from category where categoryName= [Table].[Column].value(' Value0 [1]', 'varchar(50)') ,
    select pkSubCategoryId from subcategory, where subCategoryName= [Table].[Column].value(' Value1 [1]', 'varchar(50)'),
    GETDATE()
    but its not working means some syntax error.
    Can anyone tell that how do i write this correctly.
    Thanks in advance..
    Niki

    Hi my whole sp is below after merging the changes given by you
    USE [DTestDb]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    Alter PROCEDURE [dbo].[usp_SaveCsvSubCategory11] (
    @xmlData XML ,
    @retValue int OUTPUT
    AS
    BEGIN
    SET @retValue=0;
    INSERT INTO [tblSubcategoryCombination]
    ( [fkCategoryId] ,
    [fkSubCategoryId],
    [createdDate] )
    SELECT *
    FROM
    SELECT [Table].[Column].value(' Value0 [1]', 'varchar(50)') AS 'Value0' ,
    [Table].[Column].value(' Value1 [1]', 'varchar(50)') AS 'Value1',
    GETDATE()
    FROM @xmlData.nodes('/ SubCategorySkuData/SubCategorySku') AS [Table] ( [Column] )
    WHERE NOT EXISTS ( SELECT distinct fkCategoryId
    FROM [tblSubcategoryCombination]
    WHERE fkCategoryId =(select pkCategoryId from tblCategory where categoryName= [Table].[Column].value(' Value0 [1]', 'varchar(50)'))
    and fkSubCategoryId=(select pkSubCategoryId from tblSubCategory where subCategoryName= [Table].[Column].value(' Value1 [1]', 'varchar(50)')))
    )t
    WHERE [Value0] LIKE '%[^0-9]%'
    OR [Value1] LIKE '%[^0-9]%'
    IF(@@ROWCOUNT > 0)
    SET @retValue=1;
    END
    Altering database  i am getting error
     No column name was specified for column 3 of 't'.
    Niki
    I didnt ask you to change ths SP
    I asked you to check if there's some nonnumeric data first
    that script has to be seperate
    ie just this
    DECLARE @XmlData XML
    SET @XmlData = '<Your xml value here>'SELECT *
    FROM
    SELECT [Table].[Column].value(' Value0 [1]', 'varchar(50)') AS 'Value0' ,
    [Table].[Column].value(' Value1 [1]', 'varchar(50)') AS 'Value1',
    GETDATE()
    FROM @xmlData.nodes('/ SubCategorySkuData/SubCategorySku') AS [Table] ( [Column] )
    WHERE NOT EXISTS ( SELECT distinct fkCategoryId
    FROM [tblSubcategoryCombination]
    WHERE fkCategoryId =(select pkCategoryId from tblCategory where categoryName= [Table].[Column].value(' Value0 [1]', 'varchar(50)'))
    and fkSubCategoryId=(select pkSubCategoryId from tblSubCategory where subCategoryName= [Table].[Column].value(' Value1 [1]', 'varchar(50)')))
    )t
    WHERE [Value0] LIKE '%[^0-9]%'
    OR [Value1] LIKE '%[^0-9]%'
    and see if it returns anything
    If yes then your sp code will break as it cant convert them to bigint
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Parse and output XML document while preserving attribute order

    QUESTION: How can I take in an element with attributes from an XML and output the same element and attributes while preserving the order of those attributes?
    The following code will parse and XML document and generate (practically) unchanged output. However, all attributes are ordered a-z
    Example: The following element
    <work_item_type work_item_db_site="0000000000000000" work_item_db_id="0" work_item_type_code="3" user_tag_ident="Step" name="Work Step" gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_site="0000000000000000" last_upd_db_id="0" rstat_type_code="1">
    </work_item_type>is output as:
    <work_item_type gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_id="0" last_upd_db_site="0000000000000000" name="Work Step" rstat_type_code="1" user_tag_ident="Step" work_item_db_id="0" work_item_db_site="0000000000000000" work_item_type_code="3">
    </work_item_type>As you may notice, there is no difference in these besides order of the attributes!
    I am convened that the problem is not in the stylesheet.xslt but if you are not then it is posted bellow.
    Please, someone help me out with this! I have a feeling the solution is simple
    The following take the XML from source.xml and outputs it to DEST_filename with attributes in a-z order
    Code:
    private void OutputFile(String DEST_filename, String style_filename){
         //StreamSource stylesheet = new StreamSource(style_filename);
         try{
              File dest_file = new File(DEST_filename);
              if(!dest_file.exists())
                  dest_file.createNewFile();
              TransformerFactory tranFactory = TransformerFactory.newInstance();
              Transformer aTransformer = tranFactory.newTransformer();
              aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              Source src = new DOMSource("source.xml");
              Result dest = new StreamResult(dest_file);
              aTransformer.transform(src, dest);
              System.out.println("Finished");
         catch(Exception e){
              System.err.print(e);
              System.exit(-1);
        }

    You can't. The reason is, the XML Recommendation explicitly says the order of attributes is not significant. Therefore conforming XML serializers won't treat it as if it were significant.
    If you have an environment where you think that the order of attributes is significant, your first step should be to reconsider. Possibly it isn't really significant and you are over-reaching in some way. Or possibly someone writing requirements is ignorant of this fact and the requirement can be discarded.
    Or possibly your output is being given to somebody else who has a defective parser which expects the attributes to be in a particular order. You could quote the XML Recommendation to those people but often XML bozos are resistant to change. If you're stuck writing for that parser then you'll have to apply some non-XML processing to your output to fix it up on their behalf.

  • Ordering of rows are showing difference when migration db from 9.2.0.8.0-32bits(windows 3) to 10.2.0.5.0 - 64bit(windows 8)?

    Dears,
    After migration(via export/import), we are facing ordering of rows are mis-match  in these two databases.
    the following same query I am running on the these two databases. but different output. output are below.
    [CODE]
    SELECT ROWNUM AS RowNo, TBL1.*
      FROM (    SELECT COUNT (PG_ID) AS TotalCount,
                     PG_DESC AS PageDescription,
                     CURR_EPR_QUEUE AS CurrentQueue,
                     PG_NME AS PageName,
                     QUEUE_TYP_CDE AS QueueTypeCode,
                     PG_ID AS PageID
                FROM SASV_TB_CNT_APPL_JUDG_2----this is a view
               WHERE (CURR_EPR_QUEUE = 'test' AND QUEUE_TYP_CDE = '01')
                     OR (    JUD_RACIF_ID = 'test'
                         AND CMPLTD_IND = '0'
                         AND DSPLY_IND = '1')
                        AND TOTAL_CNT > 0
            GROUP BY PG_ID,
                     PG_NME,
                     PG_DESC,
                     CURR_EPR_QUEUE,
                     QUEUE_TYP_CDE            
                      ) TBL1
    [/CODE]
    output- from
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    1
    7
    Other Documents(Hearing)
    askinj
    HG01_Other_Documents
    1
    HG01-TB02
    2
    3
    Pending Award
    askinj
    HG01_Pending_Order
    1
    HG01-TB05
    3
    19
    Motion(ADR)
    askinj
    MD01_Motion
    1
    MD01-TB01
    4
    5
    Other Documents(ADR)
    askinj
    MD02_Other_Documents
    1
    MD01-TB02
    5
    1
    Scheduling(ADR)
    askinj
    MD01_Scheduling
    1
    MD01-TB03
    6
    8
    Mediations
    askinj
    MD01_Mediations
    1
    MD01-TB04
    output from--
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    TNS for 64-bit Windows: Version 10.2.0.5.0 - Production
    1
    3
      Pending Award
    askinj
    HG01_Pending_Order
    1
    HG01-TB05
    2
    7
      Other   Documents(Hearing)
    askinj
    HG01_Other_Documents
    1
    HG01-TB02
    3
    8
      Mediations
    askinj
    MD01_Mediations
    1
    MD01-TB04
    4
    5
    Other Documents(ADR)
    askinj
    MD02_Other_Documents
    1
    MD01-TB02
    5
    1
    Scheduling(ADR)
    askinj
    MD01_Scheduling
    1
    MD01-TB03
    6
    19
    Motion(ADR)
    askinj
    MD01_Motion
    1
    MD01-TB01
    the views query is below
    SASV_TB_CNT_APPL_JUDG_2
    [code]
    (SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               DECODE (TAJD.ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               DECODE (TAJD.ABS_IND, 1, GUEST_JUD_ID, JUDG_ID) JUD_RACIF_ID,
               CMLTD_IND CMPLTD_IND,
               NULL DSPLY_IND
          FROM SA_PG_MSTR SPM, TMST_APPEAL_JUDGE_DETAIL TAJD, SA_WRK_ITM SWI
         WHERE     SWI.WRK_ITM_ID = TAJD.WRK_ITM_ID
               AND swi.tb_pg_id = spm.pg_id
               AND SWI.CURR_EPR_QUEUE = 'AppellateCommonJudgeUser'
               AND CMLTD_IND = '0'
               AND tajd.LEAD_JUD_IND != '3'
        UNION ALL
        SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               CURR_EPR_QUEUE judg_racif_id,
               '0' CMPLTD_IND,
               NULL DSPLY_IND
          FROM SA_PG_MSTR spm, SA_WRK_ITM SWI
         WHERE SCCS_IND = '1' AND SWI.ACTIVE = '1' AND spm.pg_id = swi.tb_pg_id
        UNION ALL
        SELECT spm.PG_ID,
               spm.PG_NME,
               spm.PG_DESC,
               CURR_EPR_QUEUE,
               QUEUE_TYP_CDE,
               1 "TOTAL_CNT",
               JUD_RACIF_ID,
               CMPLTD_IND,
               DSPLY_IND
          FROM ST_WRK_ITM_JUD_DTL SWIJD, SA_WRK_ITM SWI, SA_PG_MSTR spm
         WHERE     SWI.WRK_ITM_ID = SWIJD.WRK_ITM_ID
               AND swi.tb_pg_id = spm.pg_id
               AND swi.queue_typ_cde IN ('01', '05')
               AND swi.dup_ind <> 1);
    [code]
    parameters in 9i are belows
    [code]
    aq_tm_processes    1
    background_dump_dest    D:\oracle\admin\TEST\bdump
    compatible    9.2.0.0.0
    cursor_sharing    similar
    db_block_size    8192
    db_cache_size    947912704
    db_domain
    db_file_multiblock_read_count    16
    db_keep_cache_size    167772160
    db_name    TEST
    fast_start_mttr_target    300
    hash_area_size    1073741824
    hash_join_enabled    TRUE
    instance_name    TEST
    java_pool_size    67108864
    job_queue_processes    10
    large_pool_size    109051904
    local_listener    (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.51)(PORT=1521))
    log_archive_format    %t_%s.dbf
    log_archive_start    TRUE
    log_buffer    26214400
    open_cursors    700
    optimizer_index_caching    80
    optimizer_index_cost_adj    20
    optimizer_mode    FIRST_ROWS
    pga_aggregate_target    1468006400
    processes    800
    query_rewrite_enabled    TRUE
    remote_login_passwordfile    EXCLUSIVE
    session_cached_cursors    400
    sga_max_size    2149134244
    shared_pool_size    788529152
    sort_area_size    1073741824
    star_transformation_enabled    FALSE
    timed_statistics    TRUE
    undo_management    AUTO
    undo_retention    10800
    undo_tablespace    UNDOTBS1
    utl_file_dir    H:\ICMS_TO_GO
    workarea_size_policy    AUTO
    [code]
    parameters in 10 are belows
    [code]
    aq_tm_processes    1
    compatible    10.2.0.5.0
    db_block_size    8192
    db_domain
    db_file_multiblock_read_count    16
    db_name    TEST
    db_recovery_file_dest    C:\oracle/flash_recovery_area
    db_recovery_file_dest_size    171798691840
    dispatchers    (PROTOCOL=TCP) (SERVICE=TESTXDB)
    job_queue_processes    10
    log_archive_format    ARC%S_%R.%T
    open_cursors    800
    open_links    10
    open_links_per_instance    10
    pga_aggregate_target    3984588800
    processes    1200
    recyclebin    OFF
    remote_login_passwordfile    EXCLUSIVE
    session_cached_cursors    400
    sessions    1325
    sga_max_size    10485760000
    sga_target    10485760000
    undo_management    AUTO
    undo_tablespace    UNDOTBS1
    utl_file_dir    H:\ICMS_TO_GO
    optimizer_dynamic_sampling    2
    optimizer_features_enable    10.2.0.5
    optimizer_index_caching    80
    optimizer_index_cost_adj    20
    optimizer_mode    FIRST_ROWS
    optimizer_secure_view_merging    FALSE
    plsql_optimize_level    2
    [code]
    where can we look into for this issue? actually we need rows will be the same ordering as it was in 9i.
    we are facing this problem in lot of queries, this is a sample one.
    Regards
    Halim

    Hi Jgarry,
    why do you need a particular physical order?
    Actually i don't know the .net application behave or code yet . but after migration, I am facing this issue.
    one more thing we changed the server machine so Is there any registry parameter (in windows) related to this. Have you any idea.
    the application is running since 8 years and I think nobody can rely on implicit data distribution arising from how the data is entered to develop a application.
    Hi Hoek,
    According to Oracle White Paper(page 17), If I change below parameter. Is there any hope to get same order.
    "After you upgrade to Oracle Database 10g, if you
    wanted to revert back to 9.2 optimizer behavior you can set
    OPTIMIZER_FEATURES_ENABLE = 9.2.0 "
    Regards
    Halim

  • XSLT Generation from input and output XML

    Is it possible to generate an XSL mapping file in Java if we have input and output XML.
    If yes, then how to achieve this when user defined functions are used during mapping?

    Hi Prateek,
    check the following links for Business connectors and adapter:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/92/3bc0401b778031e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/4fb240ac052817e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
    Hope these help you.
    Regards,
    Anuradha.B

  • Output XML file problem (in FILE to RFC scenario)

    hi,
       my problem is that in the export parameter i have 3 variables but my output xml file shows only 2 parameters . I have checked my mapping all 3 parameters are mapped properly in output mapping .
    Initially when i started the scenario there were only 2 parameters in my export list .
    i completed this suuccesfully and then as per new requirement one more parameter was needed to be added i added a new parameter and reimported my rfc .
    the response tab of the reimported RFC shows me the newly added parameter but my final xml file only shows me the previous 2 it doesnt show me the newly added one is there any seeting which i need to change like in idoc where we have to readd the idoc in IDX2
    With regards
    Bhawarlal Choudhary

    Hi,
    2 Introduction
    Configuring IDoc adapter in Exchange Infrastructure 3.0 requires some configuration on the SAP
    systems, for both XI and the backend system where the IDoc message is to be sent. These steps, although
    simple, are many times missed or mis-configured, causing the delivery of messages to fail.
    Since IDoc adapter uses the ABAP stack, instead of J2EE, the configuration requirements are mainly in
    ABAP.
    Setting up IDoc adapters requires the XI integration server to be able to communicate with the backend
    SAP system, and also to make sure that the Logical System Name used when posting IDoc exists on the
    backend SAP system.
    3 The Step By Step Solution
    The basic steps for the IDoc configuration are outline below:
    1. Configure SM59 on XI to communicate to SAP backend system.
    2. Configure port on XI for IDoc communication.
    3. Create or verify the Logical System Name on the SAP backend system.
    4. Create or verify business system in XI’s System Landscape Directory.
    5. Verify the Logical System Name of the business system.
    6. Verify or add the Logical System Name for the sender business system.
    7. Create/configure the Communication Channel for the IDoc receiver adapter
    3.1 Configure SM59 on XI to communicate to SAP backend system.
    1. Using transaction SM59, create an RFC destination with Connection Type = “3”.
    In this example, the RFC destination name is “NDVCLNT510”.
    2. Enter the logon information:
    3. Test the connection by clicking on “Testing connection” and “Remote logon”.
    Both must be successful.
    3.2 Configure port on XI for IDoc communication.
    4. Go to transaction IDX1 on XI, and create a port. In this example, the Port name is “SAPNDV”.
    •     &#61472;The Port name must be in the form of “SAPxxx”, where xxx is the system ID of the backend SAP
    system.
    •     The Client must be the client number of the backend SAP system.
    •     Select the RFC Destination which was created in the previous step.
    3.3 Create or verify the Logical System Name on the SAP backend system.
    5. Enter transaction SALE on the SAP backend system.
    6. Create or verify the Logical System Name. In our example, NDVCLNT510 is verified.
    3.4 Create or verify business system in XI’s System Landscape Directory.
    The business system name for the SAP backend system must contain a valid Logical System Name. This Logical System Name is the one verified or created in the previous step.
    7. In the System Landscape Directory,  select the SAP backend business system. If one does not exist, then create the business system. Verify the Logical  System Name.
    3.5 Verify the Logical System Name of the business system.
    8. In the Integration Directory, doubleclick on the business system (in our example, it is NDVCLNT510).
    Navigate the menu:
    Service • Adapter Specific Identifiers.
    If information is empty or incorrect, then it will have to be synchronized with the content of the System Landscape Directory. Follow the steps below for synchronization.
    9. (Optional) Synchronization of the business system in Integration Directory to the business system in System
    Landscape Directory.
    •     &#61472;Double-click on the business system in the Integration Directory.
    •     &#61472;Switch to Edit mode.
    •     &#61472;Select menu: Service • Adapter-Specific Identifiers 
    10. (Optional) Within the dialog box, click on the button as indicated below to resynchronize.
    11. (Optional) If the expected data from the System Landscape Directory is not updated, then the SLD cache may need to be cleared first.
    3.7 Create/configure the Communication Channel for the IDoc receiver adapter.
    15. In the Integration Directory, create an IDoc receiver communication channel.
    •     &#61472;The RFC Destination is from step 3.1.
    •     &#61472;The Port is from step 3.2.
    NOTE:
    There is no need to create an IDoc sender Communication Channel for XI. Instead, the backend SAP system must be configure to send the IDoc to XI.
    4 Appendix
    Transaction: IDX2
    There are a couple of situation where IDX2 can be useful on the XI system.
    1. When we want to test connection between the XI and SAP backend system.
    2. When an IDoc has changed, and the meta data stored in XI needs to be update. When an IDoc is sent from the SAP backend system to XI, XI will first check to see if the meta data for the IDoc is already in its persistent cache. If not, then XI will use the configuration in IDX1 to retrieve the IDoc meta data from the backend system. If the
    meta is already in cache, then it will NOT do so. Therefore, when an IDoc has changed, it is necessary to manually update the new meta data on XI, or delete it from the cache, so that the latest version can be retrieved. IDX2 is used for this purpose.
    Go to transaction IDX2 and click on “Create”.
    Enter the IDoc Type and the Source Port as defined in step #2. Click “Continue”.If successful, the following will show up. If error occurs, then the IDX1 configurations will need to be re-checked.
    Regards
    Hemant
    If find helpful plz award points

  • Different input and output xml files [encoding]

    Welcome. I write a little code that connect to ftp server, log in, than search an input xml file. That file is input for BufferedReader. This data are writing to local file. Im from poland and i wish use polish fonts and that fonts are broken in this output file (input is ok, it's write in editor that support utf-8 encodding)
    Code of my program:
    http://www.piotrkow.net.pl/~loko/xml_java/java_pyt.html
    Input file:
    http://www.piotrkow.net.pl/~loko/xml_java/agreeting[input].xml
    Output file (totaly broken):
    http://www.piotrkow.net.pl/~loko/xml_java/agreeting[output].xml
    How do I fix this? Please help.
    PS: Documentation used ftp libraries:
    http://jvftp.sourceforge.net/docs/api/

    Problem has been solved :)
    --> http://www.piotrkow.net.pl/~loko/xml_java/java_solved.html

  • Not receiving the output xml file from BPM

    Hello
    I am doing a scenario where I'd be sending two files in text format to the BPM workflow which would be using Fork and Correlation to merge these two files into one file and send the output xml file as receiver. Problem is that the two files are successfully converted into the xml messages and are displayed in SXMB_MONI but the output file which would be received from BPM engine as receiver is not being generated and displayed in SXMB_MONI as well as RWB. Please suggest any probable solution.
    Thanks.

    I don't think you can manipulate .ai files in Flex /
    AIR.

  • Classpath/Datatype restriction/Output XML to a file

    Hi,
    I was trying to use a webservice but because the service could not identify the
    classes needed to run the service it is giving me an exception.If only i give
    the directory(temp staging directory-which is in my d drive but not within the
    default directory where we have installed the weblogic6.1)in the classpath of
    the system environment variable am i able to access the service.Is there any default
    directory where i can store all of the EJB,supporting classes to run this webservice?
    2.Also the datatypes are restricted and a clear mention of arrays(single array
    only),iam trying to use String array but when iam creating the ear file using
    Ant iam getting and exception
    wsgen:
    Error at line:8 col:12 ':' Already got a ':' in name
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExcepti
    on(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:45)
    at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(BabelXML
    EventStream.java:28)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:600)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:577)
    at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java:225
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.java
    :1125)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:1285
    at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper.jav
    a:1418)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:1486)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1520)
    at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    3.while trying to use this service the output being generated is written to the
    console.Could we direct this output XML to a file and if so what steps needs to
    be followed in the client program(java)?
    Could anybody sort out these issues?Thanks in advance.
    Nandula

    If you're trying to do this through sql*plus then just use 'spool'. If you need a pure pl/sql solution you'll need to use UTL_FILE.
    Richard

  • Select Count(*) and actual row are differ: 136 rows vs 65k x 7 rows

    Dear All,
    Good morning. Need your advices. We had a view which is running and producing output to excel files. But recently after one of ours database migration, it were producing differ result: Select Count(*) and actual row are differ: 136 rows vs 65k x 7 rows. Error happen when we export out the row to csv file is produced 65000 rows x 7 worksheep. But when perform select count(*) from RTNEWWIP, result return: 136 rows.
    Is there any way to trace below sql to find where go wrong?
    The Veiw as below:
    CREATE OR REPLACE VIEW RTNEWWIP
    (FAB_ID, PO, PRD_NO, SHP_PRD_NO, LOT,
    WIP_QTY, ROUTEDESC, IN_TIME, STAY_DAY, BACK_DAY,
    WO_FCST_DATE, SHIP_FCST_DATE, SHIP_CONF_DATE, WS_DATE, ROUTERATIO,
    PROCESS, LOTSTATUS, LOTTYPE, RETICLEVERSION, PROCESSVERSION,
    ROUTESEQUENCE, PRIORITY, PROCESSGEN, PROCESSFAMILY)
    AS
    select
    --ord.order_no,
    'SILTERRA' FAB_ID,
    wip.PO_NUMBER PO,
    wip.FW_DEVICE PRD_NO,
    wip.USER_ITEM_DESCRIPTION SHP_PRD_NO,
    wip.LOT_ID LOT,
    wip.CURR_QTY WIP_QTY,
    wip.STEP_DESC ROUTEDESC,
    to_char(wip.RECORD_START_DATE,'DD-MON-YYYY HH24:MI:SS') IN_TIME,
    to_char((sysdate - wip.RECORD_START_DATE),'9999D99') STAY_DAY,
    to_char((wip.SCHEDULED_COMPLETE_DATE - sysdate),'9999D99') BACK_DAY,
    -- (sysdate - wip.RECORD_START_DATE) STAY_DAY,
    -- (wip.SCHEDULED_COMPLETE_DATE - sysdate) BACK_DAY,
    to_char(wip.SCHEDULED_COMPLETE_DATE,'DD-MON-YYYY') WO_FCST_DATE,
    to_char((wip.SCHEDULED_COMPLETE_DATE + 1),'DD-MON-YYYY') SHIP_FCST_DATE,
    --nvl(oel.attribute15, to_char(sysdate+3650,'DD-MON-YYYY')) SHIP_CONF_DATE,
    to_char(nvl(to_date(oel.attribute15,'DD-MON-YYYY'), sysdate+3650),'DD-MON-YYYY') SHIP_CONF_DATE,
    to_char(wip.LOT_START_DATE,'DD-MON-YYYY') WS_DATE,
    --wip.MASK_NO || '/' || wip.MASK_TOTAL ROUTERATIO,
    '''' ||wip.MASK_NO || '/' || wip.MASK_TOTAL ROUTERATIO,
    wip.PLAN_NAME_ACTIVE PROCESS,
    wip.LOT_STATUS LOTSTATUS,
    wip.LOT_TYPE LOTTYPE,
    0 RETICLEVERSION,
    wip.PLAN_VERSION_ACTIVE PROCESSVERSION,
    0 ROUTESEQUENCE,
    wip.PRIORITY PRIORITY,
    ' ' PROCESSGEN,
    ' ' PROCESSFAMILY
    from wip_report wip, lot_fact lf, order_fact orf, order_dim ord,
    apps.oe_order_headers_all@prod_myfabetl oeh,
    apps.oe_order_lines_all@prod_myfabetl oel
    where wip.CUSTNAME like 'Realtek%'
    --AND WIP.FW_DEVICE like '%R25C'
    and wip.ACTIVE_FACT_KEY = lf.RECORD_KEY
    and lf.ORDER_FACT_KEY = orf.RECORD_KEY
    and orf.ORDER_KEY = ord.RECORD_KEY
    and ord.ORDER_NO = to_char(oeh.order_number)
    and oeh.header_id = oel.header_id
    and orf.LINE_ITEM_NUMBER = to_char(oel.line_number)
    and orf.ITEM_SCHEDULE = to_char(oel.shipment_number)
    and wip.LOT_TYPE in ('ENX','PRA','PRD','PRT','CSK','MPW')
    union all
    select --od.order_no,'
    'SILTERRA' FAB_ID,
    od.CUST_PO PO,
    imd.FW_DEVICE_ID PRD_NO,
    nvl(orf.USER_ITEM_DESCRIPTION, nvl(imd.CUST_DEVICE_ID, imd.FW_DEVICE_ID)) SHP_PRD_NO,
    sfl.LOTID LOT,
    sfl.currentcompqty WIP_QTY,
    'CREATED' ROUTEDESC,
    to_char(to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss'), 'DD-MON-YYYY HH24:MI:SS') IN_TIME,
    --sysdate - to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss') STAY_DAY,
    --to_date(sfl.scheduledcompletedate,'yyyymmdd') - sysdate BACK_DAY,
    to_char(sysdate - to_date(substr(recordstartdate,1, 14), 'yyyymmddhh24miss'),'9999D99') STAY_DAY,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd') - sysdate,'9999D99')BACK_DAY,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd'),'DD-MON-YYYY') WO_FCST_DATE,
    to_char(to_date(sfl.scheduledcompletedate,'yyyymmdd') + 1, 'DD-MON-YYYY') SHIP_FCST_DATE,
    --nvl(oel.attribute15, to_char(sysdate+3650,'DD-MON-YYYY')) SHIP_CONF_DATE,
    to_char(nvl(to_date(oel.attribute15,'DD-MON-YYYY'), sysdate+3650),'DD-MON-YYYY') SHIP_CONF_DATE,
    to_char(to_date(sfl.startdate,'yyyymmdd'), 'DD-MON-YYYY') WS_DATE,
    ' ' ROUTERATIO,
    sfl.tempprocessplan PROCESS,
    sfl.currentstatus LOTSTATUS,
    sfl.currenttype LOTTYPE,
    0 RETICLEVERSION,
    0 PROCESSVERSION,
    0 ROUTESEQUENCE,
    ' ' PRIORITY,
    ' ' PROCESSGEN,
    ' ' PROCESSFAMILY
    from SIL_FW_LOTCREATED_VIEW sfl, order_dim od, order_fact orf, item_master_dim imd,
    apps.oe_order_headers_all@prod_myfabetl oeh,
    apps.oe_order_lines_all@prod_myfabetl oel
    where substr(sfl.salesorderno,1,instr(sfl.salesorderno,'-',1,1)-1)= to_char(od.ORDER_NO)
    and od.RECORD_KEY = orf.ORDER_KEY
    and od.RECORD_CURRENT_FLAG = 1
    and orf.RECORD_CURRENT_FLAG =1
    and to_char(orf.LINE_ITEM_NUMBER) = substr(sfl.salesorderno,instr(sfl.salesorderno, '-',1,1) +1, (instr(sfl.salesorderno, '.',1,1) -1) - instr(sfl.salesorderno, '-',1,1))
    and to_char(orf.ITEM_SCHEDULE) = substr(sfl.salesorderno,instr(sfl.salesorderno, '.',1,1) +1, length(salesorderno) - instr(sfl.salesorderno, '.',1,1))
    and orf.ITEM_MASTER_KEY = imd.RECORD_KEY
    and sfl.customername = 'Realtek'
    and od.ORDER_NO = to_char(oeh.order_number)
    and oeh.header_id = oel.header_id
    and orf.LINE_ITEM_NUMBER = to_char(oel.line_number)
    and orf.ITEM_SCHEDULE = to_char(oel.shipment_number);
    select count(*) from rtnewwip;
    COUNT(*)
    136
    1 row selected

    query might be referring to different environment/schema as you are using database link to access some tables.
    getting result/count from view means executing query which forms that view. try to run that query separately and see the output.
    it may help you to debug

  • Input xml from output xml with reverse transformation

    I have the transformation and the output xml file. Is there any way I get the input message using the trasformation and output message with minor manual changes? Is there any tool for that?

    Hi Ragavalli,
    I understand that you want to archive the incoming message before map is applied. (Assuming map is not to be there on send port as not very clear about restrictions you have)
    There are two ways:
    1. Use of Custom pipeline component to archive message . You can find one at :http://biztalkarchiving.codeplex.com/
    2. The other option is to have
     Recieve port without map
     Two send port one  pointing to Archive folder  and other to temporary folder (intermediate)location
     Add both the send port to Send Port group. Have filter on it as BTS.PortName = ReceivePortName
     Create a receive port with temporary folder as receive location 
     Apply the inbound map on this port
    If map can be allowed on send port then
    1. Rec port without map
    2. Two send port, one without map other with map. 
    Thus original message will be saved by Send Port 1 and transformed by Send Port 2
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

  • Inserted rows are not sorted in ascending order

    Hi,
    in my code when i click on a button (UpdateSchedule) certain rows are displayed in the result table. My problem is the displayed data is not in ascending order I know by keeping sort enable on a particular field we can sort the data as req. But the first time the result which is displayed is not an ascending order , i want to tackle this issue.
    As whatever rows are displayed are not yet committed in database so modifying the query using order by clause also wont solve the issue . This data gets committed on a click of another button(ok).Can this be tackle programmatically ?
    I hope i have given proper elaboration of the issue.
    Regards,
    Anant.

    Reading this from Javadoc and understanding your requirement makes me feel that achieving it would not be easy, or may not be possible at all unless FWK provides some override to these rules.
    Restrictions & limitations:
    Sorting is performed by requerying the database.
    May not work well with view objects (VOs) that contain custom 'expert-mode' SQL. Basically the VO.setOrderByClause() is invoked on the VO using the column name associated with this web bean. An alternative for 'expert-mode' SQL may involve overriding the view object setOrderByClause() and performing custom logic. Note: The orderByParameter will be the column name plus either " desc" or " asc".
    Will not work with view objects that contain the view attribute expression "See the SQL...". To sort on these view attributes, modify the VO XML directly and change the view atttribute expression to the SQL column name.
    Sorting is not allowed for tables that allow inserts.
    Sorting is not supported for tables containing updateable columns (unless the updateable columns are mapped to transient VO columns.) No exception is thrown if the table contains updateable columns, since there may be a rare case when it makes sense, for example a table where the contents fit on one page.
    Modified transient columns will be reset. This is normal and expected behavior.
    Sorting is not supported on the 'Select' column - this is the first column of a table when it contains a checkbox or radio button.
    The table bean will invoke the following two methods on the view object to perform sorting. Debugging can be performed by setting a break on these methods on the VO (or a superclass of the VO.)
    viewObject.setOrderByClause(orderByClause);
    viewObject.executeQuery();
    Thanks
    Tapash

  • xsql:include-xml

    if the href for the <xsql:include-xml> call doesn't return any results or returns null you get an xsql error. Is there a workaround?
    for example:
    <xsql:include-xml id="0">
    select xmltype.getclobval(doc) from tbl_test where id = {@id}
    </xsql:include-xml>
    if doc is null or the resultset is empty then you get <xsql-error action="xsql:include-xml" />.

    Include a <xsql:no-rows-query> element.
    <xsql:include-xml href="">
    Select xmltype.getClobVal
    <xsql:no-rows-query>
    Select Statement to use if include-xml returns null.
    </xsql:no-rows-query>
    </xsql:include-xml>

Maybe you are looking for

  • Is photostream compatible with windows 8?

    Is photostream compatible with windows 8?  I installed windows 8 on my computer now my photo's won't save to photostream on the computer they do on the phone just not the computer?

  • Issue opening BEx query in Query designer

    Hi Expert, I am facing issue while trying to open a query in the BEx query designer. The query designer opens, then i search for the query and double click to open it. The system hangs there and the query never opens up. System details BW 7.3 SP9 Ple

  • Short Dump When activating BI Objects

    Hi Experts, When i try to activate any object ie., InfoObject, InfoCube, etc. it is moving to short dump. Can anyone please help in this issue, why it is going to short dump. Thanks & Regards Ramakrishna Kmaurthy

  • PDF creation shrinkage issue

    Hi all          I am working with CS 2. I have Indesign CS2 in 5 systems. While I am creating my Indesign document into PDF. I can find slight shrinkage in the PDF file between  5 systems. Not all the PDFs are have same shrinkage. Even two PDF's crea

  • Can you link or import calendar info to numbers iPad?

    I track my company time on my calendar an also use MobileMe. It would be nice to import a weeks worth of data fields to numbers on my iPad and generate a time report to then be emailed to the office.