<?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: Help on Selection-Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920861#M939441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for answering my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just used fyear-low.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 05:53:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T05:53:31Z</dc:date>
    <item>
      <title>Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920853#M939433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, pardon the question but I'm still new to ABAP programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't really explain it well so I'll just post the code.&lt;/P&gt;&lt;P&gt;TABLE: BSID &lt;/P&gt;&lt;P&gt;DATA: Ccode(4) TYPE C,&lt;/P&gt;&lt;P&gt;Fiscal(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS ComCode FOR Ccode No Intervals No-Extension OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS FYear FOR Fiscal No Intervals No-Extension OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECT * FROM BSID.&lt;/P&gt;&lt;P&gt;WRITE: BSID-BUKRS, BSID-GJAHR.&lt;/P&gt;&lt;P&gt;WRITE FYear.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is this, I get the parameter of FYear from the selection option in order to compare it to a field in the table. But everytime I get this. IEQ***&lt;STRONG&gt;. I can't compare it with the IEQ in the way, and If I try to make the Fyear an integer it writes. IEQ&lt;/STRONG&gt;***00000. Is there any way to fix this. I'm new to this, just answering an exercise requiring me to use select-option statement as parameters. Any help would be great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920853#M939433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920854#M939434</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;  for select-options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use &lt;STRONG&gt;fyear-low , fyear-high..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select queris,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from table
          into table itab
          where
                     year in fyear.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply back..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920854#M939434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920855#M939435</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;Try to use CONDENSE statement ,it will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax Diagram &lt;/P&gt;&lt;P&gt;CONDENSE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;CONDENSE c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... NO-GAPS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on whether byte or character string processing is carried out, the operands can only be byte-type or character-type (see Overview). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas.See Use Only Character-Type Fields when Processing Strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs.See Character String Processing and Unicode &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Shifts the content of the field c to the left, so that sequences of blanks are reduced to exactly one blank. Leading blanks are removed, as are trailing blanks in string type fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA NAME (30). &lt;/P&gt;&lt;P&gt;        NAME(10)    = '    Dr.', &lt;/P&gt;&lt;P&gt;        NAME+10(10) = 'Michael', &lt;/P&gt;&lt;P&gt;        NAME+20(10) = 'Hofmann'. &lt;/P&gt;&lt;P&gt;CONDENSE NAME. &lt;/P&gt;&lt;P&gt;WRITE NAME. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;displays the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dr. Michael Hofmann &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... NO-GAPS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Suppresses all blanks from the field c &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF NAME, &lt;/P&gt;&lt;P&gt;        TITLE(8)       VALUE '    Dr.', &lt;/P&gt;&lt;P&gt;        FIRST_NAME(10) VALUE 'Michael', &lt;/P&gt;&lt;P&gt;        SURNAME(10)    VALUE 'Hofmann', &lt;/P&gt;&lt;P&gt;      END   OF NAME. &lt;/P&gt;&lt;P&gt;CONDENSE NAME NO-GAPS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contents of NAME is now "Dr.MichaelHofmann". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the NAME structure is interpreted and handled like a type C field, the CONDENSE statement treats it as a whole and ignores any subfields. The contents of the subfield would therefore now be as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NAME-TITLE       = 'Dr.Micha' &lt;/P&gt;&lt;P&gt;NAME-FIRST_NAME  = 'elHofmann ' &lt;/P&gt;&lt;P&gt;NAME-SURNAME     = '          ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Do not use CONDENSE to manipulate field strings that include fields not of type C. This could result in the subfields containing characters of a different (that is, incorrect) type. Nor can you apply the statement to structures that contain components of type STRING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The runtime required to condense three fields is about 20 msn (standardized microseconds). The variant ... NO-GAPS needs about 12 msn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related &lt;/P&gt;&lt;P&gt;SHIFT, CONCATENATE, REPLACE, SPLIT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional help &lt;/P&gt;&lt;P&gt;Condensing Field Contents&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920855#M939435</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-05-30T05:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920856#M939436</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 have not got your question completely n wht I got from your query is you want to use select option like parameter . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this u can use fname -low in your query . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920856#M939436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920857#M939437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  sorry to say that your problem is not clear to me.&lt;/P&gt;&lt;P&gt;  any how check with below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES: BSID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETRS:&lt;/P&gt;&lt;P&gt;    COMCODE LIKE BSID-BUKRS OBLIGATORY,&lt;/P&gt;&lt;P&gt;    FYEAR  LIKE BSID-GJAHR OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;SELECT * FROM BSID.&lt;/P&gt;&lt;P&gt; WHERE BUKRS = COMCODE&lt;/P&gt;&lt;P&gt;      AND GJAHR = FYEAR.&lt;/P&gt;&lt;P&gt;WRITE: BSID-BUKRS, BSID-GJAHR.&lt;/P&gt;&lt;P&gt;WRITE FYear.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is always recommended to select only those fileds u require&lt;/P&gt;&lt;P&gt;and avoid select and endselect.&lt;/P&gt;&lt;P&gt;so populate all the data into one internal tabla at once and use that internal table for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920857#M939437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920858#M939438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm.. Ok, I'll try to make it clearer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this statmenet in my program:&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS ComCode FOR Ccode  No Intervals No-Extension OBLIGATORY.&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS FYear   FOR Fiscal No Intervals No-Extension OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well as this one:&lt;/P&gt;&lt;P&gt;SELECT * FROM BSID   WHERE BUKRS = ComCode AND GJAHR = FYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm basically just comparing the selected options to the fields in a table.&lt;/P&gt;&lt;P&gt;Problem with that is, I tried several test cases, and apparently they aren't equal.&lt;/P&gt;&lt;P&gt;Trying to debug it, I tried to print BURKS and GJAHR from the table as well as ComCode and FYear from select-option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I got:&lt;/P&gt;&lt;P&gt;2002 2007 IEQ2002 IEQ2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first two columns are those from the table and last two are those from teh selected option. As you can see they aren't equal at all because of the IEQ. I'm new at this so I'm not really sure if I'm doing the right thing. Is my format wrong in declaring the select statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I'm required to use select-option and not parameter. Thanks for the inputs though&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: zsa tan on May 30, 2008 7:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:41:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920858#M939438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920859#M939439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  Do one thing try declaring your select option taking the reference of the dictionary element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if Fyear is your field form table TAB, declare like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS FYear FOR TAB-FYEAR No-Extension OBLIGATORY.&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;Regards&lt;/P&gt;&lt;P&gt;Sourabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920859#M939439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920860#M939440</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;Use fyear-low.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920860#M939440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920861#M939441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for answering my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just used fyear-low.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920861#M939441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Selection-Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920862#M939442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi zsa, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 05:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-selection-option/m-p/3920862#M939442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T05:56:46Z</dc:date>
    </item>
  </channel>
</rss>

