Displying Imaged at Runtime

Hi,
In my project there is a requirement that in backend database (oracle) we have stored the image files of all the employees in a company . The number of images will be in thousands . At runtime i have to display them dynamically in webdynpro screen .
Can anybody tell me how to achieve this .
Thanks a lot .

Hi Jain
First of all create a separate column in your backend to store the image name along with extension{Suppose imgName}
1. Copy your images into <Project Name>\src\mimes\Components\<your component>\
2. Create a Node Attribute "Image" with cardinality Property as 1..1
2)a Create 2 value attrubutes
i) imageAlt [Calculated Property as TRUE]
ii) imageSource [Calculated Property as TRUE]
now in your NWDS do the following
2)b Bind the imageAlt attribute to ImageUIElement's alt
2)c Bind the imageSource attribute to ImageUIElement's source
tmpImageName=wdContext.CurrentContextElement.getimgName[this statement retrieves the image name from back end
tmpImgaeAlt=wdContext.CurrentContextElement.getEmpName[this statement retrieves the name from back end where in
we use this name as the tooltip for the image]
wdContext.currentImageElement.setImageSource(tmpImageName);
wdContext.currentImageElement.setImageAlt(tmpImgaeAlt);
this will increase db retrival speed.
hope this will solve your purpose
Best Regards
Chaitanya.A

Similar Messages

  • Changing Images at Runtime...it's sending me nuts (I'm a newbie, go easy)

    Hi all,
    I am trying change images at runtime and quite frankly it's driving me nuts. I'm pretty new to Java and don't understand some of the principles but I'm trying. I have this code below, that loads up a few images. I want to be able to change some/all of these images either on a timed even or on a button press, but all the things I've tried don't work. Can someone offer me some help....thanks in advance
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class bc extends JFrame implements ActionListener {
         public static void main(String[] args) {new bc();}
         bc() {
              //setUndecorated(true); // - this removed the titlebar!
                    setTitle("BC...");
              setSize(350,125);
              setResizable(false);
              setLocation(50,50);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setBackground(new Color(0,0,0));
              getContentPane().setBackground(new Color(255,255,255));
              JPanel hours = new JPanel();
              hours.setLayout(new GridLayout(4,2));
              hours.add(hour14);
              hours.add(hour24);
              hours.add(hour13);
              hours.add(hour23);
              hours.add(hour12);
              hours.add(hour22);
              hours.add(hour11);
              hours.add(hour21);
              JPanel mins = new JPanel();
              mins.setLayout(new GridLayout(4,2));
              mins.add(min14);
              mins.add(min24);
              mins.add(min13);
              mins.add(min23);
              mins.add(min12);
              mins.add(min22);
              mins.add(min11);
              mins.add(min21);
              JPanel secs = new JPanel();
              secs.setLayout(new GridLayout(4,2));
              secs.add(sec14);
              secs.add(sec24);
              secs.add(sec13);
              secs.add(sec23);
              secs.add(sec12);
              secs.add(sec22);
              secs.add(sec11);
              secs.add(sec21);
              JPanel helptext = new JPanel();
              helptext.setLayout(new GridLayout(4,2));
              helptext.add(new JLabel("8"));
              helptext.add(new JLabel("4"));
              helptext.add(new JLabel("2"));
              helptext.add(new JLabel("1"));
    //add action listenters
              changeImg.addActionListener(this);
              JPanel cp = new JPanel();
              cp.setLayout(new GridLayout(1,6));
              cp.setBackground(new Color(255,255,255));
              cp.add(hours);
              cp.add(mins);
              cp.add(secs);
              cp.add(helptext);
              cp.add(changeImg);
              setContentPane(cp);
              setVisible(true);
         public void actionPerformed(ActionEvent ae) {
              hour11.PaintOff(1);
              //JOptionPane.showMessageDialog(this, "changed");
              repaint();
    JPanel hour11 = new PaintOff(0);
    JPanel hour12 = new PaintOff(0);
    JPanel hour13 = new PaintBlank();
    JPanel hour14 = new PaintBlank();
    JPanel hour21 = new PaintOff(0);
    JPanel hour22 = new PaintOff(0);
    JPanel hour23 = new PaintBlank();
    JPanel hour24 = new PaintBlank();
    JPanel min11 = new PaintOff(0);
    JPanel min12 = new PaintOff(0);
    JPanel min13 = new PaintOff(0);
    JPanel min14 = new PaintOff(0);
    JPanel min21 = new PaintOff(0);
    JPanel min22 = new PaintOff(0);
    JPanel min23 = new PaintOff(0);
    JPanel min24 = new PaintOff(0);
    JPanel sec11 = new PaintOff(0);
    JPanel sec12 = new PaintOff(0);
    JPanel sec13 = new PaintOff(0);
    JPanel sec14 = new PaintOff(0);
    JPanel sec21 = new PaintOff(0);
    JPanel sec22 = new PaintOff(0);
    JPanel sec23 = new PaintOff(0);
    JPanel sec24 = new PaintOff(0);
    JButton changeImg = new JButton("change");
    }///---------This is my PaintOff class ---------------\\\
    import javax.swing.*;
    import java.awt.*;
    import java.awt.Image.*;
    public class PaintOff extends JPanel {
    Toolkit tk = Toolkit.getDefaultToolkit();
    public Image imgOff = tk.getImage("off.jpg");
    public Image imgOn = tk.getImage("on.jpg");
    public Image paintMe = tk.getImage("off.jpg");
         PaintOff(int a) {
              if(a == 1) {
                   vOn();
              } else {
                   vOff();
         public void vOn() {
            paintMe = imgOn;
         //JOptionPane.showMessageDialog(new bc(), "shown");
         public void vOff() {
            paintMe = imgOff;
         public void paintComponent(Graphics g) {
              g.drawImage(paintMe,0,0,this);
    }PaintBlank class is not included here, it's basically just the same as PaintOff but only has one image inside.
    When I try and compile this code, I get
    C:\jdk1.4\bin\bclock>javac bc.java
    bc.java:79: cannot resolve symbol
    symbol : method PaintOff (int)
    location: class javax.swing.JPanel
    hour11.PaintOff(1);
    ^
    1 error
    I don't understand this either, I've tried replacing "PaintOff(1)" with "vOn()" but I get the same error. This is baffling to be, as I thought that the hour11 would have access to all the methods inside the PaintOff class?
    Anyway, thanks for any help you guys give me!
    Cheers
    //Chris.

    Hi!
    Your problem is that you've used a widening conversion to convert from PaintOff to a JPanel. JPanel has no such method, and so the compiler is complaining that it can't find it.
    e.g
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              one.methTwo();
    public class Two extends One{
         public Two(){}
         public void methTwo(){
            System.out.println("Executed 2");
    public class One{
         public One(){}
         public void meth1(){}
    } will give you the same sort of error message. To make the compiler happy, use a cast.
    Now this will compile and gives the right result.
    public class NoCompile{
         public static void main(String args[]){
              One one = new Two();
              ((Two)one).methTwo();
    }So in your case, you want to do
    ((PaintOff)hour11).vOn();
    Does that help?
    :) jen

  • How to view an image at runtime?

    Hi all,
    I am developing a web application using JSP,struts, ADF BC with JDeveloper 10.1.3.
    I have added
    <input type="image" src="../../images/calendr3.gif"/>
    in my Databound table on my JSP page.
    I can see the image at Design time but no image at runtime.
    What should I do to view the image at runtime??
    I have tried
    <input type="image" src="<%=request.getContextPath()%>/images/calendr3.gif"/>
    in this case JDeveloper completely stops functioning. I don't know why? Maybe it's not allowed to have a jsp tag within a databound jsp form???

    Hi,
    did you add the image to JDeveloper (hit the refresh button) so it gets deployed with the application ?
    Also, look at the generated JSP code to see how the image is accessed. I am sure you will find an improperly defined URL
    Frank

  • How to assign dynamic image at runtime or on Button Action to a Image UI

    Hi,
         Please let me know is it possible to assign Dynamic Images to Image UI element in a Visual Composer applications. Using Image Manager it is possible, but in my case Image Source i.e URL comes from ABAP RFC, so is it possible to assign Image at runtime.
        Please do let me know is it possible or not, If yes please do share your opinions.
    I am able to show image using HTML Page by passing URL at runtime to HTML page but here, I cant control the Image width & height.
       I am checking for possibility of using some script to manage width & height.
       Thanks a Ton.
    Regards
    Tushar

    Hi,
         Any inputs for the Query? Atleast, If I get some hint, will do to proceed....
    Regards
    Tushar Shinde

  • Dynamically change an image at runtime in Crystal Report

    Hello,
    I am using crystal report included in VS 2005 and want to display an image at runtime. I have tried using Picture control and OLE Object of crystal report, but did not get any success. I have googled for this and most of them are saying Right Click on Picture
    control->Format Object->Select Picture Tab->Click on X2 next to Graphic Location. But I do not found any Graphic location field in picture tab. Pl see the attached screen shot.
    Can anyone guide me how to load an image at runtime in crystal reports?
    I am using CrystalReport11 and VS2005. It's a VC++/MFC project.

    If you are using Crystal Report for Visual Studio, ask at http://forums.sdn.sap.com/forum.jspa?forumID=313
    Microsoft does not offer support for third party software. 
    Visual C++ MVP

  • How to display images at runtime in a web appplication

    i use C#. and also, how do i get an image to be downloaded from mysql database at runtime upon request. here is a bit of my declaration code and conditional construct code
     byte [] f = (byte[])(read["Passport"]); // this reads d byte data from the column passport in the database and assigns it to byte f.
    if (f == null)
           admin1pass.ImageUrl = null;
     else
           MemoryStream ms = new MemoryStream(f); // this holds the image gotten from the database
           admin1pass.ImageUrl = System.Drawing.Image.FromStream(ms);
    'now thats where i'm stuck. i hv used the
    using System.Drawing;
    using System.Data;
    namespaces but none contains the class Image which is oftren what i use in windows form apps.

    They'll help you over here.
    Microsoft C# ASP.Net forum
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to put Images at runtime in Adobe form.

    Hi All,
    I have a simple query but got confused finding a note related to this, so need your suggestion to address this issue.
    We developed several Adobe Non interactive forms using ADLC 8.2.3 in CRM 7.0 ADS 7.0 Adobe reader 10.X.
    The forms have multiple master pages with embedded images, the form increases to multiple pages based on the data.
    The form is not heavy but to increase performance we thought of putting the images in MIME repository and fetch them at runtime.
    while searching for this we found SAP Note: 0001249492 which says due to improved security features dynamic images are not supported from Adobe Reader 8.1 on wards and the images are to be embeded at design time.
    This note is published in 2009 Can somebody confim me if this is still applicable and we sud go with design time images only.
    If we can still use runtime images please give me some steps or document how to acheive this.
    Thanks in Advice for your help,
    Regards,
    Sai Krishna.

    They'll help you over here.
    Microsoft C# ASP.Net forum
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Embed image into runtime skin (.swf)

    Hi all,
    I'm trying to embed an image into a runtime skin but I have this error :
    Error: Skin for skinsRuntimeBase0.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.BoutonPerso8.Bout onPersoSkinRed16._BoutonPersoSkinRed_Image1 cannot be found.
    when I access to my swf skin in my main application with styleManager.loadStyleDeclarations2().
    I'm working with FB4 and command line (compc + mxmlc) to compile resources and to compile swf with my swc resource bundle.
    Here is my process :
    1) Creation of a FB4 library project and copy of an image url.png in package assets.
    2) Creation of a swc asset with this library project. Here is my xml :
    <?xml version="1.0"?>
    <flex-config>
        <compiler>
             <source-path append="true">
                <path-element>src</path-element>
            </source-path>
        </compiler>
        <include-file>
            <name>url.png</name>
            <path>src/assets/url.png</path>
        </include-file>
        <output>assets.swc</output>
    </flex-config>
    3) Creation of another FB4 library project in which I load into library path assets.swc
    4) Creation of a basic css file :
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @namespace test "com.test.*";
    test|BoutonPerso{
        skinClass: ClassReference("skins.red.BoutonPersoSkinRed");
    test|BoutonPerso #label {
        color: "0xFF0000";
    My skin class is that :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Metadata>
            [HostComponent("com.test.BoutonPerso")]
        </fx:Metadata>
        <fx:Script>
            <![CDATA[
                [Embed(source="url.png")]
                [Bindable]
                public var img:Class;
            ]]>
        </fx:Script>
        <s:Label id="label" text="skinRed" />
        <s:Image source="{img}" />   
    </s:Skin>
    I notice here that if I change the source of Embed metadata, I have an error so my image in my assets.swc is correctly found.
    5) Creation of my swf runtime skin :
    <?xml version="1.0"?>
    <flex-config>
        <compiler>
            <source-path append="true">
                <path-element>src/</path-element>
            </source-path>
            <include-libraries append="true">
                <library>E:/workspaces/flex/assets/assets.swc</library>
            </include-libraries>
            <keep-as3-metadata append="true">
                <name>Bindable</name>
                <name>Managed</name>
                <name>ChangeEvent</name>
                <name>NonCommittingChangeEvent</name>
                <name>Transient</name>
                <name>Embed</name>
            </keep-as3-metadata>
        </compiler>
        <file-specs>
            <path-element>src/redStyle.css</path-element>
        </file-specs>
        <output>redSkin.swf</output>
    </flex-config>
    My redSkin.swf is created and Embed my image (verified with the size of my swf and a swf explorer in which I find my image).
    But when in my main application I try to load my skin with :
    styleManager.loadStyleDeclarations2("E:/workspaces/flex/skinsRuntimeRed/src/redStyle.swf", true, ApplicationDomain.currentDomain);
    I have error at top of message.
    what am I doing wrong please ?
    Thanks and sorry for my english

    Hi Jayagopal,
    You need to apply various skins for the Button to see the effects....
    .myButton
         upSkin:"assets/buttonUp.png";
         downSkin:"assets/buttonDown.png"
         overSkin:"assets/buttonOver.png"    
    Thanks,
    Bhasker Chari

  • Problem in loading images at runtime

    hi ~
    I am facing some problem in making a dynamic flash
    application. Actually i have to loading certain images from a
    remote database at runtime into a pre-existing flash file. i have
    tried it by putting static images and converting them movie clips.
    urgent help required.
    Thanks,
    Varun TEkriwal

    you want to load an image? you want to load an mc? first step
    in successful coding is asking the right question.
    and your question was?

  • Image control runtime creation issue

    I am having problems getting the Image control to actually
    display the image I specify in the source property. The Image
    control is created in actionscript at runtime based on XML returned
    by an HTTPService request. I have a canvas that I want to populate
    with Label, Text, Image, LinkButton, etc. controls based on the
    contents of the XML file that is read in, so I have to create all
    the components on the fly and use something like this:
    var newImage:Image = new Image();
    newImage.setStyle("source", "images/myImageFile.jpg");
    myCanvas.addChild(newImage);
    After I get all the newly created components added as
    children to the canvas I go back through and do positioning
    (something like this):
    for each (var child:DisplayObject in myCanvas.getChildren())
    //set the y property of each component to the y of the
    previous child plus
    //the height of the previous child plus 10 px margin
    Wherever there is an image in my XML it inserts the 10px
    margin for that component, so I know it's creating it and that it
    gets added as a child, but for some reason the image is not
    displaying and so the height of the component is 0. I even tried
    hardcoding the height of each Image control in case the image was
    there but it just wasn't sizing right, but it puts in the space
    without displaying the image.
    What I'm wondering is if there is some method that will force
    the Image controls to either load the image or render it. When I
    add an Image in mxml and use the exact same source data it displays
    just fine, so the file path is correct. I also have the same images
    being read in from XML off the HTTPService that are showing up just
    fine in a TileList where my itemRenderer component has an image
    with the source set to the same path as I'm trying to use in the
    runtime-generated Image controls.
    Also, as a side question, does anyone know why a lot of the
    properties/methods available from mxml specified comonents aren't
    available when you create variables of the same type in
    actionscript? For example, if I have
    <mx:Image id"img"/>
    I can go back in actionscript and reference img.source just
    fine. On the other hand, if I declare an Image in actionscript,
    thus:
    private var asImg:Image = new Image();
    and then try to refer to the source property like so:
    asImg.source
    it doesn't show up in the code hinting and it also throws an
    error on compile (reference to a possibly undefined property source
    for bla bla bla)
    Actually, I've noticed that a lot of the properties and
    methods of various components aren't available when they are
    actionscript rather than mxml. I didn't see much in the
    documentation on the difference or what could be done to work
    around it.
    Thanks much anyone who has input.

    Ok, got it.
    I figured that since the <mx:Image> renders just fine
    and that the ActionScript Image object doesn't that I'd just create
    a custom mxml component with Image as the base element and with
    nothing else in it. Then I add an instance of my custom image
    component in AS whenever the XML specifies one. The layout was a
    bit of an issue, but I just added the image dimensions as
    attributes in my XML and size the CustomImage component based on
    those.
    Must be some subtle difference between the mxml and AS Image
    classes that isn't documented very well.

  • Add image in Runtime

    Post Author: BusinessObject
    CA Forum: .NET
    Hi,
    Wondering is there way to add external image that is stored somewhere in hard disk DURING RUNTIME!
    Thanks

    Post Author: LisaConsult
    CA Forum: .NET
    I have an OLE object which is an image.  I set it during development as a linked object.  During runtime, I change the reference to the object to a file currently on the user's workstation.  Everything works fine.  However, upon load, is it looking for the location set up at development first/by default?  I connect remotely to the client's environment and the client tells me that the reports run faster when I'm connected to their network.  I'm wondering if it's because of the linked image file?  When I look in the raw rpt file via notepad, I can see a reference to my computer in the rpt file.  Thanks

  • Load images in runtime

    Hi.
    I am trying to create empty movieClips in runtime and load
    images to them. My problem is that it results in some performence
    problem.
    The thing is that I load images from a digital camera and
    each image is about 1MB. First of all, that takes a long time to
    load. Then i change the _x/_y scale so that the images becomes
    thumbnails. (Does the image remain 1MB when i use scale, or does
    Flash make the filesize smaller?)
    Next problem is that i want to use "duplicateMovieClip" on
    those thumbnails and start drag the copy. It doesn't seems to work
    with "duplicateMovieClip" on dynamic created mc so I need to make a
    new emptyMC and load the image into it. That takes about a second.
    Is it possible to create a movieClip to the library in
    runtime and then use attachMovie() for every new instance that i
    want to create?
    I hope you understand my problem.
    /Antewik

    Hi,
    > (Does the image remain 1MB when i use scale, or does
    Flash make the filesize smaller?)
    It's the same picture, just scaled down, so it will remain 1
    MB. Maybe there are thumbnail versions stored in the camera, which
    could be loaded instead the full image. Not sure about that...
    > It doesn't seems to work with "duplicateMovieClip" on
    dynamic created mc so I need to make a new emptyMC and load >
    the image into it. That takes about a second.
    Yep, dynamically loaded content cannot be duplicated. Flash
    should load it the 2nd time from the cache though, so it should be
    faster than the first loading.
    > Is it possible to create a movieClip to the library in
    runtime and then use attachMovie() for every new instance that i
    > want to create?
    No, afaik you can't add items to the library at runtime. You
    could add an MC in the Flash IDE and use this with attachMovie(),
    but I doubt that this will be faster than createEmptyMovieClip().
    Could be worth a try though.
    hth,
    blemmo

  • Export flex movie area as an Image in runtime

    Hi,
    My Flex application has a SWFLoader and I place dynamically over it some Images, now I need to generate an Image file of the SWFLoader area that will be send by email during runtime.
    How can I do this?
    Best regards,
    Juliano Nunes

    The shortest way to accomplish this is to download a copy of MPEG Streamclip as relayed by longtime iMovie Discussion Group participant AppleMan1958
    https://discussions.apple.com/message/15808352#15808352
    First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.

  • Insert image at runtime

    <p>Hi,</p><p>I am using Crystal Reports 11 and VB 6.0.  I have created a form where a user can select photos to attach to a report.  I would like to design a report with a separate details section that holds the photos.  Does anyone know how I can send the photos to the report at runtime?   I will not know the exact path to the photos until they choose the photos in the form (I am going to have the form display all of the photos in a folder as thumbnails, then they can check the checkbox next to the photo if they want to add it), then I can assign the path to a variable.   </p><p> Any help would be much appreciated!</p><p> Regards,</p><p>Lisa </p>

    Hi, Lee;
    For the version of Crystal Reports that comes with .NET, you can use something like one of our samples shows:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    Look for the sample, vbnet_win_DynamicImage.zip. It uses an ADO.NET dataset to change the image.
    For Crystal Reports XI R2 and Crystal Reports 2008, you can more directly change the image location using built in functionality.
    In the Designer, choose Insert > Picture. Choose a default image to show and save it. Right-click on it and select Format Graphic. Go to the Picture tab and click the formula button for Graphic location. Save the report.
    Then, at runtime you can populate the Formula with the new location for your image, either a URL or disk file location.
    See the following note for more information:
    [Image|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333333373334%7D.do]
    Best Regards,
    Jonathan

  • Hi i am trying to disply image in adobe forms using ABAP, But i can't abl ?

    hi friends,
    I am using adobe forms to display the VORNA , NACHN and EMPPHOTO.
    for this i created an interface with the 3 import parameters like IM_VORNA, IM_NACHN and IM_PHOTO.
    Then i desingned the form with this interface.
    I dragged the IM_VORNA, IM_NACHN to ADOBE form layout.
    And for employee photo i created the IMAGEFILED in layout.
    And i setted the imagefield binding property to $record.IM_PHOTO.
    To call this ADOBE form i using the ABAP code.
    My code is like this......
    *& Report  ZHR_EMP_PHOTO1
    REPORT  ZHR_EMP_PHOTO1.
    TABLES: PA0001, PERSON.
    DATA: ITAB_EMPDATA LIKE TABLE OF PERSON,
          ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
    DATA: P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE,
          P_DOCUMENT_TYPE LIKE TOAV0-RESERVE,
          URL TYPE char255.
    DATA: VORNA TYPE VORNA,   "VALUE 'SHANKAR',
          NACHN TYPE NACHN,   "VALUE 'REDDY',
          PATH  TYPE XSTRING,
          TPATH TYPE STRING.
    DATA: FM_NAME TYPE FUNCNAME.
    DATA: FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS,
          FP_DOCPARAMS TYPE SFPDOCPARAMS,
          FP_FORMOUTPUT TYPE FPFORMOUTPUT.
    PARAMETERS: PERNR LIKE PERSON-PERNR.
    START-OF-SELECTION.
    CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
      EXPORTING
        PERSON_ID = PERNR
        SELECTION_BEGIN = SY-DATUM
        SELECTION_END = SY-DATUM
      IMPORTING
        PERSONAL_DATA = ITAB_DATA
      EXCEPTIONS
        PERSON_NOT_FOUND = 1
        NO_ACTIVE_INTEGRATION = 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.
    MOVE ITAB_DATA-VORNA TO VORNA.
    MOVE ITAB_DATA-NACHN TO NACHN.
    *Function Module To check Existance of Image
    CALL FUNCTION 'HR_IMAGE_EXISTS'
      EXPORTING
        P_PERNR = PERNR
      IMPORTING
        P_CONNECT_INFO = P_CONNECT_INFO
      EXCEPTIONS
        OTHERS = 2.
    P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
    *Function Module To Get the URL of Image
    CALL FUNCTION 'SCMS_DOC_URL_READ'
      EXPORTING
        STOR_CAT = SPACE
        CREP_ID = P_CONNECT_INFO-ARCHIV_ID
        DOC_ID = P_CONNECT_INFO-ARC_DOC_ID
        COMP_ID = 'DATA'
        DP_URL_ONLY = 'X'
      IMPORTING
        URL = URL
      EXCEPTIONS
        OTHERS = 10.
      IF SY-SUBRC <> 0.
      ENDIF.
    MOVE url TO tpath.
    CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
      EXPORTING
    *   CODEPAGE_TO            = '8500'
        unicode_string         = tpath
    *   OUT_LEN                =
    IMPORTING
       XSTRING_STREAM         = path
    EXCEPTIONS
       INVALID_CODEPAGE       = 1
       INVALID_STRING         = 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 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        I_NAME                    = 'ZHRIN_EMP_PHOTO'
    IMPORTING
       E_FUNCNAME                 = FM_NAME
    *   E_INTERFACE_TYPE           =
    *WRITE: fm_name.
    */1BCDWB/SM00000204
    *SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA
    *MOVE 'SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA' TO PATH.
    FP_OUTPUTPARAMS-NODIALOG = 'X'.
    FP_OUTPUTPARAMS-GETPDF = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        IE_OUTPUTPARAMS       = FP_OUTPUTPARAMS
    EXCEPTIONS
       CANCEL                = 1
       USAGE_ERROR           = 2
       SYSTEM_ERROR          = 3
       INTERNAL_ERROR        = 4
       OTHERS                = 5
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'IN'.
    fp_docparams-FILLABLE = ' '.
    CALL FUNCTION fm_name
    EXPORTING
       /1BCDWB/DOCPARAMS        = fp_docparams
       I_VORNA                  = vorna
       I_NACHN                  = nachn
       I_URL                    = path
    IMPORTING
       /1BCDWB/FORMOUTPUT       = fp_formoutput
    EXCEPTIONS
       USAGE_ERROR              = 1
       SYSTEM_ERROR             = 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.
    CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
    EXCEPTIONS
       USAGE_ERROR          = 1
       SYSTEM_ERROR         = 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.
    DATA: lt_att_content_hex TYPE STANDARD TABLE OF solix. "TABLE OF TEXT80.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = fp_formoutput-PDF
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
      TABLES
        BINARY_TAB            = lt_att_content_hex
    tables rlgrap.
    DATA: ld_filename TYPE string,
          ld_path TYPE string,
          ld_fullpath TYPE string,
          ld_result TYPE i,
          gd_file TYPE c.
    DATA: flength TYPE i.
    *selection-screen begin of block m with frame.
    data: p_file TYPE  rlgrap-filename.
    *selection-screen end of block m.
    flength = xstrlen( fp_formoutput-PDF ).
    * At selection screen
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    * Display save dialog window
          CALL METHOD cl_gui_frontend_services=>file_save_dialog
            EXPORTING
              window_title      = 'Enter File Name to Save'
              default_extension = 'PDF'
              default_file_name = 'accountsdata'
              initial_directory = 'c:\temp\'
            CHANGING
              filename          = ld_filename
              path              = ld_path
              fullpath          = ld_fullpath
              user_action       = ld_result.
              p_file            = ld_fullpath.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = flength
              filename                = p_file
              filetype                = 'BIN'
         importing
              act_filename            = p_file
         tables
              data_tab                = lt_att_content_hex.
    with this code I am able to see the  VORNA, NACHN field data in ADOBE Forms. But i am unable to see the employee photo.
    Any helps will be appreciated.....
    Regards,
    Shankar.

    Or post a URL.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Alan" <[email protected]> wrote in
    message
    news:C0E592D7.29A315%[email protected]..
    > go back to the dialog box, and re-browse to pick the
    image.
    > Find the pulldown in the "browse to file" dialog box
    that gives a choice
    > of
    > Relative to site root, or Relative to document.
    >
    > set to relative to document.
    >

Maybe you are looking for