Split contents in a row

SQL> select edcd_emp_code,edcd_title_name,edcd_param_value from employee_deschange_details
  2  where edcd_emp_code =0002108
  3  and edcd_code='PWI';
EDCD_EMP_CODE                         EDCD_TITLE_NAME                                                                                          EDCD_PARAM_VALUE
0002108                              |%DESIGNATION|%EFFECTIVE_DATE|%SALARY|AED                                           |HR ASSISTANT|21-JUN-2010|20000
SQL> select edcd_emp_code,edcd_title_name,edcd_param_value from employee_deschange_details
  2  where edcd_emp_code =0000108
  3  and edcd_code='PWI';
EDCD_EMP_CODE                         EDCD_TITLE_NAME                                                                                          EDCD_PARAM_VALUE
0000108                                   |%DESIGNATION|%EFFECTIVE_DATE|%SALARY|AED                             |Deputy Manager| |20000|AEDbased on the edcd_emp_code =0000108 and edcd_code='PWI' the output has to come like
EDCD_TITLE_NAME                            EDCD_PARAM_VALUE
%DESIGNATION                                 Deputy Manager
%EFFECTIVE_DATE                           
%SALARY                                         20000
AED                                                  AEDbased on the edcd_emp_code =0002108 and edcd_code='PWI' the output has to come like
EDCD_TITLE_NAME                            EDCD_PARAM_VALUE
%DESIGNATION                                  HR ASSISTANT
%EFFECTIVE_DATE                             21-JUN-2010
%SALARY                                          20000
AED                                                  AEDhow to split the values ? please help
thanks in advance
sunflower
Edited by: SunFlower on Jun 21, 2010 11:17 PM
Edited by: SunFlower on Jun 21, 2010 11:18 PM

SQL> select edcd_title_name,edcd_param_value
  2  from  employee_deschange_details;
EDCD_TITLE_NAME                                                                        EDCD_PARAM_VALUE
|%DESIGNATION|%EFFECTIVE_DATE|%SALARY|AED                       |Deputy Manager|22-JUN-2010|20000|AED
|%DESIGNATION|%EFFECTIVE_DATE|%SALARY|AED                       |HR ASSISTANT|21-JUN-2010|20000i need output as folllows
P_TITLE                                              P_VALUE
%DESIGNATION                                 Deputy Manager
%EFFECTIVE_DATE                            22-JUN-2010
%SALARY                                         20000
AED                                                 AED
%DESIGNATION                              HR ASSISTANT
%EFFECTIVE_DATE                         21-JUN-2010
%SALARY                                      20000
AED
But using the following query am getting output as shown below
SQL> ed
Wrote file afiedt.buf
  1  select p_title
  2     ,      replace(p_value, p_title) p_value
  3     from ( select substr( edcd_title_name
  4                         , instr (edcd_title_name, '|', 1, level) + 1
  5                         , instr (edcd_title_name, '|', 1, level+1) - instr (edcd_title_name, '|', 1, level) -1
  6                         ) p_title
  7            ,      substr( edcd_param_value
  8                         , instr (edcd_param_value, '|', 1, level) + 1
  9                         , instr (edcd_param_value, '|', 1, level+1) - instr (edcd_param_value, '|', 1, level) -1
10                         ) p_value    from   employee_deschange_details
11           connect by level < length(edcd_param_value)-length(replace(edcd_param_value,'|',''))
12*         )
SQL> /
P_TITLE                                              P_VALUE
%DESIGNATION                                Deputy Manager
%EFFECTIVE_DATE                           22-JUN-2010
%SALARY                                        20000
%EFFECTIVE_DATE                          21-JUN-2010
%SALARY                                       20000
%DESIGNATION                              HR ASSISTANT
%EFFECTIVE_DATE                         22-JUN-2010
%SALARY                                      20000
%EFFECTIVE_DATE                        21-JUN-2010
%SALARY                                     20000
10 rows selected.Please check the code given and let me know where is missed
Thanks in advance

