Transformation in BI 7.0 -  vertical to horizontal mapping

Hi,
We are downloading infocube data to a flat file/excel file through infospoke functionality. As this file used in R/3 for upload using BDC.   But the problem in file format, unable to map month fields in horizontal way (each month should be a column) here is situation:
We have infocube data
Mat1  Plant   Month1  Qty1
Mat1  Plant   Month2  Qty2
Mat1  Plant   Month3   Qty3
Mat1  Plant   Month36  qty36
Downloaded  Excel file/Text file format should be:
Mat1  Plant  Qty1  Qty2   Qty3   Qty4.......Qty36
Mat2  Plant2 Qty1  Qty2   Qty3   .............Qty36
Qty1 column is month1 etc.
Is there way to map infocube data this way.  Any pointer are helpful
Thanks,
BKN

Hi BKN,
try the below pseudocode in expert routine of your transformation....
data: it_res type table of result_package,
      wa_res type result_package.
loop at source_package.
     read table it_res into wa_res with key mat eq source_package-mat
                                plant eq source_package-plant.
     if sy-subrc eq 0.
          if source_package-month eq 1.     
               wa_res-k1 = source_package-qty.
          else if source_package-month eq 2.
               wa_res-k2 = source_package-qty.                    
          ........ continue this based on ur req and the no of fields u have.
          endif.
          modify it_res from wa_res.
     else.
          clear wa_res.
          wa_res-mat = source_pacakge-mat.
          wa_res-plant = source_pacakge-plant.
          if source_package-month eq 1.     
               wa_res-k1 = source_package-qty.
          else if source_package-month eq 2.
               wa_res-k2 = source_package-qty.                    
          ........ continue this based on ur req and the no of fields u have.
          endif.
          append wa_res to it_res.
     endif.
endloop.
move it_res[] to result_package.
Regards,
Matt
Edited by: Matt Prior on Dec 4, 2008 10:41 PM

