Table name in XML output

Hello Experts,
My XML output from XI looks like:
  <?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_UPDATE_STATUS xmlns:ns0="http://test.test.ca">
- <STATEMENTNAME>
- <dbTableName action="UPDATE">
  <TABLE>stfx.job_copy</TABLE>
- <access>
  <status1>DONE</status1>
  <status2>DONE</status2>
  </access>
- <key>
  <jobId>00595593</jobId>
  <status1>NEW</status1>
  <messagenm>d3e98e294bfcd2d5d3e98e29</messagenm>
  </key>
  </dbTableName>
  </STATEMENTNAME>
  </ns0:MT_UPDATE_STATUS>
However, I need to change the table name being output from stfx.job_copy to stfx.job_history .  How do I do this??? Where is it configured?
Thanks
null

Hi Ahmad,
That worked - although I see what you mean.  It shouldn't be left like this.
Back to the original problem.  I currently have XML being generated as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_UPDATE_STATUS xmlns:ns0="http://test.test.ca">
- <STATEMENTNAME>
- <dbTableName action="UPDATE">
<TABLE>stfx.job_copy</TABLE>
- <access>
<status1>DONE</status1>
<status2>DONE</status2>
</access>
- <key>
<jobId>00595593</jobId>
<status1>NEW</status1>
<messagenm>d3e98e294bfcd2d5d3e98e29</messagenm>
</key>
</dbTableName>
</STATEMENTNAME>
</ns0:MT_UPDATE_STATUS>
I need to change stfx.job_copy to stfx.job_history.  Now that I am able to edit the IR, I still don't see where stfx.job_copy is hard-coded.  I know it is in message mapping, but when I click on TABLE, I do not see anywhere to change stfx.job_copy.  Any ideas?
Thanks

