SAP Tables Eg!

Can u pls give examples for pool & cluster tables in sap.
   & diff between pool & cluster table.
   Thanks
    Rahul.

Hi Rahul,
Transparent Table:
Exists with the same structure both in dictionary as well as in database exactly with the same data and fields.
Pooled Table:
Pooled tables are logical tables that must be assigned to a table pool when they are defined. Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool. The data of these pooled tables are then sorted in a common table in the database.
Cluster Table:
Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.
A transparent table is a table that stores data directly. You can read these tables directly on the database from outside SAP with for instance an SQL statement.
Transparent table is a one to one relation table i.e. when you create one transparent table then exactly same table will create in data base and if is basically used to store transaction data.
A clustered and a pooled table cannot be read from outside SAP because certain data are clustered and pooled in one field.
One of the possible reasons is for instance that their content can be variable in length and build up. Database manipulations in Abap are limited as well.
But pool and cluster table is a many to one relationship table. This means many pool table store in a database table which is know as table pool.
All the pool table stored table in table pool does not need to have any foreign key relationship but in the case of cluster table it is must. And pool and cluster table is basically use to store application data.
Table pool can contain 10 to 1000 small pool table which has 10 to 100 records. But cluster table can contain very big but few (1 to 10) cluster table.
For pool and cluster table you can create secondary index and you can use select distinct, group for pool and cluster table. You can use native SQL statement for pool and cluster table.
A structure is a table without data. It is only filled by program logic at the moment it is needed starting from tables.
A view is a way of looking at the contents of tables. It only contains the combination of the tables at the basis and the way the data needs to be represented. You actually call directly upon the underlying tables.
http://www.datamanagementgroup.com/Resources/Articles/Article_0106_2.asp
more info
http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
http://cma.zdnet.com/book/abap/ch03/ch03.htm
Check this links.
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
http://www.techinterviews.com/?p=198
Regards
Aneesh.

