How to identify a data reference

Hi,
Probably a very simple question, but i was not able to find the answer (yet). Hopefully you can help me.
I have a data reference, which is a TYPE REF TO data
In some cases the reference can point to a table and in the other cases it points to a structure.
Now i want to know how i can identify the DATA reference if it is a table or structure?
Regards,
/Peter
In the expample below, how to i know LR_DATATAB is refering to a table and LR_DATASTRUC is refering to a structure?
====example===
REPORT  zpval_test01.
TYPES ty_t_t001 TYPE STANDARD TABLE OF t001.
DATA lt_t001 TYPE STANDARD TABLE OF t001.
DATA ls_t001 LIKE LINE OF lt_t001.
DATA lr_datatab TYPE REF TO data.
DATA lr_datastruc TYPE REF TO data.
START-OF-SELECTION.
  SELECT *
   FROM t001
    INTO TABLE lt_t001.
  READ TABLE lt_t001 INTO ls_t001
  INDEX 1.
  CREATE DATA lr_datatab TYPE ty_t_t001.
  GET REFERENCE OF lt_t001 INTO lr_datatab.
  CREATE DATA lr_datastruc TYPE t001.
  GET REFERENCE OF ls_t001 INTO lr_datastruc.

Hi all,
DESCRIBE FIELD <l_tab> TYPE l_type. does the thing.
For a table TYPE = h and for a structure TYPE = u.
Thanks all,
Peter

