<?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: dynamic  string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747394#M324146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my mistake ...please check the change in bold.&lt;/P&gt;&lt;P&gt;If switch_history = 'X'.&lt;/P&gt;&lt;P&gt;r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;r_relat-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'EQ'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;append r_relat.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;r_relat-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'EQ'.&amp;lt;/b&amp;gt;append r_relat.&lt;/P&gt;&lt;P&gt;r_relat-low = '034'.&lt;/P&gt;&lt;P&gt;r_relat-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'I'.&lt;/P&gt;&lt;P&gt;append r_relat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 11:10:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-21T11:10:53Z</dc:date>
    <item>
      <title>dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747386#M324138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I wont to do a string dynamic  that when I wont to ask for relation 027 and 034 the string bring me both of relation my problem is that didn&amp;#146;t work what wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ceck_str TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF switch_history = 'X' .&lt;/P&gt;&lt;P&gt;    ceck_str = 'relat EQ ''027'''.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;ceck_str = 'relat EQ ''027'' OR relat EQ ''034'''.&amp;lt;/b&amp;gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3----&lt;DEL&gt;select the employee who register to course&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT objid sobid priox istat endda begda&lt;/P&gt;&lt;P&gt;  FROM hrp1001&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE d_itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FOR ALL ENTRIES IN z_course_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  WHERE otype = 'D'&lt;/P&gt;&lt;P&gt;   AND objid = z_course_table-objid&lt;/P&gt;&lt;P&gt;   AND sclas = 'P'&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;AND  (ceck_str).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747386#M324138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747387#M324139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think u have to right code as - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ceck_str TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF switch_history = 'X' .&lt;/P&gt;&lt;P&gt;SELECT objid sobid priox istat endda begda&lt;/P&gt;&lt;P&gt;FROM hrp1001&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE d_itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOR ALL ENTRIES IN z_course_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WHERE otype = 'D'&lt;/P&gt;&lt;P&gt;AND objid = z_course_table-objid&lt;/P&gt;&lt;P&gt;AND sclas = 'P'&lt;/P&gt;&lt;P&gt;AND subty cp '*027'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SELECT objid sobid priox istat endda begda&lt;/P&gt;&lt;P&gt;FROM hrp1001&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE d_itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOR ALL ENTRIES IN z_course_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WHERE otype = 'D'&lt;/P&gt;&lt;P&gt;AND objid = z_course_table-objid&lt;/P&gt;&lt;P&gt;AND sclas = 'P'&lt;/P&gt;&lt;P&gt;AND ( subty cp '&lt;STRONG&gt;27' or subty cp '&lt;/STRONG&gt;34' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747387#M324139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747388#M324140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit what is AND subty cp '&lt;STRONG&gt;027'.or  AND subty cp '&lt;/STRONG&gt;027'. i dont understand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747388#M324140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747389#M324141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why are you using a string but the best option is to use ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges : r_relat like hrp1001-relat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If switch_history = 'X'.&lt;/P&gt;&lt;P&gt;   r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;   r_relat-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;   r_relat-option = 'I'.&lt;/P&gt;&lt;P&gt;   append r_relat.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;   r_relat-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;   r_relat-option = 'I'.&lt;/P&gt;&lt;P&gt;   append r_relat.&lt;/P&gt;&lt;P&gt;   r_relat-low = '034'.&lt;/P&gt;&lt;P&gt;   r_relat-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;   r_relat-option = 'I'.&lt;/P&gt;&lt;P&gt;   append r_relat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT objid sobid priox istat endda begda&lt;/P&gt;&lt;P&gt;FROM hrp1001&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE d_itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOR ALL ENTRIES IN z_course_table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WHERE otype = 'D'&lt;/P&gt;&lt;P&gt;AND objid = z_course_table-objid&lt;/P&gt;&lt;P&gt;AND sclas = 'P'&lt;/P&gt;&lt;P&gt;AND relat in r_relat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747389#M324141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747390#M324142</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 found it in the ABAP HELP of the keyword WHERE:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: airline(2) TYPE C, 
            date       TYPE D. 
DATA: where_clause TYPE STRING, 
      connid       TYPE sflight-connid. 

CONCATENATE     'carrid = ''' airline ''''                     "&amp;lt;-only apostrofes
            ' AND fldate = ''' date '''' INTO where_clause. 

SELECT connid FROM sflight INTO connid 
  WHERE (where_clause). 
  WRITE: / date, airline, connid. 
ENDSELECT. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can mix static (variants 1 and 2) and dynamic conditions (variant 3) any way you like in WHERE clauses. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747390#M324142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747391#M324143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link which ll give you detail idea about the dynamic screen&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab1c35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab1c35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747391#M324143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747392#M324144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duplicate thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close one of the thread and continue with the other...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you not to open duplicate threads on same topic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747392#M324144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T09:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747393#M324145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anurag i try  your soltion but it bring me a 2 errors like that u have any soltion &lt;/P&gt;&lt;P&gt;thankes men.&lt;/P&gt;&lt;P&gt;&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 IN itab operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The IN itab operator is used with internal tables which&lt;/P&gt;&lt;P&gt; have the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SIGN(1)   OPTION(2)   LOW LIKE db_field   HIGH LIKE db_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The OPTION column should contain only one of the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "EQ LE GE CP BT NE LT GT NP NB"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The value "I " is not allowed here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND WHEN I *ASTRICK   r_relat-option = 'I'. THIS IS MY ERROR &lt;/P&gt;&lt;P&gt;&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 IN itab operator is used with internal tables which&lt;/P&gt;&lt;P&gt;have the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SIGN(1)   OPTION(2)   LOW LIKE db_field   HIGH LIKE db_field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OPTION column should contain only one of the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   "EQ LE GE CP BT NE LT GT NP NB"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value " " is not allowed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 11:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747393#M324145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747394#M324146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my mistake ...please check the change in bold.&lt;/P&gt;&lt;P&gt;If switch_history = 'X'.&lt;/P&gt;&lt;P&gt;r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;r_relat-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'EQ'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;append r_relat.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;r_relat-low = '027'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;r_relat-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'EQ'.&amp;lt;/b&amp;gt;append r_relat.&lt;/P&gt;&lt;P&gt;r_relat-low = '034'.&lt;/P&gt;&lt;P&gt;r_relat-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;r_relat-option = 'I'.&lt;/P&gt;&lt;P&gt;append r_relat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 11:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747394#M324146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T11:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic  string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747395#M324147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF switch_history = 'X' .&lt;/P&gt;&lt;P&gt;ceck_str = 'relat EQ ''027'''.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ceck_str = 'relat in ( ''027'' , ''034'' )'. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;IF switch_history = 'X' .&lt;/P&gt;&lt;P&gt;ceck_str = 'relat EQ ''027'''.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;ceck_str = ' ( relat EQ ''027'' OR relat EQ ''034'' )'. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 11:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-string/m-p/1747395#M324147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T11:44:43Z</dc:date>
    </item>
  </channel>
</rss>