Similar Messages

  • Is there any standard SAP table which stores the license number assigned to a delivery item

    Hi Experts,
    This is in relation to license number assigned to a delivery item under ‘Export License Log’. Our scenario is for delivery of type NLCC created for an inter-company stock transport order. (i.e.not a sales order case where the license may get copied from sales order to delivery through copy control)
    As we understand, for legal control – relevant scenarios, export license for each item shall be determined afresh every time the delivery is accessed. (Depending on legal regulation, grouping, destination country, export control class, delivery partners vis-à-vis license master customer assignments etc.)
    To print the license text on one of the delivery output types, we want to access the license number for each item. (determined under export license log)
    Our question is:  is there any standard SAP table which stores the license number assigned to a delivery item?
    We have checked some of the license tables (T606*, VAEX, EMXX etc.) but couldn’t get any specific table storing delivery-item-specific license data.
    Helpful answers Text Removed
    Regards,
    Jagan
    Message was edited by: G Lakshmipathi
    Dont add such text in your post

    Hi Lakshmipathi,
    The export control log can be accessed by going to delivery Extras-> Export license log
    We need a table that stores the determined license for each item in a delivery document ( as shown in the below screenshot)
    Regards,
    Jagan

  • Finding changes in SAP tables

    Hi,
    I have problem with SAP - Cognos interface. It functions like an ABAP program that generates a file from spec. fields of some SAP tables like BKPF, BSEG, BSID, BSIK, etc. And this is all OK, but problem is that report always selects ALL data, and in FI case(those table that I mentioned) this is complicated. For example one item is in some period open item, and in few days it will go to closed items. As COGNOS interface runs once in a Month or something like that, it is problem how to select proper data, because of huge amount FI data.
    Any Idea how to select only changes at table level? This must be also applicable to MM, SD and CO data. I thought of CHANGE DOCUMENTS, but what if change is not traced in CDHDR table because some data element is used in SAP table is not check to be observed as Change Document?

    Mario,
    For the changes, when ever there is a change done in the system a change number is created which will be available in table CDHDR, based on the Object classes extract the data and the required dates of changes made pull out the data.
    In case for AP, AR, G/L you can check with some tables ( there are some tables which will be only be updated based in the process AP/AR/GL ). Based on the list of these tables, extract data from table CDPOS  using the Change Number obtained from CDHDR.
    Anmol Saxena.

  • SAP Tables  for Open Customer Orders and Sales History

    Dear Experts.
    I am looking to get SAP SD related tables for the following,
    1) SAP tables for Open Customer Orders     
    From SAP, I need to get all tables that Contain all open customer orders for products.
    2) Sales History
    From SAP, I need to get all tables that contain the previous month's sales history (shipped customer orders).
    Please Help!!

    hi
    check the following link
    http://www.erpgenie.com/abap/tables_sd.htm
    hope it will help you
    regards,
    sreelatha gullapalli

  • How to access data from SAP Tables from a Webi report

    hi all,
    I have a webi report for financial data and from a Bex query which is build on a Cube (this has data from 2 SAP ECC systems)
    i want to build a functionality where in i can call some SAP Table data from this webi report. i should be able to pass information or some hard code where it can understand the source system it has to pick data from.
    in SAP BI, we have this ption wherein we can achieve this through RRI..
    is this possible in Webi ?
    Thanks
    SKS

    Hi.
    Create a universe on top of SAP Tables and create a webi report.
    Using hyper link /open doc we can call  this report from the webi report created on top of your Cube .
    @Sri

  • Relationship between unknown SAP-TABLES

    Hi Folks,
    Lets take a scenario of populating an ouput internal table with fields from 4 unknown sap tables(relation between the tables is unknown). How can we check the relationship between those tables to populate the internal table..? What are the possible ways to check the relationship between tables..?
    Can u please help me on this.
    Thanks n regards,
    ram.

    Hi <b>Ram</b>,
        I tried the following method to find relation between tables and i think it is quite useful. I hope this will be of some use to you.
    ->   Goto SE11 and display one of the tables.
    ->   Click on the <b>Graphic</b> icon on the toolbar or use shortcut ctrlshiftF11
    ->   It displays all the related tables by foreign key and even gives you all check tables involved. If the list is a long one, you can even use <u>Find</u> option to check if the other tables you are trying to find relation with, exist in the screen.
        Hope this Helps!! Do get back!!
    Regards,
    <b>Naveenan</b>.

  • SAP table for customer account balances by document currency

    Hi experts,
    We have a requirement to produce a monthly customer statement by customer currency or customer's document currency. Example is that the company code local currency is USD and the customer currency is EUR. The customer will be allowed to carry over a balance to next period under a certain threshold so there will be a carry over beginning balance from the previous period which needs to appear on the statement. Transaction FD10N only displays customers balances in the local or company code currency which is USD in this example.
    Question: Does anyone know if there is an SAP table that stores period beginning balances by customer account currency or customer's document currency?   
    We have not been able to find one and want to get additional input prior to building our own custom table.
    Many thanks in advance for your assistance.
    Regards,
    NormaF

    Hi:
        Make use of BAPI_AR_ACC_GETKEYDATEBALANCE to calculate customer opening balance. You need to develop Z report using table BSID and BSAD other SD related tables . There is not SAP standard report that shows the customer opening balance as carried forward from previous month.. You can make alteration for for showing balances in document currency.
    Regards

  • SAP table for finding Quant from the Handling unit

    Hi All,
    I would like to know the SAP table name - from the handling unit (where the stock received in the Warehouse), i would like to corresponding Quant ?
    PSS

    Hi,
    To know the QUANT for handling unit, use the table LQUA.

  • Issues in exporting data from SAP tables in SE16 to excel

    1.How can I save an sap table (displayed through SE16) in ECC6 into a pivot table in excel. [ I have seen this option in R/3 4.7, but do not see it in ECC.]
    2.How can I copy all the rows of a 3000 row SAP table in SE16 and paste the values into excel. I need to do this in one shot and not page by page.
    3.What option do I need to select inorder to preserve the formating of the values while saving as a local file in a spreadsheet format. All the values with leading zeros,like company codes gets saved with only their numeric portion when I save a SAP table as a local file. for eg company code 0001 gets saved in excel as just 1,company code 0056 gets saved as 56 etc. How do I prevent this? What option do I need to set in SAP in order for the values to be downloaded as is, without any truncation of leading zeros.

    1.  I don't know.  How about creating a pivot after exporting data
    2. System->List->Save->local file->clipboard
    Then paste whole lot in Excel
    3. This is a problem with Excel, not SAP.  SAP exports with leading zeroes.
    You could export as flat file & import into Excel into a spreadsheet with an appropriate numbering format.

  • Creating a new Search Help on a standard SAP table field?

    Good day, everyone!
    As part of a report I am writing, the customer would like to have Search Help added to the AUFEX field in table AUFK.  They would like this functionality so that when they are changing an order via t-code ko02, they can get a list of valid values to put in field AUFEX.  I would like to tie it to a zTable I've created; in my zTable, I have just 2 fields:  a key value (that will go into AUFEX) and a text description of the key value.  This zTable is used in my report.
    While I've created a Search Help on this table already for table maintenance, I've never added a custom Search Help to an existing standard SAP table field before.  I've done some Googling and other searching to see what I need to know, but I've only been able to find information on Collective Search Helps.  AUFEX doesn't yet have a Search Help field, so I don't think Collective Search Helps is my answer.
    Is this possible?  Can I add a custom Search Help to a standard SAP table field that doesn't have any Search Help linked to it yet?  Is there an existing thread or guide somewhere that can tell me how to do this?
    Thank you!

    Hi
    Yes u can: u can assign the search help to (A) data element livel or (B) field table livel.
    After creating your search help:
    A) Run SE11, insert your data element (AUFEX), press edit and insert the search help in "Search Help" area on DEFINATION tab;
    B) Run SE11, insert your table (AUFK), press edit, place the cursor on your field (AUFEX) and go to GoTo->Search help->for field
    But u should consider it'll mean to change a standard object for both cases: so u need to get the access key from your OSS.
    Max

  • XI message status at Adapter engine level using a table (SAP table)

    Hello Experts,
    XI message status at Adapter engine level using a table (SAP table).
    We want to write a custom report using ABAP so Pls tell why the status u2018Holdingu2019 and u2018To be deliveredu2019 are present in message monitoring of RWB but not in the status (MSGSTATE) field of SXMSPMAST table.
    My need is to write a report to get the messages based on the these status from table level.
    Please let me know the table name and field name for this and the table name for the desciption of the status of XI messages at Adapter level.
    Thanks
    Gopesh

    Hi Gopesh,
    the Adapter Engine Messaging System messages are on the Java schema,
    i.e., see the following -
    [XI/PI tables|https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/xi+tables]
    Regards
      Kenny

  • Loading records from .csv file to SAP table via SAP Program

    Hi,
    I have a .csv file with 132,869 records and I am trying to load it to an SAP table with a customized SAP program.
    After executing the program, only 99,999 records are being loaded into the table.
    Is there some setting to define how many records can be loaded into a table? Or what else could be the problem?
    Pls advice.
    Thanks!!!

    hi Arun ,
    A datasource need a extract structure to fetch data .It is nothing but a temp table to hold data.
    First you need to create atable in SE11 with fields coming from CSV file.
    Then you need to write a report program to read you CSV file and populate your table in BW .
    Then you can create a datasource on top of this table .
    After that replicate and load data at PSA and use to upper flow.
    Regards,
    Jaya Tiwari

  • How to update Records of SAP table from .CSV file

    Hi,
    I have written a code which takes a data from (,) delimited CSV file and adds it into the Internal table.
    Now I want to update the all fields in SAP table with the Internal table.
    I want to use Update statement.
    Update <table Name> SET <field needs to update> WHERE connditon.
    I don't want to iterate through thousand on record in sap table to check the where condition.
    Could you please tell me how to do it.

    Hi. I thing you will not workaround the iterating of the internal table.
    You can pre-load all the records into another internal table
    check lt_csv[] is not initial. " important, otherwise next select would read all records of the table
    select .... into lt_dbitab for all entries in lt_csv where key-fieds = lt_csv-key_fields...
    check sy-subrc eq 0 and lt_dbitab[] is not initial.
    then do in-memory update of the it_dbitab
    loop at it_dbitab assign <fs>.
      read table lt_csv assign <fs_csv> with key ... " lt_csv should be sorted table with key, or you should try to use binary search
      if sy-subrc eq 0.
        ...change required lt_dbitab fields: <fs>-comp = <fs_csv>-comp...
      endif.
    endloop.
    ant then you can do mass-update
    update dbtab from table lt_dbitab.
    From performance view, this solution should be much faster than iterating lt_csv directly and updating every single database record
    Br
    Bohuslav

  • How to select LAST line from a SAP table?

    Hi developers,
    I need to select the last line from a SAP table, NOT from an internal table.
    Something like
    SELECT SINGLE LAST FROM pa00169..
    any help is more than welcome.

    Javier,
    Based on this statement from you:
    "i created a Z table, its a config table that stores some bussines rules, and an id counter, so in order to update that counter i need the last line of the ztable."
    I have one additional solution which is the "text box" approach IF the 'id counter' mentioned above is a numeric data type.
    If so, use an SQL function to get the highest value of ID_COUNTER.
    Then simply add one to it to produce a new, unique, higher-order primary key.
    See below:
    data: l_id_counter like ztable-id_counter.
    data: new_id_counter like ztable-id_counter.
    select max( ID_COUNTER ) from ztable into l_id_counter.
    new_id_counter = l_i_counter + 1.
    Now new_id_counter will be the unique, primary key IF this is the only field in ZTABLE's primary key.
    This will also GUARANTEE that your new record is built correctly.

  • Using an on update or insert trigger on a SAP table

    Hi all,
    A question for you regarding using a database trigger in and SAP system. 
    We are needing to export data for our datawarehouse.  Currently we export all the data.  That data is getting quite large tho and time is becoming an issue.
    One suggestion has been to add a custome field to an existing SAP table to hold a flag to indicate the record has changed but not been extracted.  Thenput a trigger on the table in question so that the new field is updated upon update or insert of the record.  Then when the extract runs, it will only extract those records with the flag set, then reset the flag.
    we are using ERP 6 and SQL Server 2005 (or soon to as we will be upgrading next month).
    Any suggestions regarding triggers?  Or other options for flagging changed records in large table so we don't have to extract all records every time?
    Thanks
    Laurie
    Edited by: Laurie McGinley on Oct 27, 2008 10:51 PM

    Hi Laurie,
    just really shouldn't consider to put triggers into your application.
    The problem here is the very nature of triggers to do things 'in the background'.
    If you have problems due to the trigger, you won't see it anywhere in the SAP environment.
    In a while you probably forget about the trigger at all and then nobody can see, what is happening to the database, just because something is changed "in the background".
    Besides that you don't get support for this from SAP, you will make your life a lot harder.
    Tabledefinitions may change - your trigger might break.
    Put application logic where it belongs - to the application layer!
    regards,
    Lars

  • Reading TXT file to SAP table.

    Hi everyone,
    my task is to read data from chosen text file into table I created.
    Text file look like this:
    ID_ASK|DATA_OD|DATA_DO|
    1234|20140517|20140824|
    ID_MAG|ID_ASO|ID_KAT_ASO|SOURCE|NAME|
    12|23|34|600156|TEST NAME1|
    ID_MAG|ID_ASO|ID_KAT_ASO|SOURCE|NAME|
    23|24|54|600156|TEST_NUMR2|
    Header "ID_ASK|DATA_OD|DATA_DO|" occurs only once, while header "ID_MAG|ID_ASO|ID_KAT_ASO|SOURCE|NAME|" can occur many times.
    I want to insert those values (except of headers, of course) into my SAP table:
    Table Fields
    Fields from file
    ZIDASK
    ID_ASK
    ZIDMAG
    ID_MAG
    ZIDASO
    ID_ASO
    ZIDKAT
    ID_KAT_ASO
    ZZRCEL
    SOURCE
    ZDAOD
    DATA_OD
    ZDADO
    DATA_DO
    ZKATNAM
    NAME
    I want user to choose file from browser and I am using F4_FILENAME function.
    1. To avoid reading header into table I think I'll use something like this (in loop, of course):
        IF (lv_linecounter MOD 2) = 1.
              CONTINUE.
        ELSE.
              SPLIT something AT '|' INTO those_fields.
    2. What should be next function to call?
    3. Is declaring separate types for those two headers a good idea?
    TYPES: BEGIN OF ty_output_hdr,
       id_ask type zask-zidask,
       data_od TYPE zask-zdaod,
       data_do TYPE zask-zdado,
    END OF ty_output_hdr.
    TYPES: BEGIN OF ty_output_pos,
       id_mag TYPE zask-zidmag,
       id_aso TYPE zask-zidaso,
       id_kat_aso TYPE zask-zidkat,
       source TYPE zask-zzrcel,
       name TYPE zask-zkatnam,
    END OF ty_output_pos.
    With kind regards,
    Bartlomiej

    Hello Bartlomiej,
    His logic for processing (item 1) is correct and you can do the processing in this way without any problems.
    Regarding item 2, after the process of SPLIT, you can assign information to a structure and then insert the contents in the table individually.
    SPLIT gs_line
        AT '|'
      INTO gv_fieldA
          gv_fieldB
          gv_fieldC.
    gs_data-fieldA = gv_fieldA.
    gs_data-fieldB = gv_fieldB.
    gs_data-FieldC = gv_fieldC.
    INSERT FROM ZTABLE gs_data.
    Regarding item 3, a separate statement, however it manages more lines, is the best method that can be applied, allowing a subsequent maintenance will not affect other component.
    Regarding F4_FILENAME object, you can use it on AT SELECTION-SCREEN event of report:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name = syst-cprog
          dynpro_number = syst-dynnr
          field_name = '
        IMPORTING
          file_name = p_file.
    Tks
    Renato Bertizini

