DB Size for a custom cluster table?
Hi friends,
I have a requirement where in i need to store huge attachments into SAP DB.
For that i created a Custom cluster table just like INDX table and storing the binary read attachments(PDF/JPEG) into it.
Can some one help me how much size from DB side this table would take.
Suppose i am reading a PDF file of size 3.5 MB and storign this into my custom cluster table, which would span into 1200 records, what is the DB size taken by this ?
Appreciate any help on this.
SAP Version - 4.7EE
DB - DB2
OS - AIX
Regards,
Simha
Edited by: Simha on Aug 5, 2008 7:27 AM
Hi Simha,
simple question complex answer ....
The answer mainly depends on the length of the RAW column in the INDX type table. In my answer I assume that your database is running with the default of 16K tablespace page size.
(1) if the length of the RAW column is below 4K on a unicode system or below 12K in a non unicode system,
the ABAP RAW column is mapped to a VARCHAR FOR BIT DATA column on database level.
VARCHAR FOR BIT DATA colunms are buffered in the database buffer pool and can benefit from DB2 row compression.
DB2 row compression may not help for PDF or JPEG data since this data is already compressed
but buffering will provide better performance.
Since VARCHAR FOR BIT DATA columns will be stored in the DB2 data pages, the overall space requirement will be
minimal if the space in the 16K pages can be used optimal. E.g. if the size of our RAW column is 8,5 K and most rows
contain values with maximun length in this column only one row can be stored per data page.
(2) if (1) does not apply, the ABAP RAW column is mapped to a LONG VARCHAR FOR BIT DATA
column on database level.
LONG data is stored in seperate LONG pages on database level. The LONG data is stored in blocks of
512 bytes time 2^N ( 512, 1024, 2048, 4K , 8K, 16K ). The overall space requirement will be
minimal if the space in the LONG blocks can be used optimal.
Given the explanation above I would guess that in worst case you may need a factor of 2 more space in the database than your document size. Each additional row will require some bytes overhead in the DB2 data pages and will create additional index entries. So you may want a large maximum size of your RAW column but this will give you LONG data types.
If read performance is not critical I would suggest to choose 16K as your size of the RAW column. This should completely fill the LONG blocks.
If read performance is more critical you should choose a small size for the RAW column ( e.g. 2K ) to benefit from data buffering and to avoid sparsely filled data pages.
Regards
Frank
Similar Messages
-
Why Inner join or Outer join is not used for Pool or Cluster tables ?
Hi SAP-ABAP Experts .
With Due Regards .
May u explain me why Inner join or Outer join is not useful for Pool or Cluster tables ?
because peoples advised not use Joins for Pool and Cluster tables , What harm will take place , If we do this ?
Best Regards to all : RajneeshBoth Pooled and Cluster Tables are stored as tables within the database. Only the structures of the two table types which represent a single logical view of the data are defined within the ABAP/4 Data Dictionary. The data is actually stored in bulk storage in a different structure. These tables are commonly loaded into memory (i.e., 'buffered') due to the fact they are typically used for storing internal control information and other types of data with little or no external (business) relevance.
Pooled and cluster tables are usually used only by SAP and not used by customers, probably because of the proprietary format of these tables within the database and because of technical restrictions placed upon their use within ABAP/4 programs. On a pooled or cluster table:
Secondary indexes cannot be created.
You cannot use the ABAP/4 constructs select distinct or group by.
You cannot use native SQL.
You cannot specify field names after the order by clause. order by primary key is the only permitted variation.
I hope it helps.
Best Regards,
Vibha
Please mark all the helpful answers -
How to print the out put for each customer in table
Dear SDN Team Members!
I've created a report and the output is displayed on the smartform for the same.
In this report, I've selected a list of customers and the report has to print the list of transactions being made by each customer in Smartform.
These details must be printed seperately for each customer.
I'm thinking of control statement AT NEW & AT END. But i don't know how to use them exactly so that the output is displayed seperately for each customer in the Smartform.
Please provide syntax and points will be awarded for.
Best Regards!Hi Krsihna,
Its simple.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = '<form name>'
importing FM_NAME = lv_func_name.
loop at itab.
at new customer. "customer must be the fisrt field in the itab and itab mus be sorted by customer.
call function lv_func_name
endat.
endloop.
Regards,
Ravi -
Rectifications of different sizes for all the three table lines in footer.
Hi friendz,
i am working in ecc6 system(smartforms).
i am using 3 table lines in the footer one for total, the second one for tax calculation, and the third one for the grand total.
But in the output screen display - the total, tax and grand total(in different table lines) are displayed with different heights, which gives unprofessional look for the form.
i want all the table lines in the footer to display with equal heights.Hi,
first you create LTYPE follow below sequence
Go table tab--> details tab--->give suitable heights for ltype
next go to FOOTER in the main window
create three table lines under footer like
FOOTER1
FOOTER2
FOOTER3
for three table lines we need to assign line type LTYPE
Go FOOTER1 ---> output options -
> give LTYPE.
FOOTER2 ---> output options -
> give LTYPE.
FOOTER3 ---> output options -
> give LTYPE.
reward points if helpful.
Regards,
Bhupal.
Edited by: bhupal reddy on Jul 22, 2008 11:55 AM -
How to set max size for a custom field ucm11g
Hi,
I need to set maximum length to a custom field created in ucm11g 11.1.1.6
The field's data type is Text and for example i want to limit the length to 10 characters
Any example how to do this ??
Regards
CarlosHi ,
If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
In there the following has to be set:
<$dDocTitle:maxLength=80$>
<$dDocName:maxLength =50$>
Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
<$xVersion:maxLength=50$>
NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
Thanks,
Srinath -
Custom Cluster and role of INDX in that???
Hi All Gurus,
I need to create a custom cluster and then import and export the data to DB.
I saw some threads where i saw INDX being used.
Can anybody tellme what is this INDX table and how does it play a in creation of custom cluster also how do i create one.
Thanks in advance.
Regards,
NehaHi,
INDX may be used as a template for a custom cluster table. The keyfields and the last two fields are mandantory - all others might be deleted/replaced.
Creation of cluster tables and IM/EXPORT are well documented (F1 at EXPORT - follow the links).
have fun,
hp -
Maintaince view creation for a cluster table
Hi friends,
I have created a maintaince view for a cluster table bseg and i have activated it its working fine..
now my problem is i can create maintaince view for mutiple tables if other tables are linked with primary table using foriegn key relationship..
Now can any one tell me is it possible to create maintance view for cluster table with multiple tables as i need a linked table with bseg which iam not able to get... ie : when i click on the relationship tab iam not getting the linked tables for bseg...
now can i create a maintaince view with 2 linked cluster tables..
if so can any one tell me how to create it.
As sap says we can create projection view for cluster and pooled table and we cannot create database view for cluster and pooled tables , but it does not mentioned like that for maintaince view....
I assume we can do it.... as iam trying to create a maintaince view with single cluster table then it shoudl allow me to create for multiple linked cluster tables.... and is it mandatory to maintain TMG for this maintaince view....?
Regards
KUMARyes.. ur right inserting values into a cluster table other than standard sap tarnactions is dangerious....
But sap didnot mentioned any where that we cannot maintain data for cluster tables using maintaince view... which it said for database view..that pooled and cluster table cannot be used for database view..
Regards
Kumar -
Is there a 2GB file size limit on saving a custom format plugin for a custom file type?
I have resolved issues on reading files > 2GB. Now when I save files >2GB, I get a popup that states there is a 2GB limit for plugins.
I an using photoshop CS6 on a MAC OSX 10.9 with 16 GB RAM.
The custom file type is what should be selected when the Save As Dialogue is visible.
I looked for a setting in the Photoshop preferences for Files & setting to PSB, but did not see one.
I tried modifying values in the PiPL for formatmaxSize and PluginMaxSize, but the only values that the code will compile in with:
32767 & 2147483647.
I saw a posting in previous years that custom plugins were limited to 2 GB.I would like to rephrase my question, now that I have worked a little more with my code.
Is there a 2GB limit per channel and 4GB limit for total file size for a custom photoshop format plugin? -
Default font size for a value in a table in Answers
Hi,
I am trying to set a default font size for a column of table view in Answers, so that when I create a new report, this default font size is used. Can someone please point me to the file where I can make this change?
ThanksWell if you have a tag like this:
element.style {
background-color:#FFFFFF;
font-size:9px;
It means it's coming from the formatting in the request in Answers...not from a style sheet! You'll note in Firebug, that there's actually no *.css file mentionned. I.e. example from here:
element.style {
color:#00AF00;
.OORD {views.css (line 1574)
text-align:right;
.PTE {views.css (line 1077)
background-color:#FFFFFF;
First part element.style comes from my conditional formatting and doesn't reference any css file
The other two elements are from the views.css which control my pivot table.
See the difference?
Cheers,
C. -
Physical table list against Cluster Table CDPOS and PCDPOS
Hello experts,
For function customized requirement, we need to know the physical table
list against Cluster Table CDPOS and PCDPOS and EDID4, just like
Cluster Table BSEG contain with six physical tables
BSAD/BSID/BSAS/BSIS/BSAK/BSIK. Also we want to know if there is any
general way to find out the physical table list for any cluster table.
My question is:
1. How can I find all the transparent table for Cluster Table CDPOS?
just like Cluster Table BSEG has transparent tables of
BSAD/BSID/BSAS/BSIS/BSAK/BSIK.
2. How can I find all the transparent table for Cluster Table PCDPOS?
3. How can I find all the transparent table for Cluster Table EDID4?
4. Additionally,I want to know if there is any
general way to find out all the transparent tables for an specific
cluster table.
Many thanks.Hello,
simply look in transaction SE11.
Example:
1. SE11 -> Table CDPOS - Display. On Tab 'Delivery and Maintenance' you'll find Pool/Cluster 'CDCLS'.
2. SE11 -> Table CDCLS -> Display. On next screen position on CDCLS-> Where-used-list -> Tables -> you'll find tables CDPOS and PCDPOS.
Same thing with EDID4 -> EDI40 ...
Regards Wolfgang -
Dear all,
could you please help me out from the below.
How to create pooled tables & cluster tables.
When i am trying to create a table, by default it is showing table category as Transparent table.
Regards
Venkathi,
A pool table has many to one relation with the table in the database. For one table in the database there are many tables in the dictionary. Tha table in the database has a diff name than in the table in the data dict, it has diff no of fields and field names are different. A pooled table is stored in the pool at the database level. A table pool is a databse table with a special struct that enables the data of many R3 tables to be stored in it. It can hold only pooled tables
Cluster table are logical tables that must be assigned to a table cluster when they are defined.
Cluster table can be used to store control data they can also used to store temporary data or text such as documentation
Pool table
A database table defined in the ABAP Dictionary whose database instance is assigned to more than one table defined in the ABAP Dictionary. Multiple pool tables are assigned to a table pool in the database. The key fields of a pool table have to be character-type fields. The table pool's primary key consists of two fields: TABNAME for the name of a pool table, and VARKEY for the interdependent contents of the key fields in the corresponding pool table. The non-key fields of the pool table are stored in compressed format in their own column, called VARDATA, of the table pool. The only way to access pool tables is by using Open SQL. Joins are not allowed.
Table Pool
Database table in the database that contains the data of several pool tables.
Cluster Table
Database table defined in the ABAP Dictionary, whose version on the database is not only assigned to one table defined in the ABAP Dictionary. Several cluster tables are assigned to a table cluster in the database. The intersection of the key fields of the cluster tables forms the primary key of the table cluster. The other columns of the cluster tables are stored in compressed form in a single column VARDATA of the table cluster. You can access cluster tables only via Open SQL, and only without using joins.
Table Cluster
Database table in the database that contains the data of several cluster tables.
Note: Never mix up with a database table that has the necessary structure for storing data clusters in database tables and in the shared memory. Those are called INDX-type, with reference to the database table INDX supplied by SAP. Data clusters are groupings of data objects for transient and persistent storage in a selectable storage medium. A data cluster can be processed using the statements IMPORT, EXPORT, and DELETE FROM
Some pooled tables:
T000 Clients
T000C Table for Installing FI-SL Customizing
T000CM Client-specific FI-AR-CR settings
T000F Cross-Client FI Settings
T000G Cross-Client FI-SL Postings
T000GL Flexible general ledger: Customizing check
T000K Group
T000MD MRP at MRP Area Level
T001 Company Codes
T001_ARCH Archive contents short description
T001_CONV Company codes affected by currency convers
T001A Additional Local Currencies Control for Co
T001B Permitted Posting Periods
T001C Valid Posting Periods for Global Companies
T001CM Permitted Credit Control Areas per Company
T001D Validation of Accounting Documents
T001E Company Code-Dependent Address Data
T001F Company code-dependent form selection
T001G Company Code-Dependent Standard Texts
T001I Company Code - Parameter Types
T001J Company Code - Parameter Type Names
T001K Valuation area
T001L Storage Locations
T001M Data on Z5A Foreign Trade Regulations Repo
T001N Company Code - EC Tax Numbers / Notificati
A physical table definition is created in the database for the table definition stored
in the ABAP Dictionary for transparent tables when the table is activated.
The table definition is translated from the ABAP Dictionary to a definition of the particular database.
On the other hand, <b>pooled tables and cluster tables are not created in the database.</b>The data of these tables is stored in the corresponding table pool or table cluster.
It is not necessary to create indexes and technical settings for pooled and cluster tables.
regards,
pritha -
Creating Indexes in Cluster Tables
Hi,
I want to enable the index for the a cluster table..how is it possible..As we see for transparent tables like MSEG ,index tab is enabled but tables like BSEG the option is disabled..Please help me find a solution..
Regards
MariaYou cannot create index on cluster table in SAP.
BSEG is a cluster table, so no index, but hopefully there are "database indexes" on BSEG, which are actual database table : BSIS, BSAS, BSID, BSAS, and so on.
BSEG Access
BSAD Accounting: Secondary index for customers (cleared items)
BSAK Accounting: Secondary index for vendors (cleared items)
BSAS Accounting: Secondary index for G/L accounts (cleared items)
BSID Accounting: Secondary index for customers
BSIK Accounting: Secondary index for vendors
BSIM Secondary Index, Documents for Material
BSIS Accounting: Secondary index for G/L accounts
Create index on these tables.
Look also at
Re: Selecting data from BSEG.
Regards -
Explore SAP CL cluster table folder using Crystal Integration Kit
Dear All,
I am a SAP FICO consultant and have just installed the SAP integration kit and CRYSTAL 2008 with a Business Object consultant. We planned to access the SAP cluster tables and replace some ABAP reports with CRYSTAL and Business Objects Reports.
We have encountered the below two key problems, which I am hoping you can help with:
- I am only able to view the three folders stated (CL, DD & FN) after giving the CRYSTAL User ID full SAP_ALL access and not with the limited access in the installation guide, profile CRYSTAL_ENTITLEMENT.
- I can not see any cluster tables within the CL (Cluster) folder as expected and only see data in the FN (Function) & DD (Data dictionary), even after giving the CRYSTAL ID the SAP_ALL access.
Please can you assist from your experience of implementing the Integration kit with SAP ERP?
Products used: SAP ECC6, CRYSTAL 2008 SP2 and current Integration Kit.
Kind Regards,
Mo.
Edited by: Mo Habib on Nov 6, 2009 2:26 PMThanks for you replies and I also had a look at Ingo's blog "BusinessObjects and SAP Part 4". The blog indicates that the CL folder is not for the standard cluster tables but specifically for ABAP clusters. Hence why I can not see any tables within this folder as they have to be mapped and setup in SAP if required.
My installation must therefore be correct and I should just use the DD folder for accessing SAP cluster tables? Many thanks for your help and if you can confirm my above assumption then I will mark question as answered.
Cheers,
Mo. -
tell me some cluster tables
Example for Cluster tables.
BSEG - Accounting Document Segment
PCDCLS - Cluster structure for change documents
RFBLG - Cluster for accounting document
Cluster Table : Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.
A cluster table have many to 1 relationship. Cluster table are much more complex and you cannot display the data of a cluster table directly. Cluster table have be read and display via your ABAP program.
Table cluster is a special table type in ABAP dictionary. The data from different tables can be stored in a table cluster.
A table cluster should be used exclusively for storing internal control information (screen sequences, program parameters, temporary data, continuous text such as documentation).
Check this link for creating cluster tables.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f0b7446011d189700000e8322d00/content.htm -
Hi Experts,
Can you send me some example tables for pool and cluster tables..
And where exactly you use these tables in real time..
Kindly reply me as early as possible
Thanks in advance
SantoshHi santosh,
Go to se11
table DD02L-> Give TABCLASS as POOL or CLUSTER you will get a list of tables
Pooled and Cluster Tables
Table pools (pools) and table clusters (clusters) are special table types in the ABAP Dictionary. The data from several different tables can be stored together in a table pool or table cluster. Tables assigned to a table pool or table cluster are referred to as pooled tables or cluster tables.
A table pool or table cluster should be used exclusively for storing internal control information (screen sequences, program parameters, temporary data, continuous texts such as documentation). Data of commercial relevance is usually stored in transparent tables.
Table Pools
A table in the database in which all records from the pooled tables assigned to the table pool are stored corresponds to a table pool.
The definition of a pool consists essentially of two key fields (Tabname and Varkey) and a long argument field (Vardata). A pool has the following structure:
Field
Data type
Meaning
Tabname
CHAR(10)
Name of pooled table
Varkey
CHAR (n)
Contains the entries from all key fields of the pooled table record as a string, max. length for n is 110
Dataln
INT2(5)
Length of the string in Vardata
Vardata
RAW (n)
Contains the entries from all data fields of the pooled table record as a string, max. length n depends on the database system used
If a pooled table record is saved, it is stored in the table pool assigned. The name of the pooled table is written to the field Tabname. The contents of all key fields of the pooled table are written as a string to field Varkey and the contents of all data fields as a string to field Vardata. The length of the string stored in Vardata is entered in field Dataln by the database interface.
Due to the structure of a table pool, there are certain restrictions on the pooled tables assigned to it. The name of a pooled table may not exceed 10 characters. Since Varkey is a character field, all key fields of a pooled table must have character data types (for example, CHAR, NUMC, CLNT). The total length of all key fields or all data fields of a pooled table must not exceed the length of the Varkey or Vardata field of the assigned pool.
Table Clusters
Several logical data records from different cluster tables can be stored together in one physical record in a table cluster.
A cluster key consists of a series of freely definable key fields and a field (Pageno) for distinguishing continuation records. A cluster also contains a long field (Vardata) that contains the contents of the data fields of the cluster tables for this key. If the data does not fit into the long field, continuation records are created. Control information on the structure of the data string is still written at the beginning of the Vardata field. A table cluster has the following structure:
Field
Data type
Meaning
CLKEY1
First key field
CLKEY2
Second key field
CLKEYn
nth key field
Pageno
INT2(5)
Number of the continuation record
Timestamp
CHAR(14)
Time stamps
Pagelg
INT2(5)
Length of the string in Vardata
Vardata
RAW (n)
Contains the entries from the data fields of the assigned cluster tables as a string, max. length n depends on the database system used
The records of all cluster tables with the same key are stored under one key in the assigned table cluster. The values of the key fields are stored in the corresponding key fields of the table cluster. The values of all data fields of the assigned cluster tables are written as a string to the Vardata field of the table cluster. Besides the actual data values, the data string contains information on the structure of the data and which table it comes from. If the string exceeds the maximum length of the Vardata field, a continuation record is written with the same key values. The continuation records for a key are distinguished by their value in field Pageno. The actual length of the string in the Vardata field is stored in the Pagelg field by the database interface.
You need the structural information stored in the ABAP Dictionary to read the data from a pooled table or cluster table correctly. These tables can therefore only be processed using Open SQL with the cluster interface, and not with Native SQL directly in the database.
In Repository informatino SE84 goto ABAP Dictonary -> Other Objects -> Pooled and clustered tables -> And then execute. It will give the list of available pooled/clustered tables.
For further reference check the SAP help document...
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ea0b446011d189700000e8322d00/frameset.htm
regards,
keerthi
Maybe you are looking for
-
Can you upgrade the RAM on a Retina Display Macbook Pro?
So I've been looking around for information on whether the RAM on a Retina Macbook Pro can be upgraded and the mixed messages have left me confused. If I take my Macbook Pro (Retina Display) to an Apple store for a RAM upgrade and offer to pay them f
-
hi all I am XI consultant i want to send IDOC to XI server using ALE..but the IDOC is not present ....the master data is stored in standard sap tables but for them idoc is not present ...so i want to create custom idoc and using change pointer i can
-
hi experts, iam new to xi, how the landscape wil be between xi- r/3, if any document or image ! or how the landscape was connected between them thank you
-
New Sales Area To a New Doc Type
hello fellows l'm doing config practise.. does anyone address this error i'm getting when i tried to assign a New Doc Type to a New Sales Area First, maintain the sales area <0999/ZZ/DD> as a common sales area, and then assign allowed sales document
-
Loading text from one app to another
If we are using text members and we want to transfer comments from one app to another. our steps are as follows. 1) Export indicators in Essbase 2) LCM text members out of one app to import into the other. 3) load indicators in new app 4) load LCM fi