Statistical table, pool table, structure, and ordinary table
请教在ABAP引用表时,不同类型的表的区别:
statistical table
pool table
structure,
ordinary table
其它 table (请列出)
谢谢!
>
leopard123456 wrote:
> 请教在ABAP引用表时,不同类型的表的区别:
> statistical table
> pool table
> structure,
> ordinary table
> 其它 table (请列出)
>
> 谢谢!
对上面提到的几个term不是很明白(尤其是statistical table和ordinary table),其中structure应该不是表的类型。
请举例。
Similar Messages
-
I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??
Hi Kishore,
First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table. -
At what level are the records pooled in COSS and COSP Tables
Dear All,
I have a question for you. i wold like to know what is the criteria that is taken into consideration while arriving at the totals in the COSS and COSP Tables.
What are the fields that must be similar for some line items to be pooled and shown as a total record in COSS Or COSP Tables.
For Ex: If i have two records in COEP table, what are the fields that must be equall for them to be shown as one Record in COSS or COSP table.
Best Regards
Kumar.DCriteria for pooling in COSS/COSP is the following:-
Ledger
Object number
Fiscal Year
Value Type
Version
Cost Element
CO subkey
Bus.Transaction
Partner Object
Source Object
Dr/Cr indicator
Trans. Currency
Period block
should be same
Regards
Sach!n -
DIFF: Field string ,Structure and Internal table declaration
Hai,
what is the diference between Field string ,Structure in ABAP program and Internal table declaration and how it will work ?
Thank you
ASHOK KUMAR.hi,
Look this u will get a good idea.
*& Report ZTYPES *
REPORT ZTYPES .
* Table declaration (old method)
DATA: BEGIN OF tab_ekpo OCCURS 0, "itab with header line
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
END OF tab_ekpo.
*Table declaration (new method) "USE THIS WAY!!!
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0, "itab
wa_ekpo TYPE t_ekpo. "work area (header line)
* Build internal table and work area from existing internal table
DATA: it_datatab LIKE tab_ekpo OCCURS 0, "old method
wa_datatab LIKE LINE OF tab_ekpo.
* Build internal table and work area from existing internal table,
* adding additional fields
TYPES: BEGIN OF t_repdata.
INCLUDE STRUCTURE tab_ekpo. "could include EKKO table itself!!
TYPES: bukrs TYPE ekpo-werks,
bstyp TYPE ekpo-bukrs.
TYPES: END OF t_repdata.
DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0, "itab
wa_repdata TYPE t_repdata. "work area (header line)
Regards
Reshma -
Dynamic Structures and Internal Tables
Hi All,
I am doing a report to create condition records based on the condition type and condition table. Assume the condition type as PR00 and it as condition table of 304,305,306.Each condition table as its own header and item fields.Based on the condition table that the user specifies in the selection screen
the header and item structures of my report should change dynamically and these should be moved to the dynamic internal table that contains both header and item fields.Can anyone give an idea how to achieve it. Thanks in advance.
Regards,
Chakradhar.Hi All,
Thanks for your replies.
SPLIT i_string_line-input_str AT cl_abap_char_utilities=>horizontal_tab
INTO i_header_line-header
i_header_line-vkorg
i_header_line-vtweg
i_header_line-pltyp
i_header_line-waerk.
In the above syntax based on the condition table I selected on selection screen my flat file is as below.
case 1: If condition table given is 304
H SalesOrganization DistributionChannel Customer
I Material Releasestatus Amount Currency ValidFrom ValidTo
case 2: If condition table given is 305
H SalesOrganization DistributionChannel
I Material Releasestatus Amount Currency ValidFrom ValidTo
case 3: If condition table given is 306
H SalesOrganization DistributionChannel PriceListType DocumentCurrency
I Material Releasestatus Amount Currency ValidFrom ValidTo
In the above code i_string_line-input_str contains the following heading of fields based on the condition table we select in selection screen.when I want to split them into respective fields
using INTO clause my structure should change dynamically.How can I achieve it and my entire program is in OOPS ALV.Thanks in Advance.
Regards,
Chakradhar. -
Link between Komv structure and related table
hai,
I have one problem in CIN.
In Purchase Order for
ED - JM01 or JEXC
CESS -ZECS or JEC1
CSTLST - JIP1 or JIP2
stored in KOMV Structure,
other than KOMV TABLE where this values are stored..
(In KONV no values found for that one)
pLEASE, tell me Table name .....in which i get above condition value
thank you
Manoj..Hi,
1)GOTO>SE11>Open the table.
2)Just beside the CONTENTS & DISPLAY BUTTON-->Click on Graphics Button
3)New Graphics window ill popup.
4)check for the forign key and check table button.
you will find all the related tables,and Relations.
This will be very helpful for future reference also.
Hope it resolves the query.
Regards,
Gurpreet -
Assignment between include/Append structures and Database Tables
Hi All,
I need to find the list of all Append/Include Structures in my system and Their assignment to Tables.
(For Each Append/Include structure, to which table it was assigned)
Is there any way to find it?
Thanks,
Krishna.Hi,
Go to se11 - data type - give Z* and press F4.
Pop-up will come - click on search for structures - u will get standard structures.
Then take any structure name and check for where used list ( cont + shift + F3) .
U will get all the DB tables where and all they have used that include / append structure.
Regards,
Kusuma. -
How to Extract Data for a Maintenance View, Structure and Cluster Table
I want to develop 3 Reports
1) in First Report
it consists only two Fields.
Table name : V_001_B
Field Name1: BUKRS
Table name : V_001_B
Field Name2: BUTXT
V_001_B is a Maintenance View
For this one I don't Find any Datasource
For this Maintenance View, How to Extract the Data.
2)
For the 2nd Report also it consists Two Fields
Table name : CSKSZ
Field Name1: KOSTL (cost center)
Table name : CSKSZ
Field Name2: KLTXT (Description)
CSKSZ is a Structure
For this one I don't Find any Datasource
For this Structure How to Extract the Data
3)
For the 3rd Report
in this Report all Fields are belonging to a Table BSEG
BSEG is a Cluster Table
For this one also I can't Find any Datasource,
I find very Few Objects in the Datasource.
For this One, How to Extract the Data.
Please provide me step by step procedure.
Thanks
PriyaHi sachin,
I don't get your point can you Explain me Briefly.
I have two Fields for the 1st Report
BUKRS
BUTXT
In the 2nd Report
KOSTL
KLTXT
If I use 0COSTCENTER_TEXT Data Source
I will get KOSTL Field only
what about KLTXT
Thanks
Priya -
How to export Tables along with Data and also Tables without data
Hi All,
I have a strange situation here. I have a 2 existing schema's under one database. Now the client wants to have 4 more schema's to incorporate the new branches of his company.
I want to know whether is it possible for me to run an expdp command by which i can have the data from the mentioned tables and only table structure of the remaining along with remaining database objects (procedure,functions,triggers,views,sequences etc).
Since there are some 32 Master tables, whose data i need to capture in db dump in order to run the batch under new schema and the remaining tables will be populated with data from the new branch employees hence the need is for table’s structure only.Hi,
you should run two different import comand.
The first import with only metadata, just to recreate the structure.
With the second import you will import data only for the tables you need.
I think this is the simplier solution.
Acr -
One to Many with multiple tables on One side and one table on Many side
Sorry for the confusion in the title. Here is my question. In my program, I have 2 different tables which store 2 different type of entities. Each one of entities has a list of attachments which I stored in a common attachment table. There is a one-to-many relationship between entity tables and attachment table.
ENTITY_ONE (
ID
NAME
ENTITY_TWO (
ID
NAME
ATTACHMENTS (
ID
ENTITY_ID
ATTACHMENT_NAME
ENTITY_ID in ATTACHMENTS table is used to link attachments to either entity one or entity two. All IDs are generated by one sequence. So they are always unique. My question is how I could map this relationship into EntityOne, EntityTwo and Attachment JAVA class?For EntityOne and EntityTwo you can just define a normal OneToMany mapping using the foreign key.
Are you using JPA, or the TopLink API? JPA requires a mappedBy for the OneToMany, so this may be more difficult. You should be able to just add a JoinColumn on the OneToMany and make the column insertable/updateable=false.
For the attachment, you could either map the foreign key as a Basic (DirectToFieldMapping) and maintain it in your model, or use a VariableOneToOne mapping in TopLink (this will require the entities share a common interface).
James : http://www.eclipselink.org : http://en.wikibooks.org/wiki/Java_Persistence -
Organisation Structure and HRP**** table cleansing
Hi All,
Please can any one help me with the following:
1) The IMG to set Org Structure Number Ranges
2) Report / Program to clean the HRP tables of a newly instaled SRM Instance
Regards,
Abdul Kadir RajbhoySE38 : RHRHDC00 or transaction code RE_RHRHDC00 = also delete, but with list.
Re: Delete HRP Objects
Re: Useful material on 'Org Mgmt' (SAP HR Technical) -
is it possible to made a report by using internal talbe and structure....if yes how and if u have sample code for that pls tell me....
rajuHi Raju,
Yes. It is possible. But it depends upon your requirement. Please check the transaction ABAPDOCU for examples.
Here are some examples
http://www.sapgenie.com/abap/code/chap1201.txt
http://www.sapgenie.com/abap/code/chap0103.txt
http://www.sapgenie.com/abap/code/chap0407.txt
http://www.sapgenie.com/abap/code/chap1112.txt
There are many examples here.
http://www.sapgenie.com/abap/example_code.htm
Cheers
Vinod
Message was edited by: Vinod C -
Parent table on one database and child table on the other database same svr
Hi all,
1. Create table A with primary key on one database
2. Create table B with foreign key referencing the primary key of table A on different database but same server...
How to do that, is that using database link..but how?
Please, help
Regards,
- SriYou cannot use database link to define foreign key: see database link restrictions.
-
Inforation on Pool tables and cluster tables required.
I want to know about the pool tables and cluster tables like how to create them and how to look the tables associated with the given tables. Like for the table BSEG we have other tables linked BSID etc. I'm new to this concept please guide me.
<b>Pooled Table:</b>
A pooled table in R/3 has a many-to-one relationship with a table in the database (see Figures 3.1 and 3.2). For one table in the database, there are many tables in the R/3 Data Dictionary. The table in the database has a different name than the tables in the DDIC, it has a different number of fields, and the fields have different names as well. Pooled tables are an SAP proprietary construct.
When you look at a pooled table in R/3, you see a description of a table. However, in the database, it is stored along with other pooled tables in a single table called a table pool. A table pool is a database table with a special structure that enables the data of many R/3 tables to be stored within it. It can only hold pooled tables.
R/3 uses table pools to hold a large number (tens to thousands) of very small tables (about 10 to 100 rows each). Table pools reduce the amount of database resources needed when many small tables have to be open at the same time. SAP uses them for system data. You might create a table pool if you need to create hundreds of small tables that each hold only a few rows of data. To implement these small tables as pooled tables, you first create the definition of a table pool in R/3 to hold them all. When activated, an associated single table (the table pool) will be created in the database. You can then define pooled tables within R/3 and assign them all to your table pool.
Pooled tables are primarily used by SAP to hold customizing data.
<b>Cluster Table:</b>
A cluster table is similar to a pooled table. It has a many-to-one relationship with a table in the database. Many cluster tables are stored in a single table in the database called a table cluster.
A table cluster is similar to a table pool. It holds many tables within it. The tables it holds are all cluster tables.
Like pooled tables, cluster tables are another proprietary SAP construct. They are used to hold data from a few (approximately 2 to 10) very large tables. They would be used when these tables have a part of their primary keys in common, and if the data in these tables are all accessed simultaneously.
Table clusters contain fewer tables than table pools and, unlike table pools, the primary key of each table within the table cluster begins with the same field or fields. Rows from the cluster tables are combined into a single row in the table cluster. The rows are combined based on the part of the primary key they have in common. Thus, when a row is read from any one of the tables in the cluster, all related rows in all cluster tables are also retrieved, but only a single I/O is needed.
A cluster is advantageous in the case where data is accessed from multiple tables simultaneously and those tables have at least one of their primary key fields in common. Cluster tables reduce the number of database reads and thereby improve performance.
Restrictions on Pooled and Cluster Tables
1. 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:
2. Secondary indexes cannot be created.
3. You cannot use the ABAP/4 constructs select distinct or group by.
4.You cannot use native SQL.
5.You cannot specify field names after the order by clause. order by primary key is the only permitted variation.
For creation of pooled /cluster table, have a look at below link.
http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
For creation of table pool /cluster, have a look at below link.
http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
Have a look at below link.
http://www.sap-img.com/abap/the-different-types-of-sap-tables.htm
Best Regards,
Vibha
*Please mark all the helpful answers -
Which type of information can be hold by pool and cluster tables
hi experts tell me exactly which type of information hold by pooled and cluster tables
thanks in advanceHi
I hope, you know that Rewarding with Points for the Useful answers is the SDN policy
Pooled table
Pooled tables can be used to store control data (e.g. screen sequences,
program parameters or temporary data). Several pooled tables can be
combined to form a table pool. The table pool corresponds to a physical
table on the database in which all the records of the allocated pooled
tables are stored.
Cluster table
Cluster tables contain continuous text, for example documentation.
Several cluster tables can be combined to form a table cluster. Several
logical lines of different tables are combined to form a physical record
in this table category. This permits object-by-object storage or
object-by-object access. In order to combine tables in clusters, at
least part of the keys must agree. Several cluster tables are stored in
one corresponding table on the database.
Pool Tables (match codes, look up tables)
Should be accessed via primary key or
Should be buffered (SE11->Display Table->technical settings)
No secondary indexes
Select * is Ok because all columns retrieved anyway
Cluster Tables (BSEG,BSEC)
Should be accessed via primary key - very fast retrieval otherwise very slow
No secondary indexes
Select * is Ok because all columns retrieved anyway. Performing an operation on multiple rows is more efficient than single row operations. Therefore you still want to select into an internal table. If many rows are being selected into the internal table, you might still like to retrieve specific columns to cut down on the memory required.
Statistical SQL functions (SUM, AVG, MIN, MAX, etc) not supported
Can not be buffered
<b>Reward points for useful Answers</b>
Regards
Anji
Maybe you are looking for
-
Endereço Ship to Address em itens vindos de requisições de compras
Olá amigos. Estamos usando o SRM 5 no cenário clássico extendido e estamos enfrentando um problema durante a migração de requisições de compras proveniente de um backend para o SRM: O procedimento é referente ao endereço Ship to Address e acontece no
-
Can someone tell mr the steps to write a formula to calculate a product of the cells? I cannot figure it out.
-
Dimension level sequence not generated but "level id" is
Using OWB 10gR2 on Oracle 9.0.2.6 I have a three level dimension on a building table. The highest level address portfolios (based on manager responsibilities), province (where the building is) and final building information. I have defined the surrog
-
NAC L3 OOB Virtual Gateway/Real-IP Gateway
In a Central Deployment (NAC server at Central Site) for Remote Office (WAN) users it´s possible to work with L3 OOB Virtual Gateway? or it´s only possible to work with L3 OOB Real-IP gateway? If it´s possible both modes (Real-IP o Virtual) which are
-
Employee_table Emp_no Emp_name Location 100 Ram Mumbai 200 Shyam Delhi 300 Jadu Bangalore 400 Madhu Hyderabad 500 Sidhu Kolkata Employee_Comm Emp_no Comm_flag 100 COMM 300 NO COMM 500 COMM Note - No entry for employee 200 and 400, meand comm