Regd : upload of image onto the dialog screen

hi,
I have developed one application in that once the image has been captured on the presentation server..i need to pass the captured image which is in JPG format on to the screen which i have designed......please help me in resolving this issue....
i want code such a way that it has to accept the URL local to  aperticular system.
based on the selected image it has to display the image...
points will be rewarded.

Hi Vinutha,
Have a look at this sample program which has got the SAP standard demo program : SAP_PICTURE_DEMO
PROGRAM y_sap_picture_demo.
TYPE-POOLS : cndp.
selection-screen begin of block b1.
parameters : path type rlgrap-filename.
selection-screen end of block b1.
SET SCREEN 200.
DATA
DATA function LIKE sy-ucomm.         " OK-Code field in screen 200
DATA url  TYPE cndp_url.                " URL-field in screen 200
DATA url2 TYPE cndp_url.               " URL-field in screen 200
DATA picture_control_1 TYPE REF TO cl_gui_picture.
DATA container_1 TYPE REF TO cl_gui_custom_container.
DATA event_tab TYPE cntl_simple_events.
DATA event_tab_line TYPE cntl_simple_event.
DATA return TYPE i.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.
PERFORM f1000_file_select.
PBO
before_output
MODULE before_output OUTPUT.
  SET PF-STATUS 'MAIN0001'.
  IF picture_control_1 IS INITIAL.
Create controls
    CREATE OBJECT container_1
      EXPORTING container_name = 'PICTURE_CONTROL_1'.
    CREATE OBJECT picture_control_1 EXPORTING parent = container_1.
new async implementation since 4.6C
CALL FUNCTION 'DP_PUBLISH_WWW_URL'
  EXPORTING
    OBJID                       = 'ZSATYA.GIF'
    LIFETIME                    = cndp_lifetime_transaction
  IMPORTING
    URL                         = url
  EXCEPTIONS
    OTHERS                      = 1.
concatenate 'file://' path into url.
      CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
       exporting url = url.
  ENDIF.
ENDMODULE.                    "before_output OUTPUT
PAI
after_input
MODULE after_input INPUT.
  CASE function.
At the end of the program destroy the control
    WHEN 'BACK'.
      CALL METHOD container_1->free.
      LEAVE TO SCREEN 0.
Clear the picture
    WHEN 'CLEAR'.
      CALL METHOD picture_control_1->clear_picture.
Load a new picture
    WHEN space.
      CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url    = url
        IMPORTING
          RESULT = return.
      CALL METHOD cl_gui_cfw=>flush.
      IF return = 0.
        url = text-000.
      ENDIF.
  ENDCASE.
  CLEAR function.
ENDMODULE.                    "after_input INPUT
*&      Form  f1000_file_select
      text
FORM f1000_file_select .
  DATA: li_file_table           TYPE filetable,
        wa_file_table           TYPE file_table,
        lws_rc                  TYPE i,
        lws_user_action         TYPE i.
  DATA : lc_title TYPE string.
  CONSTANTS :lc_ext TYPE string VALUE '.',
             lc_directory TYPE string VALUE 'C:\'.
  CLEAR: path.
  REFRESH: li_file_table.
  lc_title = text-049.
*--  Class to select the file.
  CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
      window_title         = lc_title
      default_extension    = lc_ext
      initial_directory    = lc_directory
    CHANGING
      file_table           = li_file_table
      rc                   = lws_rc
      user_action          = lws_user_action
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      OTHERS               = 4.
  IF sy-subrc NE 0.
    MESSAGE e001(zdemet) WITH text-002.
  ENDIF.
  READ TABLE li_file_table INDEX 1 INTO wa_file_table.
  IF sy-subrc = 0.
    path = wa_file_table-filename.
  ENDIF.
endform.                    " f1000_file_select
-SatyaPriya

