<?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: uploadlogo to module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558444#M252699</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;any suggestions&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 17:03:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T17:03:20Z</dc:date>
    <item>
      <title>uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558428#M252683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When i upload sap icons its works fine but when i upload a image from my desktop,it doesn't show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if iam wrong anywhere&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: go_picture TYPE REF TO cl_gui_picture,&lt;/P&gt;&lt;P&gt;go_picture_container TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF go_picture_container IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_picture_container&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;container_name = 'CONT'.&lt;/P&gt;&lt;P&gt;CREATE OBJECT go_picture&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = go_picture_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set display mode (Stretching, original size etc.)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD go_picture-&amp;gt;set_display_mode&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DISPLAY_MODE = CL_GUI_PICTURE=&amp;gt;display_mode_fit_center&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GO_PICTURE-&amp;gt;load_picture_from_url&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;url = 'file://C:\Documents and Settings\gund\Desktop\UNTITLED.JPG'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RESULT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;ERROR = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL METHOD go_picture-&amp;gt;load_picture_from_sap_icons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;icon = icon_delete&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS error = 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&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;Please advice me &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, 12 Sep 2006 20:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558428#M252683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T20:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558429#M252684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;It should work...&lt;/P&gt;&lt;P&gt;Try to bring your picture to c:temp&lt;/P&gt;&lt;P&gt;then file://c:\temp\testpic.jpg should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can you do...&lt;/P&gt;&lt;P&gt;Have a look the the report SAP_PICTURE_DEMO.&lt;/P&gt;&lt;P&gt;Type ypur URL there and see if it works.&lt;/P&gt;&lt;P&gt;If not... The URL may not be correct or you may not have permission to read from the directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it works in the SAP_PICTURE_DEMO, there may be an error in your report.&lt;/P&gt;&lt;P&gt;Just check out the SAP_PICTURE_DEMO it's a good example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be nice if that helped a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 05:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558429#M252684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T05:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558430#M252685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer and all,&lt;/P&gt;&lt;P&gt;I checked in sap_picture_demo .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it says error loading screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions in order to acheve results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 12:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558430#M252685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T12:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558431#M252686</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 did something like this&lt;/P&gt;&lt;P&gt;data piccon type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;data my_piccon type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;data my_pic type ref to cl_gui_picture.&lt;/P&gt;&lt;P&gt;data my_container type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;invoking the static attribute of the class.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  my_container = cl_gui_container=&amp;gt;default_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object piccon&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      parent                      = my_piccon&lt;/P&gt;&lt;P&gt;      container_name              = 'IMG_CON'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   STYLE                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LIFETIME                    = lifetime_default&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      repid                       = sy-repid&lt;/P&gt;&lt;P&gt;      dynnr                       = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NO_AUTODEF_PROGID_DYNNR     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      cntl_error                  = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error           = 2&lt;/P&gt;&lt;P&gt;      create_error                = 3&lt;/P&gt;&lt;P&gt;      lifetime_error              = 4&lt;/P&gt;&lt;P&gt;      lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;      others                      = 6&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object my_pic&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LIFETIME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SHELLSTYLE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      parent = piccon&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NAME   =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      error  = 1&lt;/P&gt;&lt;P&gt;      others = 2&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Can be used to load the picture from the presentation server.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method my_pic-&amp;gt;load_picture_from_url&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      url    = 'file://D:\mydata\Pictures\Misc_pics 1\fw1.jpg'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   RESULT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      error  = 1&lt;/P&gt;&lt;P&gt;      others = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I might have missed some declaration but you can get an idea from this &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 12:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558431#M252686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558432#M252687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;If the SAP_PICTURE_DEMO cannot open the picture it's a problem with the path or the picture then !&lt;/P&gt;&lt;P&gt;The picture-control only can open BMP and JPG pictures.&lt;/P&gt;&lt;P&gt;It cannot open TIFF, for example.&lt;/P&gt;&lt;P&gt;So check out if your file is a propper jpg-file !&lt;/P&gt;&lt;P&gt;To check out you may download a jpg-file from the internet or soething else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the path and file permissions and the correct spelling of the path... then in shuld work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 12:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558432#M252687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T12:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558433#M252688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi RAINER AND ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can tell how to give the location of the image in sap_picture_demo or do i need to add any in front or end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave it as&lt;/P&gt;&lt;P&gt;C:\SAMPLE.JPG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the image that everybody has in their system&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 13:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558433#M252688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558434#M252689</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;Give it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file://D:\mydata\Pictures\Misc_pics 1\fw1.jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;P&gt;Make sure your file is there where you define &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 13:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558434#M252689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558435#M252690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worked for me now in SAP_PICTURE_DEMO when i entered as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file://C:\pic1.bmp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can see the image, but i gave in ur code i doesn't show in my module pool.&lt;/P&gt;&lt;P&gt;Please let me know wheter ur code works for bmp also&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 13:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558435#M252690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T13:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558436#M252691</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;Yes, it will work for BMP also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the custom control as 'IMG_CON'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558436#M252691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558437#M252692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nishant and all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one point out the problem for me&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_9999.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_9999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_9999 OUTPUT.&lt;/P&gt;&lt;P&gt; SET PF-STATUS '9999'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data piccon type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;data my_piccon type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;data my_pic type ref to cl_gui_picture.&lt;/P&gt;&lt;P&gt;data my_container type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;invoking the static attribute of the class.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;my_container = cl_gui_container=&amp;gt;default_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object piccon&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = my_piccon&lt;/P&gt;&lt;P&gt;container_name = 'IMG_CON'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STYLE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LIFETIME = lifetime_default&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;repid = sy-repid&lt;/P&gt;&lt;P&gt;dynnr = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_AUTODEF_PROGID_DYNNR =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cntl_error = 1&lt;/P&gt;&lt;P&gt;cntl_system_error = 2&lt;/P&gt;&lt;P&gt;create_error = 3&lt;/P&gt;&lt;P&gt;lifetime_error = 4&lt;/P&gt;&lt;P&gt;lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;others = 6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object my_pic&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;LIFETIME =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SHELLSTYLE =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;parent = piccon&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NAME =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;error = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Can be used to load the picture from the presentation server.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call method my_pic-&amp;gt;load_picture_from_url&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;url = 'file://C:\sample.jpg'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RESULT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;error = 1&lt;/P&gt;&lt;P&gt;others = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD my_pic-&amp;gt;set_display_mode&lt;/P&gt;&lt;P&gt;       EXPORTING display_mode = my_pic-&amp;gt;display_mode_fit_center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_9999  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558437#M252692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558438#M252693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you tell me what's the name of the control that you have created in Screen layout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558438#M252693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558439#M252694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITS IMG_ICON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN YOU SEND UR EMAIL ID.&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558439#M252694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558440#M252695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORRY ITS IMG_CON JUST AS I USED IN MY PROGRAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558440#M252695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558441#M252696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why you are not seeing the image even after giving the source code correctly may be because you may not have activated your screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go to the screen and check if it is activated or not.If not, activate it. Sometimes, I also encountered the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another important thing while using class methods and function modules is that always you should uncomment the Exceptions part of the methods or function modules so that you can identify the type of error, if an error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also execute the program in the debugging mode to find out the value of SY-SUBRC after each step is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks correct to me assuming that the container name is CONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can do one more thing. You can try loading the picture from another folder like 'file://D\temp\pic.jpg' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.JPG and .BMP files can be uploaded using this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also refer this link for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="175936"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Close the thread once the problem is solved.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 14:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558441#M252696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558442#M252697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Brother did u add the follwing lines!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_gui_custom_container DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;CLASS cl_gui_container DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;CLASS cl_gui_picture DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are needed to load the definition of the classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 15:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558442#M252697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558443#M252698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i haven't declared before .&lt;/P&gt;&lt;P&gt;But i have declared now in my top include but i don't see anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give ur email id so that i can send you screen shots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for valuable advice and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 15:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558443#M252698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: uploadlogo to module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558444#M252699</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;any suggestions&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 17:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploadlogo-to-module-pool/m-p/1558444#M252699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T17:03:20Z</dc:date>
    </item>
  </channel>
</rss>

