<?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: Background colour smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606675#M1940710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jelena, Eitan and Praveer for your answers. I know it's not the best solution for the requirements but the consultant told me to use an smartform even although I said it was not a good idea. &lt;/P&gt;&lt;P&gt;I've never used cl_gui_html_viewer class, I'll look for some examples that suits my problem..&lt;/P&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 07:25:19 GMT</pubDate>
    <dc:creator>maria_merino</dc:creator>
    <dc:date>2016-02-23T07:25:19Z</dc:date>
    <item>
      <title>Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606671#M1940706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this requirement: I have to create a new smartforms contaning 12 tables, one for each month of the year the user indicates in selection data.&lt;/P&gt;&lt;P&gt;For each day I paint the day and another cell with some additional data, so if the month has 5 weeks I paint 10 rows, as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="239" style="border: 1px solid rgb(0, 0, 0); width: 380px; height: 239px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Mon&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Tues&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Wed&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Thu&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Fri&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sat&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sun&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style="color: #000000;"&gt;6&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG style=": ; color: #000000;"&gt;7&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;9&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;11&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;13&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;14&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;15&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;16&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;17&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;18&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;19&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;20&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;21&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;23&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;24&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;25&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;26&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;27&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;28&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;RT&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RT&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;34&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;des&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;29&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;30&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;31&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;vac&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;vac&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;vac&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As each month is different from the rest and starts/finish in a differente day of the week, I used 12 loops within the smartform, one for each month. And it works fine. But now they fant this format for the calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/892351" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The user wants sundays to be shadow in red (I did it) and the empty cells painted in grey, and here is my problem. As it is an internal table, I can't paint in grey dinamically the cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do that ? Should I have done the smartform different ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 12:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606671#M1940706</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-02-22T12:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606672#M1940707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Smartforms are not really great for this kind of artwork, unfortunately. As you noted, there is no option to change color dynamically, so the only thing that comes to mind is a very ugly solution with multiple templates and conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if PDF forms have something more suitable. But why such calendar has to be included in a form? Forms in SAP are meant mostly for rather simple document output. It's hard to imagine a scenario where multiple month calendar would be a "must have" in a business document. Perhaps the users should look for some third party tools if they require such elaborate outputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 21:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606672#M1940707</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-02-22T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606673#M1940708</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;As &lt;A __default_attr="396393" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Jelena Perfiljeva" href="https://community.sap.com/"&gt;&lt;/A&gt;&amp;nbsp; mention SAP is not the solution for all the problem in the world...&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML can do a better job .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is HTML calendar that was generated using Java .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/892824" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also generate HTML using ABAP and then use cl_gui_html_viewer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This HTML can be opened by Excel .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/892825" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or a browser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/892857" /&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>Tue, 23 Feb 2016 05:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606673#M1940708</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-02-23T05:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606674#M1940709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you looking for the calendar solution in Smartform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest go with HTML solution, there you can got lot's of option to do all color related artwork.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will display cool in HTML view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;cl_gui_html_viewer&lt;/STRONG&gt; class for display HTML views in SAP fronted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For help you can refer below demo programs from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 10px; font-size: 11px; color: #333333;"&gt;&lt;STRONG&gt;SAPHTML_DEMO_CN&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 10px; font-size: 11px; color: #333333;"&gt;&lt;STRONG&gt;SAPHTML_EVENTS_DEMO&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: 10px; font-size: 11px; color: #333333;"&gt;&lt;STRONG&gt;SAPHTML_LONGTEXT_DEMO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 05:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606674#M1940709</guid>
      <dc:creator>ipravir</dc:creator>
      <dc:date>2016-02-23T05:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606675#M1940710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jelena, Eitan and Praveer for your answers. I know it's not the best solution for the requirements but the consultant told me to use an smartform even although I said it was not a good idea. &lt;/P&gt;&lt;P&gt;I've never used cl_gui_html_viewer class, I'll look for some examples that suits my problem..&lt;/P&gt;&lt;P&gt;Thanks a lot !!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606675#M1940710</guid>
      <dc:creator>maria_merino</dc:creator>
      <dc:date>2016-02-23T07:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Background colour smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606676#M1940711</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;A sample usage of CL_GUI_HTML_VIEWER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here &lt;A href="https://scn.sap.com/message/15211349#15211349" title="https://scn.sap.com/message/15211349#15211349"&gt;How to refresh HTML container from HTML button ... | SCN&lt;/A&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>Tue, 23 Feb 2016 08:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-colour-smartform/m-p/11606676#M1940711</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-02-23T08:46:00Z</dc:date>
    </item>
  </channel>
</rss>

