<?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: concatenating string with a variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516954#M237828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt; read table s_date index 1.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'ABCDEFG',&lt;/P&gt;&lt;P&gt;            s_date-low,&lt;/P&gt;&lt;P&gt;           'to',&lt;/P&gt;&lt;P&gt;            s_date-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will works fine only if user enters only 1 range.&lt;/P&gt;&lt;P&gt;if he gives more than 1 range of dates, this would not work .&lt;/P&gt;&lt;P&gt;so what you can do is, send this date select-option to the table where you match the dates and fetch all the dates into the internal table .&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;   if your date is for material creation date &amp;amp; you would like to know the dates ,&lt;/P&gt;&lt;P&gt;data : begin of it_ersda occurs 0,&lt;/P&gt;&lt;P&gt;         date type sy-datum,&lt;/P&gt;&lt;P&gt;       end of i_ersda.&lt;/P&gt;&lt;P&gt; select ersda&lt;/P&gt;&lt;P&gt;        into table it_ersda&lt;/P&gt;&lt;P&gt;        from mara&lt;/P&gt;&lt;P&gt;        where ersda in s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_ersda by ersda.&lt;/P&gt;&lt;P&gt;*--now IT_ERSDA table will have the valid material creation dates in ascending order.&lt;/P&gt;&lt;P&gt;read table it_ersda index 1.&lt;/P&gt;&lt;P&gt;   v_startdate = it_ersda-ersda.&lt;/P&gt;&lt;P&gt;describe table it_ersda lines v_lines.&lt;/P&gt;&lt;P&gt;read table it_ersda index v_lines.&lt;/P&gt;&lt;P&gt;   v_enddate = it_ersda-ersda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can use write, to print the start date and end date.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'ABCDEFG',&lt;/P&gt;&lt;P&gt;            v_startdate,&lt;/P&gt;&lt;P&gt;           'to',&lt;/P&gt;&lt;P&gt;            v_enddate.&lt;/P&gt;&lt;P&gt;use this statement in TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2006 11:15:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-01T11:15:04Z</dc:date>
    <item>
      <title>concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516952#M237826</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;i have used a 'select-options' in my report. I want to display the low and high option of it as a text on  the top of my page, sumthing like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: 'ABCDEFG' + s_bldat-low  + 'to' + s_bldat-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 11:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516952#M237826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516953#M237827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;c'ABCDEFG' + s_bldat-low + 'to' + s_bldat-high.&lt;/P&gt;&lt;P&gt;concanate into  string.&lt;/P&gt;&lt;P&gt;and  write  string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 11:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516953#M237827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T11:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516954#M237828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt; read table s_date index 1.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'ABCDEFG',&lt;/P&gt;&lt;P&gt;            s_date-low,&lt;/P&gt;&lt;P&gt;           'to',&lt;/P&gt;&lt;P&gt;            s_date-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will works fine only if user enters only 1 range.&lt;/P&gt;&lt;P&gt;if he gives more than 1 range of dates, this would not work .&lt;/P&gt;&lt;P&gt;so what you can do is, send this date select-option to the table where you match the dates and fetch all the dates into the internal table .&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;   if your date is for material creation date &amp;amp; you would like to know the dates ,&lt;/P&gt;&lt;P&gt;data : begin of it_ersda occurs 0,&lt;/P&gt;&lt;P&gt;         date type sy-datum,&lt;/P&gt;&lt;P&gt;       end of i_ersda.&lt;/P&gt;&lt;P&gt; select ersda&lt;/P&gt;&lt;P&gt;        into table it_ersda&lt;/P&gt;&lt;P&gt;        from mara&lt;/P&gt;&lt;P&gt;        where ersda in s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_ersda by ersda.&lt;/P&gt;&lt;P&gt;*--now IT_ERSDA table will have the valid material creation dates in ascending order.&lt;/P&gt;&lt;P&gt;read table it_ersda index 1.&lt;/P&gt;&lt;P&gt;   v_startdate = it_ersda-ersda.&lt;/P&gt;&lt;P&gt;describe table it_ersda lines v_lines.&lt;/P&gt;&lt;P&gt;read table it_ersda index v_lines.&lt;/P&gt;&lt;P&gt;   v_enddate = it_ersda-ersda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can use write, to print the start date and end date.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'ABCDEFG',&lt;/P&gt;&lt;P&gt;            v_startdate,&lt;/P&gt;&lt;P&gt;           'to',&lt;/P&gt;&lt;P&gt;            v_enddate.&lt;/P&gt;&lt;P&gt;use this statement in TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 11:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516954#M237828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516955#M237829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shehryar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a select-option may contain several values, the idea to display 'THE' value might not be possible at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is definitely only one value and you use list processing then you may write a header info in the at top of page list event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 11:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516955#M237829</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2006-08-01T11:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516956#M237830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select-options will have multiple value but if you are sure its going to be only one.  Then try following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_string(50) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table s_bldat index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'ABCDE' s_bldat-low 'to' s_bldat-high into v_string separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: v_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Damasus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 11:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516956#M237830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T11:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: concatenating string with a variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516957#M237831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shehyar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try and use the below function module to print the description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SELOPT_PRINT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT                 = TEXT-T07&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      SELOPT               = SO_VSTEL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2006 12:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenating-string-with-a-variable/m-p/1516957#M237831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-01T12:04:06Z</dc:date>
    </item>
  </channel>
</rss>

