<?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: Use of variable in text elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566040#M585445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samruddhi,&lt;/P&gt;&lt;P&gt;Then u cannot change the Value Dynamically in the TEXT-001 statement, as it wiil be constatnt.&lt;/P&gt;&lt;P&gt;so u can use some string function there by u can display that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if any issues,&lt;/P&gt;&lt;P&gt;Rewrad with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 13:35:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T13:35:53Z</dc:date>
    <item>
      <title>Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566031#M585436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am inputting the value of variable A1 from selection screen.&lt;/P&gt;&lt;P&gt;Now i am using text element to display some msg where i want to use A1.&lt;/P&gt;&lt;P&gt;For eg: text-001.&lt;/P&gt;&lt;P&gt;And in 001 i have wrritten msg 'The status of (value of A1) is OK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to pass variable A1 there??&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samruddhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566031#M585436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566032#M585437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Paste this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Y_TEST_1  message-id ytest .&lt;/P&gt;&lt;P&gt;parameters: mat type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  not  mat is initial.&lt;/P&gt;&lt;P&gt;message e001 with  mat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(double click on Ytest message -id and give text as "materail &amp;amp; doesnt exist".)&lt;/P&gt;&lt;P&gt;"&amp;amp; "--&amp;gt;  will be replaced by mat i.e variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues.&lt;/P&gt;&lt;P&gt;Reward with points if hhelpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566032#M585437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566033#M585438</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;Also you can...&lt;/P&gt;&lt;P&gt;*for example lenght 50&lt;/P&gt;&lt;P&gt;DATA field(50) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use---&amp;gt;  CONCATENATE text-001 ' ' A1 into field.&lt;/P&gt;&lt;P&gt;and display "field".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yossi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566033#M585438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566034#M585439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your text-001 was 'The status of &amp;amp;1 is OK', then you could copy the value in variable and then replace &amp;amp;1 with value of the field, not very funny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;worktext = text-001. 
REPLACE '&amp;amp;1' WITH field INTO worktext.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Better way, is to use messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via SE91 you define a message say ZMSG number 001 with text 'The status of &amp;amp;1 is OK'&lt;/P&gt;&lt;P&gt;Then in your program you only have to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE S001(ZMSG) WITH field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The &amp;amp;1 or &amp;amp; characters will be replaced with the parameter of the message (0 to 4 parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566034#M585439</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-07T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566035#M585440</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 SE91 create a message of your message class like this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The status of &amp;amp; is OK"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message e001(ymsg) with text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566035#M585440</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-07T13:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566036#M585441</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;The best way to achieve what you eant to is to use a message.In the message add a place holder &amp;amp; and then when you call the message call it like:&lt;/P&gt;&lt;P&gt;message i320(mssgcalss) with 'A'.&lt;/P&gt;&lt;P&gt;'A' will appear in the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566036#M585441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566037#M585442</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 have to Call a &amp;lt;b&amp;gt;Message&amp;lt;/b&amp;gt; from the program instead of Text Elements&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the Following Statment in Your Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Calling a message in a program&lt;/P&gt;&lt;P&gt;MESSAGE S001(ZMSGCL) WITH A1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Create the Message Class ZMSGCL and the Message Number 001 you have to double click on the Message class ZMSGCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will create the Message class and gives the message numbers from 000 to 999&lt;/P&gt;&lt;P&gt;You enter the following message for 001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;001              The status of &amp;amp;1 is OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &amp;amp;1 is the Variable where the Value of A1 is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the Message class and Execute the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566037#M585442</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-07T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566038#M585443</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;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;But, i have some different scenario.&lt;/P&gt;&lt;P&gt;I don't want to display it as a error or warning message..&lt;/P&gt;&lt;P&gt;This will be the final output of my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am displaying it as follows &lt;/P&gt;&lt;P&gt;A2 = text-001.(where A2 is one variable):&lt;/P&gt;&lt;P&gt;Calling a function module RSSM_ICON_CREATE which creates icon(green colour, or red or yellow) which needs 2 parameters:&lt;/P&gt;&lt;P&gt;text(passing A2) and icon code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then using WRITE statement displaying the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566038#M585443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566039#M585444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;My problem is almost solved.&lt;/P&gt;&lt;P&gt;But it is displaying 'The status of (value of A1)              is OK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the space is comming between A1 value and is??&lt;/P&gt;&lt;P&gt;Any help appreciated..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566039#M585444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566040#M585445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samruddhi,&lt;/P&gt;&lt;P&gt;Then u cannot change the Value Dynamically in the TEXT-001 statement, as it wiil be constatnt.&lt;/P&gt;&lt;P&gt;so u can use some string function there by u can display that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if any issues,&lt;/P&gt;&lt;P&gt;Rewrad with points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566040#M585445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566041#M585446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use message, no extra space should appear, if you use worktext and your value is not full (leading/trailing spaces) use CONDENSE worktext before using the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566041#M585446</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-08-07T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566042#M585447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;My problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-of-variable-in-text-elements/m-p/2566042#M585447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T13:53:36Z</dc:date>
    </item>
  </channel>
</rss>

