How  i can implement the desired format in ODI ??

Hi
i want to export data from table to file
but in file i have specific format like
Account Number :A123456
Cutomer 1
Customer 2
Customer 3
Account Number : B999999
Cutomer 4
Customer 5
Customer N
How i can implement this
plz suggest me possible solutions for this
thanks

Hi,
I have done this before by using three files. The first file contains the header row - in your case, I would create a variable which selects the account number via rownum for example (you could add another variable so you could increment the rownum until exhausted). Then in the first ODISqlUnload
select 'Account Number :'||#variable.account_number
from table.
This creates you header row in a file
Then, in a second ODISqlUnload, select the 'Customer' data for the account number into another file
select customer_details
from table
where account_number = #variable.account_number.
So you end up with a list :
Customer 1
Customer 2
etc etc
Then using an ODIFileAppend, append the two files created above in the final output file. Then loop round in a package for all your account numbers, using the two temp files, then append to the final output.
Your final output file, then looks like:
Account Number :A123456
Customer 1
Customer 2
Customer 3
Account Number : B999999
Customer 4
Customer 5

Similar Messages

  • How to Print in the desired format

    Hi, I'm pretty new to this site. I've some problem in printing out in the format that i was looking to.
    for(i=0;i<3;i++)
    for(j=0;j<3;j++)
    if(a==0)
    out[i][j]=3;
    }//end of if
    if(a==1)
    out1[i][j]=2;
    }//end of if
    }//end of j
    }//end of ii had some kind of coding for that 'a' value to change from 0 to 1
    Upon doing all the kind of computations the data that is present is out[][] array is as follows:
    3 3 3 3 3
    3 3 3 3 3
    3 3 3 3 3
    3 3 3 3 3the data that is present is out1[][] array is as follows:
    2 2 2 2 2
    2 2 2 2 2
    2 2 2 2 2
    2 2 2 2 2now that I want to print the output as follows:
    3 2 3 2 3 2 3 2 3 2
    3 2 3 2 3 2 3 2 3 2
    3 2 3 2 3 2 3 2 3 2
    3 2 3 2 3 2 3 2 3 2that is the way i like the output to be printed is: Upon printing all the rows of the 1st column of out[][] array, i need all the rows of 1st column of out1[][] array to print. This process continues all the columns of both arrays were printed.
    is there any way to print that way. is there a possibility to print that way.
    Any advice is appreciated. :)
    Thanks in advance
    Edited by: netbeans2eclipse on Sep 8, 2008 9:41 AM
    Edited by: netbeans2eclipse on Sep 8, 2008 9:42 AM
    Edited by: netbeans2eclipse on Sep 8, 2008 9:43 AM

    View the problem like this : print the elements of out[][] and out1[][] alternatively. i.e.
    print an element of out[0][0]
    print an element of out1[0][0]
    print an element of out[0][1]
    print an element of out1[0][1]....
    Something like this :
    I have not tested the code. So you may need some modification to logic.
    for(i=0;i<3;i++)
             for(j=0;j<3;j++)
                     System.out.print(out[i][j]);
                     System.out.print(" "+out1[i][j]);
    }

  • Urgent help needed!!! how we can implement the ' break' feature

    DEPTNO JOB ENAME SAL
    10 CLERK MILLER 1300
    10 MANAGER CLARK 2450
    10 PRESIDENT KING 5000
    20 ANALYST SCOTT 3000
    20 ANALYST FORD 3000
    20 CLERK SMITH 800
    20 CLERK ADAMS 1100
    20 MANAGER JONES 2975
    30 CLERK JAMES 950
    30 MANAGER BLAKE 2850
    30 SALESMAN ALLEN 1600
    30 SALESMAN MARTIN 1250
    30 SALESMAN TURNER 1500
    30 SALESMAN WARD 1250
    I want my report to bring
    DEPTNO JOB ENAME SAL
    10 CLERK MILLER 1300
    MANAGER CLARK 2450
    PRESIDENT KING 5000
    20 ANALYST SCOTT 3000
         FORD 3000
    CLERK SMITH 800
         ADAMS 1100
    MANAGER JONES 2975
    30 CLERK JAMES 950
    MANAGER BLAKE 2850
    SALESMAN ALLEN 1600
    MARTIN 1250
         TURNER 1500
         WARD 1250
    I need to eliminate some columns from printing when it comes repeated in consecutive rows. I cannot use " break" since i am using business objects for generating reports
    Please help me with solutions.
    Thanks,

    SQL> SELECT DEPARTMENT_ID, JOB_ID, FIRST_NAME, SALARY
      2    FROM employees
      3   WHERE DEPARTMENT_ID < 50
      4   ORDER BY DEPARTMENT_ID, JOB_ID;
    DEPARTMENT_ID JOB_ID     FIRST_NAME               SALARY
               10 AD_ASST    Jennifer                4400,00
               20 MK_MAN     Michael                13000,00
               20 MK_REP     Pat                     6000,00
               30 PU_CLERK   Alexander               3100,00
               30 PU_CLERK   Karen                   2500,00
               30 PU_CLERK   Shelli                  2900,00
               30 PU_CLERK   Sigal                   2800,00
               30 PU_CLERK   Guy                     2600,00
               30 PU_MAN     Den                    11000,00
               40 HR_REP     Susan                   6500,00
    10 rows selected
    SQL> SELECT CASE
      2           WHEN d1 = d2 THEN
      3            NULL
      4           ELSE
      5            d1
      6         END DEPARTMENT_ID,
      7         CASE
      8           WHEN j1 = j2 THEN
      9            NULL
    10           ELSE
    11            j1
    12         END JOB_ID,
    13         FIRST_NAME,
    14         SALARY
    15    FROM (SELECT DEPARTMENT_ID d1,
    16                 JOB_ID j1,
    17                 FIRST_NAME,
    18                 SALARY,
    19                 LAG(DEPARTMENT_ID, 1) over(ORDER BY DEPARTMENT_ID) d2,
    20                 LAG(JOB_ID, 1) over(ORDER BY DEPARTMENT_ID, JOB_ID) j2
    21            FROM employees)
    22   WHERE d1 < 50
    23   ORDER BY d1, j1;
    DEPARTMENT_ID JOB_ID     FIRST_NAME               SALARY
               10 AD_ASST    Jennifer                4400,00
               20 MK_MAN     Michael                13000,00
                  MK_REP     Pat                     6000,00
               30 PU_CLERK   Shelli                  2900,00
                             Alexander               3100,00
                             Karen                   2500,00
                             Sigal                   2800,00
                             Guy                     2600,00
                  PU_MAN     Den                    11000,00
               40 HR_REP     Susan                   6500,00
    10 rows selected
    SQL

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Formatting Tips, how can obtain the right  format?

    how can obtain the right format of code,
    http://forum.java.sun.com/help.jspa?sec=formatting
    if is possible do a example.
    Thanks in advantage

    Wrap your code between [code] and [/code]
    [code]
    // Here goes my code
    [/code]
    looks like
    // Here goes my code.

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • My computer crashed, how do i download the digital format of adobe photoshop elements (I have the cd

    my computer crashed, how do i download the digital format of adobe photoshop elements (I have the cd version, redemption code and serial #) to my new computer which does not have a cd drive

    if you follow all 7 steps you can dl a trial here:  http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
    and activate with your serial.
    if you have a problem dl'g, you didn't follow all 7 steps.  the most common error involves failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com).

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • How I can save the value of a variable in a database?

    hello,
    how I can save the value of a variable in a database? I need to keep the # of times you press click animation. to know how many times it has been seen.
    I connect to msql database, using php, javascript, ajax and jquery, but not how to save the variable counter clicks from adobe edge Animate
    appreciate your help so I can connect to the database from adobe edge animate.
    thank you very much
    Luis Felipe Garcia
    [email protected]

    Hi, all-
    This isn't an Animate-specific issue, but I thought I'd take a stab at it anyway.  As with anything else on the web, you need to have a server script to handle incoming data, so it's all back end work.  Your page will need to call that script and provide parameters to that script that it can read.
    The easiest way I can think of to do this (and this is all highly theoretical, so please make sure it's secure before you implement it) is to create a 1px div that has visibility off.  Whenever you click, you can load your URL in that div, which then increments your counter on your db.
    Hope that helps inspire some interesting solutions!
    -Elaine

  • How i can change the arabic date and time mode to english date and time mode

    how i can change the arabic date and time mode to english number mode

    Settings app > General > International > Region format.

  • How we can create the batch file to download the data in from URL in ssis

    hi,
    any one help on one the below requirement.
    i have to create one batch file to download the report(reports is in csv format) from URL...
    requirement should be like this...
    1. we have some reports is there in the URL..
    2.when ever we execute the url, the report should be download and save it to the local folder.
    3. this requirement i have to write in the batch file
    should any one let me know how we can create the batch file for the above requirement.

    Hi Priya.N,
    If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
    batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
    Report Server Web Service
    ReportExecutionService.Render Method
    rs Utility (rs.exe) (SSRS)
    If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
    Regards,
    Mike Yin
    TechNet Community Support

  • How I can import Avi (Imm5 format) to Adobe Premiere pro CC?? I am using Windows 7 thanks

    How I can import Avi (Imm5 format) to Adobe Premiere pro CC?? I am using Windows 7 thanks

    AVI is a wrapper, what is inside YOUR wrapper - Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    http://forums.adobe.com/thread/592070?tstart=30 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • How I would implement the print mehtod?

    I have this code...
    * SinglyLinkedList.java
    * An implementation of the List interface using a
    * singly linked list.
    * (P) 2000 Laurentiu Cristofor
    * Modified (slightly) for s03 by D. Wortman
    // The class SinglyLinkedList provides an implementation of the List
    // interface using a singly linked list.  This differs from the Java
    // class LinkedList, which employs a doubly linked list and includes
    // additional methods beyond those required by the List interface.
    // Note: Included in this file is (at least) a "stub" method for each of
    // the required methods, as well as an implementation of the Node class.
    // This allows the file to compile without error messages and allows
    // you to implement the "actual" methods incrementally, testing as you go.
    // The List interface include some "optional" methods, some of which are
    // included here (see the List API for the meaning of this).
    // Some of the methods are preceded by comments indicating that you are
    // required to implement the method recursively.  Where there are no
    // such comments, you can provide either an iterative or a recursive
    // implementation, as you prefer.
    // There are some methods that you are asked not to implement at all.
    // Leave these as they are here: they are implemented here to just
    // throw an UnsupportedOperationException when they are called.
    // Hint: Read carefully the comments for the interface List in the
    // online documentation (Java API).  You can also take a look at the
    // implementation of the LinkedList class from the API. It uses a
    // doubly linked list and it is different in many places from what
    // you need to do here. However it may help you figure out how to do
    // some things. You shouldn't copy the code from there, rather you
    // should try to solve the problem by yourself and look into that code
    // only if you get stuck.
    import java.util.*;
    public class SinglyLinkedList implements List
      // an inner class: This is our node class, a singly linked node!
      private class Node
        Object data;
        Node next;
        Node(Object o, Node n)
          data = o;
          next = n;
        Node(Object o)
          this(o, null);
        Node( )
          this(null,null);
      private Node head; // the "dummy" head reference
      private int size;  // the number of items on the list
      public SinglyLinkedList()
        head = new Node(); // dummy header node!
      public void add(int index, Object element)
      public boolean add(Object o)
        return true;
      public boolean addAll(Collection c)
        return true;
      public boolean addAll(int index, Collection c)
        return true;
      public void clear()
      // write a recursive implementation here
      public boolean contains(Object o)
        return true;
      public boolean containsAll(Collection c)
        return true;
      public boolean equals(Object o)
        return true;
      // write a recursive implementation here
      public Object get(int index)
        return null;
      // NOT implemented: we don't cover hash codes
      // and hashing in this course
      public int hashCode()
        throw new UnsupportedOperationException();
      public int indexOf(Object o)
        return -1;
      public boolean isEmpty()
        return true;
      public Iterator iterator()
        return null;
      public int lastIndexOf(Object o)
        return -1;
      // Not implemented: The following two operations are not supported
      // since we are using a singly linked list, which does not allow
      // us to iterate through the elements back and forth easily
      // (going back is the problem)
      public ListIterator listIterator()
        throw new UnsupportedOperationException();
      public ListIterator listIterator(int index)
        throw new UnsupportedOperationException();
      // write a recursive implementation here
      public Object remove(int index)
        return null;
      public boolean remove(Object o)
        return true;
      public boolean removeAll(Collection c)
        return true;
      public boolean retainAll(Collection c)
        return true;
      // write a recursive implementation here
      public Object set(int index, Object element)
        return null;
      public int size()
        return size;
      // NOT implemented: to keep the homework reasonably simple
      public List subList(int fromIndex, int toIndex)
        throw new UnsupportedOperationException();
      public Object[] toArray()
        Object[] array = new Object[size];
        Node n = head;
        for (int i = 0; i < size; i++)
            array[i] = n.data;
            n = n.next;
        return array;
      public Object[] toArray(Object[] a)
           // you'll find this piece of code useful
        // it checks the exact type of the array passed as a parameter
        // in order to create a larger array of the same type.
        if (a.length < size)
          a = (Object[])java.lang.reflect.Array.
         newInstance(a.getClass().getComponentType(), size);
         else if (a.length > size)
          a[size] = null;
        Node n = head;
        for (int i = 0; i < size; i++)
            a[i] = n.data;
            n = n.next;
        return a;
      public static void main(String args[])
           System.out.println("Singly Linked List");
           System.out.println();
           SinglyLinkedList l = new SinglyLinkedList();
           l.add("F");
    }        how should I implement the print method?
    should I use the iterator?
    can someone help me, please.
    Thank You
    Ennio

    actually, you would do the same thing for a toString() method as you would for a print() method. You are just going to return a String instead of using i/o. I would use an iterator to walk over your list of Nodes and then call toString() on each object in your list of Nodes.

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • How i can install the whatspp,facebook,and viber to my i phone 3g?

    How i can install the whatspp,facebook,and viber to my iphone 3g?

    You can't.  Buy a new phone.

Maybe you are looking for

  • Why are Facebook Events not showing in iCal?

    Hi, I subscribed to my Facebook Events calendar in iCal an it was working fine. All of a sudden the events stopped showing in the calendar. The same happened on my iPhone. I check and the link is still the same. Anyone else having this problem/ found

  • FM to view pricing conditions for a particular Billing Doc?

    Hi guys, I heard there is a function module that can show us the pricing condition of the billing document. If so what FM is this? Thanks guys and take care.

  • RFC,PRoxy data

    Why could Rfc cant handle large amount of data but why could PROXY handle large amount data Thanks

  • DVI corruption on new card (NX6200AX-TD128)

    It's been a while since I've had to post here with an MSI problem - so hopefully this will be short and sweet: When I use the DVI out on my new 6200 card the display is garbled. I've updated my mobo bios, my vga bios, tried several nvidia drivers, re

  • Purchased films not available on BT Vision+, custo...

    I have a problem with my BT TV service.  I have both a BT Vison+ box and a You View box, so I pay for the multi box option.  I have made several purchaes (NOT rentals) of films but they do not appear in the My Purchases list on the BT Vision+ box, bu