Similar Messages

  • When uploading videos to iWeb, the video screen gets cut off at the top. It only happens in Firefox, but not in Safari.

    When uploading videos to iWeb, the video screen gets cut off at the top. It only happens in Firefox, but not in Safari. Has anybody else had this problem?

    I'm using pure HTML5 for mobile websites although you need to provide an OGG file for Firefox. See the movie page on this site...
    http://mobile.ezmacwebdesign.com/
    If you don't have an iPhone, grab the browser handle and drag it to the left to reduce the width to see how it responds to mobile devices' fixed width browsers .
    This will play in all modern browsers and on mobile devices. You can use QuickTime Pro for the OGG or OGV conversion or get the freeware Miro Video Converter...
    http://www.iwebformusicians.com/Website-Movie-Video/Easy-Movie-Player.html
    If you only want to upload an MP4, you can use a flash fallback player and this will cover Firefox and those geriatrics that still use older versions of Internet Explorer....
    http://www.iwebformusicians.com/Website-Movie-Video/Flow-Player.html
    http://www.iwebformusicians.com/Website-Movie-Video/Fallback-To-Flash.html
    http://www.iwebformusicians.com/Website-Movie-Video/JW-Media-Player.html
    If you use any of the four fallback players above, take advantage of the fact that you can add a poster image and stop the video file from preloading. This makes for a faster page download time.
    You can also achieve this using HTML5 by adding preload="none" and poster="URL to the poster image" into the code shown on this page...
    http://www.iwebformusicians.com/Website-Movie-Video/HTML5-Video.html

  • How to have multiple images on the same screen? like in the movies where you see several actions at

    how to have multiple images on the same screen? like in the movies where you see several actions at the same time ....
    i don't find  a tutorial in adobe tv....
    thanks !!

    The short answer is that you'll put the source clip(s) for each inset on a different video track, all stacked up. Then use the Scale and Position effects (under "Motion" on the Effect Controls panel) to reduce their size and place them where you want.
    If the content of an inset will involve edited content (where you're cutting among various clips or just trimming out unwanted content from a single clip), then you'll probably find it easier to do all those edits in one sequence, then nest that sequence in the master sequence, where you apply the Scale and Positioning effects. That will save the step of applying the scale and position effects to each edited track item.

  • How do i upload an image in the netweaver developer studio

    Can anybody gimme a detailed description of uploading an image in the netweaver developer studio.

    This could be handy..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30398c47-40a9-2910-4aae-cec9b96d56b0

  • When I upload my images to the web they are not as vibrant. I am using the Save for the Web feature.

    When I upload my images to the wed they are not as vibrant. I am using the Save for the web feature and my sRGB is checked. I dont know what else to do. HELP!

    We really need to see what you're seeing.
    Can you post links to before and after?

  • MDM: Search for images in the dialog window "Select Multiple Images"

    Hi,
    are there possibilities to search for images in the dialog window "Select Multiple Images" (if you want to add a image to a record)?
    I know the possibilities to sort the images and the possibilities with the data groups. But I don't know a possibilities to search for a single image.
    Thanks for any help!
    Best regards, Melanie

    Hi,
          From the question you asked; its not much clear what your clear requirement is; but if its what i get then the solution is:
          How is that you want to select the image? With Image view or By viewing the image itself ? For it when u select "Select Multiple Images" you can find two as "Available Images" and "Selected Images" and in between u can find some buttons, after "All, Add, Remove and None" you can find two buttons "Thumb Nail" and "view Details". I think you can use these buttons for your solution.
          When you select "Thumb Nail" button you can see the image in real and select the image.  OR you can select "View Details" and check the file name or path or the requirement as required.
          CHARAN
    Lead, follow or Get out of way

  • I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    I made a video in imovie and saved it, now i want to carry on making it from where i left but every time i try to add an image onto the end it just goes tot he wrong part of the movie, how do i just add it onto the end?

    Have you seen my User Tipp here
    "Movie Magic" with Stills and Dissolve
    When you 'prep' your stills in any 'picture app', you can do a lot of marvel by simply applying dissolves.
    In your case, I would create a white document (in Pixelmator, Keynote, Photshop, online at pixlr.com, whatever ...) and another with your logo (and further more ones with additional logos). Drag the jpgs into your iMovie Project and apply dissolves  - tadahh! - logos appear on white.

  • How do I duplicate an image on the main screen so that I can edit it and compare the result with the original?

    In Elements 12 How do I duplicate an image on the main screen (as well as the photo bin) so that i can compare any editing with the original?

    In full Editor, go to Edit>Preferences>General and check "Allow Floating Documents in Full Edit Mode"
    Open the image so that you see it in the project bin
    Right click the image thumbnail in the project bin, and duplicate. It will come in as xxxcopy
    On the Arrange icon at the top, select 2-up. You should see the original and the duplicate in the work area

  • Moving apps onto the main screens

    I have too many apps to appear on the main screens and have now deleted some from the main screens. How do I move the apps onto the main screen? My iPhone is not Synced with iTunes for apps, so when I sync it, all apps are deleted. I can obviously access them through Spotlight but want to access them from the main screens.

    I have too many apps to appear on the main screens and have now deleted some from the main screens.
    How do I move the apps onto the main screen?
    I can obviously access them through Spotlight but want to access them from the main screens.
    I'm assuming you mean that you installed more apps than can fit on the 11 home screen pages, and the overflow apps are only findable with iPhone Search.
    1. Delete some apps as you have done.
    2. Settings > General > Reset > Reset Home Screen Layout
    My iPhone is not Synced with iTunes for apps, so when I sync it, all apps are deleted.
    1. Be sure you've authorized your computer in iTunes to the iTunes store account you used to purchase apps.
    2. After connecting your phone to iTunes, and before syncing (disable automatic syncing), right-click your device and select "Transfer Purchases."
    3. You might want to do this before deleting apps from the phone so that you won't have to re-download them from the App Store.
    Message was edited by: modular747

  • How can I combine a lot of text and images on the same screen?

    How can I combine a lot of text and images on the same screen?  I can get a couple of words on the screen with a graphic but not 10 lines.  I need 10 lines on the page with the image. 

    Priscilla,
    I routinely combine 10 lines of 36 pt bible or lecture text to a suitable background using Boris Title 3D.
    Many times the text is too long to fit the screen using Boris, so I devide it into 2 or more parts with no transition between sections.
    In my case, the text is on the screen as the speaker quotes them.
    David

  • Why can only some machines see netboot images at the startup screen?

    I have a 10.6.6 server running as a netboot server. I have about 10 images running on the server that consist of a 10.6.6 and 10.5.8 triage partition and a 10.6.6 and 10.5.8 restore image. Now what I have noticed is that newer machines after starting up and holding down the option key will see all the available images.But on some older intel machines nothing will show up after holding the option key down accept the internal drive itself, But if you hold down the N key it WILL boot to the default image.
    I have made sure and checked that the ethernet port was working on the older machines. I also made sure that I can see the images from the startup control panel. All machines can see the netboot images from the startup control panel, but older intel versions cant. However I was able to sometimes get the old white and black macbooks to see the images but others not.
    Any suggestions as to why some machines will see the images at the startup screen after holding the option key and why some wont?

    That, most likely, means that you have a fairly large number of images and/or they have very long names.
    The number of images that can be displayed is limited by the size of the data packet which contains the NetBoot volume information. Two techniques we use to keep this in check are 1) aggressive purging of outdated images, and 2) use of shorter display names (the one seen in Startup Disk, not the one in the NetBootSP0 folder).

  • Displaying Image on the Front screen

    Hi all,
    I am developing a screen programming.
    it has 10 screens.
    I have uploaded image using SMW0 transaction code and cl_gui_docking_container, cl_gui_picture classes in the 1st screen.
    But it is replicating into all the remaining screens also.
    I have called this subroutine in 1st screen PBO module only.
    But i am unable to understand why it is getting into other screens.
    Please suggest me.
    Thanks in advance.
    Eswar

    Hi,
    Once you are naviagting to other screen by calling the following method:
    CALL METHOD conatiner_name->FREE
              EXCEPTIONS
                CNTL_SYSTEM_ERROR = 1
                CNTL_ERROR        = 2.
    Thanks & Regards,
    Navneeth K.

  • I have a macbook pro, a mini display port to hdmi cable to hook up to my tv (a toshiba 1080p flatscreen).  what do I do to actually get the image on the tv screen?  Do I need another cable for sound?

    I am trying to watch a tv show that I purchased into I-tunes.  I have the cable and it hooks to the TV okay.  The TV shows the regular apple screen that looks like the universe screen - like when it boots up or is doing an upgrade on the OS.  I can't get the image to go from the laptop to the TV.  I tried under displays and it shows the TV as a display but I can't get the image on the TV.......Please help.

    Rwogera wrote:
    I couldn't transmit sound either, do i need another cable like Kim said? i mean it cant be transmitted through this HDMI port? as for me i have one of the latest mac pro with intel core i5..tnx
    I need to know which MacBook Pro you have.  Only mid-2010  and later MBP's transmit sound through MiniDisplay Port to HDMI.  I have no information about the Mac Pro, so you might want to go to that Forum and ask there.

  • How do I recover a "complete" folder and place it back onto the desktop screen.

    This has to be a common problem experienced by all Mac desktop users.  I placed
    an entire blue "file folder" (the common blue folders with tab) into the "trash" and
    cannot take it out or delete it.  I did it by accident because I wanted to "delete" a small
    file, within the "entire blue folder".  Apparently I put the "whole folder" in the "trash" instead
    and now cannot take it out.
    I have an exact copy on my desktop already, but I don't want to delete this folder that I
    placed in the "trash".  For now, I just want to recover it and put it back onto the desktop.
    I don't mind having two copies for now.
    To be extra clear, this is the usual blue "file folder" that contains "favorites", "shared", and "devices".
    Within these are "all my files", "desktop", "your personal files", "applications", etc., etc.
    Within these are "photos", "albums", "pictures", "video", and miscellaneous subsets of files.
    This "entire" folder containing all these items are now in the trash.
    I need to know a simple "step by step" process or instructions on how to take all this
    out of the trash and to put it back on the desktop where I can see it on my computer screen
    as a blue "file folder".
    I'm not very computer knowledgeable except to use the internet and knowing how to use
    data entry software.
    So it would be important to explain to me "step by step".  Any small detail left out and I might mess up.
    I know there must be a simple way of doing this.  All I see now is a pile of papers in the "trash" bin and
    no way to get out my "file folder"
    I appreciate all your help.
    Thank you very much.

    You cannot take a folder out of the Trash to your Desktop without erasing the one on the Desktop. You need to first change the name of the folder on the Desktop. Or you can open the folder that's in the Trash and drag the files onto the Desktop assuming there aren't too many of them.
    But if you have a duplicate on the Desktop why do you need to remove the one that's in the Trash?
    If you feel you must take the folder out of the Trash, then you need to rename the duplicate that's on your Desktop.
    If you wish to put the folder back where it was when you deleted it, then open the Trash window, select the folder, then CTRL- or RIGHT-click and select "Put Back" from the context menu.

  • How to upload an Image in the front end application

    Hi friends,
    I have a requirement in the sense, soon after i login into the application with the username and password....
    I will be having an file browse item, in which i need only to upload the images, soon after selecting the picture and if i give upload means, the picture has to populate immediately above the browse item in the front end itself......
    How to achieve it friends, i dont have idea in uploading the images in the front end itself......
    for example: suppose if i want my photo to keep in the front end Soon after i login into the application means, i will select my picture from the file browse item and immediately after giving upload button, i has to come above the browse field in the front end itself.........
    Inorder for getting the image in the front, whether i need to create a separate region where the image has to come soon after given the upload button....
    help me friends, how to achieve it from the scratch........
    Thanks
    Vel Rs

    Hi peter,
    Thanks for the detailed explanation, i have got an link for doing it and this is that
    http://www.dba-oracle.com/t_easy_html_db_file_browse_item.htm
    While referring that link i couldnt able to understand one thing peter, that is
    While creating the Upload button, in the 7th point in the link it is mentioned like
    On the Branching page enter &APP_PAGE_ID. for the Branch to Page field and click Create Button.  Remember the ending period!i couldnt understand what he is trying to say over there......Can you explain that point by going through that link clearly...Whether he is asking me to create what....
    Thanks
    Vel Rs

Maybe you are looking for

  • About Open Purchase order

    Hello Friends,     Can u explain me about Open Purchaseorder, ie about the tables and fields that are used in open purchase order and also the Tcode.   Thanks in advance,   Bannu.

  • How can I make it open in 64bit by default?

    Everytime i open a ai file it opens in 32bit If i drag it with shift key held to the bottom bar on my windows and let it go over the ai 64 bit program icon it is fine but i wouldl ike it to open in 64bit if i double click it or select open with thank

  • Rgarding Purchase order release workflow

    Hi Gurus, What is the roll of an abaper while using standard workflow for any thing like Purchase order release ? If any one worked pls send me the screen shot both functional as well as technical documentation. Becasue our team is new to workflow. A

  • Creative Muvo TX FM and Yahoo Music prob

    We bought both our daughters a Muvo TX FM for Christmas. We joined Yahoo Music and are trying to transfer songs to the device. We keep getting an error about the license not being valid. Could you tell me if there is a way to fix this? Also, what mus

  • Enhancement object does not exist for enhancement implementation

    Hi Experts, When i tried activating my implementation, i got the sujected error. any kind of inputs will be very helpful. This is an existing implementation and was last changed in October, I just wanted to added few more changes to that. Here is the