To Calculate the Size of Infocube

Hi ..
   How to calculate the size of the Infocube...?
I know there is one formula for it...!
Can any one help me...
Thanx in Advance...
Vasu

hi Vasu,
calcute the size of infocube
- total records
transaction se16 -> fact table name, /bic/f[infocube name] and /bic/e[infocube name] or /bi0/f.. and /bi0/e for business content infocube, click 'number of entries'
use program (se38) SAP_INFOCUBE_DESIGNS
- size in bytes
transaction db02 -> 'detail analysis' -> object name = [infocube name]
hope this helps.

Similar Messages

  • How to calculate the size of web forms in hyperion planning?

    Hi Experts,
    I am trying to calculate the size of planning forms in Hyperion smart view., but i am unable to find out the way to calculate.
    Can you pls explain how to calculate the size of web form in Smart view?
    --- Srini.

    Hi Srini,
    First, here is what Oracle says:
    Data Form Size Estimation:
    To get a rough estimate of data form size, open the data form and select File > Save As from the browser. The size of the .HTML file is the portion of the data form that changes based on grid size. The .JS files remain the same size and can be cached, depending on browser settings. Information such as data form definitions, pages, and .gif files are not compressed when data forms are opened and sent to the Web browser.
    I have not been able to find out using their method.
    In any case, you can find out the size of grid by using below
    1. Right click on the form grid and click "View source"
    2. Save the source file as "Example.html"
    3. Right click the saved file and click "Properties"
    4. The Form size whould be same as that of file..
    Let me know if it helps.
    Cheers
    RS

  • To calculate the size of backup for a particular database in RMAN catalog

    Hi ALL,
    Could you please guide me how I can calculate the size of backup data for a particular database in Recovery Catalog, if I am using Tapes as my backup media for recovery catalog.
    Regards
    Harpreet Singh

    Hi,
    I am not Up to the mark of your question ..
    If you see the V$log you can get it.. Size of the redo logs can be determined either by examining the file system size or by reading the BYTES column on the V$LOG view. Then Check the number of redo Logs avaialble checked whether they are mirrored or etc., Combining the two figures we have a total redo log data at peak in one day. This is the amount of data that any backup facility or storage of Archive Redo Logs would have to take into account. This figure should be mitigated against the fact that manual switching of redo logs means that not all archived redo logs will be the full size.
    - Pavan Kumar N

  • How to calculate the size each PSA request or all PSA for the Datasources?

    Hi All,
    Can anybody tell me how to calculate the size of each PSA Request or all PSA's requests for all datasources?
    Regards,
    Rajesh

    Hi ,
    PSA technical name can be found as,
    1)Right click on your Data Target,go to Display dataflow,click on the PSA ,here you can find the technical name.
    2)Goto RSRV tcode>PSA Table>Consistency between PSA Partitions and SAP Administration-->Give your Infosoure name,it gives u PSA technical name also,
    Thanks&Regards,
    Praveena.

  • How to calculate the size of the heap memory? its urgent pls

    i had a task in which i need to calculate the size of the heap memory can anybody help me its urgent pls

    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    Specifically:
    max/total/freeMemory()
    http://javaalmanac.com/egs/java.lang/GetHeapSize.html?l=new

  • How to calculate the size of a Text Field?

    Is there a way to calculate the number of characters allow in a Text Field? If a uer type over this number of characters a popup window will appear telling the user that he/she has too much texts. Of course I could use the Limit Length, but I have to manually put texts into this text field and count them. If the Limit Lenth number is too small, the texts does not fill the whole text field. If the number is too big then the texts does not get printed.

    There would be no easy way to do this. You'd need to do some pretty fancy calculations, it would all depend on the size of the field, what font is used, the font size, whether it's been bolded, underlined, italicized, etc etc.
    What are you trying to accomplish? Make it so that the user can type in the text field until it fills and then have it stop without scroll bars coming up to allow him to keep typing?
    Chris
    Adobe Enterprise Developer Support

  • How to calculate the size of database (a different one)

    Hello Friends,
    I am told to move the data from server to another machine (cloning is one very good option, I agree. But I expect a different answer regarding exports and imports). so How should I go about the task. The destination machine has got unlimited space. So thats not a problem. My questions are :
    1) How should I start the task ( I generally go for studying the structures and their sizes. Is it ok ?)
    2) If I am using Unix machine and there is a limitation that my server will not support file sizes of more than 2 GB, What should I do ?
    3) Shall I have to go for a full database backup or fragment the task ? If I do that , there are many schemas, so it will become tedious. But full backup will exceed OS size limitation. What should be done ?
    4) Is there anyway, I can go through a dump file, to find out, the database objects present inside that and note the related dependencies.
    Please respond.
    Regards,
    Ravi Duvvuri

    1) They are Unix machines. So will the size problem occur(if there is a limitation). How to overcome that?
    If the OS are of the same version you will have any problem. Regarding the storage only you have to have space in disk to store the datafiles, redo logs and controlfiles and nothing else.
    2) I am trying Export/import measure. Though there are other good methods, I just want to explore the full capabilities of Exp/Imp
    r.- Recreate the controlfiles is more effective and fast if the OS are of the same version.
    3) And the oracle version is 9i 2. (If I have to perform this on 8i (both source and destination, will the methods are going to differ ?)).
    R.- The method is the same for 8i/9i/10g.
    How should I go about doing this export/import ?
    r.- To use this method you have to have the original database started.
    To recreate the controlfile without having the datafile that you mentioned you have to get out it from the CREATE CONTROLFILE sentence and that's it.
    For Example: I mean, if your database has 8 datafiles and you have only 7, you have to include only 7 in the CREATE CONTROLFILE sentence.
    Joel Pérez
    http://otn.oracle.com/experts

  • Calculate the size(in bytes) that will be displayed to the console by command Write-Output

    Is there some way to check the size(in bytes) of the output that will be displayed to the console using Write-Output command. I want the console to display only the first 1024 bytes of the objects output.

    Hi Sachin,
    in that case let me add an example on how to read content from a file that may be or may not be a text file:
    $string = [System.Text.Encoding]::UTF8.GetString([System.IO.File]::ReadAllBytes("D:\example.txt"))
    Theoretically, the "Get-Content" cmdlet ought to do the same, however I have occasionally experienced different results.
    You can choose to not convert it to string and just print the bytes too (or choose another encoding of your preference). Remember, a single letter usually uses 2 bytes, thus reading the first 1024 bytes from a file you converted to text would mean printing
    the first 512 letters.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How to calculate the size and number of nodes in the btree?

    I need to determine the size of the btree nodes in the log file and the how many internal and leaf nodes in the btree. For example if I have 2.88M records approximately how much disk space is used up by the JE's internal structures? This info will help me determine the best size of the data records.

    Chad,
    Keys are stored in order in the btree. They are ordered by the custom comparator if one is used, otherwise by the default (unsigned byte) comparator.
    Key prefixing (when it is available -- remember that we're talking about a future feature here) reduces memory and disk space for the adjacent keys in a Btree node when the initial bytes of those keys are in common.
    If your keys that are adjacent (according to your custom comparator) don't have common bytes at the front, then key prefixing won't have any advantage.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help to calculate the size of arraylist..........

    class hdrFileFilter extends FileFilter {
    private Hashtable filters = null;
    private Hashtable noextensionfilter = null;
    private String noextensionname=null;
    private String extensionname = null;
    private String description = null;
    private String fullDescription = null;
    private boolean useExtensionsInDescription = true;
    private String fname = null;
    public ArrayList noextensionarray=new ArrayList();
    private File x;
    int count=0;
    int counthdr=0;
    int i=0;     
         //all files are accepted.
    public hdrFileFilter()
         this.filters = new Hashtable();
         //Creates a file filter that accepts files with the given extension.
    public hdrFileFilter(String extension)
         this(extension,null);
         //Creates a file filter that accepts the given file type.
    public hdrFileFilter(String extension, String description)
         this();
         if(extension!=null)
         addExtension(extension);
         if(description!=null) setDescription(description);
    }      //Return true if this file should be shown in the directory pane,false if it shouldn't.
    public boolean accept(File f) {
         if(f != null) {
         if(f.isDirectory()) {
              return true;
         String extension = getExtension(f);
         if(extension != null && filters.get(getExtension(f)) != null)
              fname=f.getName();
              extensionname=fname.substring(0,fname.lastIndexOf('.'));
              counthdr+=1;
              return true;
         if(extension == null)
              noextensionfilter=new Hashtable(20);
              noextensionname=f.getName();          
              noextensionfilter.put(count,noextensionname);
              count+=1;
              if(noextensionfilter.get(count) == extensionname)
                   //noextensionarray=new ArrayList();
                   x=f;
                   noextensionarray.add(x);
                   System.out.println("file:" +noextensionarray.get(i));                //i++;
                   return true;               
         return false;
    [b]public int get_size()
         int xx=noextensionarray.size();
         return xx;
         System.out.println("size is:" + noextensionarray.size());
         //Return the extension portion of the file's name .
    public String getExtension(File f)
              if(f != null)
                   String filename = f.getName();
                   int i = filename.lastIndexOf('.');
                   if(i>0 && i<filename.length()-1)
                        return filename.substring(i+1).toLowerCase();
              return null;
         //Adds a filetype "dot" extension to filter against.
    public void addExtension(String extension)
         if(filters == null)
         filters = new Hashtable(20);
         filters.put(extension.toLowerCase(), this);
         fullDescription = null;
    public String getDescription()
              if(fullDescription == null)
                   if(description == null || isExtensionListInDescription())
                        fullDescription = description==null ? "(" : description + " (";
                        // build the description from the extension list
                        Enumeration extensions = filters.keys();
                        if(extensions != null)
                             Object nn=extensions.nextElement();
                             fullDescription += "." + nn;     
                             while (extensions.hasMoreElements())
                                  fullDescription += ", ." + nn;
                        fullDescription += ")";
                   else
                        fullDescription = description;
              return fullDescription;
    public void setDescription(String description)
         this.description = description;
         fullDescription = null;
    public void setExtensionListInDescription(boolean b) {
         useExtensionsInDescription = b;
         fullDescription = null;
              public boolean isExtensionListInDescription()
              return useExtensionsInDescription;
    } //end of hdrfilefilter
    class reference extends hdrFileFilter
    reference()
    here i need the size of noextensionarray array List
    I've used method get_size() for the calculation of niextensionarray List in above class which is marked as bold.
    since I've allocate memory to the array above the hdrFileFileter() so now the array list is showing the zero size of arraylist.
    PLS. help me to get the size of arraylist noextensionarray.

    Hello all,
    the code contain two classes
    1. hdrFileFilter: used to filter out files containing the extension .hdr and those files that haVE the same name as the header file has but with no extension.
    files that have no extension are stored in the arraylist "noextensionarray".
    2. Reference Class: this class is using the files that are stroed in the array List "Noextensionarray" one by one. for this I required the size of arraylist. I'm using the size of array through function get_size it gives the size=0;this function is defined in class hdrfilefilter.although it is diaplaying the name which are stored in arraylist on commad prompt.
    I appricate all the comments given regarding the solution of the problem.
    class hdrFileFilter extends FileFilter
         private Hashtable filters = null;
         private Hashtable noextensionfilter = null;
         private String noextensionname=null;
         private String extensionname = null;
         private String description = null;
         private String fullDescription = null;
         private boolean useExtensionsInDescription = true;
         private String fname = null;
         public ArrayList noextensionarray=new ArrayList();
         private File x;
         int count=0;
         int counthdr=0;
         int i=0;
         //all files are accepted.
         public hdrFileFilter()
              this.filters = new Hashtable();
         //Creates a file filter that accepts files with the given extension.
         public hdrFileFilter(String extension)
              this(extension,null);
         //Creates a file filter that accepts the given file type.
         public hdrFileFilter(String extension, String description)
              this();
              if(extension!=null)
              addExtension(extension);
              if(description!=null) setDescription(description);
         } //Return true if this file should be shown in the directory pane,false if it
    shouldn't.
         public boolean accept(File f)
              if(f != null)
                   if(f.isDirectory())
                        return true;
                   String extension = getExtension(f);
                   if(extension != null && filters.get(getExtension(f)) != null)
                        fname=f.getName();                         
              extensionname=fname.substring(0,fname.lastIndexOf('.'));
                        counthdr+=1;
                        return true;
                   if(extension == null)
                        noextensionfilter=new Hashtable(20);
                        noextensionname=f.getName();
                        noextensionfilter.put(count,noextensionname);
                        count+=1;
                        if(noextensionfilter.get(count) == extensionname)
                                  //noextensionarray=new ArrayList();
                                  x=f;
                                  noextensionarray.add(x);
                                  System.out.println("file:"
    noextensionarray.get(i)); //i+;
                                  return true;
              return false;
         public int get_size()
              int xx=noextensionarray.size();
              return xx;
              System.out.println("size is:" + noextensionarray.size());
    //Return the extension portion of the file's name .
         public String getExtension(File f)
              if(f != null)
                   String filename = f.getName();
                   int i = filename.lastIndexOf('.');
                   if(i>0 && i<filename.length()-1)
                        return filename.substring(i+1).toLowerCase();
                   return null;
    //Adds a filetype "dot" extension to filter against.
         public void addExtension(String extension)
              if(filters == null)
                   filters = new Hashtable(20);
              filters.put(extension.toLowerCase(), this);
              fullDescription = null;
         public String getDescription()
              if(fullDescription == null)
                   if(description == null || isExtensionListInDescription())
                        fullDescription = description==null ? "(" :
    description + " (";
                        // build the description from the extension list
                        Enumeration extensions = filters.keys();
                        if(extensions != null)
                             Object nn=extensions.nextElement();
                             fullDescription += "." + nn;
                             while (extensions.hasMoreElements())
                                  fullDescription += ", ." + nn;
                        fullDescription += ")";
                   else
                        fullDescription = description;
              return fullDescription;
         public void setDescription(String description)
              this.description = description;
              fullDescription = null;
         public void setExtensionListInDescription(boolean b)
              useExtensionsInDescription = b;
              fullDescription = null;
         public boolean isExtensionListInDescription()
              return useExtensionsInDescription;
    } //end of hdrfilefilter
    Class reference
    REQUIRED THE SIZE OF ARRAYLIST.
    }

  • Script to calculate the size of table

    I am very new to scripting. My first script i need to make is for finding the total size of my oracle tables.
    I have to provide two inputs that is the database name and tabale name
    and the script should give me the size. This script will also be incorporated in crontab for checking the size of a particular table which is for txn logging and will be mailing us when the size of the table reaches 1gigs.
    what i have in mind till yet is
    #!/usr/bin/ksh
    # Script to find sze of the table
    # usage ./truncate_table.ksh ORACLE_SID TABLE_NAME
    set -x
    export ORACLE_HOME=/opt/oracle/product/9.2.0.4
    SUMMARY=/tmp/truncate_table.log
    date > $SUMMARY
    export ORACLE_SID=$1
    echo $ORACLE_SID
    export TABLE_NAME=$2
    if [ -z $ORACLE_SID ]
    then
    echo "Oracle SID not set"
    exit
    fi
    export PATH=$ORACLE_HOME/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/openwin/bin:/usr/dt/bin:/opt/rational/clearcase/bin:/usr/local/samba/bin:/
    export/home/oracle/bin:/u01/oracle/admin/adhoc:/opt/oracle/OPatch:/usr/ccs/bin:$PATH
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    ${ORACLE_HOME}/bin/sqlplus -s '/ as sysdba'<<EOF>>$SUMMARY
    set pagesize 0 feedback on verify on heading off echo on
    select (bytes/1024/1024) as total_gigs from dba_segments where owner='SIEBEL' and segment_name='$TABLE_NAME'
    exit;
    EOF
    But this is not working...
    CAn someone help

    select (bytes/1024/1024) as total_gigs from dba_segments where owner='SIEBEL' and segment_name='$TABLE_NAME'You are missing ";" at the end of query. That's the reason why your script does not work.
    export TABLE_NAME=$2Why you did export of TABLE_NAME? This doesn't make sense. The same as ORACLE_SID export.
    Just use "TABLE_NAME=$2"

  • How to calculate the size of DB given the transaction and the INVT

    Hi,
    I need to know the size of a database
    transactions/day-900
    Total Items=12,200
    We are preparing for a proposal .The above is the descriptions given by the client.
    How to estimate the size of database We need to design a hardware configuration
    Can anyone help me
    Maran.

    Any clue regarding the size of the row in the 900 transactions per day?
    Will there be a single table updated per transaction or multiple tables?
    Will the transaction be of type insert mostly?
    If it is going to be insert only, then probably you can estimate the database size based on size of row * 900 transactions per day... You need to consider if there will be other tables affected via triggers.
    Also, the size of the indexes defined on these tables will contribute to the database size.
    No idea as to what do you mean by 12,200 items.
    Message was edited by:
    satishkandi

  • How to calculate the size of JTextPane in advance?

    I have a dialog that contains JTextPane. The text that is to be displayed in the JTextPane is obtained at run-time and is passed to the dialog constructor.
    Providing that I know how width the JTextPane should be, how can I calculate the height that will be sufficient to hold the text? I want to make all the text visible; I do not want to use JScrollPane.
    gracjan

    Hi!
            int width=somewidth;
            pane.setSize(width,Integer.MAX_VALUE);
            int height=pane.getPreferredSize().height;works fine for me when pane is JEditorPane.
    You may look at reply 5 and 6 of this:
    http://forum.java.sun.com/thread.jspa?threadID=5114687
    Annette

  • How do I calculate the size of files that I have UNC paths for

    I am on SQL Server 2008 R2. I have a table that contains a field called [Location]. In that field is a UNC path to the physical file on the repository. Is there a way in SQL Server that I can say give me the select sum([Location] UNC file) where criteria?
    I saw some posts about xp_filesize or xp_GetFileDetails, but I do not see them in master. I am unable to add anything and wondering if there is any native functionality that would allow me to accomplish this!? Thanks.

    Maybe you can use an Excel Macro for this kind of thing.
    Dim iRow
    Sub ListFiles()
    iRow = 11
    Call ListMyFiles(Range("C7"), Range("C8"))
    End Sub
    Sub ListMyFiles(mySourcePath, IncludeSubfolders)
    Set MyObject = New Scripting.FileSystemObject
    Set mySource = MyObject.GetFolder(mySourcePath)
    On Error Resume Next
    For Each myFile In mySource.Files
    iCol = 2
    Cells(iRow, iCol).Value = myFile.Path
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.Name
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.Size
    iCol = iCol + 1
    Cells(iRow, iCol).Value = myFile.DateLastModified
    iRow = iRow + 1
    Next
    If IncludeSubfolders Then
    For Each mySubFolder In mySource.SubFolders
    Call ListMyFiles(mySubFolder.Path, True)
    Next
    End If
    End Sub
    Try this too.
    Sub TestListFilesInFolder()
    ' Open folder selection
    ' Open folder selection
    With Application.FileDialog(msoFileDialogFolderPicker)
    .Title = "Select a Folder"
    .AllowMultiSelect = False
    If .Show <> -1 Then GoTo NextCode
    pPath = .SelectedItems(1)
    If Right(pPath, 1) <> "\" Then
    pPath = pPath & "\"
    End If
    End With
    NextCode: 'MsgBox "No files Selected!!"
    'Application.WindowState = xlMinimized
    'Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the file list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Range("A2")
    .Formula = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Range("A3").Formula = "File Name:"
    Range("B3").Formula = "File Size:"
    Range("C3").Formula = "File Type:"
    Range("D3").Formula = "Date Created:"
    Range("E3").Formula = "Date Last Accessed:"
    Range("F3").Formula = "Date Last Modified:"
    Range("A3:F3").Font.Bold = True
    Worksheets("ListOfFiles").Range("A1").Value = pPath
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    ListFilesInFolder Worksheets("ListOfFiles").Range("A1").Value, True
    ' list all files included subfolders
    Range("A3").Select
    Lastrow = Range("A1048576").End(xlUp).Row
    Range(Selection, Selection.End(xlToRight)).Select
    Range(Selection, Selection.End(xlDown)).Select
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("ListOfFiles").Sort.SortFields.Add Key:=Range( _
    "B4:B" & Lastrow), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
    xlSortNormal
    With ActiveWorkbook.Worksheets("ListOfFiles").Sort
    .SetRange Range("A3:F" & Lastrow)
    .Header = xlYes
    .MatchCase = False
    .Orientation = xlTopToBottom
    .SortMethod = xlPinYin
    .Apply
    End With
    Range("A1").Select
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Range("A1").Select
    End Sub
    Sub ListFilesInFolder(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the files in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim FileItem As Scripting.File
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    r = Range("A1048576").End(xlUp).Row + 1
    For Each FileItem In SourceFolder.Files
    ' display file properties
    Cells(r, 1).Formula = FileItem.Path & FileItem.Name
    Cells(r, 2).Formula = (FileItem.Size / 1048576)
    Cells(r, 2).Value = Format(Cells(r, 2).Value, "##.##") & " MB"
    Cells(r, 3).Formula = FileItem.Type
    Cells(r, 4).Formula = FileItem.DateCreated
    Cells(r, 5).Formula = FileItem.DateLastAccessed
    Cells(r, 6).Formula = FileItem.DateLastModified
    ' use file methods (not proper in this example)
    r = r + 1 ' next row number
    Next FileItem
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFilesInFolder SubFolder.Path, True
    Next SubFolder
    End If
    Columns("A:F").AutoFit
    Set FileItem = Nothing
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    Sub CreateList()
    Application.ScreenUpdating = False
    Workbooks.Add ' create a new workbook for the folder list
    ' add headers
    ActiveSheet.Name = "ListOfFiles"
    With Cells(3, 1)
    .Value = "Folder contents:"
    .Font.Bold = True
    .Font.Size = 12
    End With
    Cells(4, 1).Value = "Folder Path:"
    Cells(4, 2).Value = "Folder Name:"
    Cells(4, 3).Value = "Folder Size:"
    Cells(4, 4).Value = "# Subfolders:"
    Cells(4, 5).Value = "# Files:"
    Range("A3:E3").Font.Bold = True
    ListFolders BrowseFolder, True
    Application.ScreenUpdating = True
    Cells.Select
    Cells.EntireColumn.AutoFit
    Columns("A:A").Select
    Selection.ColumnWidth = 100
    Columns("B:B").Select
    Selection.ColumnWidth = 25
    Range("A1").Select
    End Sub
    Sub ListFolders(SourceFolderName As String, IncludeSubfolders As Boolean)
    ' lists information about the folders in SourceFolder
    Dim FSO As Scripting.FileSystemObject
    Dim SourceFolder As Scripting.Folder, SubFolder As Scripting.Folder
    Dim r As Long
    Set FSO = New Scripting.FileSystemObject
    Set SourceFolder = FSO.GetFolder(SourceFolderName)
    ' display folder properties
    Worksheets("ListOfFiles").Range("A1").Value = SourceFolderName
    Range("A1").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic
    .Color = 65535
    .TintAndShade = 0
    .PatternTintAndShade = 0
    End With
    With Selection.Font
    .Color = -16776961
    .TintAndShade = 0
    End With
    Selection.Font.Bold = True
    r = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(r, 1).Value = SourceFolder.Path
    Cells(r, 2).Value = SourceFolder.Name
    Cells(r, 3).Value = SourceFolder.Size
    Cells(r, 3).Value = (SourceFolder.Size / 1048576)
    Cells(r, 3).Value = Format(Cells(r, 3).Value, "##.##") & " MB"
    Cells(r, 4).Value = SourceFolder.SubFolders.Count
    Cells(r, 5).Value = SourceFolder.Files.Count
    If IncludeSubfolders Then
    For Each SubFolder In SourceFolder.SubFolders
    ListFolders SubFolder.Path, True
    Next SubFolder
    Set SubFolder = Nothing
    End If
    Columns("A:E").AutoFit
    Set SourceFolder = Nothing
    Set FSO = Nothing
    ActiveWorkbook.Saved = True
    End Sub
    And, finally.
    Const BIF_RETURNONLYFSDIRS As Long = &H1 ''' For finding a folder to start document searching
    Const BIF_DONTGOBELOWDOMAIN As Long = &H2 ''' Does not include network folders below the domain level in the tree view control
    Const BIF_RETURNFSANCESTORS As Long = &H8 ''' Returns only file system ancestors.
    Const BIF_BROWSEFORCOMPUTER As Long = &H1000 ''' Returns only computers.
    Const BIF_BROWSEFORPRINTER As Long = &H2000 ''' Returns only printers.
    Const BIF_BROWSEINCLUDEFILES As Long = &H4000 ''' Returns everything.
    Const MAX_PATH As Long = 260
    Type BROWSEINFO
    hOwner As Long
    pidlRoot As Long
    pszDisplayName As String
    lpszINSTRUCTIONS As String
    ulFlags As Long
    lpfn As Long
    lParam As Long
    iImage As Long
    End Type
    Declare Function SHGetPathFromIDListA Lib "shell32.dll" (ByVal pidl As Long, ByVal pszBuffer As String) As Long
    Declare Function SHBrowseForFolderA Lib "shell32.dll" (lpBrowseInfo As BROWSEINFO) As Long
    Function BrowseFolder() As String
    Const szINSTRUCTIONS As String = "Choose the folder to use for this operation." & vbNullChar
    Dim uBrowseInfo As BROWSEINFO
    Dim szBuffer As String
    Dim lID As Long
    Dim lRet As Long
    With uBrowseInfo
    .hOwner = 0
    .pidlRoot = 0
    .pszDisplayName = String$(MAX_PATH, vbNullChar)
    .lpszINSTRUCTIONS = szINSTRUCTIONS
    .ulFlags = BIF_RETURNONLYFSDIRS
    .lpfn = 0
    End With
    szBuffer = String$(MAX_PATH, vbNullChar)
    ''' Show the browse dialog.
    lID = SHBrowseForFolderA(uBrowseInfo)
    If lID Then
    ''' Retrieve the path string.
    lRet = SHGetPathFromIDListA(lID, szBuffer)
    If lRet Then BrowseFolder = Left$(szBuffer, InStr(szBuffer, vbNullChar) - 1)
    End If
    BrowseFolder = BrowseFolder & "\"
    End Function
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Checking the size of the infocube

    Hi,
    How can we check the size of the infocube with large volume of data? From the SAP standard practice what is the optimal size that an infocube can consist of data with out an impact on the query performance?

    Hi
    When estimating the size of an InfoCube one must consider the size of the fact table and dimension tables. However, the size of the fact table is the most important, since in most cases it will be 80-90% of the total storage requirement for the InfoCube.
    The following shows how to calculate the size of an InfoCube, including the dimension tables and the fact tables.
    Size of a dimension table
    To calculate the size of a dimension table:
    u2022     The size of one record of the dimension table can be calculated by summing the number of characteristics in the dimension table at 4 bytes each. Also, add four bytes for the key of the dimension table.
    u2022     Calculate the number of records in the dimension table
    u2022     Multiply the size of 1 record by the number of records
    Assume that the dimension table indexes will take up as much space as the dimension table itself.
    Size of a Fact Table
    To calculate the size of a fact table:
    u2022     Count the number of key figures the table will contain, assuming a quantity key figure requires 9 bytes, a currency key figure requires 9 bytes, and other numeric fields require 4 bytes (or more).
    u2022     Every dimension table requires a foreign key in the fact table, so add 4 bytes for each key. Donu2018t forget the three standard dimensions.
    u2022     Add these figures together to get the size of 1 record
    u2022     Calculate the number of records in the fact table
    u2022     Multiply the size of 1 record by the number of records
    Assume that the fact table indexes will take up as much space as the fact table itself. This is more index space than is usually required in most OLTP systems. In the fact table, many of the columns will be foreign keys with pointers to dimension tables. Each of them will have an index.
    Add an additional 150% for temporary table space and aggregate tables. An aggregate contains both new dimension and data tables. A rule of thumb is that all the aggregates will be the size of the fact table.
    Hope this Helps
    Regards
    Shilpa

Maybe you are looking for