How to load a customise component?

I have created a customised component that i want to load
dynamic.
In the end i want to send a instance of the component i want
to load to the user.mxml file.
So i dont need to create a new (user) file when i create a
new component.
I want to use the same user file but with some different
components.
My code looks like this.
------UserForm.mxml ----------------
<mx:VBox xmlns:mx="
http://www.adobe.com/2006/mxml"
width="350" height="100%" >
<mx:Label width="100%" id="headlabel" fontSize="20"
textAlign="left" />
<mx:Accordion width="100%" height="100%">
<mx:Canvas label="Användare" width="100%"
height="100%">
<mx:Form id="userForm"></mx:Form>
</mx:Canvas>
<mx:Canvas label="Företag" width="100%"
height="100%"> </mx:Canvas>
</mx:Accordion>
</mx:VBox>
------ User.mxml -----------------
<mx:Script><![CDATA[
public function init(url:String):void {
getURL += url;
var tmp:UserForm = new UserForm();
edit.addChild(tmp);
]]></mx:Script>
<mx:VBox id="edit" width="100%" height="100%">
<mx:HBox>
<mx:Button id="save" label="Save" bottom="10" right="10"
click="saveRow()"/>
</mx:HBox>
</mx:VBox>
The problem is that i can't se the UserForm.
How can i do?

The problem is the height="100%" in the UserForm.mxml. That
value is not going to be honored when you create the component
dynamically. You could try this:
var tmp:UserForm = new UserForm();
tmp.percentHeight = 100;
edit.addChild(tmp);
The other option is to explicity set the component's height:
tmp.height = edit.height; // since you want 100%
edit.addChild(tmp);
It's a little quirk of the Flex Framework.

Similar Messages

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • How make the swf loaded in swfloader component to be transparent?

    Hi,
    I use the swfloader component to load many swf file into my project,but how do I make the swf loaded in swfloader component to be transparent? Just like the swf to be set transparent in HTML!
    Thanks a lot.
    David

    Nobody can help me?

  • How to load the destination url of af:goLink   component to a REGION?

    Hi,
    I've a tree in which every node is <af:goLink> component. How to load the destination url of <af:goLink> component to a REGION? Can anyone please tell me whether it is possible or not?
    Thanks
    -Sukumar

    Hi,
    Thanks for the reply. I have looked at the blog.
    But my scenario is little bit different. I'm not trying to load a JSF fragment page or a JSF page or a html page. I'm trying to load a url page which is not related to the applicaton. Eg: I'm trying to load "www.my.oracle.com" web page in the region. So I must use a <af:goLink> component. Please correct me if i have misunderstood the concepts".
    Thanks
    Sukumar

  • How to populate the time component of a cube?

    We have a question regarding how to populate the time component of a cube. Let me explain:
    We are using OWB 10gR2. We have created a cube with several dimensions. We are now building the mapping to load the cube. The cube operator has two columns for every dimension (e.g., "customer" and "customer_id" for the "customer" dimension).
    We understand that, in this case, "customer_id" stands for the dimension business key, so we create an arrow from the business key in the source table to the "customer_id" column in the cube operator.
    So far so good. The mapping works all right, and the cube is loaded correctly.
    Now we need to do the same for the time dimension. We have already created the time dimension and we have loaded it. We have also included it in the cube, so now we have two new columns in it: "time_day_code" and "time", both NUMBER data type.
    We have the "sale_date" column (DATE data type), in the source system and, of course, now we want to populate the date column in the cube. We suppose that, somehow, we have to translate the "sale_date" field into the numeric column of the surrogate key of the time dimension. How should do we do this? I suppose that OWB must do the translation for us, just as it does for the other dimensions, but how? We have been looking into the manuals, and we have found no explanation on how to go about this.
    Any help would be appreciated.
    Best regards
    Juan Algaba

    Hi Juan
    You are right this should have been in the manuals, checked and there is only a brief mention (Using a Time Dimension in a Cube Mapping section)
    The identifier format should have been documented for each level and will involve creating the formatted attribute for input to the cube operator's time dimension reference attribute.
    The time dimension business keys are stored as follows;
    Day Level - YYYYMMDD
    Month Level - YYYYMM
    Week Level - YYYYWW
    Quarter - YYYYQ
    Year - YYYY
    If you have a source that has a SQL date datatype for example and want to construct the key for a cube's time dimension at the day level something like the following expression can be used to construct the time reference from a SQL date...
    to_number(to_char( time_key, 'YYYYMMDD'))
    The result of this expression can be used as input to the cube's time dimension attribute.
    Cheers
    David

  • How to Load Business Rule XML in 9.3.1

    Hello,
    I am using EAS 9.3.1. On the Business Rules component, I selected Export Business Rules, and it invited me to export all business rules, variables, macros, and projects into one xml file. Now I cannot figure out how to load that xml file. I am copying from a production environment to a development environment, because we moved the database of the development environment to another server. I have reconfigured the applications and databases. What do I have to do to load the xml file?
    Thank you,

    Thank you. I was getting the following error, and I thought it meant, I cannot expand the Business Rules icon because I did not have any business rules. If this something I configured incorrectly, or something the DBA missed?
    Error logging in to Business Rules. The repository has not been configured or you are not authorized to use Business Rules.
    Detail:Error creating DBConfig object. Please check if there are exceptions in the log file and if HBR is configured correctly.
    Detail:null

  • How to load hierrarchies using dtp  using flat file  in bw  ineed clear ste

    how to load hierrarchies using dtp  using flat file  in bw  ineed clear steps

    Hi,
    If you want to load InfoObjects in the form of hierarchies, you have to activate the indicator with hierarchies for each of the relevant InfoObjects in the InfoObject maintenance. If necessary, you need to specify whether the whole hierarchy or the hierarchy structure is to be time-dependent, whether the hierarchy can contain intervals, whether additional node attributes are allowed (only when loading using a PSA), and which characteristics are allowed.
    1.Defining the source system from which you want to load data:
    Choose Source System Tree ® Root (Source System) ® Context menu (Right Mouse Button) ® Create.
    For a flat file, choose: File System, Manual Metadata; Data via File Interface.
    2.Defining the InfoSource for which you want to load data:
    Optional: Choose InfoSource Tree ®Root (InfoSources) ® Context Menu (Right Mouse Button) ® Create Application Component.
    Choose InfoSource Tree ® Your Application Component ® Context Menu (Right Mouse Button) ® Create InfoSource ® Direct Update
    Choose an InfoObject from the proposal list, and specify a name and a description.
    3.Assigning the source system to the InfoSource
    Choose InfoSource tree ® Your Application Component ® One of your InfoSources ® Context Menu (Right Mouse Button) ® Assign Source System. You are taken automatically to the transfer structure maintenance.
    The system automatically generates DataSources for the three different data types to which you can load data.
          Attributes
          Texts
          Hierarchies (if the InfoObject has access to hierarchies)
    The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
    4.Maintaining the transfer structure / transfer rules
    Choose the DataSource to be able to upload hierarchies.
    Idoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject, for which hierarchies are loaded. With this transfer method, during loading, the structure is converted to the structure of the PSA, which affects performance.
    PSA transfer method: The transfer methods and the communication structure are also generated here. 
    5.Maintaining the hierarchy:
    Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
    PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields.  This option allows you to load characteristic values having a length greater than 32 characters.
    Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
    The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
    The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
    Description
    Field Name
    Length
    Type
    Node ID
    NODEID
    8
    NUMC
    InfoObject name
    INFOOBJECT
    30
    CHAR
    Node name
    NODENAME
    32
    CHAR
    Catalog ID
    LINK
    1
    CHAR
    Parent node
    PARENTID
    8
    NUMC
    First subnode
    CHILDID
    8
    NUMC
    Next adjacent node
    NEXTID
    8
    NUMC
    Language key
    LANGU
    1
    CHAR
    Description - short
    TXTSH
    20
    CHAR
    Description - medium
    TXTMD
    40
    CHAR
    Description- long
    TXTLG
    60
    CHAR
    The system transfers the settings for the intervals and for time-dependency from the InfoObject maintenance. Depending on which settings you have defined in the InfoObject maintenance, further table fields can be generated from the system.
    The valid from and valid to field is filled if you select Total Hierarchy Time-dependent in the InfoObject maintenance. The time-dependent indicator is activated if you select the Hierarchy Nodes Time-dependent option in the InfoObject maintenance.
    6.Save your entries.
    Depending on which settings you defined in the InfoObject maintenance, additional fields can be generated from the system. Also note the detailed description for Structure of a Flat Hierarchy File for Loading via an IDoc and for Structure of a Flat Hierarchy File for Loading via a PSA.
    Also find the below blog for your reference...
    /people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
    You can load hierarchy using process chain...
    Find the below step by step procedure to load hierarchy using process chain...
    http://help.sap.com/saphelp_nw70/helpdata/EN/3d/320e3d89195c59e10000000a114084/frameset.htm
    Assign points if this helps u...
    Regards,
    KK.
    Edited by: koundinya karanam on Apr 8, 2008 1:08 PM
    Edited by: koundinya karanam on Apr 8, 2008 1:09 PM

  • Step by Step details on how to load data from a flat file

    hi can anyone explain how to load data from a flat file. Pls giv me step by step details. thnx

    hi sonam.
    it is very easy to load data from flat file. whn compared with other extrations methods...
    here r the step to load transation data from a flat file.......
    step:1 create a Flat File.
    step:2 log on to sap bw (t.code : rsa1 or rsa13).
    and observe the flat file source system icon. i.e pc icon.
    step:3 create required info objects.
    3.1: create infoarea
         (infoObjects Under Modeling > infoObjects (root node)-> context menu -
    > create infoarea).
    3.2:  create char /keyfig infoObject Catalog.(select infoArea ---.context menu --->create infoObject catalog).
    3.3:   create char.. infoObj and keyFig infoObjects accourding to ur requirement and activate them.
    step:4 create infoSource for transaction data and create transfer structure and maintain communication structure...
        4.1: first create a application component.(select InfoSources Under modeling-->infosources<root node>>context menu-->create  applic...component)
       4.2: create infoSource  for transation data(select appl..comp--.context menu-->create infosource)
    >select O flexible update and give info source name..
    >continue..
    4.4: *IMp* ASSIGN DATASOURCE..
      (EXPAND APPLIC ..COMP..>EXPAND YOUR INFOSOURCE>CONTEXT MENU>ASSIGN DATASOURCE.)
    >* DATASOURCE *
    >O SOURCE SYSTEM: <BROWSE AND CHOOSE YOUR FLAT FILE SOURCE SYSTEM>.(EX:PC ICON).
    >CONTINUE.
    4.5: DEFINE DATASOURCE/TRANSFER STRUCTURE  FOR IN FOSOURCE..
    > SELECT TRANSFER STRUCTURE TAB.
    >FILL THE INFOOBJECT FILLED WITH THE NECESSARY  INFOOBJ IN THE ORDER OR SEQUENCE OF FLAT FILE STRUCTURE.
    4.6: ASSIGN TRANSFER RULES.
    ---> NOW SELECT TRANSFER RULES TAB. AND SELECT PROPOSE TRANSFER RULES SPINDLE LIKE ICON.
    (IF DATA TARGET IS ODS -
    INCLUDE 0RECORDMODE IN COMMUNICATION STRUCTURE.)
    --->ACTIVATE...
    STEP:5  CREATE DATATARGET.(INFOCUBE/ODS OBJECT).
    5.1: CREATE INFO CUBE.
    -->SELECT YOUR INFOAREA>CONTEXT MENU>CREATE INFOCUBE.
    5.2: CREATE INFOCUBE STRUCTURE.
    ---> FILL THE STRUCTURE PANE WILL REQUIRE INFOOBJECTS...(SELECT INFOSOURCE ICON>FIND UR INFOSOURCE >DOUBLE CLICK > SELECT "YES" FOR INFOOBJECT ASSIGNMENT ).
    >MAINTAIN ATLEAST  ON TIME CHAR.......(EX; 0CALDAY).
    5.3:DEFINE AND ASSIGN DIMENSIONS FOR YOUR CHARACTERISTICS..
    >ACTIVATE..
    STEP:6 CREATE UPDATE RULES FOR INFOCUDE USING INFOSOURCE .
    >SELECT UR INFOCUBE >CONTEXT MENU> CREATE UPDATE RULES.
    > DATASOURCE
    > O INFOSOURCE : _________(U R INFOSOURCE). AND PRESS ENTER KEY.......
    >ACTIVATE.....UR UPDATE RULES....
    >>>>SEE THE DATA FLOW <<<<<<<<----
    STEP:7  SCHEDULE / LOAD DATA..
    7.1 CREATE INFOPACKAGE.
    --->SELECT INFOSOURCE UNDER MODELING> EXPAND UR APPLIC.. COMP..> EXPAND UR INFOSOURCE..> SELECT UR DATASOURCE ASSIGN MENT ICON....>CONTEXT MENU> CREAE INFOPACKAGE..
    >GIVE INFOPACKAGE DISCREPTION............_________
    >SELECT YOUR DATA SOURCE.-------> AND PRESS CONTINUE .....
    >SELECT EXTERNAL DATA TAB...
    > SELECT *CLIENT WORKSTATION oR APPLI SERVER  >GIVE FILE NAME > FILE TYPE> DATA SAPARATER>
    >SELECT PROCESSING TAB
    > PSA AND THEN INTO DATATARGETS....
    >DATATARGET TAB.
    >O SELECT DATA TARGETS
    [ ] UPDATE DATATARGET CHECK BOX.....
    --->UPDATE TAB.
    O FULL UPDATE...
    >SCHEDULE TAB..
    >SELECT O START DATA LOAD IMMEDIATELY...
    AND SELECT  "START" BUTTON........
    >>>>>>>>>>
    STEP:8 MONITOR DATA
    > CHECK DATA IN PSA
    CHECK DATA IN DATA TARGETS.....
    >>>>>>>>>>> <<<<<<<<<----
    I HOPE THIS LL HELP YOU.....

  • How to load flat files to BI

    Hi All,
    I am new to SAP BI. PLease tell me how to load excel files to BI.

    hi,
    For BI 7.0 basic step to laod data from flat (excel files) files for this follow the beloww step-by step directions ....
    Uploading of master data
    Log on to your SAP
    Transaction code RSA1u2014LEAD YOU TO MODELLING
    1. Creation of Info Objects
    u2022 In left panel select info object
    u2022 Create info area
    u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
    u2022 Create required info objects and Activate.
    2. Creation of Data Source
    u2022 In the left panel select data sources
    u2022 Create application component(AC)
    u2022 Right click AC and create datasource
    u2022 Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    u2022 In general tab give short, medium, and long description.
    u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    u2022 In proposal tab load example data and verify it.
    u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    u2022 Activate data source and read preview data under preview tab.
    u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    u2022 In left panel select info provider
    u2022 Select created info area and right click to select Insert Characteristics as info provider
    u2022 Select required info object ( Ex : Employee ID)
    u2022 Under that info object select attributes
    u2022 Right click on attributes and select create transformation.
    u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    u2022 Activate created transformation
    u2022 Create Data transfer process (DTP) by right clicking the master data attributes
    u2022 In extraction tab specify extraction mode ( full)
    u2022 In update tab specify error handling ( request green)
    u2022 Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
    BW 7.0
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1u2014LEAD YOU TO MODELLING
    5. Creation of Info Objects
    u2022 In left panel select info object
    u2022 Create info area
    u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
    u2022 Create required info objects and Activate.
    6. Creation of Data Source
    u2022 In the left panel select data sources
    u2022 Create application component(AC)
    u2022 Right click AC and create datasource
    u2022 Specify data source name, source system, and data type ( Transaction data )
    u2022 In general tab give short, medium, and long description.
    u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    u2022 In proposal tab load example data and verify it.
    u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    u2022 Activate data source and read preview data under preview tab.
    u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    7. Creation of data targets
    u2022 In left panel select info provider
    u2022 Select created info area and right click to create ODS( Data store object ) or Cube.
    u2022 Specify name fro the ODS or cube and click create
    u2022 From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    u2022 Click Activate.
    u2022 Right click on ODS or Cube and select create transformation.
    u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    u2022 Activate created transformation
    u2022 Create Data transfer process (DTP) by right clicking the master data attributes
    u2022 In extraction tab specify extraction mode ( full)
    u2022 In update tab specify error handling ( request green)
    u2022 Activate DTP and in execute tab click execute button to load data in data targets.
    8. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
    Regards,
    ANI

  • LOAD UNIT OF COMPONENT IS VERY LARGE (GENERATION LIMIT)

    We are experiencing this meesage when compiling an ABAP WEB DYNPRO Application: "LOAD UNIT OF COMPONENT IS VERY LARGE (GENERATION LIMIT)"
    When Checking the Generation Limits In the Context menu, I have determined our size of Generated Load in bytes is to big.
    The documentation of recommendations is to restructure the program. I am not clear what this means and how this would reduce the Generation Load in bytes. Any ideas would be appreciated.

    > How should we reorganize the application and at the same time ensure smooth and user-friendly handling?
    We only want to use one Explorer window.
    Using multiple components doesn't mean that the user will notice any difference.  Component usages can be embedded within one another.  Using the ALV for instance is a perfect example of a component usage.
    >- Even the SAP reference application "LORD_MAINTAIN_COMP" (37 views) is way too big, according to the recommendation. Is there a better example from SAP?
    I wouldn't consider LORD_MAINTAIN_COMP a reference applicatoin.  It was one of the veryfirst WDA's shipped by SAP before we learned some of these lessons ourselves.  Have a look at the guidelines for Floorplan Manager if you are on 7.01. The FPM provides a very good (and well used by SAP) framework for building large scale WDA applications. 
    >- How could a complex transaction be built and at the same time stay in the green limit area (< 500k
    As described the usage of multiple components avoids the generation limit and is recommended for large scale applications.
    >- What at all is the problem in loading 2 Megabytes of data into memory? Could you please describe the technical background in more detail?
    It has nothing to do with 2Mb into memory.  It has to do with the generation load size in the VM for the generated class that represents your WDA Component.  The ABAP compiler and VM have limits (like all VMs and compilers) on total load size and the maximum size for operations and leaps. Generated code can be extremely verbose.  Under normal conditions, these load limits are almost never reached in human created classes. 
    In 7.02 we backported the 7.20 ABAP complier - which in additon tpbe rewritten to support multipass compelation, also increases some of the load limits.  However the general recommandation about componentization still stands.  Componentization of you WDA application improves maintainabilityand reusability over time.  My personal rule is that if you are getting between 10-12 views in your Component, it is time to think about breaking out into multiple components.
    >- Is there a maximum load size, which would lead to an error (reject of generation)?
    Yes there is.  However the workbench throws warnings well in advance.  At some point it won't even let you add more views to a component. However if you continue to add content to the existing views, you can reach a point where generation fails.

  • Help - Step by Step Material on How to load Data from flatfile to BI 7.0

    Hi BI Experts,
    Can any one send the document or a pdf file on how to load data from flat file to BI 7.0 in step by step process.
    Thanks in Advance
    Regards
    Ramakrishna Kamurthy
    +91-9963101073

    1.     On log on you will be placed in the SAP Easy Access Strategic Management/ Business Analytics
    1.     You see the screen divided in two segments.
    2.     Follow the left segment.
    3.     Click on the Business Information Warehouse.
    4.     Sub Menu &#61664; BW Administration.
    5.     You find various entries in it.
    6.     Now double click on UG_BW_RSA1-Administrator Workbench
    2.     Creation of Info Area
    1.     Click on InfoObjects.
    2.     Now in the right hand side screen select the InfoObjects (First item on the top). Right click the mouse and select Create InfoArea.
    3.     A dialog box pops up.
    4.     Give the InfoArea as ZIVY_Iarea.
    5.     Give the Long Description as ZIVY Info Area.
    3.     Create a Catalog:
    1.     Select the InfoArea just created “ZIVY_Iarea”.
    2.     Right click the mouse pointer and select the option “Create InfoObject Catalog” 
    3.     A dialog box pops up.
    4.     Give the InfoObjCat = ZIVY_CHCAT
                                                                  i.      Description = “ZIVY Character Catalog”
                                                                 ii.      InfoObjectType: Check the Character. ( As we are creating the master data, check the Character)
                                                                iii.      Now at the bottom of this dialog box you see an icon called “CREATE”. Click this icon.
    1.      
    1.     The next screen in front of you is the “Edit InfoObject Catalog”.
    2.     Simply click the “activate” icon present on the Application Toolbar.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CUST and
                                                                   i.      Description&#61664; Customer Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CUST: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP  .
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_CUST, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_CITY
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CITY and
                                                                   i.     
    Description&#61664;
    Customer
    City Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CITY: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 25
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CITY, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_STATE
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_STATE and
                                                                   i.     
    Description&#61664;
    Customer
    State Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_STATE: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 25
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_STATE, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_CTRY
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_CTRY and
                                                                   i.      Description&#61664; Customer Country Name.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_CTRY: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”
    2.      Check the “With Texts” and make suitable Text Table Properties.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
    1.     Creation of  Attributes and InfoObject from the ZIVY_CUST InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_CUST. Double click the InfoObject ZIVY_CUST.
    6.     You find the screen “Change Characteristic ZIVY_CUST:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_CITY and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Similarly, type ZIVY_STATE, ZIVY_CTRY.
    11.     Now, we will create another InfoObject ZIVY_TEL, from here.
    12.     So type ZIVY_Tel and enter the ENTER KEY.
    13.     A dialog box pops up, and request you “If you want to Create an InfoObject”
    14.     Select “ Create Attribute As Characteristic” and click the check mark.
    15.     Another window pops up. Give the following:
                                                                   i.      In the General Tab:
    1.      Long Description: ZIVY Telephone Number
    2.      Short Description: ZIVY Telephone Number
    3.      DataType : NUMC
    4.      Length : 10
    5.      Uncheck Attribute Only
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data” and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”
                                                               iv.      Now click the “TICK MARK”
    1.      
    1.     Click the “ACTIVATE”
    2.     A window pops up.
                                                                   i.      Select “activate dependent InfoObjects.
                                                                 ii.      Click the Check Mark.
    1.     Creation of InfoObject: ZIVY_DATE
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_DATE and
                                                                   i.      Description&#61664; ZIVY Date.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_DATE: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: DATS
    2.      Length: 8
                                                                 ii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
    2.     Create ZIVY Application Component:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Right click the mouse pointer and select the entry “Create Application Component”
    5.     A window pops up.
                                                                   i.      Application Component: ZIVY_APPCOMP
                                                                 ii.      Long Description : ZIVY Application Component
                                                                iii.      Click the check mark.
    1.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_CUST
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “Customer Info Object”.
    2.     Select the “Customer Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_CUST
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_CUST,
    3.      Second field is ZIVY_CITY.
    4.      And so on.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_CUST MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_CUST,
    4.      Third field is 0TXTMD.
    5.      Click the Transfer Rule adjacent to “0LANGUAGE”
    6.      A window pops up.
    a.       Check the “CONSTANT” and give the value as “EN”
    b.      Click the TICK MARK.
    7.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_CUST_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_CUST_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_CUST” alias “Customer Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_CUST_ATTR”.
                                                                 ii.      Select “ZIVY_CUST_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_CUST” alias “Customer Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_CUST_TEXT”.
                                                                 ii.      Select “ZIVY_CUST_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.         
    1.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_MAT and
                                                                   i.      Description&#61664; ZIVY Material Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_MAT: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP 17).
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_MAT, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_GROUP
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_GROUP and
                                                                   i.      Description&#61664; ZIVY Material Group.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_GROUP: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”
    2.      Check the “With Texts” and make suitable Text Table Properties.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_GROUP, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject: ZIVY_COLOR
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_COLOR and
                                                                   i.      Description&#61664; ZIVY Material Color.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_COLOR: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 10
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Uncheck the “With Master Data”  and  “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_COLOR, by clicking the icon ACTIVATE.
    2.     Creation of InfoObject from the ZIVY_MAT InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_MAT. Double click the InfoObject ZIVY_MAT.
    6.     You find the screen “Change Characteristic ZIVY_MAT:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_GROUP and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Similarly, type ZIVY_COLOR.
    11.     Click the “ACTIVATE”
    3.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_MAT
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “ZIVY Material Info Object”.
    2.     Select the “ZIVY Material  Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_MAT
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_MAT,
    3.      Second field is ZIVY_GROUP.
    4.      Third field is ZIVY_COLOR.
    5.      Check the mapping. If you don’t see the mapping.
    6.      Click on the empty row in the group “Assign InfoObjectField”, the box to the right.
    7.      Type ZIVY_GROUP, ZIVY_COLOR.
    8.      Check the transfer rules.
    9.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_CUST MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_MAT,
    4.      Third field is 0TXTSH.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_Material_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_Material_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_MAT” alias “ZIVY Material Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_MAT_ATTR”.
                                                                 ii.      Select “ZIVY_MAT_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_Material_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_MAT” alias “ZIVY Material Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_MAT_TEXT”.
                                                                 ii.      Select “ZIVY_MAT_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_MATERIAL_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.         
    1.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_SPER and
                                                                   i.      Description&#61664; ZIVY Sales Person Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_SPER: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 20
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data” and “With Texts”.
    2.      Use suitable formats in the fields.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
                                                               iv.      In the Attributes Tab:
    1.      We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1 &#61664; InfoObject &#61664; ZIVY_Iarea&#61664;ZIVY_CHCAT. This will be delt in the forth coming steps (STEP 24).
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_SPER, by clicking the icon “ACTIVATE”
    2.     Creation of InfoObject: ZIVY_SREG
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_SREG and
                                                                   i.      Description&#61664; ZIVY Sales Region.
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Change Characteristic ZIVY_SREG: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the General Tab
    1.      DataType: CHAR
    2.      Length: 20
                                                                 ii.      In the Master Data/ Texts Tab:
    1.      Check the “With Master Data”  and “With Texts”.
                                                                iii.      In the Hierarchy Tab:
    1.      Uncheck the “With Hierarchies”.
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the InfoObject ZIVY_SREG, by clicking the icon ACTIVATE.
    2.     Creation of Attributes from the ZIVY_SPER InfoObject:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_CHCAT”,which is ZIVY  Character Catalog.
    5.     In this ZIVY_CHCAT, you see the InfoObject ZIVY_SPER. Double click the InfoObject ZIVY_SPER.
    6.     You find the screen “Change Characteristic ZIVY_SPER:Detail”.
    7.     Click on the tab “Attributes”
    8.     In the Character Attribute Box, type ZIVY_SREG and enter the ENTER KEY.
    9.     You see the relevant information regarding this being inserted.
    10.     Click the “ACTIVATE”
    3.     Create InfoSoure:
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Right click the mouse pointer and select the entry “Create InfoSource”
    6.     A window pops up:
                                                                   i.      Select the “Direct Update of Master Data”
                                                                 ii.      InfoObject : ZIVY_SPER
                                                                iii.      Click the CHECK MARK.
    1.      
    1.     Now beneath “ZIVY Application Component” you see the “ZIVY Sales Person Info Object”.
    2.     Select the “ZIVY Sales Person  Info Object” mentioned above.
    3.     Right click the mouse pointer, and select the entry “Assign DataSource”.
    4.     A window pops up.
                                                                   i.      InfoSource: ZIVY_SREP
                                                                 ii.      Source System: FLATFILE
                                                                iii.      Check the TICK MARK.
                                                               iv.      Just click yes for the coming window pop ups.
    1.      
    1.     Key thing
                                                                   i.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First field is ZIVY_SPER,
    3.      Second field is ZIVY_SREG.
    4.      Check the mapping. If you don’t see the mapping.
    5.      Click on the empty row in the group “Assign InfoObjectField”, the box to the right.
    6.      Check the transfer rules.
    7.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.                                                            ii.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                                iii.      Click the “Activate Button”. By clicking the “ACTIVATE BUTTON” you just activated the ZIVY_SREP MASTER DATA.
                                                               iv.      Now in DataSource : select the text.
                                                                 v.      Click on the tab “Transfer Rules”
    1.      Have a look at the data mapping here.
    2.      First Field : 0LANGUAGE
    3.      Second field is ZIVY_SPER,
    4.      Third field is 0TXTSH.
    5.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant.                                                          vi.      Click on the tab “DataSource/Transport Structure”1.      This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
    2.      If the order is different, just shuffle the rows.
                                                              vii.      Click the “Activate Button”. By clicking the “ACTIVATE.
    1.     Create the DATA required for this MASTER DATA
    1.     Open EXCEL.
    2.     Type the following data:
    1.      
    1.     Save as “ZIVY_SREP_MASTER.CSV”
    2.     The file should be saved in COMMA SEPARATED FORMAT.
    3.     Open EXCEL
    4.     Type the following data:
    5.     Save the file *** “ZIVY_SREP_TEXT.CSV”
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_SPER” alias “ZIVY Sales Person Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_SPER_ATTR”.
                                                                 ii.      Select “ZIVY_SPER_ATTR”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_MASTER.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.      Browse the data.
    1.     Create InfoPackage
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoSource in the left hand segment.
    3.     In the right hand segment, select InfoSources.
    4.     Select the application component you created “ZIVY_APPCOMP” alias “ZIVY Application Component”.
    5.     Beneath this, you see “ZIVY_SPER” alias “ZIVY Sales Person Info Object”
    6.     Beneath this you see a “FLAT FILE”.
    7.     Select this “FLAT FILE”,  right click the mouse pointer and select the option “Create InfoPackage”.
    8.     A window pops up.
                                                                   i.      InfoPackage Description: Info package for “ZIVY_SPER_TEXT”.
                                                                 ii.      Select “ZIVY_SPER_TEXT”
                                                                iii.      Click the “CHECK MARK”
    1.      
    1.     You see a new screen “Scheduler (Maintain InfoPackage)”.
    2.     Click the tab “External Data”
                                                                   i.      Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_TEXT.csv
                                                                 ii.      Check the CSV file.
                                                                iii.      Click the Preview Button.
                                                               iv.      A window pops up, click the CHECK MARK.
                                                                 v.      You see the data present in the EXCEL File.
    1.      
    1.     Click the tab “Update”
                                                                   i.      Have a look at the entries.
    1.      
    1.     Click the tab: Scheduler:
                                                                   i.      Click the button “Start”
                                                                 ii.      You now click on “MONITOR BUTTON” present on the tool bar.
                                                                iii.     
    Browse the data.         
    1.     Creation of InfoObject Catalog with Key Figures:
    1.     Select the InfoArea just created “ZIVY_Iarea”.
    2.     Right click the mouse pointer and select the option “Create InfoObject Catalog” 
    3.     A dialog box pops up.
    4.     Give the InfoObjCat = ZIVY_KEYCAT
                                                                  i.      Description = “ZIVY Key Figures Catalog”
                                                                 ii.      InfoObjectType: Check the Key Figures.
                                                                iii.       Now at the bottom of this dialog box you see an icon called “CREATE”. Click this icon.
    1.      
    1.     The next screen in front of you is the “Edit InfoObject Catalog”.
    2.     Simply click the “activate” icon present on the Application Toolbar.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3.     Look for the InfoArea you created “ZIVY_Iarea”.
    4.     Select the catalog you created “ZIVY_KEYCAT”,which is ZIVY  Key Figures Catalog.
    5.     Right click your mouse pointer, and select Create InfoObject.
    6.     A dialog box pops up.
    7.     Give the Character &#61664;ZIVY_AMT and
                                                                   i.      Description&#61664; ZIVY Amount Info Object
                                                                 ii.      Click the TICK mark.
    1.      
    1.     The next screen you see is “Create Key Figure ZIVY_AMT: Detail”.
    2.     In this screen the following fields have to be modified:
                                                                   i.      In the Type/ Unit Tab
    1.      DataType: Amount
    2.      Unit/ Currency = 0Currency
    1.      
    1.     Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
    2.     Activate the ZIVY_AMT, by clicking the icon “ACTIVATE”.
    2.     Create InfoObject :
    1.     Go to the UG_BW_RSA1-Administrator Workbench.
    2.     Click on InfoObjects.
    3. 

  • HOW TO LOAD FLATFILE IN BI 7.0

    HI EXPERTS,
    I AM NEW TO BI 7.0
    CAN ANY ONE HELP ME HOW TO LOAD FLAT FILE IN BI 7.0.
    I HAVE DONE IN BW 3.5.
    I WANT TO KNOW IN BI 7.0 NOW.
    I WILL ASSIGN POINTS.

    Hi
    LOADING MASTER AND TRANSACTIONAL DATA
    Please follow the following steps to load master and transaction data in BI 7.0
    Loading of transaction data in BI 7.0:
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used.
    Loading of master data in BI 7.0:
    For Uploading of master data in BI 7.0
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    2. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used

  • Error when loading the callback component

    Hi friends
      Am getting this error.  Error when loading the callback component. Am working in Travel expense workflow which is 2 level based on condition. If its EG > 8 its one level and EG < 8 its 2 level. When the approver does the approval am changing the status from 3 to 4 at that time the pernr is getting locked. Next step itself mail step. But the workflow is throwing the error and mail its hanging in the mail step. I have try to restart the workflow but its not restarting.  Error when loading the callback component this error is showing in the lock pernr. Am not locking the pernr system locks the pernr by itslef and not unlocking the pernr. How to solve this issue.
    Regards
    vijay

    Hello,
    Check if OSS Note 854495 is applicable.
    regards
    Rick Bakker
    Hanabi Technology

  • *** Question How to load a file into BI-Integrated Planning and use WAD 7.0

    Hi, I created an manual DTP upload to my planning infocube and it works fine.  The transformation rules convert 0CALMONTH into the relevant Calendar and Fiscal characteristics.   So all of my Time Characteristics are fine, both Calendar and Fiscal.
    However, When using the "How to load a file into BI-Integrated Planning and use WAD 7.0" solution, only the Calendar Characteristics are populated and not the Fiscal.   The upload application somehow knows to populate the 0CALMONTH2, 0CALQUART1, 0CALQUARTER, and 0CALYEAR.  
    How can I get the upload to populate my Fiscal Period Characteristics?
    Would it be best to modify the "Upload Application, or can I write a planning function to update the fiscal characteristics, or some other way?
    Thanks!

    My planning data is being uploaded via the SDN Planning File Upload Solution. What I did was end up modifiying the upload class ZCL_RSPLF_FILE_UPLOAD Method EXECUTE.
    I added the following code if anyone is interested.
    *{ INSERT BWDK902323 1
    THIS SECTION OF CODE POPULATES THE FISCAL PERIOD CHARACTERISTICS
    USING THE FISCAL YEAR VARIANT 'NK' AND THE CALENDAR MONTH/YEAR
    FIELD-SYMBOLS <0FISCVARNT> TYPE /BI0/OIFISCVARNT. " Fiscal Year Variant
    FIELD-SYMBOLS <0FISCYEAR> TYPE /BI0/OIFISCYEAR. " Fiscal Year
    FIELD-SYMBOLS <0FISCPER> TYPE /BI0/OIFISCPER. " Fiscal Year/Period
    FIELD-SYMBOLS <0FISCPER3> TYPE /BI0/OIFISCPER3. " Posting Period
    FIELD-SYMBOLS <0CALMONTH> TYPE /BI0/OICALMONTH. " Calendar Month/Year
    ASSIGN COMPONENT '0CALMONTH' OF STRUCTURE <L_S_DATA> TO <0CALMONTH>.
    ASSIGN COMPONENT '0FISCPER' OF STRUCTURE <L_S_DATA> TO <0FISCPER>.
    ASSIGN COMPONENT '0FISCVARNT' OF STRUCTURE <L_S_DATA> TO <0FISCVARNT>.
    ASSIGN COMPONENT '0FISCPER3' OF STRUCTURE <L_S_DATA> TO <0FISCPER3>.
    ASSIGN COMPONENT '0FISCYEAR' OF STRUCTURE <L_S_DATA> TO <0FISCYEAR>.
    <0FISCVARNT> = 'NK'.
    CALL FUNCTION 'FISCPER_FROM_CALMONTH_CALC'
    EXPORTING
    IV_CALMONTH = <0CALMONTH>
    IV_PERIV = <0FISCVARNT>
    IMPORTING
    EV_FISCPER3 = <0FISCPER3>
    EV_FISCPER = <0FISCPER>
    EV_FISCYEAR = <0FISCYEAR>.
    *} INSERT

  • How to load mutiple image

    I'm trying to create a photo manager but I can't find a way to load multiple images onto my frame. I have a thumbnail class that makes thumbnails for an image (which is a modified version of the class ImageHolder from FilthyRichClient)
    public class Thumbnails {
         private List<BufferedImage> scaledImages = new ArrayList<BufferedImage>();
    private static final int AVG_SIZE = 160;
    * Given any image, this constructor creates and stores down-scaled
    * versions of this image down to some MIN_SIZE
    public Thumbnails(File imageFile) throws IOException{
              // TODO Auto-generated constructor stub
         BufferedImage originalImage = ImageIO.read(imageFile);
    int imageW = originalImage.getWidth();
    int imageH = originalImage.getHeight();
    boolean firstScale = true;
    scaledImages.add(originalImage);
    while (imageW >= AVG_SIZE && imageH >= AVG_SIZE) {
         if(firstScale && (imageW > 320 || imageH > 320)) {
              float factor = (float) imageW / imageH;
              if(factor > 0) {
              imageW = 320;
              imageH = (int) (factor * imageW);
              else {
                   imageH = 320;
                   imageW = (int) (factor * imageH);
         else {
              imageW >>= 1;
         imageH >>= 1;
    BufferedImage scaledImage = new BufferedImage(imageW, imageH,
    originalImage.getType());
    Graphics2D g2d = scaledImage.createGraphics();
    g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    g2d.drawImage(originalImage, 0, 0, imageW, imageH, null);
    g2d.dispose();
    scaledImages.add(scaledImage);
    * This method returns an image with the specified width. It finds
    * the pre-scaled size with the closest/larger width and scales
    * down from it, to provide a fast and high-quality scaled version
    * at the requested size.
    BufferedImage getImage(int width) {
    for (BufferedImage scaledImage : scaledImages) {
    int scaledW = scaledImage.getWidth();
    // This is the one to scale from if:
    // - the requested size is larger than this size
    // - the requested size is between this size and
    // the next size down
    // - this is the smallest (last) size
    if (scaledW < width || ((scaledW >> 1) < width) ||
    (scaledW >> 1) < (AVG_SIZE >> 1)) {
    if (scaledW != width) {
    // Create new version scaled to this width
    // Set the width at this width, scale the
    // height proportional to the image width
    float scaleFactor = (float)width / scaledW;
    int scaledH = (int)(scaledImage.getHeight() *
    scaleFactor + .5f);
    BufferedImage image = new BufferedImage(width,
    scaledH, scaledImage.getType());
    Graphics2D g2d = image.createGraphics();
    g2d.setRenderingHint(
    RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    g2d.drawImage(scaledImage, 0, 0,
    width, scaledH, null);
    g2d.dispose();
    scaledImage = image;
    return scaledImage;
    // shouldn't get here
    return null;
    A loop will loop through a collection of files and pass them to the constructor of Thumbnails to create thumbnails and then set them as icon for JLabels that will be added to a JPanel, but it throws a java.lang.OutOfMemoryError at this line:
    BufferedImage originalImage = ImageIO.read(imageFile);
    even when there're only about 8 image files in the collection (total size 2,51MB).
    I've seen other people's software that could load hundreds of photos in a matter of seconds! How do I suppose to do that? How to load mutiple images efficiently? Please help!! Thanks a lot!

    another_beginner wrote:
    Thanks everybody! I appreciate your help! I don't understand why but when I use a separate thread to do the job, that problem disappear. You were likely doing your image loading and thumnail creation on the Event Dispatching Thread. Among other things, this is the same thread that updates and paints your panels, frames, buttons, ect.. When a programer does something computationaly expensive on the event dispatching thread then the GUI becomes unresponsive until the computation is done.
    Ideally what you want to do is load images and create thumnails on a seperate thread and update your GUI on the event dispatching thread. I supect that while you are finally doing the first item, you might now be violating the second item.
    Whatever, the program seems to be pretty slow on start up 'cause it have to reload images everytime. I'm using Picasa and it can display those thumbnails almost instantly. I know that program is made by professionals. But I still want to know how.I took a look at this Picasa you mentioned. It's the photo manager from google right? You're right in that the thumnails display instantly when starting up. This is because Picasa is actually saving the thumnails, instead of creating them everytime the program starts up. It only creates the thumnails once (when you import a picture) and saves the thumnail data to " +*currentUser*+ /AppData/Local/Google/Picasa2/db3/" (at least on my computer --> Vista).
    Also, if your looking for speed then for some inexplicable reason java.awt.Toolkit.getDefaultToolkit().createImage(...); is faster (sometimes much faster) than ImageIO.read(...). But there comes a price in dealing with Toolkit images. A toolkit image isn't ready for anything until it has been properly 'loaded' using one of several methods. Also, when you're done and ready for the image to be garbage collected then you need to call Image.flush() or you will eventually find yourself with an out of memory error (BufferedImages don't have this problem). Lastly, Toolkit.createImage(...) can only read image files that the older versions of java supported (jpg, png, gif, bmp) .
    And, another question (or maybe I should post it in a different thread?), I can't display all thumbnails using a JPanel because it has a constant height unless I explicitly set it with setPreferredSize. Even when put in a JScrollPane, the height doesn't change so the scrollbar doesn't appear. Anyone know how to auto grow or shrink a JPanel vertically? Or I have to calculate the preferred height by myself?Are you drawing the thumnails directly on the JPanel? If so then you will indeed need to dynamically set the preferred size of the component.
    If not, then presumebly your wrapping the thumnails in something like a JLabel or JButton and adding that to the panel. If so, what is the layout manager you're using for the panel?

Maybe you are looking for

  • Opening a document in photoshop and running a ps script

    I'm trying to write a script which will open a link in photoshop (which I have managed to do with Link.editOriginal) and also run a photoshop script after the file is opened. I have looked in online references and the PDF's found on this site, but I

  • Adding movies to apple tv form external disk

    I want to be able to add a movie to Itunes from my external disk and then to apple tv, without erasin what has been added in the past but is not in itunes any more. The memory in my computer is limited and my movies are all in a external disk. when I

  • How do I transfre my itunes music to my new computer?

    I need to move my music from my old PC to my new MAC. What is the simplest way to do that? I teach dance and need to take my music everywhere I go.

  • Displaying Report Server error in forms

    All, Is there a way in forms to display the error message from the reports server instead of the generic non informative message "FRM-41214 Unable to Run Report." thanks Jim

  • How to delete a tvshow on apple tv

    I need to delete a tv show i bought and I dont want it anymore, how can I delete it?