<?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 Hi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552825#M854826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: IM_EBELN TYPE ZRAN_EBELN. " ZRAN_EBELN is a Line type created in DD-Data Type containing the components of RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as input to a Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_EBELN  = IM_EBELN "SO_EBELN type ZRAN_EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are getting exported to the function module i.e SO_EBELN , &lt;/P&gt;&lt;P&gt;but how can I used in SELECT to retrieve the data to an internal table using that input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2008 15:43:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-01T15:43:49Z</dc:date>
    <item>
      <title>Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552825#M854826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: IM_EBELN TYPE ZRAN_EBELN. " ZRAN_EBELN is a Line type created in DD-Data Type containing the components of RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as input to a Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_EBELN  = IM_EBELN "SO_EBELN type ZRAN_EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are getting exported to the function module i.e SO_EBELN , &lt;/P&gt;&lt;P&gt;but how can I used in SELECT to retrieve the data to an internal table using that input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 15:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552825#M854826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552826#M854827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Select * into table &amp;lt;ITAB&amp;gt; from &amp;lt;TABLE&amp;gt; where ebeln in SO_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 18:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552826#M854827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T18:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552827#M854828</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;line type refers to the structure of an internal table,whereas row type is the actual part that contains the data and it refers to the table body.creating internal table using line type and row type concept is for reusability purpose.Line type and Row type are defined at DDIC LEVEL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use line type it is similar to the workarea type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can use  &lt;STRONG&gt;so_ebeln-fieldname&lt;/STRONG&gt; in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ammavajjala Narayana on Apr 1, 2008 11:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 21:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552827#M854828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552828#M854829</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;SELECT-OPTION: IM_EBELN TYPE ZRAN_EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fetch data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;field_name) from &amp;lt;table&amp;gt; into table &amp;lt;internaltable&amp;gt; where ebeln in IM_EBELN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 08:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552828#M854829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T08:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552829#M854830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the code given by and according to the requirement please proceed as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a report as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMM_PO_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTION: IM_EBELN TYPE ZRAN_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;DECLARE AN INTERNAL TABLE ACCORDING TO THE REQUIREMENT&amp;gt; SAY I_EKKO&lt;/P&gt;&lt;P&gt;&amp;lt;DECLARE A WORK AREA TO PRINT THE OUTPUT DETAILS&amp;gt; SAY W_EKKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;FM_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;     SO_EBELN = IM_EBELN&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     &amp;lt;TABLE_NAME&amp;gt; = I_EKKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_EKKO INTO W_EKKO.&lt;/P&gt;&lt;P&gt;    WRITE:/ W_EKKO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now within the Function Module inorder to retrieve the data proceed as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare the desired tables &amp;lt;TABLE_NAME&amp;gt; as output under TABLES tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source code tab write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;FIELD 1&amp;gt; &amp;lt;FIELD 2&amp;gt; .... INTO TABLE &amp;lt;TABLE_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;              FROM &amp;lt;DBTABLE_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;              WHERE EBELN IN SO_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this one helps you out. Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Maddineni Bharath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552829#M854830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552830#M854831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the output using this method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need a create a RANGE TABLE TYPE in Data Dictionary Table Type with a line structure of RANGE (sign option low high) assume as SO_EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need take that table type as IMPORT parameter in the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: IM_EBELN for wa_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function zfae&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;so_ebeln = im_ebeln[]&lt;/P&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;lakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 21:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/3552830#M854831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T21:16:52Z</dc:date>
    </item>
  </channel>
</rss>

