Loading a display object into a Bitmap

I am trying to load an sprite into a bitmap, but cannot get the sprite to fill the bitmap. Here is the results I am getting:
http://cid-a4f813eb28a76ba8.skydrive.live.com/self.aspx/.Public/BitmapIssue.png
here is the  applicable part of the code I am using that gets these results:
function(){return A.apply(null,[this].concat($A(arguments)))}
addChild(container); //add sprite to see true size
bd = new BitmapData(container.width,container.height,false,0xff0000); //colored for effect
b = new Bitmap(bd);
bd.draw(container);
addChild(b); // add bitmap to compare to sprite

try:
import flash.geom.Matrix;
function(){return A.apply(null,[this].concat($A(arguments)))}
addChild(container); //add sprite to see true size
bd = new BitmapData(container.width,container.height,false,0xff0000); //colored for effect
b = new Bitmap(bd);
var mat:Matrix=container.transform.matrix;
mat.tx = -mat.tx;
mat.ty = -mat.ty;
bd.draw(container,mat);
addChild(b); // add bitmap to compare to sprite

Similar Messages

  • Loading of MIME objects into HTML pages

    Hi Everyone
    I am trying to load two logos as mime objects into an HTML page.
    I am using
    call method web_page->load_mime_object
    After that I use
    call method web_page->show_url
    Whenever I call this last method with parameter in_place as a space (to call an external browser) my logos are not displayed.
    If I call the method with in_place as 'X' the logos appear.
    The mime objects reside in the SAP web repository (trans smw0).
    Any ideas how to pull the logos into the external page?
    Regards
    Johan

    Hi Satya
    Thanks very much for your reply. I do not use ITS for my purposes but it is something to be remembered for next time.
    I have actually solved the problem but only with a "second price" solution.
    In the HTML form I have pointed the source of my two images to a shared folder somewhere on our dev server. For our purpose this will always work.
    What I am thinking is that if SAP allows an external browser to be used it should also give the means of loading the images. Maybe I just don't know how.
    Now that I think about it more - I should go and try your suggestion in any case and see if it works. 
    I thank you again and if anyone comes with more ideas they will be as welcome.
    Regards
    Johan

  • Xcelsius 2008: Loading objects into Panel Sets

    I have Xcelsius 2008 Version 5.0.0.99 that came with Crystal Reports 2008 Engage.  The panel set object listed in the "Other" category is not working at all for me.  When I load a swf object into it, it shows up in the workspace, but in preview it becomes stuck in the loading phase and never comes up.  Also, jpegs appear in the workspace, but in preview mode they have a permenant loading bar in front of the picture.  This preview behavior is the same when I export the file and try to open it elsewhere.  The Panel set object itself seems to be working.  It maximizes and restores itself correctly, but the objects in the panels never load.  Maybe the files I'm trying to load are too large?  I'm not sure what to do populate the panel set.
    Thank you,
    William

    Are your images in JPEG format? The Panel Set component only supports JPEGs and SWF files.

  • Reading Lots of Objects into Memory

    I need to read thousands of fairly large objects from an object database to the point that the JMV memory runs out.
    A solution is to: read, use and discard as opposed to loading all the objects into memory at once -pretty simple but I want to do it right. I have a general idea on how to implement the approach but I need your help in locating some reading materials, code snipplets and/or best practices.
    Thanks!

    If you're using thousands of objects you might look into the Flyweight Pattern (depending on what these objects are and what state they have). You might also look into increasing the amount of memory available to the JVM via that -Xms switch.
    Aside from that, if you reuse the same reference name (variable name)(s) you'll allow the Garbage Collector to recover that memory.
    Good Luck
    Lee

  • Loading new xml data into a already xml populated image display

    Hi everybody,
    I have a question about loading new xml data into a already xml populated image gallery.
    So I have my gallery set up so it calls some xml when it first loads. What I would now like to do is load different sets of images via a different xml sheet via the click of a button.
    So for example the loaded gallery already has all thumbs loaded and user can click on them to view the full size image. So next instead of the user having to close this gallery to allow a new gallery to open with a different set of pictures I would just like to have a button. This button will unload the existing thumbs from the gallery and load in new ones from a different xml file.
    If anybody can help me with this it would be great as I am still on a steep learning curve with AS3.
    Here is my AS3
    var xmlPath:String = "pictures.xml";
    var xml:XML;
    var loader = new URLLoader();
    loader.load(new URLRequest(xmlPath));
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(e:Event):void
         if ((e.target as URLLoader) != null )
              xml = new XML(loader.data);
              createMenu();
    var numberOfItems:uint = 0;
    var menuItems:Array = new Array();
    function createMenu():void
              numberOfItems = xml.items.item.length();
         var count:uint = 0;
              for each (var item:XML in xml.items.item)
              var imageLoader=new Loader();
              var menuItem:MenuItem = new MenuItem();
              menuItem.addChild(imageLoader);
              imageLoader.load(new URLRequest(item.url));
              menuItem.linkTo = item.linkTo;
              menuItem.mouseChildren = false;
              menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
              menuItems.push(menuItem);
              addChild(menuItem);
              count++;
    function ***():void
         //menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
         for (var i:uint = 0; i < menuItems.length; i++)
              setChildIndex(menuItems[i], i);

    Thanks so much for the reply Andrei1
    I think maybe my lack of knowledge when it comes to AS3 is not helping me at the moment because I thought I understood the code you supplied but there is something not going quite right.
    So I messed around with the code and added the new_loaded_thumbs_btn to load in the "new_pictures.xml" but I am def doing something wrong.
    import flash.ui.ContextMenuItem;
    var xmlPath:String = "pictures.xml";
    var xml:XML;
    var numberOfItems:uint = 0;
    var menuItems:Array = new Array();
    var loader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loadXML("pictures.xml");
    new_loaded_thumbs_btn.addEventListener(MouseEvent.CLICK, loadXML);
    function loadXML(path:String):void {
         loader.load(new URLRequest("new_pictures.xml"));
    function loadXML(path:String):void {
         loader.load(new URLRequest(path));
    function xmlLoaded(e:Event):void
         xml = new XML(loader.data);
         createMenu();
    function createMenu():void
         clearMenu();
         numberOfItems = xml.items.item.length();
         var count:uint = 0;
         var imageLoader;
         var menuItem:MenuItem;
         for each (var item:XML in xml.items.item)
              imageLoader = Loader();
              menuItem = new MenuItem();
              menuItem.addChild(imageLoader);
              imageLoader.load(new URLRequest(item.url));
              menuItem.linkTo = item.linkTo;
              menuItem.mouseChildren = false;
              menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
              menuItems.push(menuItem);
              addChild(menuItem);
              count++;
         sortChildren();
    // removes previously placed objects
    function clearMenu():void {
         var menuItem:MenuItem;
         while (menuItems.length > 0) {
              menuItem = menuItems[0];
              removeChildAt(getChildIndex(menuItem));
              menuItem.shift();
    function sortChildren():void
         //menuItems.sortOn("zpos3D", Array.NUMERIC | Array.DESCENDING);
         for (var i:uint = 0; i < menuItems.length; i++)
              setChildIndex(menuItems[i], i);
    When the image display 1st loads it displays the new_pictures.xml thumbs which I thought would load through my new button when clicked.
    And there was me thinking I was getting the hang of AS3.
    Could you please point me in the right direction in what I am doing wrong,
    Thanks for your time and effort in advance

  • Adding objects into query Panel and no display report

    Hi Folks,
    I had an issue with WEBI .
    Iam running the report with few objects at first time , all objects are displayed in the  table format of report.
    I saved and closed the report .
    Later  i opened the report and edited the report by adding new objects into query panel and runing it.
    but this time  i did not find the new objects in display table in report as like DeskI.
    If we find the solution for this , it will be great help to me.
    Thanks
    Mahesh

    The objects will be in the data tab. Objects are not automatically added to your report in Webi, they are made available in the data panel, and you can choose which objects to add.

  • How do I compensate for display objects jumping when screen scaling

    I am building an application that is to run at 2 difference stage sizes. 960x640 and 1024x768 (for those paying attention, you may note that those are the high res settings for the iPhone and iPad2)
    The app was designed and build to run on a stage of 960x640 and when running at this size, there are no problems.
    When the app loads in the 1024x768 window, it "strechs" the stage to fill the window, but keeps the aspect ratio. Everything looks good and the application runs without any problems expect for one thing.
    Sometimes, display objects on the stage "jitter" when moving or animating. I have discovered that this is because the stage is "scaling" the x and y values, and is not pixel snapping the objects on the screen, even though the x and y values of the display object are indeed whole numbers.
    A prime example of this is I have 2 bitmapData images. bmData_s and bmData_h.
    bmData_s is 192x388 in size.
    bmData_h is created from a copy of bmData_s with a glow filter stroke on it, resulting in a image that is 198x394 (6 pixels bigger due to a 3 pixel stroke)
    I place it on the screen using the following code:
    (Background is a bitmap object that is 960x480 and places at 0,0)
    (ObjOffset is a point in my app data to position the object, it's a point set to 53,195)
    MyObj.x = Background.x + ObjOffset.x + (bmData_s.width/2);
    MyObj.y = Background.y + ObjOffset.y + (bmData_s.height/2);
    now, when the mouse rolls over the object, I have an event listener to change MyObj.bitmapData to bmData_h
    MyObj.bitmapData = bmData_h;
    MyObj.x = Background.x + ObjOffset.x + Math.floor(bmData_h.width/2);
    MyObj.y = Background.y + ObjOffset.y + Math.floor(bmData_h.height/2);
    and back to the _s image on mouse out.
    Now, when the app runs on the iPhone which is a 960x640 screen size, or on the PC which is using a window of similiar size, the image doesn't appear to move at all... the "stroke" appears and disappears exactly as it is suppose to
    However, when I run it in a window that is 1024x768, the _h image appears to "jump" one pixel up.
    I have encountered many other similiar things that only occure when the stage is scaled. There is a spot in the app where I am animating a bitmap by manipulating it's scrollrect x and width (have it's do a wipe in from right to left like a peice of paper unrolling on a table) and due to the scaling, the right edge of the image jumps left and right 1 pixel... but on 960x640 screens, it looks perfect.
    Does anyone know how I can compensate for this effect so that this jumping doesn't occur when the stage is stretched to fit the window it's running in?

    Sounds like a x-browser rendering problem
    my guess would be to scale down the inner div's so they add up to less than 100%.
    If you floated div's and gave them a %, give one of the div's a smaller.
    ie: 2 divs floated in a Header, give one 50% and the other 49.5%

  • Loading InfoObject master data into Cube

    Hi Guys,
    I have a  question. I created an InfoObject as a data target and loaded data into that data target. I created a cube and I want to include this infoobject in the cube. Now How do I load data into this cube from the InfoObject.Because the InfoObject doesnt have any option to select data targets, since it is master data.
    Data is being loaded into the InfoObejct. But when I check the cube there is no data.
    How do I load this master data into the cube without update rules?
    Thanks in advance.

    Hi,
    i think u need load some value to transaction data so that you can report on it, but how you are going to decide which row will be having which value from master data? in general value for this should come from transactional data, or you could assign some constant value to it.
    Do you want to use any attribute of Inoobject in report? And if you have any key value for that coming from Transaction data, you can use rule type as read from master data
    It depends upon your requirememt.
    Since you want to restrict the values of the cube which are going into the report then you should include this object into the cube.
    In any case if you want to restrict the value of the transactional data in the cube with either the value of the objects ot the attributes of object you will have to add this object into the cube.
    As you said you can load master data and use in report but how you are going to use it..............you will have to include it in the cube to use it.
    Also you can check whether this object is attribute of some other object already in the cube in that case you can make it navigation attribute and then use it for the restrictions in the cube.
    In this case only you do need to add it to the cube,But if it not an attribute of any object then you must add it to the cube.
    You have to get the value of your infoobject into Cube from datasource, even though you want to use attributes only.
    You will have to add it and it wont have any effect the transaction data getting loaded into the cube will be different from the master data only SID's are matched during loading of the data.
    You should load separate master data into the 0recontract infoobject with the master data source and make the respective object contract type and contract category as navigation there.
    Also you should add 0recontract to the cube and update it from the transaction data source as you have said that it can be updated.
    Then just do the normal restrication at the report level
    You can make this display attribute as naviagatioonal first in the master data object and then in the cube make this attribute as navigational.
    then you can use it to restrict in the cube
    You can use Category as InfoObject in your cube, and while loading data for your infoobject in the rule type you can use option as reading from master data. It will take key of infoobject, and will update attribute value in your cube.
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/f913426908ca7ee10000000a1550b0/content.htm
    You can also restrict with attributes value, Just in the restrcition of your infoobject in query designer, slelect left-botton button of 'Dipaly Other Values', here you can select you attribute and its value for restriction as well
    Regards,
    Hareesh

  • Problement with Display object

    Hello,
    With this code i can't show two times same display object
    Can you help me ?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();">
    <mx:Script>
    <![CDATA[
    private var a:Array = new Array();
    private var b:Array = new Array();
    private var counter:int = 0;
    private function init ():void
    a.push("http://dutron.files.wordpress.com/2008/12/sourire-de-cochon.jpg");
    a.push("http://www.lanature.fr/fond-ecran/photos/petit-cochon.jpg");
    a.push("http://www.coloriagesanimaux.net/animaux/cochons/cochon.jpg");
    loadSlide();
    private function loadSlide():void
    trace("loadSlide");
    var imgLoader:Loader = new Loader()  ;
    imgLoader.load (new URLRequest(a[counter]));
    imgLoader.contentLoaderInfo.addEventListener (Event.COMPLETE,imageLoaded);
    private function imageLoaded (e:Event):void
    b.push(e.target.content);
    if (counter == (a.length - 1))
    - trace("all slides images");
    else
    counter++;
    loadSlide ();
    public function showSlide(e:Event):void
    var cLoader:DisplayObject = b[e.currentTarget.selectedIndex];
    if(cLoader)
    contentImage.source = cLoader ;
    ]]>
    </mx:Script>
    <mx:HBox>
    <mx:ComboBox change="showSlide(event)" >
          <mx:ArrayCollection>
             <mx:Object label="AL" data="1"/>
             <mx:Object label="AK" data="2"/>
             <mx:Object label="AR" data="3 Rock"/>
          </mx:ArrayCollection>
       </mx:ComboBox>
    <mx:Image  id="contentImage" />
    </mx:HBox>
    </mx:Application>

    I've changed your showSlide function into one line of code:
    public function showSlide(e:Event):void
    contentImage.source = a[e.currentTarget.selectedIndex];
    ...and now it's working. I must say I was a little lazy and didn't examine the rest of your code as much as I should . But it seems that you've written to much of it and you've complicated it a little. I don't get it, why are you creating the second array (b:Array)? I'm assuming, that you wanted to keep every picture in the memory to shorten the time of they load, am I right? But from what I know it's not important, cause every modern web browser will do it for you, and will keep them in it's cache after the first load.

  • How Do I Load An Animated GIF Into PictureBox Control From Byte Array?

    I'm having a problem with loading an animated GIF int a picturebox control in a C# program after it has been converted to a base64 string, then converted to a byte array, then written to binary, then converted to a base64 string again, then converted to
    a byte array, then loaded into a memory stream and finally into a picturebox control.
    Here's the step-by-step code I've written:
    1. First I open an animated GIF from a file and load it directly into a picturebox control. It animates just fine.
    2. Next I convert the image in the picturebox control (pbTitlePageImage) to a base64 string as shown in the code below:
                    if (pbTitlePageImage.Image != null)
                        string Image2BConverted;
                        using (Bitmap bm = new Bitmap(pbTitlePageImage.Image))
                            using (MemoryStream ms = new MemoryStream())
                                bm.Save(ms, ImageFormat.Jpeg);
                                Image2BConverted = Convert.ToBase64String(ms.ToArray());
                                GameInfo.TitlePageImage = Image2BConverted;
                                ms.Close();
                                GameInfo.TitlePageImagePresent = true;
                                ProjectNeedsSaving = true;
    3. Then I write the base64 string to a binary file using FileStream and BinaryWriter.
    4. Next I get the image from the binary file using FileStream and BinaryReader and assign it to a string variable. It is now a base64 string again.
    5. Next I load the base64 string into a byte array, then I load it into StreamReader and finally into the picturebox control (pbGameImages) as shown in the code below:
    byte[] TitlePageImageBuffer = Convert.FromBase64String(GameInfo.TitlePageImage);
                            MemoryStream memTitlePageImageStream = new MemoryStream(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Write(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Position = 0;
                            pbGameImages.Image = Image.FromStream(memTitlePageImageStream, true);
                            memTitlePageImageStream.Close();
                            memTitlePageImageStream = null;
                            TitlePageImageBuffer = null;
    This step-by-step will work with all image file types except animated GIFs (standard GIFs work fine). It looks like it's just taking one frame from the animation and loading it into the picturebox. I need to be able to load the entire animation. Does any of
    the code above cause the animation to be lost? Any ideas?

    There is an ImageAnimator so you may not need to use byte array instead.
    ImageAnimator.Animate Method
    http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate(v=vs.110).aspx
    chanmm
    chanmm

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • Loading multiple physical records into a logical record

    Hello,
    I'm not sure if this is the right place to post this thread.
    I have to import data from a fixed length positioned text file into a oracle table using sql loader.
    My sample input file (which has 3 columns) looks like:
    Col1 Col2 Col3
    1 A abcdefgh
    1 A ijklmnop
    1 A pqrstuv
    1 B abcdefgh
    1 B ijklmn
    2 A abcdefgh
    3 C hello
    3 C world
    The above text file should be loaded into the table as:
    Col1 Col2 Col3
    1 A abcdefghijklmnpqrstuv
    1 B abcdefghijklmn
    2 A abcdefgh
    3 C helloworld
    My question: Is there a way tht i can use the logic of loading multiple physical records into a logical record in my oracle tables. Please suggest.
    Thanks in advance.

    Hi,
    user1049091 wrote:
    Kulash,
    Thanks for your reply.
    The order of the concatenated strings is important as the whole text is split into several physical records in the flat file and has to be combined into 1 record in Oracle table.
    My scenario is we get these fixed length input files from mainframes on a daily basis and this data needs to be loaded into a oracle table for reporting purpose. It needs to be automated.
    Am still confused whether to use external table or a staging table using sql loader. Please advise with more clarity as am a beginner in sql loader. Thanks.I still think an external table would be better.
    You can create the external table like this:
    CREATE TABLE     fubar_external
    (      col1     NUMBER (2)
    ,      col2     VARCHAR2 (2)
    ,      col3     VARCHAR2 (50)
    ORGANIZATION  EXTERNAL
    (       TYPE             ORACLE_LOADER
         DEFAULT DIRECTORY  XYZ_DIR
         ACCESS PARAMETERS  (
                                 RECORDS DELIMITED BY     NEWLINE
                          FIELDS  (   col1        POSITION (1:2)
                                      ,   col2        POSITION (3:4)
                               ,   col3        POSITION (5:54)
         LOCATION        ('fubar.txt')
    );where XYZ_DIR is the Oracle Directory on the database server's file system, and fubar.txt is the name of the file on that directory. Every day, when you get new data, just overwrite fubar.txt. Whenever you query the table, Oracle will read the file that's currently on that directory. You don't have to drop and re-create the table every day.
    Note that the way you specify the columns is similar to how you do it in SQL*Loader, but the SEQUENCE generator doesn't work in external files; use ROWNUM instead.
    Do you need to populate a table with the concatenated col3's, or do you just need to display them in a query?
    Either way, you can reference the external table the same way you would reference a regular, internal table.

  • Is there a way to detect redraw regions or at the very least when a display object is redrawn?

    I have a layered window system that produces Windows 7 Aero Glass effect in Flash.
    It consists of nested display objects, with overlays as so.
    Root [
        GlassWindowTop [
           RenderedEffectBackground
         BackgroundForGlassWindowTop [
             GlassWindowMiddle [
               RenderedEffectBackground
            BackgroundForGlassWindowMiddle [
                 GlassWindowBottom [
                    RenderedEffectBackground
                 BackgroundForGlassWindowBottom (e.g. the DesktopBackground)
    Windows can be raised and lowered by changing their order in the hierarchy and adding new levels.
    Each glass window has a designated background (containing all lower windows) .  It draws to an off-screen Bitmap the region of the background that is under the window, and applies a blur filter, tint, and parallax effects to it, and then displays that as it's own background as RenderedEffectBackground.
    The problem is that "RenderedEffectBackground" is a static rendering of the window background, so in order to update it in real time, I need to detect when it's background display object (e.g. BackgroudnForGlassWindowTop) or any nested display objects are rendered.
    I could simply update all RenderedEffectBackgrounds from the bottom up each frame, but that would be inefficient.   Ideally, I could detect when a particular background changes (e.g. when a textfield cursor is flashing, or a MovieClip changes frames), and then only render from that object up.  The rendering of course always has to take place from back to front, starting with the lowest window that has changed.  If I could detect the redraw regions of the Flash Player (e.g. when a textfield cursor is flashing, or a MovieClip is playing), I could optimize this system even further by checking for layer overlaps and only rendering layers whose windows intersect the redraw regions, but obtaining that level of information would probably not be possible or logical since this this essentially needs to happen during some kind of pre render phase, which Flash may not support.  Such a pre-render phase would itself be causing new redraw regions, but as long as it is processed from the bottom up, it could work.
    Is there any AS3 function of the flash player that allows my code to obtain information about the display list as far as which display objects are due to be rendered, and then intercept some kind of "onRenderComplete" event for them right before rendering takes place so that I can render the higher display objects.
    I originally tried to implement this as a filter, but pixel bender shaders in AS3 don't seem to allow sampling of an underlying object that would allow for blurring (i.e. the shader can access only the current point being rendered, coordinates passed to the sampling methods are ignored (this is documented behavior).
    Any ideas?

    The feature that shows the link you are mousing over hasn't been removed in 29. Maybe the add-on you are using to restore the add-on bar is covering it. I've tested the Classic Theme Restorer and it seems to work correctly in this situation - https://addons.mozilla.org/firefox/addon/classicthemerestorer/

  • Load a flat file into BW-BPS using SAP GUI

    Hi,
    We are using BW BPS 3.5 version, i implemented how to guide  " How to load a flat file into BW-BPS using SAP GUI" successfully without any errors.
    I inlcuded three infoobjects in the text file   costelemt, Posting period and amount. the same three infoobjects i inlcuded the file structure in the global data as specified in the how to document
    The flat file format is like this
    Costelmnt      Postingperiod         Amount   
    XXXXX             #      
    XXXXX             1                          100
    XXXXX             2                           800
    XXXXX             3                           700
    XXXXX             4                           500
    XXXXX             5                           300
    XXXXX             6                           200
    XXXXX             7                           270
    XXXXX             8                           120
    XXXXX             9                           145 
    XXXXX            10                           340
    XXXXX            11                           147
    XXXXX            12                           900 
    I successfully loaded above flat file in to BPS cube and it dispalyed in the layout also.
    But users are requesting to load  flatfile in the below format
    Costelmnt        Annual(PP=#)   Jan(PP=1)   Feb(PP=2) ........................................Dec(PP=12)  
    XXXXX              Blank                       100           800                                                   900
    Is it possible to load a flat file like this
    They wants load a single row instead of 13 rows for each costelement
    How to do this. Please suggest me if anybody accorss this requirment.
    In the infocube we have got only one Info object 0FISCPER3(Posting period) and one 0AMOUNT(Amount)
    do we need 13 Infobjects for each posting period and amount.
    Is there any possiblity we can implement any user exit which we use in BEX Quer's
    Please share your ideas on this.
    Thanks in advance
    Best regards
    SS

    Hi,
    There are 2 ways to do this.
    One is to change the structure of the cube to have 12 key figures for the 12 posting periods.
    Another way is to write an ABAP Function Module to fetch the values from each record based on the posting period and store it in the cube for the corresponding characteristic. This way, you dont have to change the structure of the cube.
    If this particular cube is not used anywhere else, I would suggest to change the structure itself.
    Hope this helps.

  • Problem while loading a jar file into database

    Hi All,
    We are using Oracle 8.1.5 in Solaris. When I try to load a jar file into the database by using loadjava it gives the following error
    Error while processing jar cryptix32.jar
    Exception java.io.IOException: Load Java is unable to handle compressed entries: cryptix/provider/Cryptix.class
    loadjava: 1 errors
    Can anybody suggest anything to overcome this. Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Emmer ([email protected]):
    I presume you've tried creating the jar w/o compressing it? If not, and even if you didn't create the jar, then first unpack the jar into a directory and re-jar it without using compression.<HR></BLOCKQUOTE>
    Hi John,
    Thanks for your help. I unpacked the jar and rhen re-jared it with -0 (uncompress ) option. The above error is gone. But I am getting another problem. I am getting the following error for all the classes except the property files.
    Error while resolving class cryptix/cryptix/provider/cipher/Rijndael
    ORA-04043: object cryptix/cryptix/provider/cipher/Rijndael does not exist
    But the class is there in the jar. I am able to load single individual classes. Can anybody help me in this matter. Thanks in advance.

Maybe you are looking for

  • How do I force a new document at the end of an invoice form?

    I created an invoice form to pull data from an ERP system.  There are parameters that select the invoices based on salesrep#.  I then set up an automatic email that sends invoice copies to salesreps the 2nd day after invoice date.  The invoice copies

  • Settings Icon distorted

    Hi all, After installing the latest update mu 2nd generation iPod touch settings icon is all funky, its kind of a distorted image of some sort, one or two of the other apps have the same problem. Any one know of a solution? Thanks

  • Report vb2005 oracle database

    Hi, I want to create reports for my windows application(vb2005 with oracle 10g database). I was using crystal report when i was developping with an access database and vb.net but its not working. Does someone have an idea of doing it with vb2005 and

  • How do i activate the "free trial" in my newly downloaded Reader X1?

    how do i activate the "free trial" in my newly downloaded Reader X1?

  • Only able to do one line of text  when creating a paragraph?

    Can only do one line of text. The carriage return/Enter key does not create a new line when building a paragraph? The cursor goes to the beginning or middle depending on how the justification is set.