Cluster table help

hi,
   i am finding how many transaction does users has executed on particular client, i tried figure out from SAPWL_WORKLOAD_GET_STATISTIC and also with STAT but could't get any information,so can any one tell me where do i will get this information.
thanks,
john

Hi Join,
If you don't restrict 'start_date' and 'end_date', it will take very long time to process it.
So my idea is that define a job to collect data in a transport table, develop a report to get result.
The follow is example code how to use.
DATA: BEGIN OF normalrecords OCCURS 2.
        INCLUDE STRUCTURE sapwlpfnrm.
DATA: END OF normalrecords.
DATA: BEGIN OF btcrecords OCCURS 2.
        INCLUDE STRUCTURE sapwlpfbtc.
DATA: END OF btcrecords.
SELECT-OPTIONS: s_class FOR tadir-devclass. " customer's developing class
START-OF-SELECTION.
  CALL FUNCTION 'SAPWL_STATREC_READ_FILE'
    EXPORTING
      read_start_date     = sy-datum
      read_end_date       = sy-datum
    TABLES
      v2_normal_records   = normalrecords
      v2_btc_step_records = btcrecords.
LOOP AT normalrecords.
    CLEAR: developclass.
    SELECT SINGLE devclass INTO: developclass FROM tadir
                  WHERE pgmid     = 'R3TR'
                   AND  object    = 'PROG'
                   AND  obj_name  = normalrecords-report.
    CHECK developclass IN s_class.
begin to move data to your own transport table.
end
  ENDLOOP.