Maybe you are looking for

  • Sales Order from Quotation

    Hi, on sales order i m pulling the quotation no. the quotation have lets say 2 records, quotes for 2 main items. i use Parent Item while entering quotation. The records are ; Item Code   Description         Qty        Price 1000           Boys Shoes 

  • Two renewal orders and charges showing every month for one account and same renewal package, WHY

    Why am I charged twice with two different orders every month for one package of 800 mins. Are they giving me 1600 minutes! I need only 800 minutes please, so please refund these extra order charges please. I just noticed this thing month today and on

  • Apple tv youtube ap for macbook.

    is there a youtube ap available for macbook. I want the same function as you have with the ipad, or iphone. It would be much easier to find youtube stuff by typing on the computer then using the single letter function on apple tv.

  • Position key flex filed not populating in Position Flexfiled Structure

    I have created a Position Key Flex field. While Creating Business Group Organization, Position key Flex Field is not populating in Position Flexfiled Structure Field. Work Structure > Organization > Description Org Classification : Business Group

  • HT5225 I just upgraded to OS X Lion, and now I can't open my Quicken!!!

    I just upgraded to OS X Lion 10.7.3 and now it's telling me I can't open the application Quicken anymore, because PowerPC aplications are no longer supported!  I sincerely hope someone knows how to resolve this.  I'm in big trouble!  I get the same m