Similar Messages

  • Table name input. and output i need  all rows and columns  using procedures

    hi,
    question: table name input. and output i need all rows and columns by using procedures.
    thanks,
    To All

    An example of using DBMS_SQL package to execute dynamic SQL (in this case to generate CSV data in a file)...
    As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
      END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
          ELSE
            v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
          END CASE;
        END LOOP;
      --  DBMS_OUTPUT.PUT_LINE(v_finaltxt);
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.Output.txt file contains:
    empno,ename,job,mgr,hiredate,sal,comm,deptno
    7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
    7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
    7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
    7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
    7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
    7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
    7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
    7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
    7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
    7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
    7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
    7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
    7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
    7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required.

  • How to get the column name and table name from xml file

    I have one XML file, I generated xsd file from that xml file but the problem is i dont know table name and column name. So my question is how can I retrieve the data from that xml file?

    Here's an example using binary XML storage (instead of Object-Relational storage as described in the article).
    begin
      dbms_xmlschema.registerSchema(
        schemaURL       => 'my_schema.xsd'
      , schemaDoc       => xmltype(bfilename('TEST_DIR','my_schema.xsd'), nls_charset_id('AL32UTF8'))
      , local           => true
      , genTypes        => false
      , genTables       => true
      , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS
      , options         => dbms_xmlschema.REGISTER_BINARYXML
    end;
    genTables => true : means that a default schema-based XMLType table will be created during registration.
    enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS : indicates that a repository resource conforming to the schema will be automatically stored in the default table.
    If the schema is not annotated, the name of the default table is system-generated but derived from the root element name :
    SQL> select table_name
      2  from user_xml_tables
      3  where xmlschema = 'my_schema.xsd'
      4  and element_name = 'employee';
    TABLE_NAME
    employee1121_TAB
    (warning : the name is case-sensitive)
    To annotate the schema and control the naming, modify the content to :
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
      <xs:element name="employee" xdb:defaultTable="EMPLOYEE_XML">
        <xs:complexType>
    Next step : create a resource, or just directly insert an XML document into the table.
    Example of creating a resource :
    declare
      res  boolean;
      doc  xmltype := xmltype(
    '<employee>
      <details>
        <emp_id>1</emp_id>
        <emp_name>SMITH</emp_name>
        <emp_age>40</emp_age>
        <emp_dept>10</emp_dept>
      </details>
    </employee>'
    begin
      res := dbms_xdb.CreateResource(
               abspath   => '/public/test.xml'
             , data      => doc
             , schemaurl => 'my_schema.xsd'
             , elem      => 'employee'
    end;
    The resource has to be schema-based so that the default storage mechanism is triggered.
    It could also be achieved if the document possesses an xsi:noNamespaceSchemaLocation attribute :
    SQL> declare
      2 
      3    res  boolean;
      4    doc  xmltype := xmltype(
      5  '<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      6             xsi:noNamespaceSchemaLocation="my_schema.xsd">
      7    <details>
      8      <emp_id>1</emp_id>
      9      <emp_name>SMITH</emp_name>
    10      <emp_age>40</emp_age>
    11      <emp_dept>10</emp_dept>
    12    </details>
    13   </employee>'
    14   );
    15 
    16  begin
    17    res := dbms_xdb.CreateResource(
    18             abspath   => '/public/test.xml'
    19           , data      => doc
    20           );
    21  end;
    22  /
    PL/SQL procedure successfully completed
    SQL> set long 5000
    SQL> select * from "employee1121_TAB";
    SYS_NC_ROWINFO$
    <employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS
      <details>
        <emp_id>1</emp_id>
        <emp_name>SMITH</emp_name>
        <emp_age>40</emp_age>
        <emp_dept>10</emp_dept>
      </details>
    </employee>
    Then use XMLTABLE to shred the XML into relational format :
    SQL> select x.*
      2  from "employee1121_TAB" t
      3     , xmltable('/employee/details'
      4         passing t.object_value
      5         columns emp_id   integer      path 'emp_id'
      6               , emp_name varchar2(30) path 'emp_name'
      7       ) x
      8  ;
                                     EMP_ID EMP_NAME
                                          1 SMITH

  • EJB2.0 CMP Bean table Name in XML file

    hai all,
    I have a doubt in ejb-jar.xml . I have noticed that we mention the field names <cmr-field> ... But where do we mention name of the table in the XML. do we have to make the bean name as that of table name .
    Can Any one help me ?
    Thnks
    Sundar

    Hi pls see this DD for CMP. in this "abstract-schema-name" is the Data Base table name...
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CustomerBean</ejb-name>
    <local-home>LocalCustomerHome</local-home>
    <local>LocalCustomer</local>
    <ejb-class>CustomerBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <abstract-schema-name>Customer</abstract-schema-name>
    <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <primkey-field>customerID</primkey-field>
    ... other cmp fields
    <ejb-local-ref>
    <ejb-ref-name>ejb/AddressRef</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>LocalAddressHome</local-home>
    <local>LocalAddress</local>
    <ejb-link>AddressBean</
    </ejb-local-ref>

  • Random file name for xml output

    Hi:
    You know how when you're in design mode and select PDF preview, then click an email submit XML data button it assigns a random number as the XML file name? How can I set that same thing up when a user clicks the submit button from the web site? The default it assigns is the name of the pdf form.
    Many thanks for any suggestions,
    Ginger

    Virginia,
    The email submit button can only do what you described in your message.
    - The random file name generated in PDF preview is because you are in the design mode (not everyone has the working xpd file saved when he/she does a PDF preview. This results in a random file _x3432gd4343.xml is generated. It could have been called untitle1.xml if the product developers decide to do so).
    - When you open a PDF file (which has a name) in acrobat, the PDF filename is being used for the email attachment.
    Jimmy
    [email protected]

  • XML output to a file

    Hi,
    I am using XSU to querry a table and generate XML output.
    When I execute a file (say for example test.sql), is there a way I can save this XML output to a file (say 'something.xml') ??
    Can any one help ?
    Thanks.
    vikram

    Hi,
    Thanks for your reply.
    But I am sorry I didn't get you. I can't use the second option because I am not using XSQL.
    Coming to the first option, I didn't understand where to type
    java OracleXML ... > SomeFile.xml
    Can you explain pls ?
    Once again this is what I have got....
    Say, I have a file test.sql which contains the following code
    select xmlgen.getXML('select * from scott.emp1',1) from dual;
    commit;
    set serveroutput on
    Now, when I execute the file in SQL prompt I get the following output.
    <ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>1980-12-17 00:00:00.0</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </ROW>
    <ROW num="2">
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>1981-02-20 00:00:00.0</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    <DEPTNO>30</DEPTNO>
    </ROW>
    </ROWSET>
    I want this result to go to a file (.xml) instead of displaying the output in the SQL prompt.
    How do I do this ? Pls explain. Thanks.
    vikram
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Two ways:
    (1) Just redirect the output to a file like:
    java OracleXML ... > SomeFile.xml
    (2) Use the XSQL Command Line utility
    and build an XSQL Page that describes
    the query you want to do. Then you can
    do:
    $ xsql yourfile.xsql SomeFile.xml<HR></BLOCKQUOTE>
    null

  • Help on XML output challenge needed

    Hello,
    I need some help on getting different data from different relational tables into one XML output.
    Fe: I have 3 different sql queries with no strait relation. Now I want this as a xml document. How can I create a generic method to convert this into xml?
    The situation is as follows:
    the 3 sql queries together produce the data for a report (Fe. header, body, footer).
    I want this transformation in a generic way, so that I do not have to do the xml transformation for each query hardcoded.
    Thanks,
    Edward

    Maybe something like this?:
    select xmlconcat(xml) from (
        select dbms_xmlgen('select * from query1') xml from dual
        union all
        select dbms_xmlgen('select * from query2') from dual
        union all
        select dbms_xmlgen('select * from query3') from dual)

  • Need to reference file name within the XML Output

    Not sure if this is possible, as I'm new to the livecycle/XML world. But I need to be able to reference a file within the XML output from the PDF.
    The Scenario is that a pdf form of a business card will be issued to 50 franchisees for them to type in their names and mobiles, click submit and the XML file to be sent to myself, and be imported in to InDesign populating their data ready for printing. Up to here I have it working perfectly.
    However as each franchisee have a combination of up to 5 logos to place in the bottom corner to save having to have various templates with different combinations of logos and having to ensure the correct templates are used. I intend to reference each companies combination as an EPS and make the reference within the xml out and have it import directly in with the other data. I can type the code directly within the xml but I would like to have the form reference it directly in the xml output. Is this possible or am expecting to much of livecycle? Any help/advice greatly appreciated.
    David

    Hi MadhavaGanji,
    I have post how to validate the file name, header row against definition table which stored the file name and column definition. 
    Take a look and see if this is helpful.
    http://sqlage.blogspot.com/2013/11/ssis-validate-file-header-against.html
    http://sqlage.blogspot.com/

  • How to pass the table name dynamically in xml parsing

    Hi All,
    I have created one procedure for parsing xml file which is working perfectly.
    FORALL i IN t_tab.first .. t_tab.last
             INSERT INTO Test_AP VALUES t_tab(i);Now I want to put the table name dynamically+. For that I have added one query and modify above code as follow:-
    I have already declare dml_str varchar2(800) in declaration part.
    Query is as follows:-
    select table_name into tab_name from VERSION_DETAILS where SUBVERSION_NO=abc;  -- here abc is variable name which contains values.
    FORALL i IN t_tab.first .. t_tab.last
              dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
              EXECUTE IMMEDIATE dml_str USING t_tab(i);But it's not working. How I will resolve this or through which way I achieved the intended results. Anyone can guide me on this matter.
    Thanks in advance for your help...

    Hi,
    But it's not working.Don't you think it would help to give the error message?
    Put the assignment before FORALL.
    FORALL only accepts one subsequent DML statement (static or dynamic SQL) :
    dml_str := 'INSERT INTO ' || tab_name || ' values :vals';
    FORALL i IN t_tab.first .. t_tab.last          
    EXECUTE IMMEDIATE dml_str USING t_tab(i);

  • Smartform XML output stored in which table?

    Hi Folks,
    I wanted to know the  table where SAP stores the XML output of a Smartform...
    If not tables , please let me know where the output is stored....
    Thanks
    Reddy

    Hello Reddy,
    I suppose you are you calling Smartform execution with this kind of call (more or less):
    CALL FUNCTION v_fm_name
         EXPORTING
           ARCHIVE_INDEX                                   = s_archive_index
           ARCHIVE_INDEX_TAB                         = s_archive_index_tab
           ARCHIVE_PARAMETERS                    = s_archive_params
           CONTROL_PARAMETERS                  = s_control_param
           MAIL_APPL_OBJ                                   = s_mail_appl_obj
           MAIL_RECIPIENT                                  = s_mail_recipient
           MAIL_SENDER                                      = s_mail_sender
           OUTPUT_OPTIONS                              = s_output_options
           USER_SETTINGS                                 = 'X'
           LV_SALES                                               = p_sales
           LV_PADDR                                             = v_address_num
           LV_ADRNR                                             = v_adrnr
           LV_EQUNR                                             = v_equnr
           LV_SERNR                                             = v_sernr
         IMPORTING
           DOCUMENT_OUTPUT_INFO             =  s_doc_output_info
           JOB_OUTPUT_INFO                            =  s_job_output_info
         EXCEPTIONS
           FORMATTING_ERROR                        = 1
           INTERNAL_ERROR                              = 2
           SEND_ERROR                                      = 3
           USER_CANCELED                               = 4
           OTHERS                                                  = 5.
    You can get the document XML in the IMPORTING parameter JOB_OUTPUT_INFO, for example to download the XML document you can do something like this:
         LOOP AT s_job_output_info-xsfdata INTO xsf_line.
              l_line = xsf_line.
              APPEND l_line TO l_table.
         ENDLOOP.
         CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                   filename                        = 'C:\temp\test.xml'
              TABLES
                   data_tab                        = l_table.
    I am not sure the data is stored internally in any databse table (in addition to be return in the JOB_OUTPUT_INFO parameter).

  • Need to include table name,schema name in select output

    I need to output the table name and schema name of the current user into a table.. I have tried including
    within a select statement..
    table_name,
    from user_tables
    where table_name='mnme';
    no rows returned

    Hi,
    Its in upper case 'MNME'
    Best.
    EA

  • Cannot change table-name in persistent.xml

    I've successful deployed a Entity EJB on "SAP Enterprise Portal 6.0 SP4 NetWeaver Developer Sneak Preview"
    After changing the Table Name in persistent.xml and re-deploying the new EAR, the Entity EJB still writes to the old table.
    How can I get SAP Web AS to accept the new persistent.xml/persistent-ejb-map/entity-beans/entity-bean/table-name entry ?
    I've already tried:
    1) Re-deploy EAR and re-boot the server
    2) Delete all old copies of EAR directories and temporary files, reboot and re-deploy.
    Note: Expanding new EAR confirms that persistent.xml/table-name has been updated on the SAP Web AS.  However, EJB still writes to the old table.
    Alton

    In Web AS 6.40 the application data is stored in the database, therefore it is restored even if you delete the folders in the file system.
    To undeploy the application, you can use the Deploy Service runtime in Visual Administrator. Start the Visual Administrator using the <i>go</i> script file in <drive>:\usr\sap\<SID>\JC00\j2ee\admin. Then expand the <i>Services</i> tree under the server node, and choose <i>Deploy</i>. On the right-hand side of the screen switch to <i>Application</i> view, select your application, and choose <i>Remove</i>.
    Zornitsa

  • Table name which can show a list of customersfor an output type

    Hi All,
    Can you please tell me the table name which can show me the list of customers if a particular output type is mentioned in the selection screen.
    Thank you,
    Regards,
    Shanu.

    Hi,
    Table B001.
    Goto SE16 enter B001
    Application : V1 - sales, V3 - Billing
    enter output type - BA00 or RD00  and press F8.
    Regards,
    Chandrasekhar.S
    Edited by: chandra sekhar S on Aug 12, 2008 12:28 PM
    Edited by: chandra sekhar S on Aug 12, 2008 12:36 PM

  • SRM PO Output log table name

    Hi,
    We are using extended classic scenario. PO is created in SRM. When SRM PO is created, email is sent to supplier. I wanted to know the name of SRM PO output log.
    Regards,
    Satish Aralkar

    Hi Satish,
    If you want to see the Output sent from SRM you can check the transaction SOST.
    OR
    if you want to check the triggered output for PO:
    You can use transaction BBP_PPF to see the output logs
    Enter the following values for PO log:
    1.Action definition = 'STANDARD_PO'
    2. Application Key = Enter PO Number
    You can remove any value in time Frame.
    Click on Start .You will see all the triggered output's for PO.
    You can access this in Web GUI (ITS) with trasaction link  'Issue Purchase Order'
    If you want to see the Output sent from SRM you can check the transaction SOST.
    Table name : PPFTTRIGG
    Best Regards,
    Sapna
    Edited by: Sapna Patil on May 20, 2009 5:52 AM

  • Need table name for Output Types and Account Assignment Types

    Hi
    pl let me know the table name for
    1. Account Assignment Type
    2. Output Types (All)
    I need to download some company code specific data for both
    Pl confirm
    Warm Regards
    Vikcy

    Hi Thanks for reply
    You mean to say that Account Assignment Types = Account Assignment Category   ????
    Secondly In Table NAST, i can not see field "Output Type"
    Pl confirm once which field give me company code specific "Output Type" data
    Regards
    Vicky

Maybe you are looking for