Download a logo from smartform

Hi all ,
Is there any way to download a LOGO from particular smartform .
Thanks & Regards
Vishall

Hi,
This program will help to extract graphic logos from data base system and saves it as a .bmp file on your local PC.
*& Report  Z_DOWNLOAD_GRAPHIC_IMAGE                                    *
*&   This program exports logos from SAP system to a pc file in .bmp   *
*&   format                                                            *
REPORT z_download_graphic_image.
DATA : g_bytecount             TYPE i,
       g_content               TYPE STANDARD TABLE OF
                                    bapiconten INITIAL SIZE 0,
       g_bitmap_file_bytecount TYPE i,
       g_file_name             TYPE string,
       BEGIN OF g_bitmap_file OCCURS 0,
        line(255) TYPE x,
       END OF g_bitmap_file,
       l_bitmaps TYPE TABLE OF stxbitmaps WITH HEADER LINE,
       lit_scrfields TYPE TABLE OF dynpread WITH HEADER LINE.
PARAMETER: p_image LIKE  stxbitmaps-tdname
                   DEFAULT 'ENJOY', "name of the image
           p_file  LIKE  ibipparms-path
                   DEFAULT 'H:\My Documents\enjoy.bmp'.
" Download File path
*F4 help to get file path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      file_name = p_file.
*F4 help search for image files
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_image.
  CALL FUNCTION 'SAPSCRIPT_SEARCH_GRAPHIC_BDS'
    EXPORTING
      selection_screen   = 'X'
      select_entry       = 'X'
      selection_show     = 'X'
    IMPORTING
      e_name             = p_image
    TABLES
      t_selections       = l_bitmaps
    EXCEPTIONS
      nothing_found      = 1
      selection_canceled = 2
      internal_error     = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
START-OF-SELECTION.
  MOVE p_file TO g_file_name.
*Get graphics to BDS
  CALL FUNCTION 'SAPSCRIPT_GET_GRAPHIC_BDS'
    EXPORTING
      i_object       = 'GRAPHICS'
      i_name         = p_image
      i_id           = 'BMAP'
      i_btype        = 'BCOL'
    IMPORTING
      e_bytecount    = g_bytecount
    TABLES
      content        = g_content
    EXCEPTIONS
      not_found      = 1
      bds_get_failed = 2
      bds_no_content = 3
      OTHERS         = 4.
  IF sy-subrc <> 0.
    MESSAGE i208(00) WITH 'Image does not exists.'(000).
  ENDIF.
  IF NOT g_content[] IS INITIAL.
*Convert to BITMAP
    CALL FUNCTION 'SAPSCRIPT_CONVERT_BITMAP'
      EXPORTING
        old_format               = 'BDS'
        new_format               = 'BMP'
        bitmap_file_bytecount_in = g_bytecount
      IMPORTING
        bitmap_file_bytecount    = g_bitmap_file_bytecount
      TABLES
        bds_bitmap_file          = g_content
        bitmap_file              = g_bitmap_file
      EXCEPTIONS
        OTHERS                   = 1.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
*Download to PC
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        bin_filesize            = g_bitmap_file_bytecount
        filename                = g_file_name
        filetype                = 'BIN'
      TABLES
        data_tab                = g_bitmap_file
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        OTHERS                  = 22.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
  ENDIF.
Thanks
Nayan kumar sahu

