<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing data from a cluster table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694949#M1293867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can you know the structure of the &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;tab&amp;nbsp; ??&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I am stuck. can anyone throw some light on this please..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saikat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 12:32:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-28T12:32:31Z</dc:date>
    <item>
      <title>Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694942#M1293860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried accessing data from a cluster table but was unable to do it. I tired using the statement IMPORT but, every time i run it, the staement fails and i am not able to work with it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried using the example in the keyword help, but was of little use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one help me on this front.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rishav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694942#M1293860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694943#M1293861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rishav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      If you are working with Cluster table e.g. BSEG then its not possible to select only once at the time of data selection. you need to select data from cluster table in a loop and use accordingly. If this is not possible for you then find alternative transeparent table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to ask if you have any doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694943#M1293861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694944#M1293862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using BSEG but a table SMW3_BDOC2 and still i am not able to access the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : SMW3_BDOC2.&lt;/P&gt;&lt;P&gt;DATA : ls_rawdata TYPE /1CRMG0/BUPA_MAIN.&lt;/P&gt;&lt;P&gt;DATA : lv_bdoc_id TYPE SMOG_TID.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;get the data id----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE BDOC_ID FROM SMW3_BDOC INTO lv_bdoc_id WHERE BDOC_TYPE = 'BUPA_MAIN'.&lt;/P&gt;&lt;P&gt; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select data from the cluster----&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    IMPORT /1CRMG0/BUPA_MAIN TO LS_rawdata FROM DATABASE SMW3_BDOC2(10) ID lv_bdoc_id.&lt;/P&gt;&lt;P&gt;ElSE.&lt;/P&gt;&lt;P&gt;   WRITE : 'Data not retrieved'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to use the statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694944#M1293862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694945#M1293863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code. Even this is failing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;  BEGIN OF tab,&lt;/P&gt;&lt;P&gt;    col1 TYPE i,&lt;/P&gt;&lt;P&gt;    col2 TYPE i,&lt;/P&gt;&lt;P&gt;  END OF tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  wa_indx TYPE indx,&lt;/P&gt;&lt;P&gt;  wa_itab TYPE tab,&lt;/P&gt;&lt;P&gt;  cl      TYPE mandt VALUE '800',&lt;/P&gt;&lt;P&gt;  itab    TYPE STANDARD TABLE OF tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT tab = itab&lt;/P&gt;&lt;P&gt;  FROM DATABASE indx(10)&lt;/P&gt;&lt;P&gt;  TO   wa_indx&lt;/P&gt;&lt;P&gt;  CLIENT cl&lt;/P&gt;&lt;P&gt;  ID 'TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: wa_indx-aedat, wa_indx-usera, wa_indx-pgmid.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_itab-col1, wa_itab-col2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 09:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694945#M1293863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-25T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694946#M1293864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna read the cluster table how to do that, I have come across some FM HR_FORMS_TIM_GET_B2_RESULTS which will read the B2 cluster which I require, But I don't know how to access that data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please put some code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Gaurav Patwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 17:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694946#M1293864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T17:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694947#M1293865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

" To post data to cluster

EXPORT tab = itab
  TO DATABASE indx(XY) 
  ID 'TABLE'.

'or

EXPORT itab TO DATABASE indx(xy) ID ' TABLE'.


' To access data from cluster table

IMPORT tab = itab        " here itab should the internal table with same structure as the cluster table else data will not get download
  FROM DATABASE indx(xy) 
  ID 'TABLE'.                           " ID should be the same when passing with the EXPORT same


or 

'you can use this way

IMPORT itab FROM DATABASE indx(xy) ID 'TABLE'.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 18:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694947#M1293865</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-07-23T18:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694948#M1293866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem of reading the cluster is solved. &lt;/P&gt;&lt;P&gt;We actually need to know the Type of cluster we want to import.&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;tab&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt; = itab&lt;/P&gt;&lt;P&gt;FROM DATABASE indx(10)&lt;/P&gt;&lt;P&gt;TO wa_indx&lt;/P&gt;&lt;P&gt;CLIENT cl&lt;/P&gt;&lt;P&gt;ID 'TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Tab marked in Bold and underlied must be known to the person who is importung the data.&lt;/P&gt;&lt;P&gt;then we mention the Database name and then the ID(in the database table ) required to fetch the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 02:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694948#M1293866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T02:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694949#M1293867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can you know the structure of the &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;tab&amp;nbsp; ??&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I am stuck. can anyone throw some light on this please..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saikat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694949#M1293867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694950#M1293868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saikat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to figure out where the EXPORT TO DATABASE is done and look at that code to see what the structure of the cluster data is.&amp;nbsp; You can't tell by looking at the data, only the programs that use the table will show you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 18:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694950#M1293868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing data from a cluster table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694951#M1293869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jim, but we took a different approach for the requirement. But yes, your answer is spot on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saikat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-data-from-a-cluster-table/m-p/5694951#M1293869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T10:40:45Z</dc:date>
    </item>
  </channel>
</rss>

