Cluster table

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

Similar Messages

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

    Hi 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
    Rajesh

    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

  • 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 can I get data in flat file from Pool table and cluster table ?

    Hi,
    I am working in one Achiving project. My requirement is to get data into flat file from Cluster table and pool table.
    Is there any tool avilable to download data into flat file from pool table and cluster table ?
    if table name given in the selection screen then data will be downloaded into flat file.
    waiting for quick response.
    Best Regards,
    Bansidhar

    Data cannot be retrived directly form the cluster table
    as the Cluster results are stored in Cluster Key say for example PCLkey
    and form that Key we need to fetch the data
    these clustes are not the part of PNP or PNPCE tables
    for ur info kindly check

  • View on cluster table

    hi all,
    I am trying to create a view for the tables bkpg and bseg.but am unable to as the error is "bseg is cluster table".
    can't  we create view for cluster table. if can, how

    You cannot create a view because BSEG is in a cluster table
    For this reason SAP has provided some "secondary index" tables, look for :
         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
    Regards

  • How to check data in a cluster table?

    Hello
    I am new to BW and SDN.
    I have to see data in a cluster table.
    I went to SE11, selected data type as KOMV, it displayed table, but data content button is greyed out.
    Can someone please tell me how to view the data?
    Thanks
    Priya

    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

  • How to extract data from cluster table

    Hi, experts,
    Here I want to extract change documents, which is from tables CDHDR(header) and CDPOS(line items). The problem is that CDPOS is a cluster table so that I can't create a view to develop a generic data source.
    I have search on the forum and some one said generic data source based on function module was a choice, but I think coding FM is so complex, especially including delta implementation.
    Could any one give me some advice? or give me some coding samples?
    Thanks a lot!

    Dear Sam,
    I would suggest you to have a look at the function module CHANGEDOCUMENT_READ u2013 you can use this function module as a core in the developed function module for generic extractor. Unfortunately, the suggested function module can not handle import parameters for field names, so the strategy which can be applied here is to use this function module to fill the internal table based on restrictions on object class and table name and then go through filled internal table and delete records which are not relevant for fields KOFIZ or ABRSPERR.
    As for delta implementation, would you please advise if delta relevant field based on timestamp generated on date and time of the change document is sufficient for your needs? If so then you can use fields UDATE and UTIME to generate timestamp on them including the field containing generated timestamp to the extract table. Next step here is to choose this field as delta relevant field in the Generic DataSource maintenance (TCode RSO2).
    Please inform me if this solution suits you or if you have any questions or concerns regarding it.
    My best regards,
    Vadim

  • How to read data from a CLUSTER STRUCTURE not cluster table.

    Hi,
    how to read data from a CLUSTER STRUCTURE not cluster table.
    regards,
    Usha.

    Hello,
    A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
    Regards,
    Mansi.

  • How to Extract data from Cluster table  and transperant table

    Hello BW Experts ,
    I want to extract the data from cluster table BSEG and a transperant table BKPF .
    The primary fields are BELNR , GJHAR and BUKRS.
    the fields of table BKPF to extarct is BUDAT and fields of BSEG table is HKONT , BSCHL , ZUONR and POSID.
    I can not create a view over these two tables as BSEG is a Cluster table.
    Please guide me.
    Regadrs ,
    Amol.

    hi Amol,
    take a look Sigg's weblog
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    you can use RSAX_BIW_GET_DATA_SIMPLE as sample, there specified import parameters
    FUNCTION RSAX_BIW_GET_DATA_SIMPLE.
    ""Lokale Schnittstelle:
    *" IMPORTING
    *" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
    *" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *" TABLES
    *" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *" E_T_DATA STRUCTURE SFLIGHT OPTIONAL
    *" EXCEPTIONS
    *" NO_MORE_DATA
    *" ERROR_PASSED_TO_MESS_HANDLER

  • How to fetch data for a struture from a cluster table

    How can I fetch data for a struture, from a cluster table, based on the name of the structure?

    Hi,
    In order to read from Cluster DB Table use the following statement:
    Syntax
    IMPORT <f1> [ TO  < g1 > ] <f2> [TO < g2 >] ...
    FROM DATABASE <dbtab>(<ar>)
    [CLIENT <cli>] ID <key>|MAJOR-ID <maid> [MINOR-ID <miid>].
    This statement reads the data objects specified in the list from a cluster in the database <dbtab>.
    You must declare <dbtab> using a TABLES statement. If you do not use the TO <gi> option, the
    data object <fi> in the database is assigned to the data object in the program with the same
    name. If you do use the option, the data object <fi> is read from the database into the field <gi>.
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key>
    identifies the data in the database. Its maximum length depends on the length of the name field
    in <dbtab>.
    The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    For Eg:
    PROGRAM SAPMZTS3.
    TABLES INDX.
    DATA: BEGIN OF JTAB OCCURS 100,
    COL1 TYPE I,
    COL2 TYPE I,
    END OF JTAB.
    IMPORT ITAB TO JTAB FROM DATABASE INDX(HK) ID 'Table'.
    WRITE: / 'AEDAT:', INDX-AEDAT,
    / 'USERA:', INDX-USERA,
    / 'PGMID:', INDX-PGMID.
    SKIP.
    WRITE 'JTAB:'.
    LOOP AT JTAB FROM 1 TO 5.
    WRITE: / JTAB-COL1, JTAB-COL2.
    ENDLOOP.
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 12, 2009 1:35 PM

  • View cluster table child table calling problem!

    Hi All,
    I have created a cluster table with one table as header and one as item...
    Header table : ZRAJ1
    ITEM TABLE : ZRAJ2
    ZRAJ1 :
    ZPRODUCT
    ZPROD_DESC
    ZSTATUS
    ZUSER
    ZRAJ2:
    ZPRODUCT
    ZLABEL
    This clearly shows that zraj2 is depending on ZRAJ1.
    Created a cluster with these two tables.
    Also, created events for ZRAJ1.
    EVENT 05:
    FORM create_entry.
      yraj1-zuser = sy-uname.
    ENDFORM.
    EVENT 02:
    FORM after_save.
      IF yraj1-zstatus = 'L'.
        CALL TRANSACTION 'ZRAJ_VIEW'.
      ENDIF.
    ENDFORM.
    If the Zstatus is "L" in ZRAJ1, a new transaction will be called to maintain the child table zraj2.
    Trasnaction 'ZRAJ_VIEW'.
    REPORT 'ZRAJ_VIEW'.
    INITIALIZATION.
    *declaration:
      DATA : itab LIKE vimsellist OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    *To call the MAintanence screen directly through the program:
      CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
        EXPORTING
          action                               = 'S'
      CORR_NUMBER                          = ' '
      GENERATE_MAINT_TOOL_IF_MISSING       = ' '
      SHOW_SELECTION_POPUP                 = ' '
          view_name                            = 'YRAJ2'
      NO_WARNING_FOR_CLIENTINDEP           = ' '
      RFC_DESTINATION_FOR_UPGRADE          = ' '
      CLIENT_FOR_UPGRADE                   = ' '
      VARIANT_FOR_SELECTION                = ' '
      COMPLEX_SELCONDS_USED                = ' '
       TABLES
          dba_sellist                          = itab
      EXCL_CUA_FUNCT                       =
    EXCEPTIONS
      CLIENT_REFERENCE                     = 1
      FOREIGN_LOCK                         = 2
      INVALID_ACTION                       = 3
      NO_CLIENTINDEPENDENT_AUTH            = 4
      NO_DATABASE_FUNCTION                 = 5
      NO_EDITOR_FUNCTION                   = 6
      NO_SHOW_AUTH                         = 7
      NO_TVDIR_ENTRY                       = 8
      NO_UPD_AUTH                          = 9
      ONLY_SHOW_ALLOWED                    = 10
      SYSTEM_FAILURE                       = 11
      UNKNOWN_FIELD_IN_DBA_SELLIST         = 12
      VIEW_NOT_FOUND                       = 13
      OTHERS                               = 14
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    it is calling, ok no issues but it is not allowing me to create a new entry in the child table zraj2.
    Error: Table is locked by the user Raj.Checked in SM12 yes there is an lock entry for the table zrst(cluster),  zraj1, zraj2.
    Question :
    By default in the execution of cluster will there be a lock in all the child table as well.
    if so how to create new entries....
    For your information : Standalone it is working fine.That is if i execute ZRAJ1 in SM31 i am able to create new entries..
    Can any one provide some input on this............
    Tahnks,
    raj.

    I don't know any direct transaction for your purpose, but you can use this program RSTXSCRP to download your form into the local file and than you can open it to view.
    Regards,
    Naimesh Patel

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

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

  • 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

  • SELECT is taking lot of time to fetch data from cluster table BSET

    <Modified the subject line>
    Hi experts,
    I want to fetch data of some fields from bset table but it is taking a lot of time as the table is cluster table.
    Can you please suggest me any other process to fetch data from cluster table. I am using native sql to fetch data.
    Regards,
    SURYA
    Edited by: Suhas Saha on Jun 29, 2011 1:51 PM

    Hi Subhas,
    As per your suggestion I am now using normal SQL statement to select data from BSET but it is still taking much time.
    My SQL statement is :
    SELECT BELNR
                  GJAHR
                  BUZEI
                  MWSKZ
                  HWBAS
                  KSCHL
                  KNUMH FROM BSET INTO CORRESPONDING FIELDS OF TABLE IT_BSET
                  FOR ALL ENTRIES IN IT_BKPF
                  WHERE BELNR = IT_BKPF-BELNR
                      AND BUKRS = IT_BKPF-BUKRS.
    <Added code tags>
    Can you suggest me anymore?
    Regards,
    SURYA
    Edited by: Suhas Saha on Jun 29, 2011 4:16 PM

Maybe you are looking for

  • Teamwork still a factor?

    I just wondered through how much hassle and flaming some Java students are willing to suffer just to get an answer to problems like recursive method creations. It especially makes me wonder because if I don't know something, I ask my pals or my co-wo

  • HSlider used for time/ranges

    I have an app that needs to program open/close hours. So far I have a HSlider that starts at 0 and ends at 86400 (seconds in a day). I can easily convert the second value to a standard date time value, so all works great as long as I only want standa

  • Resizing subtitles for Flash CS4

    Hi, Does anyone have any useful code for resizing subtitles when you go to fullscreen? At the moment I have the following code, but when I go to full screen it resizes correctly on the first click, then if you go back to normal screen size, and then

  • How to convert date??

    guys if i have a date in the format 2632006 which represents 26th march 2006... how do i convert it into 2006-03-26? is there anyway that i can do it? It may be of a String type..

  • Patches for Solaris 9 with incompatible Packages

    I have a Sun Sparc machine with Solaris 9 on it as oracle server. We added two patches (112233-11: SunOS 5.9:Kernel Patch and 111722-04: SunOS 5.9:MathLibrary(libm)patch). When I prepared the server for Oracle installation, I checked patch with comma