Similar Messages

  • How to identify Master data chars in a cube?

    How to identify Master data chars in a cube? Is there any function module with teh help of which we can identify the master data objects in a cube. (I need to avoid manual checking as the no. of objects is more).
    Regards,
    R.Ravi

    right click on cube..click on 'display data model'..
    there expand the tree for each dimension..
    under it..u will see list of char in that dimension..
    for some characteristics u will see an arrow beside it..expand it..u will see further list of char..(with yellow icons)..
    these are the list of attributes for that particular characteristic..
    for char that have no attr..there will be no arrow beside it..
    by this..u can know which char in ur cube hold master data..
    Vishvesh

  • How to identify the data mismatch between inventory cube and tables?

    Hi experts,
    i have a scenario like how to identify the data mismatch between 0IC_C03 and tables,and what are the steps to follow for avoiding the data mismatch

    Hi
    U can use data reconcilation method to check the consistency of data between the r/3 and bw. Plz check the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0931642-1805-2e10-01ad-a4fbec8461da?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d08ce5cd-3db7-2c10-ddaf-b13353ad3489
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14?QuickLink=index&overridelayout=true
    Thanx & Regards,
    RaviChandra

  • How to identify the date format?

    Hi,
    While uploading data from flat file
    Formats I am expecting are:-
    dd.mm.yyyy
    yyyymmdd
    yyyy.mm.dd
    i need to convert this to ddmmyyyy.
    Please hep me how to do this??

    Hi Lakshmi,
    data:
      lt_comp type table of string,
      lv_comp type string,
      lv_date_ddmmyyyy type char08.
      lv_date_input type string.
    lv_date_input = 'yyyymmdd'. "or other
    split lv_date_input at '.' into table lt_comp.
    if lines( lt_comp ) = 3.
      read table lt_comp into lv_comp index 1.
      if strlen( lv_comp ) = 2. "dd.mm.yyyy
        lv_date_ddmmyyyy = lv_comp.
        read table lt_comp into lv_comp index 2..
        lv_date_ddmmyyyy+2 = lv_comp.
        read table lt_comp into lv_comp index 3.
        lv_date_ddmmyyyy+4 = lv_comp.
      else."yyyy.mm.dd
        lv_date_ddmmyyyy+4 = lv_comp.
        read table lt_comp into lv_comp index 2..
        lv_date_ddmmyyyy+2(2) = lv_comp.
        read table lt_comp into lv_comp index 3.
        lv_date_ddmmyyyy(2) = lv_comp.
      endif.
    else."yyyymmdd
        lv_date_ddmmyyyy+4 = lv_date_input(4) .
        lv_date_ddmmyyyy(2) = lv_date_input+6(2) .
        lv_date_ddmmyyyy+2(2) = lv_date_input+4(2) .
    endif.
    Regards,
    Clemens

  • How to identify which data has been inserted  to the table in specific date

    Hi,
    i created one table without data column.. i am inserting data in that table.
    i want which data has been inserted today..
    Please help.
    Thanks,

    If you are in Oracle 10g you can use ORA_ROWSCN.Note that unless the table was created with ROWDEPENDENCIES enabled, though, ORA_ROWSCN is tracked at the block level rather than the row level. So a block with one new row and many old rows could appear as having all been entered today.
    Justin

  • Knowing DataSource, Cube, Query, how to identify Master Data datasource?

    Hi,
    based on a research on FI-FM at http://help.sap.com/saphelp_nw70/helpdata/en/71/d3143cb1b8be00e10000000a114084/frameset.htm
    I saw the flow as: first Query(based on cube 0FIFM_C01), the cube which gets data from 2 datasources (0FI_FM_1  & FI_FM_2) through 2 infosources: 0FI_FM_1 and  FI_FM_2.
    1. What do I need to install on BI to get this going and in which order?
    2. In particular, knowing DataSource, Cube, Query do I figure out the Master Data data I need to get this query functional?
    Once you know of the specific master data datasources what do I need to do to get this query functional?
    Thanks

    Dear Amanda,
    Let's clarify your questions.
    1.Install the cube and related stuff.
    RSA1 -> Business content -> Choose " in data flow before" -> install the Cube
    2. For the master data and related hierarchy.
    RSA1 -> Find the InfoCube -> Right click, find a option such as "display data model". I am not sure about the exactly description because i am not in front of the SAP system.
    you can find all the related InfoObject in the right panel.
    It is good if you check all of those master data and load them daily. But it is a big job and sometimes it is not necessary. You can:
    1) Clarify the business need. to konw which kinds of fields are "Must" for the end user anlaysis and make a list of that.
    2) check the list and most of the master data will load by other moduels. for example, cost center, material, customer ... they are too common that you can expect they are in some process chain and loaded daily basis already.
    3) load the master data in your list and no one load it before, or discuss with the ownder of process chain, if you need change the load frequency such as from weekly to daily.
    Edited by: Brian Yang on Jul 12, 2009 8:54 PM

  • How to identify the date when database is published?

    Hi,
      Is there any way to find when the database is published (i mean date). One of the database on our server is created long back and dont have record when it is published.
    Thanks in advance,
    Pavan
    Pavan

    The best I can come up with so far is the following:
    select create_date
    from sys.objects as o
    where object_schema_name(o.object_id) = 'dbo'
    and o.name = 'syspublications'
    Run that on your publisher in the publication database and it'll tell you when the replication system tables were created.  On my publisher, it tells me when I set replication up because I enable the database for publication on the same day I setup
    replication.
    It only tells you when the replication tables were created though, not when you began replicating data.  There could be plenty of lag time between when the tables were created and when you began publishing data.
    In any case maybe that'll help a little.

  • How to identify if a data node exist?

    Hi,
    If a form is binded to a schema, and when the xml is supplied to the form how to identify an optional node in the xml is available or not.
    for example if I have a XML input like below
    <root>
         <childTable>         
              <childRow>
                   <child1>
                   <child2>
              </childRow>
              <childRow>
                   <child1>
                   <child2>
              </childRow>
         </childTable>
    </root>
    is it possible to identify if the childTable node is present in the xml input.
    The code xfa.datasets.data.root.childTable if used fails when the childTable is not present in the input xml?
    Please let me know if there is a way to identify if the input xml has  a specified node. Assuming that we know the path of the node in the xml structure.
    Regards -
    Ashok Deivaisgamani

    Hi Ashok,
    Could you please try this?
    var nodeCheck = xfa.resolveNode("$record.childTable");
    if(nodeCheck != null)
         app.alert("Node Exists");
    else
         app.alert("Node Not Avaliable");
    Thanks,
    VJ

  • How to identify if the data is excel sheet is not on fixed column in SSIS package

    Hi, I am using SSIS 2008 R2 in which my excel file is the source for data. I am using the "Excel Source" transformation. For the normal data feed and all it is working fine.
    There is a requirement the data in the excel sheets are not static. For example think like, data may start from A1 Cell next it may be B1 or B2 and next time E1 or F2 like that. How to identify in which Cell the data is there to load to DB?
    Kindly tell me whatever the possibilites are there ....
    Sridhar

    Hi ,
      The mapping of SSIS packages cannot be modified at run time based on the input. Instead , you may consider to bring all the columns from excel into a staging table and figure out from where the data starts. Then load the destination table. If not
    you need to think of creating the ssis package itself dynamically using .Net code based on the excel metadata.
    Best Regards Sorna

  • How to identify whether any data source is created for a table?

    hi all,
    How to identify whether any extractions is been carried out for a particular table, view or function module(generic extraction)? from r/3.
    bcos i need to create an extraction for a table, view and function module. But  iam not sure whether any extractions is already been created for those tables, view, function modules??
    thanxs
    haritha

    Hi,
    By passing the following values as selection to table  ROOSOURCE we can find whether any data source has been created or not .
    EXMETHOD = V
    EXTRACTOR = Table name
    hope it helps..
    regards,
    raju

  • How to avoid Invoice Split due to billing date, reference number and payment reference?

    Hi,
    In a scenario of delivery to invoice copying, we are facing issue of invoice split.
    After analysing split, came to know that split happened because of different billing date, reference number and payment reference.
    In VTFL we kept below fields blank at header level:
    Assignment Number
    Reference number
    In VTFL we kept below setting at item level:
    Copying requirements: 001 (this is a del related Pro-forma invoice)
    Data VBRK/VBRP: 001 (Inv.split (sample))
    Also in VF04, at "default" tab maintained billing date, but still system is splitting invoice.
    Split analysis showing below results
    Different billing date
    Different reference number and
    Different payment reference
    Pls let me know how to avoind this split. Do we have to copy routine and do changes into it to avoid split.
    Regards/Pravin

    Hello,
    Also in VF04, at "default" tab maintained billing date, but still system is splitting invoice.
    Split analysis showing below results
    Different billing date
    Different reference number and
    Different payment reference
    this doesn't seem to me standard behaviour (as it regards the billing date). Try the same with VF01: enter manually the billing date, the documents to invoice and press "Billing document overview";  if it keep on splitting according to the billing date, I guess that there's a user-exit during the creation of the invoice, which determines the invoicing date.
    Check the following exit:
    RV60AFZA
    RV60AFZC
    RV60AFZZ
    Best regards,
    Andrea

  • How identify the data is client level,plant level or company code level

    Dear sirs,
    GM
    How identify the data is client level,plant level or company code level?
    If there is any T.code for same in SAP plz send me otherwise any procedure?
    Hopeeeeeeeeee....

    Hi,
    Once you gain experience, you will not look at any table any field or any view...You will do it just like how you use keyboard once you pass type writing....
    That is why every area of work, including master data is handed over to specialized teams...that will be their work day in and out....for some one newly entering, it will be little bit tough...once you practice, you will not be worried any more.  Of course, basic data at client level, purchasing data plant level etc...some thumb rules are there...still, you will take big blow by following such thumb rules because if you verify storage condition assigned in the storage location is not storage location level!!!!!!!!!!!!!!!
    that is experience!!  In this forum, it is good to practice rewarding...else, there may not be any more replies
    Good Luck
    Message was edited by:
            Gopala Turaga

  • If Both tables having References then how to insert the data each other

    Hai EveryOne..,
    My Sample data.,
    Create table emp (empno number primary key,ename varchar2(20));
    Create table emp_dup (empno number references emp(empno),ename varchar2(20) primary key);
    alter table emp add constraint ename_fk foreign key(ename) references emp(ename);
    My Question is How to insert the data into these two tables?
    Its a *"Circular Reference"* Concept.
    Please ...
    Thank You!!

    You need to set the DEFERRED clause of the constraint when you create your foreign key as DEFERRABLE by which you can move the constraint validation at transaction level.
    In an interview point of view that could be a reasonable answer. But in real time this could be strongly questionable.
    Here is an example
    SQL> create table emp1 (empno number, ename varchar2(10))
      2  /
    Table created.
    SQL> create table emp2 (empno number, ename varchar2(10))
      2  /
    Table created. Define Primary Key for two tables
    SQL> alter table emp1 add constraint emp1_pk primary key (empno)
      2  /
    Table altered.
    SQL> alter table emp2 add constraint emp2_pk primary key (ename)
      2  /
    Table altered. Add foreign key for two tables with DEFERRED clause set as DEFERRABLE
    SQL> alter table emp1 add constraint emp1_fk foreign key (ename) references emp2(ename) initially deferred deferrable
      2  /
    Table altered.
    SQL> alter table emp2 add constraint emp2_fk foreign key (empno) references emp1(empno) initially deferred deferrable
      2  /
    Table altered. Now here is the test case
    SQL> insert into emp1 values (1, 'karthick')
      2  /
    1 row created.
    SQL> commit      
      2  /
    commit
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (ARBORU.EMP1_FK) violated - parent key not found So the validation is done at Transaction level. Now let insert the value into both tables.
    SQL> insert into emp1 values (1, 'karthick')
      2  /
    1 row created.
    SQL> insert into emp2 values (1, 'karthick')
      2  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.

  • How to identify whether the data extracted is direct, queued, unserialized

    hi,
    how to identify whether the data extraction from r/3 is direct, queued and unseralized data.
    can anyone let me know abt it
    regds
    hari

    hI,
    Direct Delta: With this update mode, the extraction data is transferred with each document posting directly into the BW delta queue. In doing so, each document posting with delta extraction is posted for exactly one LUW in the respective BW delta queues.
    This update method is recommended for the following general criteria:
    a) A maximum of 10,000 document changes (creating, changing or deleting documents) are accrued between two delta extractions for the application in question. A (considerably) larger number of LUWs in the BW delta queue can result in terminations during extraction.
    b) With a future delta initialization, you can ensure that no documents are posted from the start of the recompilation run in R/3 until all delta-init requests have been successfully posted. This applies particularly if, for example, you want to include more organizational units such as another plant or sales organization in the extraction. Stopping the posting of documents always applies to the entire client.
    Queued Delta: With this update mode, the extraction data is collected for the affected application instead of being collected in an extraction queue, and can be transferred as usual with the V3 update by means of an updating collective run into the BW delta queue. In doing so, up to 10000 delta extractions of documents for an LUW are compressed for each DataSource into the BW delta queue, depending on the application.
    new queued delta
    This update method is recommended for the following general criteria:
    a) More than 10,000 document changes (creating, changing or deleting a documents) are performed each day for the application in question.
    b) In future delta initializations, you must reduce the posting-free phase to executing the recompilation run in R/3. The document postings should be included again when the delta Init requests are posted in BW. Of course, the conditions described above for the update collective run must be taken into account.
    Non-serialized V3 Update:With this update mode, the extraction data for the application considered is written as before into the update tables with the help of a V3 update module. They are kept there as long as the data is selected through an updating collective run and are processed. However, in contrast to the current default settings (serialized V3 update), the data in the updating collective run are thereby read without regard to sequence from the update tables and are transferred to the BW delta queue.
    unserialized v3 update
    This update method is recommended for the following general criteria:
    a) Due to the design of the data targets in BW and for the particular application in question, it is irrelevant whether or not the extraction data is transferred to BW in exactly the same sequence in which the data was generated in R/3.
    take a look Roberto's weblog series
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    https://weblogs.sdn.sap.com/pub/wlg/126 [original link is broken] [original link is broken] [original link is broken]
    doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    and oss note 505700
    Re: delta methods
    go throuth the previous thread
    Delta types
    hope it helps..

  • How to identify the Stanadard Extractor  will support for Real time Data

    How to identify the Stanadard Extractor  will support for Real time Data  Acquisation . Enabled

    Hi
    In the ROOSOURCE table you can find the extract structures, go through all the fields of the extractor and if you find all of your equired fields exist ok else try to enhance for teh needed fields and go with user exit to populate the data for that fields'

Maybe you are looking for

  • Keyword List editing

    Does anyone know of a quick way to edit and re-arrange (such as alphabetize, delete a lot of them at once, etc.) the keyword list in iMovie '09? I spent some time doing that before (when it was considerably less unwieldy) and lost all the changes I m

  • Server Push in JSP

    Hi AnyOne!           I have a jsp, and a database . If a column in my table gets updated I           want all of my clients who are connected to it , to see the refreshed value           without click any refresh/Reload button on the browser. A kind

  • Pointer won't move automatically to default button in dialog box in firefox 4

    Since I installed firefox 4, the pointer won't automatically snap to the default button in a dialog box. For example, when I delete trash in yahoo mail, there is a dialog that ask if I want to delete files, but the pointer is not on the default butto

  • Edit View graphic won't disappear

    Gentlefolk; I am working on a 50+ slide project in Captivate 4, with a mix of GIF and SWF graphics. In my latter slides, the previous graphic is not disappearing from the EDIT view. If I DUPLICATE a slide to retain some common elements, the graphic c

  • I can't install Lion, it says a recovery system cannot be created

    I downloaded Lion completely and my mac already restarted itself for installation. Once it was installed, the notification says that the recovery system cannot be created. What should I do ?