Similar Messages

  • Why split content on a country by country basis?

    What I want to know is why Apple went down the road of splitting content on a country by country basis? I know that the good folks at Apple like to think that they "think different" but even they must be shaking their heads at the mess they have created. All they needed to do was look at a model that actually works: E-Bay. If I live in Canada -- which I do -- and want to sell whatever to my fellow Canadians, no problem. If I want to sell it across the border in virtually any other nation, all it takes is the clicking of a radio button. If I want to preclude a particular nation, it  likewise requires a click or two. Buyers are likewise empowered.
    Now take Apple. I've published an iBook Textbook [Yes I know: My first mistake.] I initially published it in Canada and a handful of other English speaking countries. Since it's an ESL textbook I've had enquiries now from Japan, Korea and Thailand, all looking to download the FREE sample and/or buy the book. But in Apple's world, they can't. And I can't upload it to the iTunes/iBookstore/iCouldNotGiveADamn in those countries either. This is not an option. This is an English language book that educators in those coutries have expressed an interest in. This isn't a technological problem related to fonts, l-to-r reading or anything of that nature. This is a problem related to bad decision making in the boardroom.
    Another example of a model that works? Amazon. Apple has the technological lead with iBA but Amazon will catch up. Then you want to see rats leaving a sinking ship? I'll be the first in the water. This bizzare, control-freak approch is going to sink Apple's aspirations to dominate the textbook market.

    You are just talking to other users like yourself in these forums, so be sure to repost to your comments to the channel where Apple will definitely see them
    http://www.apple.com/feedback

  • Different content for a row popin in every row

    HI,
    is it possible to have a different content for a row popin in every different row?
    For example: In Row 1 I have a ViewContainerUIElement containing View A, in Row 2 I have a ViewContainerUIElement containing View B...
    This is what I need, different views in every row...
    Is this somehow possible?
    Best regards,
    Peter

    OK than. Have you think about one view which will be in your table popin, but each element in this view will be created dynamically? Than you will get the look as there are different views, different design for each row, but it will be the same view.

  • Problem with "PL/SQL Dynamic Content" and displaying rows

    hi,
    im new to APEX, and pl/sql [but not web dev or sql].
    ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
    maybe there's a better option for people who dont know pl/sql? i dont know?
    however, i think i can getting working with a little bit of help but im stumbling around in the dark a bit here.
    ok so this is the pl/sql ive come up with to show three example values on page 23 of my aplplication:
    BEGIN
    SELECT ID, NAME, OWNER
    FROM COM_MAILSHOTS
    INTO :P23_ID, :P23_NAME, :P23_OWNER;
    END;
    im getting the error:
    1 error has occurred 
    ORA-06550: line 5, column 21: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored
    thanks for reading!

    Metabaron wrote:
    hi,
    im new to APEX, and pl/sql [but not web dev or sql].
    ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
    maybe there's a better option for people who dont know pl/sql? i dont know?
    The easiest (and best) way to "display rows" is using a report. Dynamic PL/SQL regions are more complex and are required much less frequently.
    The Oracle® Database 2 Day + Application Express Developer's Guide tutorial explains how to create reports and other basic APEX techniques.

  • How to split a single column row  in alv report

    Hi All,
    I need to split a row of the particular coolumn in alv report.
    for example row size is 10 that should be split into 5 & 5.
    Thanks
    Ram

    Hi Ram,
    You can add one more column for that..
    while processing your internal table you can split the value for that column using offset..
    DATA :  FIELD_STR(10) TYPE C.
    VAR1 = FIELD_STR+0(5) .
    VAR2 = FIELD_STR+5(5) .
    Now you can print this both VAR1 and VAR2 in seperate column.
    Please search on SCN before posting any question..
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How do i split content from the text file using tab and spaces...?

    Hi.. Just want to ask help to all the experts. Im new in java and i have this problem on how to split the contents of the text file. ill show you the contents in order to let you see what i mean.
    FileName: COL.txt
    AcctNo AcctName Primary Secondary Status Opendate
    121244 IPI Company Noel Jose Active 12/05/2007
    As you can see the content i want to split it per column.. Please help me

    Jose_Noel wrote:
    Hi prometheuzz,
    What do you mean by one thread...?You created two threads* with the same question in it. That way, people might end up giving you an answer that has already been posted in your other thread: thus wasting that person's time.
    Just don't create multiple threads with the same question please.
    * a thread is a post here at the forum

  • Splitting worksheets by blank rows

    Hey guys,
    So I have a bunch of text files, which I need to import into Numbers. The thing is, each one needs to be in a separate sheet, but in the same book, and there's 50 of them, so dragging and dropping each of them into their own spreadsheets is a pain.
    As an alternative, I put together a quick Automater script that combines all 50 text files into one, which is separated with blank lines. So, if I could import this file, and then split the worksheets by the blank rows somehow, I'd have solved my problem. A quick google didn't turn up much on how to do this, or if it's possible. Anyone know?
    As an aside, I was going to try to simply write a script that imports each text file automatically into its correct worksheet. Unfortunately, it doesn't look like Automater has much support for importing stuff into Numbers above simply opening a file, and I need all 50 in the same file, not in 50 different ones. But if anyone knows of a way to do this, that would also be helpful.

    Here's my take on it:
    You have a single document and you want it to have 50 tables, each table in a separate sheet.
    You have been able to make a single table that contains all of the data.
    You did not say what format your text file was. Is it a CSV file?
    Here is what I might do:
    New document
    Delete the table in Sheet 1
    Rename the sheet in the sidebar. At least remove the number.
    Select the sheet in the sidebar and copy (Cmd C)
    Paste it in the sidebar 50 times (Cmd V)
    All the sheets will be numbered except the original one. Delete the original sheet.
    If your text file is a CSV file, drop it on the first sheet and it will make a table from it. Otherwise, copy and paste the table from your other document that has the data in it already.
    Select a set of rows that you want to move to a new table.
    Cut (Cmd X) or copy (Cmd C). Cut makes it easier to see what you've done.
    Paste onto one of the other sheets in the sidebar (Cmd V) and it will create a table
    Repeat for your other sets of rows. 49 times in all, ouch.
    Delete all the empty rows in your first table.
    Still a lot of work. All the tables should end up as Table 2, except the original one.

  • Swapping content when moving rows in tables

    In Pages '06, you could grab a row on a table and drag it over another row and the content would swap. This was a very convenient way to re-order a table. In Pages '08 if you drag a row, it just replaces the destination and leaves a blank row behind. (This of course is how MS Word works, I always liked the improvement in Pages.)
    Does anyone know of a way to get back to this behavior or why it was changed?

    that's surprising. Try it in Pages '06. I just did. And it works as I described. And then I looked up the Pages '06 help file:
    (note, if you have both versions installed, and search help, you end up in the Pages '08 help file, so you have to navigate the Pages '06 help manually.)
    in the previous version, the option key did an overwrite, but the reverse is not true in this version.
    Moving or copying table cells
    You can move or copy one or more table cells at a time.
    To move cells:
    Select the cell or cells you want to move.
    Drag the cell or cells to a new location in the table.
    Any cells you move swap position with cells previously occupying that location in the table.
    You can also replace a cell by moving a copy of another cell into it. Select the cell you want to copy, and then press the Option key while dragging the cell into the cell you want to replace.

  • Audible content with Front Row

    Has anyone been able to listen to their Audible content from within Front Row? There is an Audiobook category under Music, but that seems to only contain audio books bought from ITMS. If I try to play audio book from Audible from one of my playlist, I get a message that says "This computer is not authorized to play this...." I'm able to play my Audible selection from within iTunes, so I know the computer has been successfully authorized. Anyone have any ideas?
    Thanks,

    Can your remote "learn"? I use a universal remote with my iMac for controlling my HDTV, stereo, EyeTV software and Front Row. I've programmed the Apple remote's commands into my remote with the "learn" feature.
    -Doug

  • Insert String array as label content in datagrid row through radio button C# wpf?

    I have written some code for inserting label at runtime having its content set to a string array and then insert that label into a datagrid row . All of this will initiate when certain radiobuttons are checked. code is working perfectly fine. But i need
    to improve this code as i am learning C#, wpf and datagrid. I know there can be a certain way to improve this code. 
    This code will be a nightmare when there are 50 radiobuttons. 
    can it be improve and how it can be? if u can explain that will be very kind of you  
    Xaml Code:
    <Grid>
    <RadioButton x:Name="rb_1" Content="RadioButton" HorizontalAlignment="Left" Margin="351,85,0,0" VerticalAlignment="Top" GroupName="1" />
    <RadioButton x:Name="rb_2" Content="RadioButton" HorizontalAlignment="Left" Margin="351,105,0,0" VerticalAlignment="Top" GroupName="1"/>
    <RadioButton x:Name="rb_3" Content="RadioButton" HorizontalAlignment="Left" Margin="351,120,0,0" VerticalAlignment="Top" GroupName="1" />
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,159,0,0" VerticalAlignment="Top" GroupName="2" />
    <RadioButton x:Name="rb_4" Content="RadioButton" HorizontalAlignment="Left" Margin="351,179,0,0" VerticalAlignment="Top" GroupName="2"/>
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,199,0,0" VerticalAlignment="Top" GroupName="2" />
    <Button Content="Button" HorizontalAlignment="Left" Margin="713,60,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2"/>
    <DataGrid x:Name="datagrid_" HorizontalAlignment="Left" Margin="549,85,0,0" VerticalAlignment="Top" Height="253" Width="399" />
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,226,0,0" VerticalAlignment="Top" GroupName="3" />
    <RadioButton x:Name="rb_6" Content="RadioButton" HorizontalAlignment="Left" Margin="351,246,0,0" VerticalAlignment="Top" GroupName="3"/>
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,266,0,0" VerticalAlignment="Top" GroupName="3" />
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,298,0,0" VerticalAlignment="Top" GroupName="4" />
    <RadioButton x:Name="rb_8" Content="RadioButton" HorizontalAlignment="Left" Margin="351,318,0,0" VerticalAlignment="Top" GroupName="4"/>
    <RadioButton Content="RadioButton" HorizontalAlignment="Left" Margin="351,338,0,0" VerticalAlignment="Top" GroupName="4" />
    </Grid>
    Code Behind:
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    DataTable dt;
    DataRow dr;
    string[] str = new string[4];
    int location = 0;
    int count = 0;
    private void Window_Loaded(object sender, RoutedEventArgs e)
    dt = new DataTable("emp");
    DataColumn dc1 = new DataColumn("Factors", typeof(string));
    DataColumn dc2 = new DataColumn("Non_Compliant", typeof(string));
    dt.Columns.Add(dc1);
    dt.Columns.Add(dc2);
    datagrid_.ItemsSource = dt.DefaultView;
    private void Button_Click_2(object sender, RoutedEventArgs e)
    if (count >= 1)
    datagrid_.ItemsSource = dt.DefaultView;
    dt.Clear();
    str[0] = "Load Path1";
    str[1] = "Load Path2";
    str[2] = "Load Path3";
    str[3] = "Load Path4";
    int j = 0;
    if (rb_2.IsChecked == true)
    j = 0;
    int k = 0;
    dr = dt.NewRow();
    Label label = new Label();
    label.Height = 28;
    label.Width = 100;
    label.HorizontalAlignment = HorizontalAlignment.Center;
    label.VerticalAlignment = VerticalAlignment.Center;
    label.Content = str[j];
    dr[k] = label.Content;
    dt.Rows.Add(dr);
    datagrid_.ItemsSource = dt.DefaultView;
    location += 34;
    if (rb_4.IsChecked == true)
    j = 1;
    int k = 0;
    dr = dt.NewRow();
    Label label = new Label();
    label.Height = 28;
    label.Width = 100;
    label.HorizontalAlignment = HorizontalAlignment.Center;
    label.VerticalAlignment = VerticalAlignment.Center;
    label.Content = str[j];
    dr[k] = label.Content;
    dt.Rows.Add(dr);
    datagrid_.ItemsSource = dt.DefaultView;
    location += 34;
    if (rb_6.IsChecked == true)
    j = 2;
    int k = 0;
    dr = dt.NewRow();
    Label label = new Label();
    label.Height = 28;
    label.Width = 100;
    label.HorizontalAlignment = HorizontalAlignment.Center;
    label.VerticalAlignment = VerticalAlignment.Center;
    label.Content = str[j];
    dr[k] = label.Content;
    dt.Rows.Add(dr);
    datagrid_.ItemsSource = dt.DefaultView;
    location += 34;
    if (rb_8.IsChecked == true)
    j = 3;
    int k = 0;
    dr = dt.NewRow();
    Label label = new Label();
    label.Height = 28;
    label.Width = 100;
    label.HorizontalAlignment = HorizontalAlignment.Center;
    label.VerticalAlignment = VerticalAlignment.Center;
    label.Content = str[j];
    dr[k] = label.Content;
    dt.Rows.Add(dr);
    datagrid_.ItemsSource = dt.DefaultView;
    location += 34;
    count++;

    @Usamakhan1990,
    Use usercontrol with label and checkbox is reasonable for a datagrid control if you don't want to have too much code for those radio buttons. So I agree with andy here with that usercontrol.
    So is it required that your radiobutton should be outside the datagrid?
    Anyway, I think you already know that you can bind data to columns yourself. So please check the following thread:
    http://stackoverflow.com/questions/22922533/how-do-i-automagically-bind-a-string-array-to-a-wpf-datagrid
    <DataGrid Name="_dataGrid" Grid.Row="0" AutoGenerateColumns="False">
    <DataGrid.Columns>
    <DataGridTextColumn Header="Column 1" Binding="{Binding [0]}"/>
    <DataGridTextColumn Header="Column 2" Binding="{Binding [1]}"/>
    </DataGrid.Columns>
    </DataGrid>
    Or define the columns from code, in case you have dynamic number of columns, for example :
    string[][] array = fs.CSVToStringArray();
    for (int i = 0; i < array[0].Length; i++)
    var col = new DataGridTextColumn();
    col.Header = "Column " + i;
    col.Binding = new Binding(string.Format("[{0}]", i));
    _dataGrid.Columns.Add(col);
    this.ExternalData._dataGrid.ItemsSource = array;
    And for Radio button part, please see here:
    http://stackoverflow.com/questions/397556/how-to-bind-radiobuttons-to-an-enum
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Click a row in jTextArea and get the content of the row.

    I have an array of strings display in a textarea, once a user click on a row, i will like to display the content of the clicked row. I am new in java swing. how should i achieve it? thank you all!!

    Working example with CaretListener:
    package org.apex.sunforums;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    * TextAreaLineSelectionTest.java
    * @author mrityunjoy_saha
    * @version 1.0
    * @since Apex 1.2
    public class TextAreaLineSelectionTest {
        public void createUI() {
            final JFrame frame = new JFrame("TextAreaLineSelectionTest");
            frame.setSize(400, 400);
            JPanel panel = new JPanel();
            panel.setLayout(new GridLayout(2, 1));
            final JTextArea textField = new JTextArea(
                    "Hello\nThis is a test class.\nTo show line selection\nType some text and see the magic.",
                    10, 20);
            JScrollPane scroll = new JScrollPane(textField,
                    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            final JLabel display = new JLabel();
            textField.addCaretListener(new CaretListener() {
                public void caretUpdate(CaretEvent e) {
                    String lineText = "";
                    try {
                        int dot = e.getDot();
                        int rowStart = Utilities.getRowStart(textField, dot);
                        int rowEnd = Utilities.getRowEnd(textField, dot);
                        lineText = textField.getDocument().getText(rowStart,
                                (rowEnd - rowStart));
                    } catch (BadLocationException ex) {
                        ex.printStackTrace();
                    display.setText(lineText);
            panel.add(scroll);
            panel.add(display);
            frame.getContentPane().add(panel);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static void main(String[] args) {
            final TextAreaLineSelectionTest test = new TextAreaLineSelectionTest();
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    test.createUI();
    }Thanks,
    Mrityunjoy

  • Splitting Contents of a Column

    I need to break (split) the content of a column into four individual elements. The content on this column is made up of four (4) parts, each part is separated by an underscore character (_). Each part contains a variable value, so the underscore character is not fixed.
    Column format: Part1_part2_part3_part4
    Example;
    aaaa_bbbb_cccc_eeee
    aaaaa_bbbb_ccccc_eeee
    aaa_bbb_ccccc_eeeee
    aa_bbbbbb_ccc_ee
    I would like to end up with each part separated from the original value. So, that I can group by the value for each part (Part1, part2, part3, or part4)
    Wanted result (this is only represents the values for “Part1” from example)
    Part1 values;
    aaaa
    aaaaa
    aaa
    aa
    Thank you in advance

    1) It sounds like you have a problem with incorrect normalization. Your column is not atomic. Your table should really have 4 separate columns to store each component. It's far easier to combine 4 columns to get a combined value than to try to parse a compound column.
    2) That said, you can use the SUBSTR and INSTR functions to parse the data
    SQL> ed
    Wrote file afiedt.buf
      1  with x as (
      2    select 'aaaa_bbb_cc_eeeee' compound from dual
      3  )
      4  select substr( compound,
      5                 1,
      6                 instr( compound, '_', 1, 1 ) - 1 ) part_1,
      7         substr( compound,
      8                 instr( compound, '_', 1, 1 ) + 1,
      9                 instr( compound, '_', 1, 2 ) -
    10                    instr( compound, '_', 1, 1) - 1) part_2,
    11         substr( compound,
    12                 instr( compound, '_', 1, 2 ) + 1,
    13                 instr( compound, '_', 1, 3 ) -
    14                    instr( compound, '_', 1, 2) - 1) part_3,
    15         substr( compound,
    16                 instr( compound, '_', 1, 3 ) + 1,
    17                 length(compound) -
    18                    instr( compound, '_', 1, 3) - 1) part_4
    19*   from x
    SQL> /
    PART PAR PA PART
    aaaa bbb cc eeeeJustin

  • Content Conversion: One row with one header and multiple item structures. Possible?

    Dear all,
    I have a input that looks like this:
    HeaderKeySomeHeaderInformationItemKeySomeItemInformationItemKeySomeItemInformation...
    Here's the actual input
    TEHGMESS0026000000288S0001TEI2____026200006112410400000000           18010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000JTEI2____026200006112410400000000           19010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    HeaderKey = TEHGMESS
    ItemKey = TEI2____
    Is it possible to process this via MessageTransformBean (my actual scenario is JMS to IDoc)? I already tried but I only succeeded when having new lines in my input to separate between Header and (multiple) Items.
    So when the input and my configuration looks like below it works, but when I only have a single row input it doesn't work, even when specifying xml.recordHeader.endSeparator = '0' / xml.recordItem.endSeparator = '0'. I even tried xml.endSeparator = '0' but no luck.
    Input that works
    TEHGMESS0026000000288S0001
    TEI2____026200006112410400000000           18010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    TEI2____026200006112410400000000           19010000000000                                                      00126000000000126000120600000000002000000000                                    000WESTMONOBERTBE2014052309422408120003 000000000000000000000000000000J
    Matching configuration that works for input which structures are delimited by new line.
    Paramentername
    Parametervalue
    Transform.Class
    com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType
    text/xml;charset=utf-8
    xml.conversionType
    StructPlain2XML
    xml.documentName
    MT_TEI2Split
    xml.documentNamespace
    http://hansgrohe.com/pi/MQ/TEI2/10
    xml.keyFieldName
    SATZARTKey
    xml.keyFieldType
    CaseSensitiveString
    xml.processFieldNames
    fromConfiguration
    xml.recordHeader.fieldFixedLengths
    8,4,9,1,4
    xml.recordHeader.fieldNames
    SATZARTKey,SATZLENHG,NUTZLEN,MESSAE,MESSNR
    xml.recordHeader.keyFieldValue
    TEHGMESS
    xml.recordItem.fieldFixedLengths
    8,4,2,10,8,19,3,3,2,10,6,2,10,6,2,10,6,6,6,6,6,11,9,2,10,6,2,10,6,3,4,3,7,14,8,1,31
    xml.recordItem.fieldNames
    SATZARTKey,SATZLEN,BUCHART,TRNR,ANDGNR,MITEM,TEIVARI,BSTSTATU,REFTYP,ORNO,POS,REFTYP1,ORNO1,POS1,CHATYP,CHARGE,CHAPOS,ABBVONL,ABBNACH,ZUBVONL,ZUBNACH,I2MENG,I2BUNR,REFTYPN,ORNON,POSN,REFTYP1N,ORNO1N,POS1N,BSTSTATN,ABUSERAB,ABUSERFN,ABUSERNA,I2TIME,I2LIDNR,I2FMCODE,FILLER
    xml.recordItem.keyFieldValue
    TEI2____
    xml.recordsetName
    records
    xml.recordsetStructure
    recordHeader,1,recordItem,*
    Any clues on this? Is it even possible to have multiple structures in one row? Many thanks in advance
    Jens

    SAP came back to me with this answer:
    First, I would like to point the documentation for Message Transform
    Bean (MTB) in 7.4:
    http://help.sap.com/saphelp_nw74/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm?frameset=/en/57/0b2c4142aef623e10000000a155106/frameset.htm&current_toc=/en/45/0ea2de423c2d6be10000000a11466f/plain.htm&node_id=18
    As it is written at the beginning of this document, MTB is used to
    call classes written for the Plain Adapter Engine. So you may find
    additional documentation about the parameters for convertion in the
    documentation of the Plain Adapter Engine
    (http://help.sap.com/saphelp_nw74/helpdata/en/0d/00453c91f37151e10000000a11402f/content.htm?frameset=/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm&current_toc=/en/75/246b3de666930fe10000000a114084/plain.htm&node_id=11).There it is written that the structures by default are
    arranged line-by-line. The endSeparator just adds additional character
    string as a separator after the last column in a row.
    I hope that this answers your question. MTB expects the data to be
    structured line by line.
    You may add a custom module, which transforms the message in the
    expected format.
    If you have a look at the second link there's even a more precise wording that multiple structures within one line are not supported:
    xml.NameA.endSeparator
    Even if no specification is made here, a line break must follow since substructures are always expected as a line of the document.
    Bottom line is that it's not supported by now and verfied by me with PI 7.4 SP5
    Many thanks to Ambrish, Amit and Hareesh for the valuable input. Will probably try to work things out for now following Ambrish's / Hareesh's suggestion as this seems easier to implement. Amit's proposal with a dedicated module however would probably be the more polished solution.
    Cheers
    Jens

  • Split multiple columns into rows using XML

    Hi Forum,
    I am trying to split 2 columns that each contain values separated by semicolon into single rows. The relation between the values of the two columns is that the order in the cells corresponds to each other.
    The data looks like this:
    pk    Manufacturer                partnumber
    1     Man1; Man2;Man3      PN1;PN2;PN3
    2     Man4; Man2;Man5      PN4;PN5;PN6
    The result should be:
    pk    Manufacturer     partnumber
    1       Man1                   PN1
    1       Man2                   PN2
    1       Man3                   PN3
    2       Man4                   PN4
    2       Man2                   PN5
    2       Man5                   PN6
    I am not sure how to format the XML to get a useful Basis for XML.value or XML.query
    Any ideas?
    TIA
    Alex

    Hi,
    Try like this ,
    DECLARE @tmp TABLE (pk INT,Manufacturer NVARCHAR(50),partnumber NVARCHAR(50))
    INSERT @tmp SELECT 1,'Man1; Man2;Man3','PN1;PN2;PN3'
    INSERT @tmp SELECT 2,'Man4; Man2;Man5','PN4;PN5;PN6'
    SELECT * FROM @tmp
    SELECT tmp2.pk pk,Manufacturer,partnumber FROM (
    SELECT ROW_NUMBER()OVER(ORDER BY tmp1.pk) RN,* FROM (
    SELECT pk,
    LTRIM(i.value('.','varchar(100)')) Manufacturer
    FROM ( SELECT pk, Manufacturer,
    CONVERT(XML,'<r><n>'
    + REPLACE(Manufacturer,';', '</n><n>') + '</n></r>') AS X
    FROM @Tmp) Spt
    CROSS APPLY Spt.X.nodes('//*[text()]') x(i)
    ) tmp1 ) tmp2
    JOIN
    (SELECT ROW_NUMBER()OVER(ORDER BY pk) RN,* FROM (
    SELECT pk,
    j.value('.','varchar(100)') partnumber
    FROM ( SELECT pk, partnumber,
    CONVERT(XML,'<r><n>'
    + REPLACE(partnumber,';', '</n><n>') + '</n></r>') AS Y
    FROM @Tmp) Spt
    CROSS APPLY Spt.Y.nodes('//*[text()]') y(j)) tmp2 ) tmp3 ON tmp3.RN = tmp2.RN
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • ITunes U content in Front Row

    Does iTunes U content not show up within Front Row? I thought maybe they would be included under Podcasts, but I don't see them there. There is also not a specific category devoted to only iTunes U.
    Anyone have an ideas?

    fopboy wrote:
    yeh, same problem here (10.5.8)
    iTunesU does appear in Front Row but it is very very broken.
    Look under Music > Playlists and you'll see an iTunesU category
    However audio only iTunesU do not play, I get an unsupported video error message even though they are not video files
    video iTunesU will play but it appears that Front Row streams the episodes direct from the internet rather than playing the already downloaded copies
    so iTunesU video works after a fashion, but iTunesU audio-only appear not to work
    unless someone can point me to some prefs setting or something that will make iTunesU work correctly?
    i have too many iTunesU lectures to arse around changing them all to podcasts and also podcasts are organisied differently
    update: the only episodes of anything showing under iTunesU in Front Row are those episodes i am subscribed to but haven't yet downloaded... anything i am subscribed to but have downloaded doesn't appear in Front Row - bizarre

Maybe you are looking for

  • Need the WM structure info

    Dear Experts, I have the following case where i need to define the structure in warehouse complex.In the current non-SAP system the entire warehouse area has a highrack storage, where there are about 100 materials stored.The WM users have defined sto

  • Can't get updater to work

    when i plug the ipod in and launch the updater, because all that it does is show a folder with a ! on it when it is on, it says that i need to stop all other applocations accessing it but their isn't anything. i even made all programs stop by the saf

  • Inserting image to table...ORA-22288: file or LOB operation FILEOPEN failed

    Good day! I'm just new with using databases, and i'm enjoying it. So I read that you can insert images to a table, and so i decided to try it... and here's where I'm at.. *I made a directory CREATE directory image_dir as 'D:\Images'; --Directory Crea

  • Planning Admin or users cant see Business Rule

    Hi - When I log onto Planning with the 'owner' id, I am able to see all the Business Rules associated with that cube. But when I log in with an ID that has Administrator permissions for that Planning application, I'm not able to view any of the Busin

  • Installing new software for ipod touch.

    Thanx to all who replyed to my situation. I have since been able to dwnload & install 4.0.2. software sucessfully to my ipod touch. Although it took at least 5 attempts I reinstalled itunes newest version (9.1.2) then clicked update,then unpluged my