<?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: How to export the select-option and import into method using Object Oriented ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700480#M1769046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shivam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because select-options are tables with header lines, call your method like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL METHOD &lt;/SPAN&gt;ref-&amp;gt;selection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_matnam = s_name[].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently you are trying to pass the header line to the method, not the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, it would be clearer to move your data and selection-screen declarations to the top include or top of the program since there is no unique scope for the START-OF-SELECTION event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2013 19:04:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-04T19:04:24Z</dc:date>
    <item>
      <title>How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700477#M1769043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OO Abap, I want to use one select-option (lets say for&amp;nbsp; vbak-vbeln, taken as a input from user) and export it to one method (that means, method should have import parameter), in which I have written a logic to fetch the sales order information from vbak table (i.e., all the sales order which falls under select-options). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my issue is, while declaring the method what should be the type of import parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a range table and given the type of import parameter (of method) of range table,but its not happening as desired.Its showing a type compatibility error.Please go through the similar code snippet as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/273866" height="297" width="511" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/273867" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out to resolve the above scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shivam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700477#M1769043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-04T15:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700478#M1769044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try passing s_name[] , instead of s_name to the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ref--&amp;gt;selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_matnam = s_name[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 17:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700478#M1769044</guid>
      <dc:creator>former_member188251</dc:creator>
      <dc:date>2013-09-04T17:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700479#M1769045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try declaring the select options as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_name for zmaterial-matname&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 18:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700479#M1769045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-04T18:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700480#M1769046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shivam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because select-options are tables with header lines, call your method like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL METHOD &lt;/SPAN&gt;ref-&amp;gt;selection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_matnam = s_name[].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently you are trying to pass the header line to the method, not the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, it would be clearer to move your data and selection-screen declarations to the top include or top of the program since there is no unique scope for the START-OF-SELECTION event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 19:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700480#M1769046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-04T19:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700481#M1769047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, since it appears you are writing a global class, you don't need to pass in the select-options to the methods if you don't want to.&amp;nbsp; They can be referenced as global variables.&amp;nbsp; Performance is not affected, so do whatever you think is more readable and maintainable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 22:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700481#M1769047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-04T22:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the select-option and import into method using Object Oriented ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700482#M1769048</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;Thanks for your reply. I missed&amp;nbsp; '[]' while exporting. Issue solved now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 08:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-the-select-option-and-import-into-method-using-object/m-p/9700482#M1769048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T08:39:41Z</dc:date>
    </item>
  </channel>
</rss>

