INSERT PICTURE / LOGO

sir,
how we insert picture or logo in abap programm with in module pool. by oops method
thankx in advance

Check the following code:
REPORT  ZTEST12.
* Type declarations.....................
TYPES pict_line(256) TYPE c.
* data declarations......................
DATA :init,
      container TYPE REF TO cl_gui_custom_container,
      editor    TYPE REF TO cl_gui_textedit,
      picture   TYPE REF TO cl_gui_picture,
      pict_tab TYPE TABLE OF pict_line,
      url(255) TYPE c.
CALL SCREEN 100.
* Dialog modules......................................
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN100'.
  IF init is initial.
    init = 'X'.
    CREATE OBJECT:
           container  EXPORTING container_name = 'PICTURE_CONTAINER',
           picture    EXPORTING parent = container.
  ENDIF.
  IMPORT pict_tab = pict_tab FROM DATABASE abtree(pi) ID 'ENJOY'.
  CALL FUNCTION 'DP_CREATE_URL'
       EXPORTING
            type    = 'IMAGE'
            subtype = 'GIF'
       TABLES
            data    = pict_tab
       CHANGING
            url     = url.
  CALL METHOD picture->load_picture_from_url EXPORTING url = url.
  CALL METHOD picture->set_display_mode
       EXPORTING display_mode = picture->display_mode_fit_center.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE TO SCREEN 0.
ENDMODULE.

