<?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: select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799852#M653772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI LE,&lt;/P&gt;&lt;P&gt;PLEASE help me with the spliting too, so that I can use the whole range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 15:49:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T15:49:34Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799850#M653770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;I am writing a code. My select-option is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: P_LIFNR   FOR LFA1-LIFNR&lt;/P&gt;&lt;P&gt;                            ,P_BUKRS  FOR LFB1-BUKRS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructor definition ia as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS:&lt;/P&gt;&lt;P&gt;CONSTRUCTOR &lt;/P&gt;&lt;P&gt;IMPORTING  VALUE(I_LIFNR) TYPE LFA1-LIFNR&lt;/P&gt;&lt;P&gt;                    VALUE(I_BUKRS) TYPE LFB1-BUKRS "Buchungskreis auslesen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as I creat my object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data obj type ref to class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT OBJ EXPORTING I_LIFNR = P_LIFNR.&lt;/P&gt;&lt;P&gt;                                                       I_BUKRS = P_BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problem because of Range type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message is; I_LIFNR is not type compatable with P_LIFNR. I guess this is becuase of the Range (Select-option). Using parameters: .... Solves the problem but I dont want to use parameters for my input. So how do can I solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blacky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 15:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799850#M653770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799851#M653771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I advice you to split your Select-option ( low/sign/option/high ) if u want to exploit it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use something like this :&lt;/P&gt;&lt;P&gt;CREATE OBJECT OBJ EXPORTING I_LIFNR-&amp;lt;b&amp;gt;LOW&amp;lt;/b&amp;gt; = P_LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 15:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799851#M653771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799852#M653772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI LE,&lt;/P&gt;&lt;P&gt;PLEASE help me with the spliting too, so that I can use the whole range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 15:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799852#M653772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799853#M653773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Blacky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create an instance for each vendor within the select-option range then I would suggest the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define a &amp;lt;b&amp;gt;static &amp;lt;/b&amp;gt;CREATE method (e.g. of your vendor class) which takes the select-option itab as IMPORTING parameter and which return an itab with instances of your vendor class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Within the CREATE method you select all vendors with your range and create all vendor instances that are collected and returned in an itab, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD create.
* define local data
  DATA:
    lo_vendor    TYPE REF TO zcl_my_vendor_class,

    ls_lfa1    TYPE lfa1,
    lt_lfa1     TYPE STANDARD TABLE OF lfa1.

    SELECT * FROM lfa1 INTO TABLE lt_lfa1
      WHERE bukrs = id_bukrs  " IMPORTING parameter
      AND       lifnr   IN it_lifnr.    " e.g.  TYPE RANGE OF lifnr

  LOOP AT lt_lfa1 INTO ls_lfa1.
    CREATE OBJECT lo_vendor
       EXPORTING  
         id_bukrs  = ls_lfa1-bukrs
         id_vendor = ls_lfa1-lifnr.

    APPEND lo_vendor TO rt_instances.  " table type of REF TO zcl_my_vendor_class
  ENDLOOP.

" NOTE: rt_instances is returned from method CREATE
ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&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>Mon, 10 Sep 2007 20:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799853#M653773</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-09-10T20:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799854#M653774</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;Even if you create a dynpro by yourself, the &amp;lt;b&amp;gt;SELECT-OPTIONS / PARAMETERS&amp;lt;/b&amp;gt; are key words that will work only on a SELECTION SCREEN of a report program or declare the screen as a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can indirectly bind select-options and parameters to a method. Please have a look at the CONSTRUCTOR method of class &amp;lt;b&amp;gt;CL_DBSEL_CATS&amp;lt;/b&amp;gt;. The method has a parameter&amp;lt;b&amp;gt; IM_CALLING_PROGRAM&amp;lt;/b&amp;gt; which represents a "normal" report with selection screen. If this parameter is filled then the instance will read the selection criteria using function module &amp;lt;b&amp;gt;RS_REFRESH_FROM_SELECTOPTIONS&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a very elegant approach to import selection criteria into class methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  Points  if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 03:43:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799854#M653774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T03:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799855#M653775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we pass if required the select options tables to our method as TYPE STANDARD TABLE.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM vbak INTO TABLE itab
WHERE vbeln IN i_vbeln_so.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The importing parameter i_vbeln_so is defined with the type STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gianpietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 07:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/2799855#M653775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T07:36:48Z</dc:date>
    </item>
  </channel>
</rss>

