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

Similar Messages

  • How to fetch data for sales order costing

    Hi All,
    How to fetch data for VA03 --> Extras --> Costing having cost element details.
    Thanks
    Gaurav

    Hi Gaurao ,
    There is no such function module  to extract data  in one column   , you have to  Convert all the columns data    in one column
    for period   .
    regards
    Deepak.

  • HOW TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE??

    NEED TO INSERT DATA INTO SQL SERVER FROM MS ACCESS TABLE.

    this is another method
    http://www.mssqltips.com/sqlservertip/2484/import-data-from-microsoft-access-to-sql-server/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to fetch data for all OUs

    Hi,
    Run below query:
    select * FROM PO_headers
    Result: no data
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('S','120');
    Run below query:
    select * FROM PO_headers
    Result:data for org_id=120
    EXECUTE MO_GLOBAL.set_POLICY_CONTEXT('A','');
    select * FROM PO_headers
    Result: no data
    So how can we fetch data from all OUs whothout using PO_HEADERS_ALL tables?
    why do we have this MO_GLOBAL.set_POLICY_CONTEXT('A','') option?

    in 11i PO_HEADERS is view with org_id policy
    in r12 PO_HEADERS is synonym with policies based on multi-org
    so for r12
    SQL> select count(*) from po_headers;
      COUNT(*)
             0
    SQL> begin
      2    mo_global.set_policy_context('S', 101);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           110
    SQL> begin
      2    mo_global.set_policy_context('S', 82);
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           235
    SQL>
    SQL> begin
      2      mo_global.init('SQLAP');
      3  end;
      4  /
    PL/SQL procedure successfully completed
    SQL> select count(*) from po_headers;
      COUNT(*)
           345
    SQL> select unique org_id from po_headers;
        ORG_ID
            82
           101
    SQL> mo_global.set_policy_context('S',<org_id>) - single operating unit
    mo_global.init(<app_short_name>) - multi operating unit

  • How to fetch data for the Change Request in PROCESS_EVENT

    Hi All,
    I need to write some custom logic on Save/Submit button. For this I am planning to enhance the PROCESS_EVENT method of class CL_USMD_CR_MASTER. Within this method I need to access runtime data of the change request currently being processed.
    I am going to create a post-method exit for this PROCESS_EVENT method. Is this correct?
    I have heard we have APIs in MDG which can be used to fetch data, however I do not know how to use the same.
    Can someone please help me with sample code how to fetch the runtime data of the Change Request
    Thanks in advance.
    Regards,
    Vanessa

    What MDG domain are you working on? What you are trying to do is called "reuse mode" enhancement and you do NOT want to tinker with the FPM feeder classes in this case. SCN document Configuration and Enhancement of SAP Master Data Governance contains many examples on how to achieve this.
    This is a how-to document for MDG-M reuse mode enhancement: Extend MDG-M Data Model by a New Entity Type (Reuse Option)
    This is a how-to document for MDG-C/S reuse mode enhancement: SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    Keep in mind, these examples are mainly for additional "master data" fields. If you need additional fields that are not master data but are more related to the Change Request itself, you should use this how-to document: Enhancement of the User Interface Building Block for Change Requests
    Again, all of these documents can be found on the first document I referenced above. I suggest that you bookmark it.

  • How to fetch data for cash voucher

    Hi,
    I came to know that there is not direct connection to database tables.
    How to get the data for cash voucher?
    Thanks in advance,

    Hi
    You can get data from BKPF table by passing document type BLART = 'SK'. 
    SK: - Cash document

  • How to copy data for certain member from one dimension to another dimension

    Dear ,
    I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
    I have the following combinations for "511102" :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
    I want to copy "511102"  to "salary"
    -salary have the following dimensions :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
    , I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
    Thanks in advance

    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
    "salary"="511102"->"1011"->"G_10"->"custom Grades";
    ENDFIX
    or
    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
    DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
    ENDFIX
    Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
    Cheers,
    Alp

  • How to bind values for input parameters from an adf table?

    Hi,
    The version I am using is
    Jdev TP4 11.1.1.0.0
    I need to know how to bind values for input parameters to methods.
    I have created an af:table and I have a button created using a method which is outside the af:table. This method needs to take input parameter values from the column values in the table.
    When I have an adf form instead of the table the binding works.
    Any help?
    Thanks.

    Hi Balaji,
    you need to bind you table to a backing bean and call a method in the backing bean when you hit the button. In the method you get the selected row from the table and have access to the columns of it. Then call the the method with the parameters.
    To bind the table to a bean select the properties of the table, go to behavior section and look for the advanced section 'Binding' property.
    Select the small down arrow at the right side and click edit. In the dialog select or create a bean and property for the table.
    Go to the button properties, look for 'Action', again select the small down arrow and click 'Edit'. Select the bean which holds the table property and create a method for the button.
    The method look like    public void bearbeitenQuelle(ActionEvent actionEvent)
            // Add event code here...
            RichTable lTable = getYourTable();
            Object lData = lTable.getSelectedRowData();
            FacesCtrlHierNodeBinding lNB = (FacesCtrlHierNodeBinding) lData;
            YourViewRow lRow = (YourViewRow ) lNB.getCurrentRow();
        }Hope the get you started
    Timo

  • How to fetch data for CRM Product Master

    Hi,
    I'm trying to write a report on the product master in CRM.
    In our current setup, we have few Ztables attached to the Product Master tabs.
    The key field linking the Ztables is
    field name:FRG_GUID     
    component type COMT_FRG_GUID
    description:SET GUID     
    I would like to know if there is any function module which reads the product master table based on Product_ID  just like 'for example 'CRM_ORDER_READ'.( which gives all the GUID's based on Business Transaction Numbers)
    I need this because I'm not able to match the Fragment_guid of many DB tables to each other.
    Please help.
    Regards
    Rasheed

    Hi Pratik,
    Thank you for trying to help me. I shall explain my scenario for better undestanding.
    I'm creating a Product Master Report which is linked to several Z tables.I need to fetch the details based on the price group .
    The structure of one of the Z tables is as below:
    Field Name               Component Type
    .INCLUDE                     COMT_FRG_KEY
    CLIENT                     MANDT
    FRG_GUID     COMT_FRG_GUID
    .INCLUDE                     COMT_PRODUCT_ADM
    VALID_FROM     COMT_VALID_FROM
    VALID_TO                     COMT_VALID_TO
    UPNAME                     COMT_UPNAME
    HISTEX                     COMT_HISTEX
    LOGSYS                     COMT_LOGSYS
    ZZ0010                     ZMODELTYPE
    ZZ0011                     ZMODELDESC
    ZZ0012                     ZMODSALEABLEAREA
    ZZ0013                     ZMEAUNIT
    ZZ0014                     ZBUILTUPAREA
    ZZ0015                     ZCARPETAREA
    ZZ0016                     ZTERRACEAREA
    ZZ0017                     ZGARDENAREA
    ZZ0018                     ZBALCONYAREA
    now the only way I can get the information from this table is if I get the FRG_GUID.
    Is there any way where I can get all the FRG_GUID for the PRODUCT_GUID'S.
    Regards
    Rasheed

  • How to extract data for these fields from R/3 ?

    Hi frnds,
    My requirement is to extract the following fields which
    are related to MM: Condition type, condition
    value, Bill of lading, Qty in external delivery note,
    Different invoicing party, Invoicing document from R/3 to
    BI. But i found that they are not in any purchasing
    datasources or inventory datasources ( Except different
    invoicing party but the values are not picking up through
    standard extractors ).
    Anyone please tell me are there any standard datasources for extracting these fields ?
    If not, if i want to enhance datasources for these fields
    which datasource do i need to enhance i.e
    2lis_02_itm,2lis_02_scl,2lis_02_s012 or 2lis_03_bf,
    2lis_03_um ?
    Full points will be assigned.
    Regards,
    Bhadri M.

    Hi.......
    I think you have filled the set up table..........and you have replicate the datasource also.......and after replicating you have activated in the BI side........
    Then it should extract the data............
    Are you in BI 7.0...........
    You try one thing...............
    Replicate the datasource again............and then activate the transfer rules using program : RS_TRANSTRU_ACTIVATE_ALL...........
    Also check the selection tab of your Infopackage........may be you are giving some selection.........also check if it is coming till PSA..........if it is coming till PSA.....then check your transformation and DTP.......
    It may help you...........
    Regards,
    Debjani..........
    Edited by: Debjani  Mukherjee on Sep 21, 2008 11:18 AM

  • How to fetch data for skills catalog to the ESS skills profile

    Hi Experts,
    I am adding qualifications using the following path:
    SPRO > Personnel Management > Personnel Development > Master Data > Edit Qualifications Catalog
    This should reflect in the Portal under Career and Job > Learning Page > Skills Profile. Can you please guide me about the steps to be taken to make this available.
    Further to this,
    If an employee updates his skills in the portal skills profile, that should update his infotype 24 accordingly. What configuration should be done to make this happen.
    Your guidance is much appreciated.
    Thanks,
    Toa

    Hi Toa,
    Can you have a look at the switch QUALI/ESSST in T77S0 the documentation says:
    "Within the ESS service used to edit the skills profile, this entry
    enables you to restrict the view of the skills catalog to the skills
    group determined here."
    It might help
    Best regards
    Sarah

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • How to fetch data from cluster tables

    hi
    i need to know  how to fetch data from cluster tables please update me if any
    i know that we cannot use joins in cluster table we use view etc
    but i need detailed inforation on methods for fetching data from cluster tables
    regards
    Nishant

    Hi,
        Check the following links
    http://fuller.mit.edu/hr/cluster_tables.html
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • How to fetch data from Mysql with SSL.

    I am using jdk1.5 and mysql 5.0.
    How to fetch data from Mysql with SSL
    I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
    It shows error. how to fetch

    I have created certificate in mysql and checked in mysql.
    mysql>\s
    SSL: Cipher in use is DHE-RSA-AES256-SHA
    but through ssl how to fetch data in java.

  • How to fetch data from PTREQ tables

    I need to display  data in the customised webdynpro application from PTREQ tables.
    Can anyone help me out how to fetch data from these tables.

    use the standard modules like
    PT_ARQ_REQUEST_CHECK
    PT_ARQ_REQUEST_EXECUTE
    PT_ARQ_REQUEST_PREPARE