Similar Messages

  • How can I make a title (text) on a postcard vertical not horizontal text?

    How can I make a title (text) on a postcard layout vertical not horizontal text?

    Insert it in a Text Box then rotate this one.
    Yvan KOENIG (VALLAURIS, France) lundi 13 juin 2011 16:20:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • After upgrading to iOS 5 my music crash when i turn the iphone vertical to horizontal !!

    after upgrading to iOS 5 my music crash when i turn the iphone vertical to horizontal !!

    I am having this same issue.

  • HP LaserJet 5500dtn print quality issues: vertical and horizontal streaks

    Hi,
    I am getting large vertical yellow streaks, accompanied by cyan and magenta vertical dashes on each print.  Also, each page has vertical and horizontal black streaks.  I've cleaned the fuser and that hasn't made much of a difference.  I've also tried cleaning some of the cartridges, which didn't help.  The internal roller of each cartridge continues to get covered with excess toner.  Furthermore, I get a weird offset of some of the text (a faded version of the text that is offset about 1.5" from the regular text).  Is there anyway to fix this issue by cleaning certain parts?  Any other suggestions?  Thanks

    Hi,
    Yes it is in Warranty. It is virtually brand new.
    After I last posted I got through to the online chat support and was sent an email with options to 'troubleshoot' which I had already done with no success.
    I was also given a link to try to update the printer firmware - which I will try when I get home from work.
    I will see if that makes any difference but am sceptical as the printer worked fine the first time round but hasn't worked since and nothing has changed on it.
    Chris.

  • HT5567 My iPhone 4S has never had a screen enlarge from vertical to horizontal  I'm a new owner and want to know if there is a button to turn this feature in or it's my phone that's maybe not working correctly

    I can't turn my screen from small to large vertical vs horizontal  does not switch   I'm a new user less than a month
    How can I get my phone to do this feature ? I have to tap to enlarge but only one way won't go sideways

    double tap the home button> slide your finger in tell you come across a lock and press it

  • Word document pdf printing with vertical and horizontal pages

    I have a Word document that has both vertical and horizontal formatted pages.  When I print to PDF, the I get a new pdf file whenever a page orientation change is found.  pages 1 to 7 are vertical, 8 to 12 are horizontal and 13 to 20 are vertical again.  If I print to a file named "out_to_PDF" I get 3 files named "out_to_PDF", "out_to_PDF2" and "out_to_PDF3", the first one with pages 1 to 7, the second one with pages 8 to 12 and the third one with the remaining pages.  Is there a way to get only one file with all the pages?
    I know I can merge the files later.  This file with 20 pages is no problem.  I have several 70+ page docs, with multiple changes between horizontal and vertical that will result in 20 or more separate pdf files.
    Any pointers?

    Word renders print jobs that change the orientation as separate print jobs. So, each print job becomes its own PDF.
    You can make an Automator workflow to combine PDFs. I’m not sure how it decides the order it combines them, so you’d have to experiment.
    This is built as an Application where you’d drop all of the PDFs onto the App icon and it will open the combined PDF where you can edit, name, and save.

  • Quick Look PDF with vertical and horizontal pages

    Is there any way to make Quick Look preview a PDF file with vertical and horizontal pages without adding white padding and retaining the aspect ratio?
    Now, if I have a PDF with page 1 vertical and the other pages horizontal QL shows the latter also with the ratio of a vertical page and adds white padding at their top and bottom. You get the inverse output if the first page is horizontally oriented, but the rest are vertical.

    Word renders print jobs that change the orientation as separate print jobs. So, each print job becomes its own PDF.
    You can make an Automator workflow to combine PDFs. I’m not sure how it decides the order it combines them, so you’d have to experiment.
    This is built as an Application where you’d drop all of the PDFs onto the App icon and it will open the combined PDF where you can edit, name, and save.

  • Center text in text field - vertically and horizontally

    Hi to all,
    I have a text field with a specific size (for example 10x10 cm) I need this size because all the fields in the report must have this minimum size and they just can grow vertically (expand).
    But i need to put the text centered in the field, vertically and horizontally. just in the middle whatever the size of the box.
    The parameter "Center" in justify text doesn't help. Only adjust horizontally.
    Thanks in advance.
    Filipe Almeida

    Hello,
    If you want to center vertically, you have to use an anchor .
    Regards

  • How do I change the reading pane or preview pane from vertical to horizontal in Mail?

    How do I change the reading pane or preview pane from vertical to horizontal in Mail?

    From the Mail menu bar click Mail > Preferences then select the Viewing tab.
    Select:  Use classic layout

  • Hi, While writing an email online using Firefox 3.6.3, I was using one of the "CTRL+left or right arrow" to move the cursor along the text. I must have pressed some other key because the display has become huge - and I can't scroll vertically or horizont

    Hi, While writing an email online using Firefox 3.6.3, I was using one of the "CTRL+left or right arrow" to move the cursor along the text. I must have pressed some other key because the display has become huge - and I can't scroll vertically or horizontally, which makes using the Mail pages of Hotmail impossible. I have since logged in using MSFT Explorer and it works fine. This problem occurs only on the Mail page of Hotmail Live not on the home page or others.
    Could you please let me know if this is a problem with Firefox, or if you have any advice on how to reset the appearance of Hotmail in Firefox?
    == This happened ==
    Just once or twice
    == While I was compiling an email in Hotmail Live

    Wow, lightning fast and absolutely right!
    Thank you so much!

  • How can I get my display to change orientation vertical to horizontal

    How can I get orientation of display (vertical to horizontal) to change with phone position

    It should change automatically when you turn the phone but note that there are some screens such as the home screen that do not rotate and some apps that don't support rotation. Also the orientation can be locked. You can turn the lock on or off by opening Control Center (while on the home screen swipe up with one finger starting from below the bottom of the screen). The orientation lock control is on the right end of the top row in Control Center and looks like a lock inside a partially circular arrow. When on, the same icon displays in the menu bar.

  • Center all vertically and horizontally?

    I'm trying to self-publish a book using CreatSpace on Amazon.  They want an extra 1/8" around all margins of a 6x9" book (actually more on the width) to allow for bleed.  I have to generate a PDF.  When I changed the page size it kept the type in the same spot, and made the pages jump back and forth a little in the PDF.  It would be good if they stayed in the same place.  How can I center ALL the artwork -- including the headers on the master page -- both vertically and horizontally to fill a particular page size?  Thanks for any advice.

    There may be a bit of miscommunication going on. You should be designing with the final trimmed page size in mind, and if you have images or solids that need to bleed, they need to extend beyond the trim size. When output to PDF, you specify whether to include crops and bleeds, and the size of the crop marks and bleed area. For example, if you want something like this crappy example I just knocked off:
    You would set up your page size at 6x9 and place the images like this:
    …and when output to PDF with the marks of your choice:
    …you get something like this:
    …which results in a PDF whose size is 6.83x9.83, but when trimmed will be 6x9. If you measure from the crop marks, the size is 6x9, and if you measure from the bleed marks, the size is 6.25x9.25, which is the trim size with 1/8" bleeds on all sides. Ask the publisher what marks they would like. They may not want bleed guides or color bars, so just give them what they want.

  • Center vertically and horizontally with a single layout?

    verticalLayout has the horizontalAlign property, and horizontalLayout has the verticalAlign property.  How can you use a particular layout to determine the flow of the children, but also specify vertical and horizontal alignment?  In Flex 3 this was as simple as <VBox verticalAlign="middle" horizontalAlign="center">...

    Take a look at http://forums.adobe.com/thread/448063
    If you don't want to use extra containers then you could use Spacer components.
    For example to align vertically in the center:
    <s:VGroup width="200" height="200" horizontalAlign="center>
      <mx:Spacer height="100%" />
      <s:Button label="center aligned" />
      <mx:Spacer height="100%" />
    </s:VGroup>
    Or at the bottom:
    <s:VGroup width="200" height="200" horizontalAlign="center>
      <mx:Spacer height="100%" />
      <s:Button label="center aligned" />
    </s:VGroup>

  • Display Screen (vertical vs. horizontal)

    How can I prevent the display screen from flipping from vertical to horizontal when I turn the phone sideways?

    Lock the portrait orientation by double-tapping the home button and flick the recent apps bar to the right until reaching the left end.  Tap the lock symbol.
    This video shows the portrait lock: http://www.youtube.com/watch?v=s2RaAKz2Oy0&feature=youtube_gdata_player

  • Image Sequence with vertical and horizontal photos

    I'm trying to use a particle emitter with image sequence to make photos appear and move one at a time. I have collected about 20 JPEGs that I numbered sequentially so Motion would read them as an image sequence. No problem there. Most of the photos have a horizontal orientation (3000x2000) but several are vertical (2000x3000), and Motion is cropping the vertical images to fit within a horizontal frame (like this). When I apply the particle emitter, that cropping is retained.
    I know I have seen examples of a similar process and the emitter treats the photos are individual pieces, retaining their original size and orientation. What am I doing wrong?

    Technically, in a proper Image Sequence, all images are the same size/aspect ratio.
    What you'll need to do is make on set (vertical or horizontal) a new size, to fit inside the other. The Particle Emitter will matte it's images to one or the other, which ever comes first.

Maybe you are looking for