<?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: To Fetch Data from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938732#M692722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; why do you need to move to t005u table? get the data from kna1 and move directly to ALV output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2007 12:24:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-24T12:24:50Z</dc:date>
    <item>
      <title>To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938731#M692721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to fetch data from t005u for the filed bezei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on conditions given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) pass kna1-land1 and kna1-regio to t005u-land1 and t005u-bland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then i want to pass this to an alv filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938731#M692721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938732#M692722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; why do you need to move to t005u table? get the data from kna1 and move directly to ALV output table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938732#M692722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938733#M692723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Write a select statement to the table T005U&lt;/P&gt;&lt;P&gt;if not it_kna1[] is initial.&lt;/P&gt;&lt;P&gt;  select single bezei from t005u into v_bezei&lt;/P&gt;&lt;P&gt;   where land1 = it_kna1-land1 and&lt;/P&gt;&lt;P&gt;         bland = it_kna1-region and&lt;/P&gt;&lt;P&gt;         spras = sy-langu.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     it_final-bezei = v_bezei. " where it_final is the ALV output internal table&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938733#M692723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938734#M692724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;I u already have kan1 fields..&lt;/P&gt;&lt;P&gt;then ..&lt;/P&gt;&lt;P&gt;select land1 bland bezei from table t005u into itab where land1 =kana1-..&lt;/P&gt;&lt;P&gt;and..&lt;/P&gt;&lt;P&gt;if u have any final table then&lt;/P&gt;&lt;P&gt;loop at t_final.&lt;/P&gt;&lt;P&gt;read itab.&lt;/P&gt;&lt;P&gt;tfinal-field = itab-buzei.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_callback_program = w_repid&lt;/P&gt;&lt;P&gt;        is_layout          = gs_layout&lt;/P&gt;&lt;P&gt;        it_fieldcat        = t_fieldcatalog[]&lt;/P&gt;&lt;P&gt;        it_sort            = w_sort&lt;/P&gt;&lt;P&gt;        i_save             = 'A'&lt;/P&gt;&lt;P&gt;        it_events          = gt_events[]&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_outtab           = t_final&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        program_error      = 1&lt;/P&gt;&lt;P&gt;        OTHERS             = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938734#M692724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938735#M692725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select t005u~bezei&lt;/P&gt;&lt;P&gt;          kna1~land1&lt;/P&gt;&lt;P&gt;          kna1~regio&lt;/P&gt;&lt;P&gt;          into table &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;          from t005u join kna1&lt;/P&gt;&lt;P&gt;          on t005u-land1 eq kna1-land1 and &lt;/P&gt;&lt;P&gt;               t005u-bland eq kna1-regio &lt;/P&gt;&lt;P&gt;          where &amp;lt;condition with selection-screen Parameters&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  After fetching the data build the field catelog using &amp;lt;itab&amp;gt; and &lt;/P&gt;&lt;P&gt;pass it in the function module REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Reward points if useful&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Chandrasekhar Velpula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938735#M692725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938736#M692726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select land1 regio from kna1&lt;/P&gt;&lt;P&gt;into (l_land1,l_regio)&lt;/P&gt;&lt;P&gt;where kunnr EQ p_kunnr.&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bezei from t005u&lt;/P&gt;&lt;P&gt;into l_bezei&lt;/P&gt;&lt;P&gt;where SPRAS EQ sy-langu and&lt;/P&gt;&lt;P&gt;land1 EQ l_land1 and&lt;/P&gt;&lt;P&gt;bland EQ l_regio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;reward if solved&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938736#M692726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: To Fetch Data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938737#M692727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i entered the code like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT it_kna1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;data: v_bezei type t005u-bezei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE bezei FROM t005u INTO v_bezei&lt;/P&gt;&lt;P&gt;                          WHERE land1 = it_kna1-land1 AND&lt;/P&gt;&lt;P&gt;                          bland = it_kna1-regio AND&lt;/P&gt;&lt;P&gt;                          spras = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a data in table but it is not coming into variable.&lt;/P&gt;&lt;P&gt;pls can explain litle bit more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2007 12:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-fetch-data-from-table/m-p/2938737#M692727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-24T12:53:29Z</dc:date>
    </item>
  </channel>
</rss>

