<?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: passing select-options to class methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752487#M640276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgive me for interrupting &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it also asks a structured row type for the range table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I going to deal with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 12:24:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-31T12:24:26Z</dc:date>
    <item>
      <title>passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752481#M640270</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 want to pass a select-option filled in the selection screen by the user to a method of my class. Since select-options are hold as an internal table with fields sign option low high, and passing internal tables to methods require typing, what should I write as the name of this internal table type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: so_carid for spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to pass the contents of so_carid to my method defined in a class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752481#M640270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T07:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752482#M640271</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;Triggering and Handling events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment of implementation, a class defines its:&lt;/P&gt;&lt;P&gt;         Instance events (using the EVENTS statement)&lt;/P&gt;&lt;P&gt;   &amp;nbsp;&amp;nbsp;   Static events (using the CLASS-EVENTS statement)&lt;/P&gt;&lt;P&gt;Classes or their instances that receive a message when an event is triggered at runtime and want to react to this event define event handler methods. Statement: &lt;A href="https://community.sap.com/CLASS-"&gt;&lt;/A&gt;METHODS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS IC1_VEICHLE DEFINATION.&lt;/P&gt;&lt;P&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;METHOD CONSTRUCTOR IMPORTING &lt;/P&gt;&lt;P&gt;EVENTS VEICHEL_CREATION.&lt;/P&gt;&lt;P&gt;ENDCLASS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LC1_VEICHLE IMPLIMENTATION.&lt;/P&gt;&lt;P&gt;METHOD CONSTRUCTOR&lt;/P&gt;&lt;P&gt;RAISE EVENT VEICHLE_CREATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 07:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752482#M640271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T07:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752483#M640272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. Unfortunately I couldn't establish the link between events and passing the parameters.&lt;/P&gt;&lt;P&gt;Can you send a very simle working example?&lt;/P&gt;&lt;P&gt;I just want to populate an internal table in a class using the restrictions taken from the select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 09:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752483#M640272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752484#M640273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferhat,&lt;/P&gt;&lt;P&gt;- define a tabletype object in the DDIC (SE11)&lt;/P&gt;&lt;P&gt;- go via menu EDIT -&amp;gt; Define as Range Table Type &lt;/P&gt;&lt;P&gt;- enter CARID as data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As method input parameter refer to that tabletype object&lt;/P&gt;&lt;P&gt;Then you can call your method:&lt;/P&gt;&lt;P&gt;zcl_my_class=&amp;gt;my_method( EXPORTING it_carid = so_carid[] ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't test it yet, but I think this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 11:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752484#M640273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T11:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752485#M640274</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;Create a table type for the SAME Data element that you use for your SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Goto Se11-&amp;gt; Select Datatype-&amp;gt; Enter the name.&lt;/P&gt;&lt;P&gt;2) Click create select Table type in the dialog.&lt;/P&gt;&lt;P&gt;3) Enter the description for the tabletype.&lt;/P&gt;&lt;P&gt;4) Use menu Edit-&amp;gt;Define as ranges table type.&lt;/P&gt;&lt;P&gt;5) Then give the Data element name there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this TABLE TYPE as your methods IMPORTING parameter's TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 11:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752485#M640274</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-31T11:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752486#M640275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sesh,&lt;/P&gt;&lt;P&gt;too late &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752486#M640275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752487#M640276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgive me for interrupting &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it also asks a structured row type for the range table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I going to deal with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752487#M640276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752488#M640277</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;Then you need to create the ROW TYPE , that is nothing but a Structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE11 when you are creating the table type using Edit-&amp;gt;Define as ranges tabletype after entering the Data element, enter some name in the field "Structred row type" and click create and then activate the structure and come back to table type and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can use this table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Uwe: Both of us missed out mentioning the ROW-TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752488#M640277</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-31T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752489#M640278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Its important to see that we address all the problems of the poster ;-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752489#M640278</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-31T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752490#M640279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sesh,&lt;/P&gt;&lt;P&gt;yes, you're right !&lt;/P&gt;&lt;P&gt;Like I said before, I didn't test the function yet. I only recognized this new ranges table type from Toms and Richs new book (and I haven't got the book in my customers office).&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752490#M640279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752491#M640280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferhat..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot pass Select-options directly to a Method .&lt;/P&gt;&lt;P&gt;Bcoz ABAP Objects does not support internal table with Header line.&lt;/P&gt;&lt;P&gt;Select-options will create an internal table with Header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can declare another itab to store the select options&lt;/P&gt;&lt;P&gt;using the Data type. &lt;/P&gt;&lt;P&gt;DDSHSELOPT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass it to the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 10:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752491#M640280</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-01T10:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: passing select-options to class methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752492#M640281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ferhat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a very elegant indirect way available to pass your select-options to class methods. Have a look at thread &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="279638"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 14:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-select-options-to-class-methods/m-p/2752492#M640281</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-09-01T14:22:22Z</dc:date>
    </item>
  </channel>
</rss>

