Show picture in dialog screen

Hi,
Any body can show me how to show a picture in dislog screen?
Very appreciate for any help.
Rgds
Shaohua

Hello,
You can attach the picture using <b>picture co</b>ntrol.For a <b>dialog screen</b>,make sure that when you create the screen,you choose <b>MODAL DIALOG BOX</b> in <b>SCREEN TYPE</b>.
Now make a cusom container in the screen layout and name it as <b>CONTAINER</b>.Use the sample code below:
REPORT SAMPLE.
DATA: picture type ref to cl_gui_picture,
cont type ref to cl_gui_custom_container.
DATA:
OK_CODE TYPE SY-UCOMM,
p_url type cndp_url.
START-OF-SELECTION.
call screen 100.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'GUI'.
SET TITLEBAR 'xxx'.
if cont is initial.
CREATE OBJECT CONT
EXPORTING
CONTAINER_NAME = '<b>CONTAINER</b>'.
CREATE OBJECT PICTURE
EXPORTING
LIFETIME =
SHELLSTYLE =
PARENT = cont
NAME =
EXCEPTIONS
ERROR = 1
others = 2
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 METHOD PICTURE->SET_3D_BORDER
EXPORTING
BORDER = 1.
CALL FUNCTION 'DP_PUBLISH_WWW_URL'
EXPORTING
OBJID = 'HTMLCNTL_TESTHTM2_SAP_AG'
LIFETIME = cndp_lifetime_transaction
IMPORTING
URL = p_url
IF SY-SUBRC = 0.
CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
EXPORTING
URL = p_url.
ENDIF.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE PROGRAM.
CALL METHOD CL_GUI_CFW=>FLUSH.
endcase.
endmodule.
Also check demo program:<b>RSDEMO_PICTURE_CONTROL</b>
<b>TO GET PICTURES:</b>
Refer this link
1... create a logo using paint shop and save it as tifffile then using RSTXLDMC (is a program name) used to upload logo
2.....create a logo using paint shop and save it as bmpfile then using SE78 you can do this.
<b>http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf
http://www.sap-img.com/human/linking-employee-photos-using-sap-archive-link.htm</b>
Transaction OAOR,
- OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
Regards,
Beejal
**Reward if this helps