Similar Messages

  • 'insert picture' is not working

    hi
    i'm trying to insert a picture (logo) into report:
    Main menu -> Insert -> Picture... ->
    then i click somewhere in the report and i get browser dialogue where i choose .bmp file. After that a rectangle appears with a line by it's diagonal in my report but no picture at all. what's wrong?
    best regards, Pavel

    Elizabeth Nielsen,
    yes, you understood me right, i did everything as you say.
    but i've solved it!
    the problem is that the bmp file name had cyrillic(russian) characters, i renamed it into latin characters and it's ok now! Seems BO doesn't like russian language
    thanx for reacting.

  • Insert picture in selection screen.

    Hi,
    Can some one suggest how to insert picture in selection screen?
    Thanks
    Deep

    Hi,
    I have inserted a picture in my classical report. According to the position where you want can be adjusted. If you know how to upload Logo in SMW0 then upload and just copy paste the code that i have shown will display the image.
    DATA: docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
    html_table LIKE w3html OCCURS 1,
    return_code LIKE w3param-ret_code,
    content_type LIKE w3param-cont_type,
    content_length LIKE w3param-cont_len,
    pic_data LIKE w3mime OCCURS 0,
    pic_size TYPE i.
    * END OF DO NOT CHANGE----------------------*
    FORMAT HOTSPOT ON.
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    DATA: ANSWER TYPE I.
    ANSWER = A + B.
    WRITE:/ ANSWER.
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    * PERFORM show_pic1.
    START-OF-SELECTION.
    *& Form show_pic
    FORM show_pic.
    DATA: repid LIKE sy-repid.
    repid = sy-repid.
    CREATE OBJECT picture_control_1 EXPORTING parent = docking.
    CHECK sy-subrc = 0.
    CALL METHOD picture_control_1->set_3d_border
    EXPORTING
    border = 5.
    CALL METHOD picture_control_1->set_display_mode
    EXPORTING
    display_mode = cl_gui_picture=>display_mode_stretch.
    CALL METHOD picture_control_1->set_position
    EXPORTING
    height = 90
    left = 40
    top = 30
    width = 190.
    *CHANGE POSITION AND SIZE ABOVE*****************
    IF url IS INITIAL.
    REFRESH query_table.
    query_table-name = '_OBJECT_ID'.
    *CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
    query_table-value = 'YREDDY'. "name which u have given in SMW0
    APPEND query_table.
    query_table-value = 'YLOGO'.
    APPEND query_table.
    *FORMAT HOTSPOT ON.
    CALL FUNCTION 'WWW_GET_MIME_OBJECT'
    TABLES
    query_string = query_table
    html = html_table
    mime = pic_data
    CHANGING
    return_code = return_code
    content_type = content_type
    content_length = content_length
    EXCEPTIONS
    object_not_found = 1
    parameter_not_found = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'DP_CREATE_URL'
    EXPORTING
    type = 'image'
    subtype = cndp_sap_tab_unknown
    size = pic_size
    lifetime = cndp_lifetime_transaction
    TABLES
    data = pic_data
    CHANGING
    url = url
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = url.
    FORMAT HOTSPOT OFF.
    ENDFORM.

  • I need to insert picture in my VI!!! Help!

    I need to insert picture (for example logo of my firm) in my VI! How can I do it? What I need, is static picture, but it's possible to locate the picture from file too.
    Thank You!

    DrON;
    On your VI, go to the Edit menu and select Import Picture From File.... A dialog will appear where you need to locate the image file in your system. Then, go again to Edit and select Paste. Your image will be pasted in your VI.
    If you want to use a Picture indicator, check the example section of LabVIEW's help. There are example on using the picture VIs.
    Regards;
    Enrique
    www.vartortech.com

  • How do I insert multiple photos into an excel document vs inserting each individually?  Insert, Picture, From FIle...now what?  it only allows me to choose 1 at a time.

    Help - How do I insert multiple photos into an excel document vs inserting each individually?  Insert, Picture, From FIle...now what?  it only allows me to choose 1 at a time.

    https://discussions.apple.com/thread/3383532?tstart=0
    Stefan

  • How to Insert picture in Database & how to Show this picture in Report/form

    Hi
    I have create a table and want to insert picture in this table in Blob format and also want to show this picture in Form / Reports
    Regards
    Shahzaib ismail

    Hi Shahzaib,
    create table
    graphics_table
    bfile_id number,
    bfile_desc varchar2(30),
    bfile_loc bfile,
    bfile_type varchar2(4)
    SQL> INSERT INTO graphics_table
    2 VALUES(4,'April Book of Days Woodcut',bfilename('GIF_FILES','APRIL.JPG'),'JPEG');
    1 row created.
    In this way you can inserrt picture inside the database.
    Regards
    Rajat

  • How to insert a logo in sap script?

    How to insert a logo in sap script?

    Steps to insert a logo,
    I
    1. First save the file as BMP
    2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
    make it Zoom as 100% and save as *.TIFF
    3. Open SE38 and execute program RSTXLDMC
    4. Give your TIFF file path name
    5. Select Bcol (for Color)
    6. TEXT ID will be ZHEX-MACRO-*.
    7. Inplace of * write your own logo name (ZCOMPANYLOGO)
    8. Execute the program
    9. Now Goto SE71 create your ZFORM
    10. Create logo window
    11. Goto text element of logo window
    II
    1. Goto SE71 Change the mode to GRAPHICAL
    2. Choose the Graph Tabstrips
    3. Now type in some name for the LOGO WINDOW
    4. Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP
    5. The code will be written automatically. You just need to drag and drop wherever you want
    the graphics to be.
    III
    1 ) create a bmp file in local system
    2 )RSTXLDMC FM to upload image in tiff format.
    Also check these links...
    Logo in SAP SCRIPT
    Re: Uploading a (Image) Logo in your Sap Script
    Need Urgent Help for Logo Uploading the Sap Script
    sap script  logo
    http://www.sap-img.com/ts001.htm
    Regards,
    Sakthi Sri.

  • Insert pictures and video

    Hello,
    How can I insert videocuts into a show I recorded myself? I am in the studio, presenting a show and during the presentation I want to show pictures and video to the audience.
    * I wil first record the show in our studio
    * And then I insert pictures and video on certain places in the recorded show.
    Is this possible in Imovie 8 or in one of the older imovies.
    Or must I use finalcut for this?
    Thanks! Richard - The Netherlands

    Hello, Richard,
    I have not used iMovie 8 much, so don't know about doing this in that version, but you can easily do this in iMovie HD 6.
    I am not sure exactly how you want to do this. It depends on whether you want to place those photos and other video clips OVER the recorded show, so that the audio from the recorded show plays while the photos and videos are displayed, or if you want to have them ADDED in the midst of the recorded show.
    If you just want to insert photos and videos in the midst of your recorded show, first import your recorded show into iMovie6. Put it in the timeline. Move the playhead to the point where you want the first photo, and do a 'split video at playhead' command, drag the photos/videos to the time line there. They will be added between the split video clips. Repeat for all the photos/videos.
    It sounds as if the option you want is 'Paste Over at Playhead' which allows the photos and videos you add to be seen over the recorded show, so that the audio plays continually. In tv and movies this is done when someone is talking about something and then there is a 'cut-away' to a photo or video clip of whatever the person is describing so the audience can visualize what he is saying while he is speaking.
    Here are instructions for doing that from iMovie HD6 Help:
    *Inserting video clips or photos in a passage while maintaining running audio*
    +You can paste a new video clip or photo over an existing clip while retaining the audio from the original clip. The video cuts away to a new picture, but you continue to hear the sound from the original clip.+
    +To replace images in a clip while maintaining running audio:+
    +Choose iMovie HD > Preferences, and then click General.+
    +Select the "Extract audio when using Paste Over at Playhead" checkbox.+
    +Select the video or photo that you want to insert.+
    +Choose Edit > Cut or Copy.+
    +Do one of the following:+
    +To paste the entire video you selected in step 3, position the playhead at the first frame to be replaced. When you paste the clip, it will replace a portion of video equal to its length.+
    +To paste over a specific segment of your movie, select the part of the video clip you want to paste over. (To learn more about selecting part of a video clip, see Related Topics below.)+
    +If the video you're pasting is longer than the selected frame range, the excess video will not be pasted. If the video you're pasting is shorter than the selected frame range, the extra space will be filled with a color clip (or the still image, if you paste a still image).+
    +Choose Advanced > "Paste Over at Playhead."+
    +The audio track of the original video is retained and appears in audio track 1 of the timeline viewer.+
    Post back if this does not address what you are trying to do.

  • Insert picture and sound without external sources

    how can we insert pictures and sound without using external sources??
    i mean , i want to make the picture somehow embeded inside the program, not from external source,
    can any1 help?/

    I sense that what you need to do is create a Jar (java archive) file for your code and images and any other resources. Do a search on the forum for the terms -- jar pictures getresource -- and you'll get a ton of helpful threads. Also check Google. Some useful links:
    http://java.sun.com/docs/books/tutorial/deployment/jar/
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=5183949
    http://www.cs.princeton.edu/introcs/85application/jar/jar.html

  • How to include the insert picture option in the PDF form?

    Hi, Can some one please help How to include the insert picture option in the PDF form? I am using acrobat XI pro and trying to use an evaluation form which requires to insert product pictures.

    Here's a link to a previous topic where this was discussed: http://forums.adobe.com/message/6050458

  • Inserting Pictures in an email

    Can someone help me figure out what the procedure is for getting the second window to come up for inserting a picture into your email.
    I hold my finger down on the screen until the copy paste panel appears with an arrow at the right side which is supposed to take you to the
    second screen where the insert picture is but most of the time it just disappears and you have to keep trying until it finally shows up.

    If you're using Mail on your iPhone, your best bet is to do this:
    Go into your photo stream, or camera roll, by selecting "Photos" from your apps.
    Press "Select" in the upper righthand corner of the screen.
    Tap each picture you want to include in the email, which will place a blue and white checkmark on each photo selected.
    When you've finished selecting the photo(s) you want to email, tap the icon in the lower lefthand corner of your screen, which looks like a box with an up arrow in it.  From the options that come up, choose "Mail" or "Email" (I don't recall offhand which it is).
    This will allow you to create a new email message with the selected photo(s) attached.
    If your'e trying to use a different email application, or email the photos in a different fashion, please provide me with more details so I can try to help you.

  • HT5361 When inserting pictures in a new mail message using the " photo browser" button I can view and select photos but the " choose "  button is gone. What have I done wrong?

    When inserting pictures in a new mail message using the " photo browser" button I can view and select photos but the " choose "  button is gone. What have I done wrong?

    Hi Liz,
    Sorry to hear you are having a similar problem.  Last night I went to the tool bar at the top of iphoto, clicked on "File",  then clicked "Browse Backups" in the drop down menu.    I have an external hard drive that is set up to Time Machine.   The Browse Backups  opened the iphoto pages in the Time Machine.  I selected a date one day ahead of the day I performed the now infamous update, and it showed my iphoto library as it had existed that day.   I then clicked  "Restore Library" at the bottom right corner of the Time Machine screen.   Roughly 2 hours later my iphoto was back to normal.   When I opened iphoto there was a message saying I need to upgrade my program to be compatible with the new version of iphoto(version 9.2.1).  I clicked "Upgrade" and within seconds it had done whatever upgrading it needed to do. 
    The only glitch in the restoration was that it restored the library as it appeared last week, so I no longer had photos I had imported this past weekend.   I simply went back to the Browse Backups in the drop down menu,  when Time Machine opened I selected the page showing my pictures from this weekend and again said to Restore Library.   Roughly 45 minutes later the library was restored including the most recent photos.  
    I am now a happy camper. 
    I don't know if any of this will be of help to you because your email says you are having trouble with photos imported after the upgrade was performed.   Have you had any pop up notices when you first open iphoto,  that tell you you need an upgrade to be compatible with the new iphoto?     If so have you clicked "upgrade"? 
    Good luck Liz,  if you have Time Machine running as a back up to your library, maybe you wil be able to get help there, by following my instructions above.   Otherwise,   good luck with your investigations.   I'd be interested in hearing how you make out.
    Karen

  • How can I insert a logo into my signature but keep the typed signature?

    I want to type info & also insert my logo
    Example:
    Carl Clouser
    Director of Sales
    TRYST Electronic Smoking Products
    [email protected]
    724-679-4212
    www.enjoytryst.com
    www.facebook.com/enjoytryst
    www.twitter.com/enjoytryst
    Insert logo here
    plus I want the links to be hyperlinks which can be clicked on

    Hello,
    See here information about signature:
    *[https://support.mozilla.org/en-US/kb/signatures Signatures]

  • Inserting Picture (from Web- through Webdav) to Word document using VSTO code

    Hi,
    I have been trying to insert an image/picture to current selection in word. with help of code -
    Microsoft.Office.Interop.Word.InlineShape s = this.Application.Selection.InlineShapes.AddPicture(
    @"http://127.0.0.1:9001/test/myimage.png", true, true, Type.Missing);
    This code works fine if image is on desktop or network shared location but some issues for URL exposed through Webdav.
    On inserting the picture word shows - "The linked image cannot be displayed....." message. If we close and open word document again then image appears properly.
    Some observations:
    1. If we use same option through Ribbon  "Insert -> Picture -> Enter path and click on "Link to File" then we get Prompt for Wevdav password (Only once, later Word caches it) and linked images appear properly.
    2. Updating the shape explicitly wouldnt help. 
    s.LinkFormat.Update();
    What we are looking for is, Does Ribbon "Insert" functionality do something additional to prompt Webdav authentication to cache? if we want to achieve the same? what needs to be invoked before we make call to AddPicture API?
    Thanks
    H

    Thanks for the response.. 
    No, when document is opened again, then you dont need to enter the password. 
    Somehow on document open event MS word knows how to retreive password from cookie for given domain.
    When you insert the image using ribbon -> insert picture option, 
    MS Word first looks into cache if the domain cokkie already available then bypass authentication/password prompt
    Otherwise it would show the prompt and store the cookie in cache again.
    The mystry is how MS-Word interacts with this "cached cookies"
    while doing more reading on this, it seems MS Word has been using Klink.dll for this kind of functionality https://support.microsoft.com/en-us/kb/899927 but it would be great if you can provide more pointers.
    >>Could you share an image link of Webdav?
    Since, it's my local webdav server, you would not be able to access the image link, may be you can upload an image to sharepoint (as sharepoint also supports webdav) and use that for reproducing this problem at your end.
    Thanks
    H

  • Perform as pdf form with the ability to insert pictures

    How to perform as pdf form. with the ability to insert pictures?

    You want your users to be able to insert images into a PDF form? That is only possible if they're either using Acrobat, or if they're using the latest version of Reader (XI) and the image is in PDF format.

Maybe you are looking for

  • Is there ANY WAY to get my files (mainly music) off of my ipod?

    My 3rd generation Ipod touch went into recovery mode, and it says I must restore it in order to use Itunes. The thing is, my laptop broke before I had a chance to back up any of the files. My question is, is there any possible way to get the files (m

  • Error in File content conversion in the target

    hi I'm doing a content conversion at target. my target structure while sending is like: <MT>    <Header>         <a>   </Header>    <BODY>      <b>   </BODY>     <filename_output>     <filename> </MT> however in the target i have to ignore the last 2

  • Blur Problems (bug report submitted)

    I've submitted a bug report and will submit this again since its a better version of when I sent them before. The problem is this: - Adobe Acrobat Professional shows blur in certain situations. In another situation, the same file opens correctly. The

  • Quicktime to Flash Conversion- No sound

    I have some videos that I edited in Sony Vegas that have been exported as QT movies. I just upgraded to QT Pro so I can convert to flash for a client who want to put the video's on their web site. I convert to FLC and the video works but there is no

  • Help! cant load Java due to missing file

    I have tried to load Java on my pc which is running XP and I get this error message.can anyone help please........ it says this file is missing. http://jdl.sun.com/webapps/download/getfile/1.5.0_02-bo9/windows-i586//jp150020.cab. without this I am un