Similar Messages

  • Table Cluster Creation - Help required.

    Hi,
    I need to create a Table Cluster. My requirement is to create Table Cluster for MARA and 3 more 'Z' tables.
    I read through the SAP documentation for the creation of table cluster. <http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/content.htm>
    But when i tried creating 'Cluster Table' i am getting errors.
    Please suggest the precautions to be taken while creating a Table Cluster, It would be of great help if any Mock document can be provided for creation of Table Cluster.
    Quick help in this regard is much appreciated.
    Many Thanks
    Ramesh.
    Edited by: Ramesh Kajuru on Apr 10, 2008 3:49 AM

    hi ramesh,
    Creating Pooled Tables/Cluster Tables
    Procedure
    In the initial screen of the ABAP Dictionary select object type Table, enter a table name and choose  Create.
    The field maintenance screen for the table is displayed. Table type Transparent table is set as default.
    Make the necessary entries in the Short description and Delivery class fields on the Attributes tab page. Then define the fields of the table.
    Proceed as when  creating a transparent table. Save your entries.
    Choose Extras ® Change table category.
    A dialog box appears in which you have to select the table type Pooled table or Cluster table.
    Choose Select.
    You return to the field maintenance screen for the table. Field Pool/cluster name is displayed on the Attributes tab page in addition to the standard fields.
    Enter the name of the table pool or table cluster to which you want to assign the pooled table or cluster table in field Pool/cluster name
    Note that the total key length of a pooled table may not exceed the key length of the associated table pool. The key of a cluster table must correspond to the key of the associated table cluster.
    Proceed as when creating a transparent table (see  Creating Tables). Remember that you cannot create indexes for pooled or cluster tables.
    All the attributes of the  technical settings can be maintained for pooled tables and cluster tables. Before you can access these attributes, however, you must convert the table to a transparent table.
    Creating Table Pools/Table Clusters
    Procedure
    In the initial screen of the ABAP Dictionary, choose Utilities ® Further Dictionary Objects.
    A dialog box appears.
    Select the object type Table pool/cluster and enter the object name. Choose .
    A dialog box appears in which you must specify if it is a table pool or a table cluster.
    Select the required object type and choose .
    The maintenance screen for table pools/clusters appears.
    The necessary entries will have been made automatically for the fields for table pools since a table pool has a fixed structure. You should not change these standard settings if you can avoid it.
    The structure of a table cluster is also mostly fixed. Certain fields are therefore proposed when the table cluster is created. You can adjust this proposal to your requirements, for example by inserting further key fields. However, make sure you conform to the structure necessary for a table cluster.
    Enter an explanatory text in the field Short text.
    If necessary, select the  activation type of the table pool/cluster with Utilities ® Activation type.
    Create documentation about the table pool/cluster with Goto ® Documentation.
    This documentation should describe what the table pool/cluster is used for. The documentation is also output when the table pool/cluster is printed.
    Go to the maintenance screen for the technical settings by choosing Goto ® Technical settings.
    In contrast to the table maintenance screen, you can only define the  size category here. All other attributes of the technical settings are preset.
    Activate the table pool/cluster with .
    Result
    The table pool/cluster is activated. You can look at the log of the activation with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
    After the table pool/cluster has been activated, you need to create it in the database. To do this, use the database utility (Utilities ® Database utility).
    Once a table pool contains data, it can no longer be changed.
    thanks
    karthik
    reward me points if usefull

  • 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

  • Edit next extent size of the Cluster table

    Hi Guys
    I need to change the next extent size of the a table.
    I ran se14 but i am not able to get into edit mode, because there is no button for edit mode.
    Reason: Cluster table
    Two questions:
    1. Why there is no Edit button? Is it because this table doesnot exixt at DB level.
    2. How can i change the next extent size for a Cluster table from sql prompt or from brtools if possible.
    Information:
    I am facing this issue only in DEV, QAS boxes, where as in Production its fine.
    Regards
    Ricky
    Edited by: Ricky kayshap on Dec 9, 2008 3:52 PM

    Hi,
    Cluster Tables doesn't exist in DB, Because of that you can't make changes to extents at DB level.
    if you experiencing some space issue. I woud suggest to check the underline Transparent tables and make changes to those.
    hope this helps.
    Kalyan.

  • 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
    Andreas

    Hi 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

  • How to check the content of cluster table smw3_bdoc1(00)

    Hi!
    I want to check the business partner changes sending via bdoc from crm to sap.
    For this i want to look into the bdocs.
    I think it's the cluster-table smw3_bdoc1.
    'Cause i don't know which is the name of the structure in the clustd-field i use:
    data: dirtab type table of cdir,
          wa_dirtab like line of dirtab.
    import directory into dirtab from database
                                      smw3_bdoc1(00)
                                      id '49600667F6980046E1008002AC18C6E5'.
    if sy-subrc = 0.
      write  / 'Directory:'.
      loop at dirtab into wa_dirtab.
        write: / wa_dirtab-name,  wa_dirtab-otype, wa_dirtab-ftype,
                 wa_dirtab-tfill, wa_dirtab-fleng.
      endloop.
    else.
      write 'Not found'.
    endif.
    So i've found the directory object "BDOC_BODY".
    Now i want to read the content with:
    data:   iclust type string.
    loop at itbdocid.
         IMPORT BDOC_BODY = iclust FROM DATABASE smw3_bdoc1(00)
                                        ID itbdocid-bdoc_id.
    endloop.
    An error message raises with...
    "error importing the object BDOC_BODY"
    The dump tells me that object types of BDOC_BODY and iclust doesn't match.
    I've changed the field iclust to type xstring... but it's the same error.
    If somebody here can help... Thanks a lot!
    Cheers, Ingo

    Hi,
    Thanks, I can see the data now.I am expecting that data should display in the 2LIS_VDKON extractor.There are two records for particular condition type.Item 10 and Item 20, but in RSA3, it is showing only one record for Item 20 and not showing for Item 10.
    I have cleaned and filled the setup tables, but still no luck.
    Can you please guide me, where else to look?
    Thanks
    Priya

  • Why we use Cluster Tables in SAP Hr

    hai friends, i am new to  ABAP-HR and SAP HR, Actually i am core abaper ( working on SD, MM and Fi Modules ) , can any one explain me why and what is the use of Cluster tables in SAP HR, why we use in SAP HR function Module ?
    Thnx in advance
    Vijaya

    Hi Vijaya,
    This may help for ur question..
    Why cluster table:
    Cluster tables combine the data from several tables with identical (or almost identical) keys into one physical record on the database.
    Data is written to a database in compressed form.
    Retrieval of data is very fast if the primary key is known.
    Cluster tables are defined in the data dictionary as transparent tables.
    External programs can NOT interpret the data in a cluster table.
    Special language elements EXPORT TO DATABASE, IMPORT TO DATABASE and DELETE  FROM DATABASE are used to process data in the cluster tables.
    PCL1 - Database for HR work area; (long text, etc)
    PCL2 - Accounting Results (time, travel expense and payroll); (payroll results)
    PCL3 - Applicant tracking data;
    PCL4 - Documents, Payroll year-end Tax data (change logs, etc)

  • Finding a cluster table

    hi friends,
    i am new to BW, but i have exp. in ABAP. here my requirement is: in the infocube, some key figures are there. these key figures are from a cluster table structure.  i need to identify from which cluster table structure the values are populating in the key figures.
    thanks in advance.
    regards
    Balu

    hi reddy,
    just go thru this link , you can find so many solutions.
    sure it helps you to finding the correct solution.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?querystring=cluster table structure&searchpluginname=sdn_all&selectedcustomprops=resourcetype(value=sdn_article),resourcetype(value=sdn_article_complex),resourcetype(value=sdn_bulk_zip),resourcetype(value=sdn_case_study),resourcetype(value=sdn_demo),resourcetype(value=sdn_ebook),resourcetype(value=sdn_ebook_comp),resourcetype(value=sdn_eclass),resourcetype(value=sdn_enduser_submission),resourcetype(value=sdn_evalution_version),resourcetype(value=sdn_event),resourcetype(value=sdn_faq),resourcetype(value=sdn_file_only),resourcetype(value=sdn_forum),resourcetype(value=sdn_help),resourcetype(value=sdn_hot_fix),resourcetype(value=sdn_how-to_guide),resourcetype(value=sdn_interface_documentation),resourcetype(value=sdn_javadocs),resourcetype(value=sdn_mimes),resourcetype(value=sdn_open_source),resourcetype(value=sdn_patch),resourcetype(value=sdn_plain_html),resourcetype(value=sdn_presentation),resourcetype(value=sdn_product_definition),resourcetype(value=sdn_sap_tutor),resourcetype(value=sdn_sapnote),resourcetype(value=sdn_sdn-tv),resourcetype(value=sdn_tool),resourcetype(value=sdn_virtual_classroom),resourcetype(value=sdn_webinar*),resourcetype(value=sdn_weblog),resourcetype(value=sdn_workshop_material)
    help.sap.com links for finding out the structure .
    http://help.sap.com/saphelp_erp2005/helpdata/en/a6/b79b40b5914063e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/4f/2b74404a6fcf62e10000000a155106/frameset.htm
    hope it helps. .
    thanks
    Varun cn

  • Read from cluster table ZL-PCL2

    Hi all,
    I need to read cluster table ZL that stores wage type for pernr. Now previously i was suggested
    FM 'CU_READ_RGDIR'
    FM 'CD_RED_LAST'.
    FM 'PYXX_READ_PAYROLL_RESULT'. But i want to use the statement
    Import from database.
    i have included the file RPC2ZL00.
    then the statement
    Import ZL to ZZL from database PCL2(ZL) ID ZL-KEY.
    Now does anyone have idea abt ZL-KEY??
    means what value i need to feed in ZL-KEy and how do i feed it??
    thanks in advance for all those who help me..
    Reena

    Hi Reena,
    Key is the combination of Pernr & sequence no., which u see it from report display payroll result(HINCLSTR) or RGDIR table.
    Instead of Import statement You can also use macro as below .
      CALL FUNCTION 'CU_READ_RGDIR'
           EXPORTING
                PERSNR          = PERNR-PERNR
           TABLES
                IN_RGDIR        = RGDIR
           EXCEPTIONS
                NO_RECORD_FOUND = 1
                OTHERS          = 2.
      CHECK SY-SUBRC = 0.
      PAY_BEGDA = SEL-BEGDA.
      LOOP AT RGDIR WHERE SRTZA = 'A'  AND VOID = SPACE
                      AND  ( PAYDT >= SEL-BEGDA AND PAYDT <= SEL-ENDDA ).
        IF RGDIR-RUNDT >= PAY_RUNDT.
          MOVE RGDIR-RUNDT TO PAY_RUNDT.
          PAY_BEGDA = RGDIR-FPBEG.
          SEQNR = RGDIR-SEQNR.
        ENDIF.
      ENDLOOP.
      RX-KEY-PERNR = PERNR-PERNR.
      UNPACK SEQNR TO RX-KEY-SEQNO.
      <b>RP-IMP-C2-RU.</b> 
      CHECK RP-IMP-RU-SUBRC = 0.
    Read the cluster table
      LOOP AT CRT.
      ENDLOOP.
      Hope this helps.
    Thanks,
    Sarika.

  • Cluster Tables and Open SQL

    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 AM

    Hello 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

  • How to read cluster tables

    Hi ,
    I have a requirement  to read cluster tables data using import statement . I have to access cluster tables data based on selection criteria . Any body help me regarding this isuue .
    Regards
    Uday

    Hi Uday,
    Check this one:
    [Extraction from cluster tables through function module|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33]
    Re: BW extractor for ERP cluster tables
    Regards,
    Chandra Sekhar

  • Custom Archiving Object: cluster tables

    Hello All,
    I need to create a custom archiving object to archive the content of a cluster table. Does anyone know how to do this? Would you provide me with the steps to do so?
    Thank you in advance!

    Solution
    As of R/3 Release 3.0, the ADK is also delivered to customers as a development tool for archiving programs. The ADK (Archive Development Kit) consists of function modules that help you to develop your own archiving solutions, as well as documentation on how to use the function modules.
    As of Release 3.0, all existing archiving from SAP applications is moved to the ADK.
    If you want to enhance an existing solution, you can do this with the help of the ADK. However, your own solutions may NOT delete or modify data from SAP standard tables.
    Archiving classes are developed by SAP exclusively and must not be used alone but only in connection with an archiving object.
    Archiving objects and archiving classes (and the objects belonging to the class) are not namespace-capable. A namespace as prefix may lead to errors in this case and must therefore not be used.
    For more information on the ADK documentation please see Note 71930.
    The two-days customer training BC670 deals with customer-specific enhancements to data archiving

  • 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

  • Select from Cluster Table

    Hi,
    I want to read data fields name1 name2 name3 name4 from cluster table BSEC.
    I tried select statement it takes lot of time.
    Let me know if theres a better way.
    Any help will be rewarded with points.
    Thanks,
    blluesh

    Hi,
    Generally Select on cluster table will be very slow especially if u dont pass all the keys. Let me know what are all the fields u are passing to this select in WHERE clause. Also check the transperant table TCJ_CPD which has all name fields.
    Thanks,
    Vinod.

  • 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.

Maybe you are looking for