Similar Messages

  • Showing Picture At Selection screen.

    Hi,
    I want to show Picture from my PC hard drive at selection screen of abap program ( SAP repo. mime type i know but i want specially from my hard drive on pc ).
    how it can be possible ? if possible give code.
    Thanks,

    Hi
    if you have a simple report " selection screen of abap program 1000  ".... I think it´s not possible....
    but.
    If you have a "handmade" dynpro 0100 > try to use a HTML Container ( its start a Internet Explorer .. ) and shows you the gif, jpeg..
    But it´s easier to use a external/internal UI adress ( Webspace ) for the picture, as the dektop space fg
    Best reg Robert

  • Fox Sports Gametrax for football doesn't load, starts to show picture and then screen goes blank ... baseball gametrax is fine in Firefox

    When I go to Fox Sports in Firefox and click on a football game, the Gametrax begins to load on a page ... showing the field and starting to show more and then it stops and goes blank. Gametrax for a baseball game works just fine. I have updated my version of Firefox to see if that fixes it and it did not.

    Hey Siim789, Welcome to the Nokia Forums!
    Please take your phone to a Local Nokia care point as I believe there is physical damage to one of the camera components or flash. An expert can diagnose your phone if you take it to them.
    I apologise about not being able to further assist you.
    Sheldrick
    Press the 'Accept As Solution' icon if I have solved your problem, Kudos my post if my advice has helped you!

  • My iPhone 4s is stuck after attempting to download the latest update several hours ago. The screen shows picture to connect charger cord to iTunes however, when i do, iTunes is not detecting

    My iPhone 4s is stuck after attempting to download the latest update several hours ago. The screen shows picture to connect charger cord to iTunes however, when i do, iTunes is not detecting the phone when I plug it into my lap top. that has never been a problem before now. please help? I have been with out a phone for hours and I am losing a lot of business.

  • Some snaps show up as black screens when I try to view them as single pictures.Even when I run them in slideshows they show up as black screens.These are jpeg files.How can I avoid this happening?

    Some snaps show up as black screens when I try to view them as single pictures.Even when I run them in slideshows they show up as black screens.These are jpeg files.How can I avoid this happening?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Is there any way under iOS7 to show the full home screen without the 3D band at the bottom reducing picture size?

    Is there any way under iOS7 to show the full home screen without the 3D band at the bottom reducing picture size? I want to see full pictures from my camera roll, not "special effects" from Apple..

    By 3D band are you referring to the Dock area where apps like Safari and Mail live? If so there is no way to remove this.
    Regards,
    Steve

  • I was found I pad Air is not that user friendly than I pad 4 even I pad 2, as I was a TaoBao fans and every time when I get in their link, I pad Air cannot show all the pictures on the screen and very slow. It make me very disappointed about this issue.

    I was found I pad Air is not that user friendly than I pad 4 even I pad 2, as I was a TaoBao (www.taobao.com) fans and every time when I get in their link, I pad Air cannot show all the pictures on the screen and very slow. It make me very disappointed about this.  Could you please help to improve this. Thank you vey much!

    iPad running slow? How to speed up a slow iPad
    http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/
    If You Think iOS 7 Feels Slow Here’s How to Speed It Up
    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
     Cheers, Tom

  • HT4623 i have pressed start to install updates, but now my iphone 4 will not stay on, screen showing picture of cable & itunes sign when i attach to computer it only ask me to restore to factory setting and i dont want to lose my photos ect, Thanks Angela

    i have pressed start to install updates, but now my iphone 4 will not stay on, screen showing picture of cable & itunes sign when i attach to computer it only ask me to restore to factory setting and i dont want to lose my photos ect,
    Thanks Angela

    Your phone is in recovery mode.  All your data are already gone.

  • Image is not showing up on Dialog.

    Hi Guys
    I am getting problem with Dialog. In my Dialog I have created the image field which accepts image from dam by Drag and drop. Whil Iam dropping the image it is showing up inside the Dialog properly and is showing up on the screen also But when I try to edit the image the current image got vanished inside the dialog. I don't understand why it is happening?
    while uploading
    The above image is not showing up while editing. Could you please help me where I am doing wrong?
    here is my dialog.xml
    <normalmode
    jcr:primaryType="cq:Widget"
    collapsed="{Boolean}false"
    collapsible="{Boolean}false"
    hidden="{Boolean}false"
    title="Picture Properties"
    xtype="dialogfieldset">
    <items jcr:primaryType="cq:WidgetCollection">
    <pictureurl
    jcr:primaryType="cq:Widget"
    allowUpload="{Boolean}true"
    autoUploadDelay="1"
    ddGroups="[media]"
    fieldLabel="Picture Link"
    fileNameParameter="./fileName"
    fileReferenceParameter="./fileReference"
    height="{Long}200"
    name="./file"
    requestSuffix="/image.img.png"
    rootpath="/etc/designs/aib/business/images"
    sizeLimit="100"
    uploadUrl="/tmp/upload_test/*"
    xtype="html5smartimage"/>
    <picturealttext
    jcr:primaryType="cq:Widget"
    fieldLabel="Picture Alt Text"
    name="./picturealttext"
    xtype="textfield"/>
    <picturetitletext
    jcr:primaryType="cq:Widget"
    fieldLabel="Picture Title Text"
    name="./picturetitletext"
    xtype="textfield"/>
    </items>
    </normalmode>
    Cheers
    Kirthi

    Hi Jitendra,
    It worked.Perfect. Thank you very much. I want to implement the same in my Custom widget which contains smartimage. But it is not showing up. Here is my Custom widget code for the smartfile but iam not getting Drag and drop jus it is showing up blank. Any idea how can I incorporate the smartfile in my Custom widget.
    // Picture URL
                            this.add(new CQ.Ext.form.Label( {
                                cls : "customwidget-label",
                                text : ""
                            this.bannerImageURL = new CQ.form.SmartFile( {
                                cls : "customwidget-1",
                                fieldLabel : "Picture Link: ",
                                editable:false,
                                allowBlank : false,
                                anchor: '75%',
                                maxLength : 100,
                                cropParameter :"./image/imageCrop",
                                ddGroups : "media",
                                fileNameParameter : "./image/fileName",
                                fileReferenceParameter : "./image/fileReference",
                                mapParameter :"./image/imageMap",
                                rotateParameter : "./image/imageRotate",
                                name : "./image/file",
                                requestSuffix : "/image.img.png",
                                sizeLimit : "100",
                                autoUploadDelay : "1",
                                listeners : {
                                    change : {
                                        scope : this,
                                        fn : this.updateHidden
                                    dialogclose : {
                                        scope : this,
                                        fn : this.updateHidden
                            this.add(this.bannerImageURL);
    Once again thanks for helping me to resolve the issue. The above is another requirement. Any ideas?
    Cheers
    Kirthi

  • How do I get a picture of my screen and then put it in a 'reply' email message? Please!

    I need to take a picture of the screen showing my test results that I took on a website and then email it. When I click on my 'prnt scrn' button and then paste it into my email message it shows up correctly but then when I actually send the message, it shows up as just a bunch of letters and numbers. Please help. Thank you so much

    See also:
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Current Firefox versions have a built-in feature to take a screenshot as part of the Web Developer Toolbar.
    *Web Developer > Developer Toolbar
    A quick way to save a screenshot is to press the "s", then the F1 key will bring up a help pop-up where you can click the "screenshot" entry' or use cursor Up/Down and press the Enter key.<br />
    The default file name is "Screen Shot yyyy-mm-dd at HH.MM.SS.png" in the download directory.
    help screenshot
    You will have to type options yourself because clicking an entry in the pop-up that appears after the first "-" doesn't work (to see available options, use: screenshot --).

  • How to add favorite folders to "Save As.." dialog screen

    Hi all,
    To the Windows Explorer shell it is possible to add favorite folders to the "Save as..." dialog screen (done so by dragging shortcuts to an open "Save as..." screen). [ see screendump for what I am referring to ]
    Now one would suppose the same is possible for the "Save As..." screen from within Adobe Acrobat Pro.
    Unfortunately, it is not: no possibility to add favorite locations there....
    This isn't productive at all, since my docs are on a separate disc in non-standard folders. Each time I wish to save PDF-scanned documents to the harddisk, I need to click my way through too much folders...
    Anyone know a way (registry edit perhaps?) that enables me to add favorites to the Adobe "Save As..." screen?
    (I really need it there, instead of e.g. creating shortcuts on my Desktop...)
    Thanks for your help!
    Willy

    Ok, here are three solutions I tested, all seem to work in my copy of vista.
    The easiest: grab the 'places bar editor' from here: http://melloware.com/download/
    Moderate: use TweakUI, the windows XP utility.  You need to jump through some hoops to get it to run in Vista, but it seems to work fine.  Follow the instructions by n8barber a few posts down: http://forums.techarena.in/vista-help/700353.htm
    Hardest: edit the registry.  I added the string using a single \ in the path, but somehow when i exported it I show a double \.  I guess you will have to fiddle with this.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
    "Place4"="h:\\Project Files"

  • Adding a Forward functionality on the Workitem dialog screen itself

    Hi SDM forum members,
    I am having some issues with adding a forward functionality to a custom dialog screen.
    I  tried to add a forward button on the WI screen , which in the background calls a fm that basically calls
    SWL_SELECT and then SWL_WI_FORWARD FM , for some reason the forwarding does not complete as expected .To explain further , suppose i am forwarding to X user the the WI still shows up in my inbox , and Workflow log shows both users assigned as agent( me and X) and though there is forwarded icon against user X  in the log -> view agent box . The Wi status is ERROR.
    example of error-
    Error handling for work item 000000055578
    Message no. SWF_RUN630
    This explians nothing to me but my guess is the issue is that WI gets completed because i execute it while forwarding it .
    Now if i get the WI id and input it to the above mentioned FM (se37) then it is forwards correctly.i can see the change in SWI1 log too. it is assigned correctly to user X with the forwarded icon and everything.
    So  i thought maybe i need to change the status of the Wi back to ready , but that is not possible, can't go back in status, Error again  .So i tried doing exit_cancelled in the WF , that does not work either , because that does not  forward the WI  atall.
    So my question is has anybody forwarded the WI  by providing an option on the WI execute screen? Is it possible using the SWW fm's ?
    Please let me know if anybody has any  solutions / ideas/ thoughts.
    I wish i could put in some screensshots , but anyways i hope you understand what i am saying , if not maybe i can elaborate further later.
    thank you ,
    Preeta

    Hi,
    Try with these FM's:
    SAP_WAPI_FORWARD_WORKITEM
    And for information: SAP_WAPI_FORWARDING_INFO_GET
    PS: Status change from COMPLETED to READY is not allowed/possible
    Regards,

  • Aperture 3 Not Showing Pictures in Edit But Otherwise OK

    Hi,
    Aperture 3 is not showing pictures in the edit screen. Previews are ok. Moreover, when I zoom in in the edit window, pictures are showing correctly. Also they are shown a second after an adjustment is applied (and, actually, if you hold the slider you can see the picture the whole time). It exports fine.
    I've tried:
    repairing permissions;
    repairing database;
    rebuilding database;
    creating a new library and importing;
    manually repairing the library as per https://discussions.apple.com/message/11700059#11700059
    re-installing Aperture;
    reparing permissions system-wide.
    Nothing helps. I don't have the backup, obviously. System is Macbook Air 1.7 GHz i5, 4Gb.
    Could anyone, please, help?
    Thanks in advance,
    G.

    OK first off the procedure you referenced re: manually trying to rebuild a library is a last ditch, library is on fire, crashes the world procedure. It is never to be done as a first wave troubleshooting step and it is never to be done without a complete backup of the library. Hopefully that hasn;t added anything to the problem.
    Ok that's out of the way. You should start by removing the filter you have on the browser. It's most likely not causing this but there is no need for it and it's only adding a layer of complexity we don;t need now.
    What version of Aperture? If it is 3.2.3 (the latest from yesterday) did this start happening the? If it is not the latest you should upgrade.
    Does this happen with all images in the library or only some? What type of images RAW or JPG?
    If you create a new empty library and import a few images into it does the problem still happen? What if you make a new user and run Aperture as that user on a new library?
    When did the problem start? Was it working OK before with this library?
    Finally have you rebooted since this problem started?

  • Mac Pro DVD player not showing picture, only audio

    When playing a DVD, my DVD player on Mac Book Pro does not show the picture, you only hear the audio. Any ideas?

    This started yesterday for me too--audio works fine, but picture is gone. I tried 4 different DVDs to be sure, and all of them have no picture. The screen is completely black. I guess it's time to go to the Genius Bar...

  • Query variable entry - want modal dialog screen instead of full scr

    hi
    Is there a way to show query variable input screen as a dialog modal window rather than the default full screen mode?
    thanks.
    Message was edited by:
            BWer

    yeah do a restriction and in the restriction screen fill in the variable to be restricted on and save and run query and this dialog screen will pop up

Maybe you are looking for

  • Report Performance Issue and Strange Execution Log Data

    Today we have had a report suddenly start taking a long time to execute. Looking at the Report Server executionLog3 table/view we have the following information for the query in question.   <Connection>       <ConnectionOpenTime>1</ConnectionOpenTime

  • HT1423 Locating Memory Modules for iMac?

    I have a 21.5" iMac with a 3.06 Ghz Intel Core i3 Processor with four slots for Memory, capable of holding four 4 GB 1333MHz DDR3 SDRAM Modules, but I can't find these to purchase. Can someone suggest to me where I can purchase these, please? Thank y

  • How do I make relative links in Acrobat pdf 10

    Hi there, I have a pdf file with sounds attached and would like to make these links relative instead of absolute so the document can be sent to others and still work. Is there a way to do this in acrobat 10 thanks

  • Static variable in servlets

    we were having a code review where one of our colleagues has made a variable public static in a servlet. Now this variable can have different values for different sessions. What I feel is that this particular variable should not be public static for

  • Purchase Order segment field is enabled even though Split Purchase Order option is disabled

    Hi, In Purchase Order top right side, next to Document Number field, there is a Segment field. My understanding was that it comes only if Split Purchase Order setting is enabled in Per Document Settings. But in my Per Document Settings for PO, the Sp