About Cluster tables
Hi SAP gurus,
Can I get any documentation regarding how these cluster tables are filled when payroll is executed
means how RT WBBP all these will get filled
Thanks in advance
Regards,
Satya
Hi Pavan,
Work Center/Basic Pay Table (WPBP):
Table WPBP is filled by the infotypes Actions (0000), Organizational Assignment (0001), Planned Working Time (0007), Basic Pay (0008), and Cost Distribution (0027). It contains important organizational and payment-relevant data, and different partial period parameters.
These organizational elements are used in the wage and salary payments process (dependent on Customizing) to determine the house bank and the house bank account.
Furthermore, the system uses the Work Center/Basic Pay table (WPBP) to determine the paying company code. Specification of the paying company code is optional in Customizing. If you have not specified a paying company code in Customizing, the system uses the company code that is stored in the Work Center/Basic Pay table (WPBP) in the employee's payroll results. If the Work Center/Basic Pay (WPBP) table for the employee contains several partial periods as the result of a WPBP Split, in the payroll period to be processed, the system uses the company code in the last partial period, in which the employee was active, to determine the paying company code.The information used to form the partial period parameter comes from the personal work schedule for an employee and from the constant values stored in table T511K.
RT Table:
Table RT contains the result wage types of the current period for which payroll is run. Data is transferred from table IT to table RT using the operation ADDWTE.
This operation is speicifed in the Personnel calculation Rules of the country specific Payroll schema.
Regards,
Suresh Datti
Similar Messages
-
About cluster table in sql server or SAP
Hello Gurus,
we have a cluster table "KONV" in our sql server 2008 , is that feature for cluster table native feature in sql server or in sap?
because some professonal said there is no concept for cluster table in sql server just like oracle database. so please help me for
clarification.
Many thanks,I agree, this is ABAP Dictionary specific way of data encapulation, not the DB type dependant one. Basically it stores the data in RAW or LRAW format.
Also be aware that we distinguish b/w [data clusters|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm] and [cluster tables|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/content.htm].
Regards
Marcin -
How do I get to know the structures stored in a cluster table
Dear fellow developers,
this question is about Cluster Tables of the INDX-type which need to be read with
IMPORT/EXPORT FROM/TO ...
I need some advice concerning the question of how to find
out the definition of a structured field in such a cluster.
To be more precise:
By using the command
IMPORT DIRECTORY ...
I know that in the table/cluster
VARI
section
VB
there are two structured
fields the content of which I'm interested in for reading and writing purposes:
%_VARI40C
and
%_VARIVDAT
I already know the structure of the first one, but only because I found a Standard FM that reads it with an appropriately defined WA-structure, but I cannot find something similar to find out the structure definition for the other one (%_VARIVDAT). It can't be possible that this is so difficult to find out. There must be some better and easier way to find this out that I don't know yet...
Thanks in advance for your appreciated help
AndreasHi Andreas,
I think you have nothing into SAP to find the structure of a cluster table.
The way I use, is to find a standard program that use this cluster, and I look in the ABAP code the structure used by SAP.
You just have to use the ST05, and use the option to see the code where the cluster has been readed.
Rgd
Frédéric -
Hi Friends,
Im very new to HR ABAP. I have some confusions about cluster tables. For example PCL1 contains tables like B1, G1, L1.. Cluster B1 contains table like NT1, NT2, ERT..
Now I want to see the structure of cluster B1 and also want to see the data's on NT1 table. How can I see the data's from those cluster tables.
Thanks for everyone and helps will be rewarded.Hi,
You can get the data into tables NT1, NT2 and ERT using PCL1 file.
Go through the following program.
REPORT ZHR_DEMO_PCL1.
TABLES : pcl1,
pa0003.
DATA : BEGIN OF it_pcl1 OCCURS 0,
srtfd TYPE pcl1-srtfd,
END OF it_pcl1.
DATA BEGIN OF nt1 OCCURS 10.
INCLUDE STRUCTURE pdcmt.
DATA END OF nt1.
DATA BEGIN OF nt2 OCCURS 10.
INCLUDE STRUCTURE pdcmt.
DATA END OF nt2.
DATA BEGIN OF ert OCCURS 10.
INCLUDE STRUCTURE pc2b8.
DATA END OF ert.
DATA BEGIN OF b1-key.
INCLUDE STRUCTURE pdc10.
DATA END OF b1-key.
DATA: srtfdlow LIKE pcl2-srtfd.
DATA: srtfdhigh LIKE pcl2-srtfd VALUE
'9999999999999999999999999999999999999999'.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
SELECT-OPTIONS : s_pernr FOR pa0003-pernr.
PARAMETERS: vonpernr LIKE pc2b0-pernr NO-DISPLAY,
bispernr LIKE pc2b0-pernr NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM init_sortfields.
PERFORM get_srtfd_pcl1.
PERFORM import_data.
*& Form init_sortfields
text
FORM init_sortfields .
IF vonpernr IS INITIAL.
SELECT MIN( pernr ) INTO vonpernr
FROM pa0003 WHERE pernr IN s_pernr.
IF sy-subrc = 4. "i.e. no minimum found.
vonpernr = bispernr = '00000000'.
ELSE.
SELECT MAX( pernr ) INTO bispernr
FROM pa0003 WHERE pernr IN s_pernr.
ENDIF.
ELSE.
IF bispernr IS INITIAL.
bispernr = vonpernr.
ENDIF.
ENDIF.
srtfdlow = cl_pt_cluster_util=>srtfd_low_init(
im_pernr = vonpernr
im_relid = 'B1' ).
srtfdhigh = cl_pt_cluster_util=>srtfd_high_init(
im_pernr = bispernr
im_relid = 'B1' ).
ENDFORM. " init_sortfields
*& Form get_srtfd_pcl1
text
FORM get_srtfd_pcl1 .
SELECT srtfd
FROM pcl1
INTO TABLE it_pcl1
WHERE relid EQ 'B1'
AND srtfd BETWEEN srtfdlow AND srtfdhigh
AND srtf2 EQ 0.
ENDFORM. " get_srtfd_pcl1
*& Form import_data
text
FORM import_data .
LOOP AT it_pcl1.
MOVE it_pcl1-srtfd TO b1-key.
IMPORT nt1 nt2 ert FROM DATABASE pcl1(b1) ID b1-key.
IF sy-subrc EQ 0.
LOOP AT nt1.
ENDLOOP.
LOOP AT nt2.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDFORM. " import_data -
Get Information about the 'Suchauftrag' in the Cluster Table PCL_RCF
With a trace (st01) I found out, that the information of my 'Suchauftrag' is saved in the cluster Table 'PCL_RCF'. How can I read out this information in cleartext?
Thx for answersHello,
Check methods of class CL_HRRCF_INFOTYPE_LOG and see if they can meet the requirements you might have.
Best Regards, -
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 get the data from a cluster table to BW
Dear All,
I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
In SE11 Transaction the Cluster (table ZES) is showing invalid table.
I referred some Forums, but no use.
Can any body tell me procedure to get the data from a cluster (table ZES) ?
Waiting for you results.
Thanks and regards
RajeshHI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
Hi,
I am planning to replace several transparent tables with cluster tables.
And this also implies that I have to read from cluster tables.
One of the reason, I did not do this is until now is, that at the moment I am heavily
relying on the possibility to specify the DB name dynamically during runtime.
If I start implementing this scenario in one case, it should be possible to implement this
for all cases.
My question is now, is it possible to use cluster table similar to transparent table?
The following sketches the idea
The typical cluster table looks like
RELID INDX_RELID
SELKEY
SRTF2 INDX_SRTF2
CLUSTR
CLUSTD
What one could do is, select from the cluster table using the primariy key fields
RELID INDX_RELID
SELKEY
into an internal table, treating the DB table as an transparent table and after that,
do an import from the internal table to the real internal table.
To generate the value for SELKEY - Fill the structure and move the content of the
structure to a CHAR50.
The question is: Would this work?
I looked across the documentation, but I have found only little.
Trying it out is not useful either, since this technique needs to work independ of OS, DB
and NW Release.
And if it works, I cant be sure, that with a different system setup it still works.
Thanks fro your help.
With kind regards
Uwe Gebhardt
Edited by: Uwe Gebhardt on Apr 28, 2011 9:38 AMHello Uwe,
I would not advise you to switch from transparent to cluster tables. Cluster tables give you much less flexibility in terms of different access strategies, usage of indexes, etc.
And I think you can forget about reprogramming SAP DBI functionality of parsing cluster table contents in your program and moving it into a real internal table. There is simply too much you should take care of. And what if SAP decides to make a slight change in the next release. Then the upgrade will ruine your program.
So my advise - stick to the transparent tables.
Regards,
Yuri -
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 -
TEXT into the Cluster Tables.
A material (eg mat05) is maintained in a material master.
A purchase order text is maintained for that particular,in <b>STXH</b> table.The Text ID,Text Name,Object ID,Spras are stored along with the TDNAME ( the long text ).I know these data are stored into <b>STXH,STXL</b> tables and some cluster tables.Can someone help me informing about the <b>Cluster Tables</b>( Specially on PO text ).Hello Rajarshi,
There was a somewhat similar query sometime back which I shall point you to.
Re: BasicText for a Material
Besides, here's the code which would get you the purchase order texts for a given material -
parameters: p_matnr type matnr.
data: temp_text type table of tline with header line,
where_cond(20) type c.
data : begin of text_id ,
tdobject(10) value 'MATERIAL',
tdname(70),
tdid(4) ,
tdspras value 'E',
end of text_id.
start-of-selection.
concatenate '%'
p_matnr
into where_cond.
select tdname
tdid
from stxl
into (text_id-tdname , text_id-tdid)
where relid = 'TX' and
tdspras = 'E' and
tdname like where_cond.
import tline = temp_text[]
from database stxl(TX)
id text_id.
write: / sy-subrc.
loop at temp_text.
write : / temp_text-tdline.
endloop.
ENDSELECT.
Hope this is what you were looking for.
Regards,
Anand Mandalika. -
How to get the Minum Grade level from the view cluster table V_T710CL_B
Hi Guys,
I want to fetch the Minum Grade level from the view cluster table V_T710CL_B
kindly help me
Regards
Rusidar.HI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
Can we create secondary index for a cluster table
hi
can we create secondary index for a cluster tableJyothsna,
There seems to be some kind of misunderstanding here. You <i>cannot</i> create a secondary index on a cluster table. A cluster table does not exist as a separate physical table in the database; it is part of a "physical cluster". In the case of BSEG for instance, the physical cluster is RFBLG. The only fields of the cluster table that also exist as fields of the physical cluster are the leading fields of the primary key. Taking again BSEG as the example, the primary key includes the fields MANDT, BUKRS, BELNR, GJAHR, BUZEI. If you look at the structure of the RFBLG table, you will see that it has primary key fields MANDT, BUKRS, BELNR, GJAHR, PAGENO. The first four fields are those that all cluster tables inside BSEG have in common. The fifth field, PAGENO, is a "technical" field giving the sequence number of the current record in the series of cluster records sharing the same primary key.
All the "functional" fields of the cluster table (for BSEG this is field BUZEI and everything beyond that) exist only inside a raw binary object. The database does not know about these fields, it only sees the raw object (the field VARDATA of the physical cluster). Since the field does not exist in the database, it is impossible to create a secondary index on it. If you try to create a secondary index on a cluster table in transaction SE11, you will therefore rightly get the error "Index maintenance only possible for transparent tables".
Theoretically you could get around this by converting the cluster table to a transparent table. You can do this in the SAP dictionary. However, in practice this is almost never a good solution. The table becomes much larger (clusters are compressed) and you lose the advantage that related records are stored close to each other (the main reason for having cluster tables in the first place). Apart from the performance and disk space hit, converting a big cluster table like BSEG to transparent would take extremely long.
In cases where "indexing" of fields of a cluster table is worthwhile, SAP has constructed "indexing tables" around the cluster. For example, around BSEG there are transparent tables like BSIS, BSAS, etc. Other clusters normally do not have this, but that simply means there is no reason for having it. I have worked with the SAP dictionary for over 12 years and I have never met a single case where it was necessary to convert a cluster to transparent.
If you try to select on specific values of a non-transparent field in a cluster without also specifying selections for the primary key, then the database will have to do a serial read of the whole physical cluster (and the ABAP DB interface will have to decompress every single record to extract the fields). The performance of that is monstrous -- maybe that was the reason of your question. However, the solution then is (in the case of BSEG) to query via one of the index tables (where you are free to create secondary indexes since those tables are transparent).
Hope this clarifies things,
Mark -
Hi,
Basically I want to read the cluster TE in the PCL1 table,How is the process to go about it.
I just want to know from where the data in the cluster table gets accumulated.
Thanks in Advance,
Irfan HussainHi Irfan,
Pl refer to my reply to your post in the ABAP forum.
Regards,
Suresh Datti -
Export content from cluster table RSZWOBJ
Hello,
i need the html-cotent of the SAP BW cluster table 'RSZWOBJ'. I've tried this about the ABAP statement
IMPORT FROM DATABASE rszwobj(bm) ID key
but the results wasn' t very succesfully.
The goel is to get the html-coding of the relevant BW-bookmark, to search this bookmark for an specific string, this string should be replaced for an another one. After this action the changed html string have to export to the cluster table 'RSZWOBJ'.
If this procedure possible with the IMPORT-Statment or there are any another possibilities to change the content in the cluster table 'RSZWOBJ'?
With best regards
JurandHey Sandra,
thank you for your help. Your advice has solved the problem.
With best regards,
Jurand -
Hi
what is the functionality of cluster tables in payroll.
Rexhi,
For: u201CTwo Ways to Easily Access Payroll Information,u201D by Rehan Zaidi, senior SAP consultant, Siemens Pakistan. The author provides a detailed introduction of clusters, describes their structure, and explains the purpose that they serve in SAP HR.
Usage of Clusters Within HR
The HR module utilizes clusters for storing information in a variety of areas. Some of the tables available for storing data clusters are PCL1, PCL2, PCL3, PCL4, and PCL5, as shown in Table 1. Clusters provide numerous advantages. For instance, they are best for storing long texts and notes related to infotypes. The monthly payroll results and payroll directory of an employee are also stored in cluster form in table PCL2.
PCL1 TX Infotype texts
TE Travel expenses
TA General data for accounting of travel expenses
PCL2 ID Interface toolbox u2013 directory of interface results
ZL Time wage types and work schedule
RU Payroll results (US)
PCL3 TY Applicant data texts
AP Applicant actions
PCL4 P2 Log for RPCALX0 and RPTIME00
U1 Tax reporter forms for US
PCL5 PY Payroll data for personnel cost planning
CP Planning run data for personnel cost planning
STXL TX Notes related to infotypes
Table 1 HR tables that use clusters
All these tables have a predefined structure. The structure of one of these tables is shown in Figure 1.
Figure 1 Structure of table PCL1
The tables that store clusters have the following fields in common:
RELID u2013 This is a two-character field that identifies the cluster, e.g., TX, RX, etc.
SRTFD u2013 This field denotes the key passed by the application program while importing and exporting data stored in a particular cluster. This is similar to key fields for a database table that uniquely identify a record. Generally, the key is comprised of the fields mentioned between RELID and SRTF2 in the table definition. In the case of table PCLX , there is only one u2013 field SRTFD. However, in the case of table STXL, fields TDOBJECT, TDNAME, TDID, and TDSPRAS collectively make up the key.
SRTF2 u2013 This serves an additional or a duplicate key field. This field is utilized when the fields SRTFD and RELID alone are not sufficient for uniquely identifying a table record. If a record is more than one line long, then a new row is inserted with a different SRTF2. For the first (or the only) row, this field has a value of 0. If the cluster data corresponding to the same SRTFD value extends over multiple lines, new rows are inserted with an incremented value of SRTF2 such as 1, 2, 3 and so on. The system judges the size of data and the possible increment in the SRTF2 field value, so the developer need not worry about it.
CLUSTR u2013 This field shows the size (in bytes) of the data stored in a particular table row
CLUSTD u2013 This contains the actual data, for instance the infotype text, stored in compressed form
Storing data in the form of clusters lets you create logical partitions within one database table. A single table may be used for storing data from different functional areas. This relieves the developer from creating separate tables (and programming update functions) for data belonging to each application area. For example, PCL1 table comprises of clusters TX and TE for storing infotype text and data of travel expenses, respectively. A two-character ID in field RELID identifies each cluster. Via clusters, a single table may be used to store data (such as long text related to a variety of application areas) under a separate cluster ID with a single key value. Otherwise, this information (e.g., long text, internal tables, and flat data structures) would have to be stored in separate table. Data may be exported to and imported from the table via the usage of EXPORT and IMPORT statements, respectively. For more information about these two ABAP commands, refer to the SAP documentation (SAP Library>mySAP Technology Components>SAP Web Application Server>ABAP Programming and Runtime (BC-ABA)>The ABAP Programming Language>Saving Data Externally>Saving Data Objects as Clusters>Data Clusters in the Database).
Rupa Prasad
Maybe you are looking for
-
Since I upgraded to Mavericks from Snow Leopard I need a work iTunes account for my work system, but used my work email address as an associated email to my personal iTunes account. Now I can't use the work email to create the new iTunes account. ho
-
Vendor Treat as Customer Complicated Scenario
Respected Sir Vendor treat as customer , i had done all settings as per vendor & customer master data. 1) Vendor treat as customer this is also one of the scenario in Dairy. when vendor invoice amount & customer invoice amount should be deducted & di
-
Most direct way to do DML in App Module Impl
Hi, I need to do simple INSERT and UPDATE statements in an Application Module. I have the table in question exposed as verbatim Entity and View objects. What is the most direct way of of executing an INSERT and UPDATE on PK without having to instanti
-
Configuring 404 errors with FastCGI and php files
Hi, whenever a user triggers a 404, he gets a "No input file specified." error instead of the 404 error we configured in SJSWS 6.1. It looks like anything ".php" is sent to the parser, and if the file doesn't exist, the parser doesn't warn the webser
-
Ipad not showing in My Computer - Windows 7
I am trying to import images from my ipad to my computer. I would prefer to copy the pictures to a folder in My Pictures from My Computer. The device is connected on iTunes but is not shown in my computer. The device is in Devices and Printers under