Similar Messages

  • How transfer logo from smartform (development server ) to quality server?

    hi can anyone tell me how transfer logo in smartform (from development server ) to quality server?

    Hi,
    Logos are not transported. You need to create it in all systems individually.Transports cannot carry image files!! Although you know how to create logos but still for your reference this very popular link:
    http://www.sap-img.com/basis/changing-the-sapgui-logo-on-the-right-hand-side.htm
    Regards.
    Shiva  Kumar

  • Downloading (Exporting) Logo from SE78 in 4.7

    How can I download the logo? Please provide steps.
    I am using OAOR but I am not getting it since I am new to it.
    Its exporting it as FILE0001 with no format.
    Thanks
    Edited by: saad A on May 19, 2009 5:00 PM

    Hi,
      Please check the below link
    http://www.sapfans.com/forums/viewtopic.php?p=143772&sid=f96d555deb30f3669f51d1eb5f680ff6
    Thanks,
    Suma.

  • Downloading (Exporting) Logo from SE78 - R/3 4.6C

    Hi Experts,
    We have a Company Logo in 4.6C. The same Logo needs to be exported (uploaded) from 4.6C and import into ECC.
    I tried with SE78 and I dont find any option to Export Logo.
    Kindly guide me / provide solution how I can get solution for my issue.
    Thanks a lot in advance.
    Thanks,
    Sudarsan

    Hi,
    Try this..
    GO to the transaction OAOR...
    Then give the class name and class type as mentioned below..
    Class name                      DEVC_STXD_BITMAP
    Class type                      OT
    In the description give the description that you have used in SE78..
    Execute..Then in the output..you have the option to export..
    Thanks
    Naren

  • Remove operator logo from 6270

    Does anyone know how to remove the operator logo from a 6270? I've tried sending a blank logo to the phone using Logomanager but it got a "Saving failed" message twice. I've also tried downloading blank logos from a couple of wap sites - they claimed to have saved but I still can't turn operator logo off

    See if you turn off the operator logo under your display setting of Active Standby Mode.

  • How to import a logo from flat file to SAP in SMARTFORM.

    how to import a logo from flat file to SAP in SMARTFORM. i need to know whether TIFF format is used and also the full steps.
    Thanks,

    Hi,
    You can not directly use a logo from a file into a Smart form. First you will have to upload it to SAP. This has to be done only once. Once it is imported into SAP then you can use it in smart form. To import a logo to SAP, goto SE78. Open the tree under GRAPHICS. Select the file type and click on the Import (first button on the toolbar, just before delete button). Select the logo file and give it some appropriate name along with description. Select appropriate type of the image and click Continue. Your logo will be uploaded into SAP from a file. Now in your smartform, Create a Graphic Node, give the name of the logo along with other properties. In this way you can import a logo from a flat file into SAP and consequently in a smart form.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Download logo from R/3

    Hi,
    Is there a way to download a logo stored in R/3 to the desktop?
    Please help.
    Thanks and Regards,
    Mick

    Thanks April King.
    1)I want to download the logo and save it on my desktop.
    2) With respect to selecting the "Business Document Server" radio button, how do I find out the class name?
    Also will the file be downloaded in .bmp format so that I can edit the logo?
    3)I did take a look at transaction SHDI, earlier too, and was selecting the radio button "Database". But didnt know directory name where the logo is saved in the system. The default root directory "SAPDEMO" has some standard sap logos. Any idea on how to find the directory where the logo is saved in the system?
    Just for your information the logo was uploaded using transaction SE78 and the system is 4.6C.
    Regards,
    Mick

  • Cannot download an app from the app store on ipad2, the installing processes all pause with the "waiting....." sign under the app logo.  Anyone please help how to solve this.

    I cannot download any app from the AppStore on my ipad2 v5.1
    The installing processes always stop with the sign "waiting......." and didn't show any progress at all
    Anyone ,please help me solve the problem, thanks

    The ipad question was someone else's.  I have no problem with any other device (laptop, Nook, PS3, Android daughter's phone) at home or work.  Just my iphone.  I tried posting my question a few times and it has yet to show up.  At least this made it online!  I was almost ready to purchase an Ipad3, but this is starting to make a Galaxy Tab look pretty good!
    This problem seems way too common to be a fluke!  My search results yielded- http://search.yahoo.com/search;_ylt=A0oG7hsbdq1PzQMA1N5XNyoA?p=IOS%205%20apps%20 waiting&fr2=sb-top&fr=chr-hp-psg&type=HPNTDF&type_param=HPNTDF
    I performed a sync last night too!

  • My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad one.

    My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad .

    Are you using the Sky Go app to try and watch it ? If so are you logged in with your Sky account ?
    If you are using the app then you could try closing the app completely and see if it works when you re-open it : from the home screen (i.e. not with Sky Go 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Sky Go app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I downloaded an audiobook from Itunes and it only load a portion of the book.  At first it work on my iPhone,  now will not work at all on my iPhone, but works on my computer.  I cannotget it to tranfer to my iphone.

    Looking for some assistance.  I downloaded an audiobook from iTunes.  It was 11 hours long.  Originally it worked on my iPhone, but stopped working after 44 minutes into the book.  I tried to re-load the book but it would only load a portion of it and would then would not play.  I then was able to get the same half of the book loaded into my laptop, but then not onto my iPhone.  Anysuggestions, other than re-purchasing the book?

    See Here...
    Troubleshooting applications purchased from the App Store
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from

    I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from it.  It has worked in the past but I downloaded the update today and photomerge will not work correctly.  Any ideas?

    hedger,
    How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Why can I no longer download/buy tunes from the store since downloading iOS8?k

    Why hy can I no longer download/buy songs from the store since downloading iOS8?

    You could try the following and see if they then download :
    - log out of your account by tapping on your id at the bottom of the Music tab in the iTunes Store app and then log back in
    - disconnect and reconnect to your network (Settings > Wi-Fi)
    - close the iTunes Store app via the iPad's taskbar and then re-open it
    - soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I am not able do download any apps from my app, be it paid or free. I don't see an icon for eg FREE to download an app. I just upgraded to i07 0.2, pls guide if there is some miss in setting..

    I am not able do download any apps from my app, be it paid or free. I don't see an icon for eg FREE to download an app. I just upgraded to i07 0.2, pls guide if there is some miss in setting..

    Jinut21 wrote:
    I am not able do download any apps
    What happens when you try...? Make sure you are in the iTunes Store for your Country...
    If you are... and have a Valid Payment Method associated with your account...
    Try This...
    Close All Open Apps... Sign Out of Your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • I tried to download some music from my sister's iTunes, the album downloaded but some of the songs are grey so I can't play them. Help me!!!!

    I need help with this, I called Apple care but the literature she emailed me didn't help my problem.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete the songs and resync or redownload
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

  • Dynamicaly print logo on smartform(if a person email id change logo ischang

    hi expert,
    actually i want all the variable of smartform in one table.
    so i crated ztable,
    my logo is in database i want to  fetch the logo from z table .
    (v_logo logo name in table how can i fetch logo from database with refrence of email id of person)
    so plz suggest me step by step method.
    i am working on hr module.
    condition is if pernr (person)email id chang logo is also change both fields are in one table .

    Hi
    This is very simple, create all the logo's with the actual name of the person or perner.
    Use a select query on your table and pass the value of the seleceted record as the name of the graphic in the smartform node.
    Something like this:
    MAPPING TABLE"
    PERNER    IMAGE_NAME
    0001           0001
    0002           0002
    in se78, you logo name should be '0001' , '0002' and so on....
    in smartform, based on ur pernr, select a record from mapping table and pass the value of the image name to a variable in the graphics display node.
    this should solve your prob.
    Cheers
    Ravish

Maybe you are looking for