<?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: maximum permitted 8 (= 2 * 4) valid characters.- dump? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414363#M538775</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;Maybe there is a difference in data declaration of&lt;/P&gt;&lt;P&gt;l_ds_range and s_awerk&lt;/P&gt;&lt;P&gt;and so result longer patterns than allowed in the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 14:39:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T14:39:16Z</dc:date>
    <item>
      <title>maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414361#M538773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting this short dump. This dump not coming every time this report execute.&lt;/P&gt;&lt;P&gt;I am getting this dump once in a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_DYNAMIC_OSQL_SEMANTICS',&lt;/P&gt;&lt;P&gt; was neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure&lt;/P&gt;&lt;P&gt; "F_SELECT_UNIQUE_DOCNO" "(FORM)"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;The current ABAP/4 program attempted to execute an ABAP/4 Open SQL&lt;/P&gt;&lt;P&gt;statement in which the WHERE condition contains an LIKE operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format for a LIKE operator should be (with the exception of&lt;/P&gt;&lt;P&gt;closing blanks) no more than twice as long as the&lt;/P&gt;&lt;P&gt;database field to which the condition applies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this particular case, the pattern contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   "%40R22.5%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more than the maximum permitted 8 (= 2 * 4) valid characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;Source code extract&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;003550     dynamic_where: s_awerk text-082 'werks'.  " text-082 - YARSAUTHPLNTS&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt;     get_unique yarsauthplnts.&lt;/P&gt;&lt;P&gt;003570&lt;/P&gt;&lt;P&gt;003580   endform.                                 " F_select_unique_docno&lt;/P&gt;&lt;P&gt;003590   *&lt;/P&gt;&lt;P&gt;003600   &lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;003610   * Form f_select_records                                                *&lt;/P&gt;&lt;P&gt;003620   &lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;003630   * For selecting records                                                *&lt;/P&gt;&lt;P&gt;003640   &lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;This is my source code&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
* macro declaration                                                    *
*&amp;amp;---------------------------------------------------------------------*
define dynamic_where.
  if not &amp;amp;1[] is initial.
    clear l_ds_range. refresh frange_t.
    move &amp;amp;2 to l_ds_range-tablename.
    frange-fieldname = &amp;amp;3.
    loop at &amp;amp;1.
      selopt_t-sign   = &amp;amp;1-sign.
      selopt_t-option = &amp;amp;1-option.
      selopt_t-low    = &amp;amp;1-low.
      selopt_t-high   = &amp;amp;1-high.
      append selopt_t.
    endloop.
    frange-selopt_t[] = selopt_t[].
    append frange to frange_t.
    l_ds_range-frange_t = frange_t.
    append l_ds_range to l_ds_trange.
  endif.
end-of-definition.

define get_unique.
  if not l_ds_trange is initial.
    refresh: i_where. clear: i_where.
    call function 'FREE_SELECTIONS_RANGE_2_WHERE'
      exporting
        field_ranges  = l_ds_trange
      importing
        where_clauses = i_where.
    if not i_where is initial.
      read table i_where with key 'YSCC' into t_where.
      if sy-subrc eq 0.
        select docno from &amp;amp;1
            appending table i_docno
            where (t_where-where_tab).
      endif.
    endif.
    refresh: l_ds_trange. clear: l_ds_range.
  endif.
end-of-definition.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414361#M538773</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-06-22T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414362#M538774</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;In dynamic selection it can't use SELECT-OPTION, u can use only fix values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fm FREE_SELECTIONS_RANGE_2_WHERE is to translate the sets of selection to be transfered to a submit of a report using a logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414362#M538774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414363#M538775</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;Maybe there is a difference in data declaration of&lt;/P&gt;&lt;P&gt;l_ds_range and s_awerk&lt;/P&gt;&lt;P&gt;and so result longer patterns than allowed in the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Timo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414363#M538775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T14:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414364#M538776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks to me like it's saying that the DOCNO can be a maximum of eight characters, and the pattern you are pssing "%40R22.5%" is more than eight characters. It's nine characters. You may be trying to use EQ instead of LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414364#M538776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414365#M538777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has been working for select options all the below mentioned in dynamic where. and also checked the&lt;/P&gt;&lt;P&gt;call function FREE_SELECTIONS_RANGE_2_WHERE, it is giving proper where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timo,&lt;/P&gt;&lt;P&gt;I checked the input values are with in the limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;If you check the following code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form f_select_unique_docno.
 
  dynamic_where: s_docds  text-063 'docdes'.
  get_unique: yarshdrt.

  dynamic_where: s_custo text-077 'customerno',
                 s_custp text-077 'custpartno'.
  get_unique yarscust.

  dynamic_where: s_prdcd text-080 'prodcode',
                 s_ptype text-080 'ptype'.
  get_unique yarsprdcode.

  dynamic_where: s_hwerk text-081 'werks',
                 s_affin text-081 'affind'.
  get_unique yarsplnt.

  dynamic_where: s_awerk text-082 'werks'.
  get_unique yarsauthplnts.

endform.                                 " F_select_unique_docno
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it is generating a dynamic where for finding out the docno of these select options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 14:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414365#M538777</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-06-22T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted 8 (= 2 * 4) valid characters.- dump?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414366#M538778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Between the macro call dynamic_where: s_awerk text-082 'werks'. " text-082 - YARSAUTHPLNTS and the macro call get_unique yarsauthplnts, add a few lines to verify the contents of your WHERE tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 15:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-8-2-4-valid-characters-dump/m-p/2414366#M538778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T15:27:05Z</dc:date>
    </item>
  </channel>
</rss>