Maybe you are looking for

  • Patch / workaround for kernel 2.6 (no components in pallet)

    Since I've read about this complaint all over the net, and, after three weeks without problems, I seem to have solved the issue locally (at least for Fedora Core II), here's a mini tutorial on how to do a patch so that Creator sucessfully copies the

  • In QuickTime 10 is there a way to hide the movie controls when paused?

    Is there anyway to hide the movie controls in quicktime when pausing movies? It's quite irritating when trying to analyse video, especially when resolution is low, and can't move the controls out of the video window to see whole picture. There should

  • Using Windows Media Player, but my phone automatic...

    Sorry the description is so confusing. I have used Windows Media player successfully several times to transfer music to my Nokia 7510. However, now whenever I plug into my computer, rather than allowing me to choose from 3 options, one of which is "P

  • HT3887 Magic Mouse won't scroll now!

    I have a Magic Mouse and it will not  scroll.  I have version 10.5.8, the newest wireless update installed, checked if i had usb overdrive installed and disconnected and reconnected/re paired my mouse, and put in new batteries.  I had this problem an

  • How to make a certain Special effect in Motion

    How can I create a point of light that moves along a path but the path remains lit ? Sort of like a flashlight in the dark thats moving but the light does not fade. I'm new to Motion but need to get this done soon if possible. Thanks G5   Mac OS X (1