<?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 error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954554#M1602149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use or create a domain and dataelement of datatype ACCP (YYYYMM internally as &lt;SPAN __jive_macro_name="user" id="275419"&gt;&lt;/SPAN&gt; wrote) but with a conversion exit so user can input  MM.YYYY on screen. Look for domain of datatype ACCP and conversion exits PERKK or PERI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zyyyymm.
DATA yyyymm TYPE POSTPER_KK.
SELECT-OPTIONS so FOR yyyymm.
BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2011 09:21:43 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2011-05-30T09:21:43Z</dc:date>
    <item>
      <title>Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954548#M1602143</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;I am using a select-options statement for a field in my program like the one below.&lt;/P&gt;&lt;P&gt; P_MTH(6) FOR C, where C has been declared as six character field.   the requirement is like  the users would be inputting the fields in MMYYYY format for e.g.: if they give 022005 to 122005 they are able to get the desired output, but if they give the input like 122005 to 022006,the system throws an Error message like" Lowe limit is GT upper limitu201D. Please suggest how this can be corrected as it comes from SAP standard coding.  &lt;/P&gt;&lt;P&gt;I tried even changing the data type for the field but it didn't work.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 08:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954548#M1602143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-30T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954549#M1602144</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;you can define as below declaration...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data var(6) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_var for var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 08:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954549#M1602144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-30T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954550#M1602145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try referencing your selection field to a data element with a domain of type "ACCP" (accounting period), e.g. BUPER, and enter in YYYYMM format.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on May 30, 2011 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954550#M1602145</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-30T09:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954551#M1602146</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 making it a numeric type field and check if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;shivraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954551#M1602146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-30T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954552#M1602147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  As the Ascii value of 122005 is more than 022006 , hence system is giving such a error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  to sort this out , try giving data in slightly different format as 200512 t0 200602, as done in all standard fields for date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; otherwise you have to use two different fields to input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Talwinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954552#M1602147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-30T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954553#M1602148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please have a look below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA LF_MATH(6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : P_MTH FOR LF_MATH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954553#M1602148</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2011-05-30T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954554#M1602149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use or create a domain and dataelement of datatype ACCP (YYYYMM internally as &lt;SPAN __jive_macro_name="user" id="275419"&gt;&lt;/SPAN&gt; wrote) but with a conversion exit so user can input  MM.YYYY on screen. Look for domain of datatype ACCP and conversion exits PERKK or PERI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zyyyymm.
DATA yyyymm TYPE POSTPER_KK.
SELECT-OPTIONS so FOR yyyymm.
BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954554#M1602149</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-05-30T09:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954555#M1602150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 09:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954555#M1602150</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-05-30T09:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954556#M1602151</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;You can do one think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define following way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-option:     sl_spmon for s031-spmon OBLIGATORY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR sl_spmon-low.
   PERFORM monat_f4.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR sl_spmon-high.
   PERFORM monat_f4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the help&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM  monat_f4.

  DATA: BEGIN OF mf_dynpfields OCCURS 1.
          INCLUDE STRUCTURE dynpread.
  DATA: END   OF mf_dynpfields.
  DATA: mf_returncode   LIKE sy-subrc,
        mf_monat        LIKE isellist-month,
        mf_hlp_repid    LIKE sy-repid.

  FIELD-SYMBOLS: &amp;lt;mf_feld&amp;gt;.

* Wert von Dynpro lesen
  GET CURSOR FIELD mf_dynpfields-fieldname.
  APPEND mf_dynpfields.
  mf_hlp_repid = sy-repid.
  DO 2 TIMES.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname               = mf_hlp_repid
        dynumb               = sy-dynnr
      TABLES
        dynpfields           = mf_dynpfields
      EXCEPTIONS
        invalid_abapworkarea = 01
        invalid_dynprofield  = 02
        invalid_dynproname   = 03
        invalid_dynpronummer = 04
        invalid_request      = 05
        no_fielddescription  = 06
        undefind_error       = 07.
    IF sy-subrc = 3.
*     Aktuelles Dynpro ist Wertemengenbild
      mf_hlp_repid = 'SAPLALDB'.
    ELSE.
      READ TABLE mf_dynpfields INDEX 1.
*     Unterstriche durch Blanks ersetzen
      TRANSLATE mf_dynpfields-fieldvalue USING '_ '.
      EXIT.
    ENDIF.
  ENDDO.
  IF sy-subrc = 0.
*   Konvertierung ins interne Format
    CALL FUNCTION 'CONVERSION_EXIT_PERI_INPUT'
      EXPORTING
        input         = mf_dynpfields-fieldvalue
      IMPORTING
        output        = mf_monat
      EXCEPTIONS
        error_message = 1.
    IF mf_monat IS INITIAL.
*     Monat ist initial =&amp;gt; Vorschlagswert aus akt. Datum ableiten
      mf_monat = sy-datlo(6).
    ENDIF.
    CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
      EXPORTING
        actual_month               = mf_monat
      IMPORTING
        selected_month             = mf_monat
        return_code                = mf_returncode
      EXCEPTIONS
        factory_calendar_not_found = 01
        holiday_calendar_not_found = 02
        month_not_found            = 03.
    IF sy-subrc = 0 AND mf_returncode = 0.
*     ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO &amp;lt;MF_FELD&amp;gt;. 
*     &amp;lt;MF_FELD&amp;gt; = MF_MONAT.
      CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
        EXPORTING
          input  = mf_monat
        IMPORTING
          output = mf_dynpfields-fieldvalue.
      COLLECT mf_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname               = mf_hlp_repid
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = mf_dynpfields
        EXCEPTIONS
          invalid_abapworkarea = 01
          invalid_dynprofield  = 02
          invalid_dynproname   = 03
          invalid_dynpronummer = 04
          invalid_request      = 05
          no_fielddescription  = 06
          undefind_error       = 07.           
    ENDIF.
  ENDIF.
ENDFORM.                                                    "MONAT_F4
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will display data in to mm.yyyy formate and process internally yyyymm formate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please mention the source when copy/pasting code (here: RMCS0F0M)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on May 31, 2011 11:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 11:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954556#M1602151</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2011-05-30T11:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954557#M1602152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meenakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the Select-Options to Parameters. Like 'From Month' and 'To Month'. Later on you can build a range for this in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 11:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954557#M1602152</guid>
      <dc:creator>rathishr_nair</dc:creator>
      <dc:date>2011-05-31T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954558#M1602153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add an event called initlization there you will get fielsd low . high, option ,sign ..... and also use syste variable sy-datum in declaring&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 08:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-error/m-p/7954558#M1602153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-01T08:25:43Z</dc:date>
    </item>
  </channel>
</rss>

