Displaying employee photo during runtime

I form for employee master and i want to store all employee photo in file and have them displayed during runtime from the file
directory. That is when i query for an emp_no
the records along with the picture in the file directory should also come up?
null

You'll have an image-item in your form and use read_image_file built-in. The image file has to be on the local client or on a network drive the client is connected to, and that will be quite a problem.
Another way to do, which is, by far, better is to have the image stored in a longraw column of a table in your database, as I did and it isn't too difficult.
Or, eventually, use BLOBS - which I haven't done so far.

Similar Messages

  • Displaying Employee Photo using WDA  in ESS

    Hello Experts,
    We have a requirement to dispaly employee photo in ESS.We are implementing ESS with Webdynpro ABAP.
    we have created one archive link in R3(Content repository)
    Please help me..
    1) how to call this archive link from WDA...is there any standard WDA application in ESS
    2) what is the correct process to display employee photo in ESS.
    3)can we use Colloboration Demo role?
    4) can we user Who's Who role? how we need to enable this role?
    Please help..many of you have worked on this type of requirements..please share your thoughts and solutions..
    thanks in advance for your help..
    Regards
    EP user1

    Dear Vinodh
    Normally there might be many reasons for pics not getting displayed, as u have said that the photo is already visible in R/3 then u need to check the following things
    1) check S_WFAR_OBJ authorization object has been maintained or not.
    2) Access T-code PZUSWHO & check whether the following settings are maintained or not.
    Check these links as it entails how to upload the Photos
    How to upload photos in SAP
    Employee Photographs Mass Uploading to Backend System (ECC)
    Kindly come up with screen shots,
    Hope this solves ur problem.
    Cheers
    Pradyp

  • Displaying Employee Photos in Visual Composer

    Hi,
    I am having a requirement of displaying the employee photo's in a visual composer,
    Is there any standard RFC function module to display Employee photo??
    If any body know's please let me know...........
    Thanks & Regards,
    Bala

    Hi Elizabeth
    I've installed the the NWVC60_0-20000504.ZIP as well as the NWVC60P_2-20000504.zip content (https://websmp106.sap-ag.de/download - "search all categories" - type "visual composer*").
    But it still doesn't seem to work.
    Any ideas?
    Best regards
    Ole

  • Displaying Employee Photo in smartform in SAP-HR

    hi all,
    how can i display employee photo in smartform which is not uploaded in the sytem with tcode se78 but throgh diff tcode (OAAD) by HR functional. There are mainly two parts: 1. Procedure to retrieve that photo from the system
                              2. Display it in the smartform.
    This photo is stored as graphics and so in  smartform i am unable to put the name in graphic option which we normally follow.Please suggest what can i do.
    Regards
    Raj

    THe below links should help you
    Smart forms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sap-img.com/smartforms/smart-002.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Try to upload the pictures via SE73 as it's described in the Online help.. As far as I remember it works all the mentioned formats
    Please check this FM perhaps they may help.
    HR_IMAGE_*
    HRWPC_RFC_EP_READ_PHOTO_URI
    HR_ESS_EMPLOYEE_PHOTO_CHECK
    HR_ESS_EMPLOYEE_PHOTO_INIT
    HR_ESS_EMPLOYEE_PHOTO_RESET
    HR_ESS_EMPLOYEE_PHOTO_SAVE
    HR_ESS_EMPLOYEE_PHOTO_SHOW
    HR_ESS_EMPLOYEE_PHOTO_TAKE
    Reward points if found helpful….
    Cheers,
    Chandra Sekhar.

  • How to display employee photo in pdf through WebDynpro OR ABAP print Progr?

    hi,
    I have uploaded employee photos using TCODE OAOH. Now all the employee photos are stored in Archive link.
    Now my requirement is i have get the employee photo and display it in PDF using PDF forms and  webdynpro OR using ABAP print program.
    I am able to get the employee photo from SAP archive link using ABAP code. After this i have to upload this to MIME reository. From MIME repository i have to display it in PDF forms from WEbDynpro.
    I tried with ABAP print program, directly calling the PDF form in program and display the employee data with Employee Photo. With my program i am able to see only employee data. But it's not displaying employee Photo.
    Plz any helps to display employee photo in PDF forms using either webdynpro OR ABAP printprogram.
    If ur reply is related to WebDynpro, pla tel me how to upload photo to MIME repository From Archive Link.
    Since all the employee photos are uploaded into Archive link using Tcode OAOH. From this i have to get the employee photo and upload it to MIME repository and i have to display it in PDF forms.
    Any help are appreciated.......
    Regards,
    Shankar.

    Hi Sankar,
    1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
    2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
        data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg'  .
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url     = url
        importing
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Thanks,
    Rajkumar.S

  • How to Displaying Employee Photo in ESS Who's Who via Reverse Proxy?

    Dear Gurus,
    I have a bit of problem to displaying employee's photo in ESS Who's Who via Reverse Proxy.
    In my landscape, end-users are only able to reach the Reverse Proxy server, not the actual SAP server itself.
    In Who's Who, when displaying the employee's info, the URI for the photo is generated using the actual SAP server name.
    Illustration:
    - the URI we expect: https://portal.domain.com/sap/bc/contentserver?.....
    - the URI we get: http://r3server.domain.com/sap/bc/contentserver?....
    Does anyone know where/how I can set the URL (hostname and protocol part) to refer to my reverse proxy?
    Or is it because SAP is using an absolute path rather than the relative one?
    How do we go about it?
    Thanks in advance.

    Dear Barinbhai,
    How are you? We are fine at here!!!
    Following URL generated thru Portal
    System generated : http://p30app06.ril.com:8000/sap/bc/contentserver/430?get&pVersion=0046&contRep=7N&docId=4D2155EB6C32545BE10000000A42163F&accessMode=r&authId=CN%3DQ10&expiration=20110215052004&secKey=MIIBkwYJKoZIhvcNAQcCoIIBhDCCAYACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAV8wggFbAgEBMBMwDjEMMAoGA1UEAxMDUTEwAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTAyMTQwNTIwMDRaMCMGCSqGSIb3DQEJBDEWBBTJCER2r9%2BifbQPOtCqJdAoJ99NTzCBpgYFKw4DAhswgZwCQQCJ%2FPuWmHE5m%2Bd1vtX464doAJIsN2SmIpBAUe7jLGtmAD7F6ElSWOtC6uMuXUPisyKr3lRQ6IOC1ZhVPsnnXJsZAhUAtGAwyGWTqdJdd7nwrXKA7T%2B3GVcCQBUQxMBImvHdAsIyF3DmBtPwHcPpyCyBbJ737ivcuw2qjdJeGttSqR8GGuPn0DmzF36%2BUSnLRxZVNPn6nUbnPx0ELjAsAhR7G1vGjngjoll50RhWKcDlBTvVKgIUZ1NlQXMe61LXcqsTGsz7r28Kzh0%3D
    Photo opening directly on following URL:::
    Desired URL : http://ess.ril.com/sap/bc/contentserver/430?get&pVersion=0046&contRep=7N&docId=4D2155EB6C32545BE10000000A42163F&accessMode=r&authId=CN%3DQ10&expiration=20110215052004&secKey=MIIBkwYJKoZIhvcNAQcCoIIBhDCCAYACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAV8wggFbAgEBMBMwDjEMMAoGA1UEAxMDUTEwAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTAyMTQwNTIwMDRaMCMGCSqGSIb3DQEJBDEWBBTJCER2r9%2BifbQPOtCqJdAoJ99NTzCBpgYFKw4DAhswgZwCQQCJ%2FPuWmHE5m%2Bd1vtX464doAJIsN2SmIpBAUe7jLGtmAD7F6ElSWOtC6uMuXUPisyKr3lRQ6IOC1ZhVPsnnXJsZAhUAtGAwyGWTqdJdd7nwrXKA7T%2B3GVcCQBUQxMBImvHdAsIyF3DmBtPwHcPpyCyBbJ737ivcuw2qjdJeGttSqR8GGuPn0DmzF36%2BUSnLRxZVNPn6nUbnPx0ELjAsAhR7G1vGjngjoll50RhWKcDlBTvVKgIUZ1NlQXMe61LXcqsTGsz7r28Kzh0%3D
    Pls sugget..
    Hitesh Khatri
    SAP -HR
    RIL - Navi Mumbai....

  • Asking ECC System Credentials while Displaying Employee Photo in CODService

    Hello All,
    Currently we are having requirement like , need to display the employee Photo from Portal.
    Already all the Employee Photos are Uplaoded in the backend, i can able to see employee photos on Hearder in PA30.
    While Displaying the Employee Photo from the Portal using COD Service, it asking the ECC System Credentails.
    What Configuration steps need to follow to display the Employee Photo in CHange Own Data Service from the Portal with out asking the backend system Credentails..
    Plz Share some inputs to fix the issue..
    Thanks in Advance
    Adapag

    Hi Pramod,
    Thanks for the reply, we stored all our employee photos on  ECC System Only...
    If i enter the Personal No: in PA30, i am able to see the EMployee Photos on the Header..
    But While accessing the COD Service from the Portal, asking ECC system credentials to display the photo.. If i am providing the Credenials Employee Photo is displaying .. other wise Blank Image Displaying...
    Siddarth suggested its due to SSO problem, if its sso issue, how come i login into portal without any errors currently we are using ABAP UME both Portal and ECC Login details r same...
    Please Suggest me how to fix the issue...
    Thanks in Advance
    Adapag

  • Displaying Employee Photo thru Web Service

    Hi,
    I am having a requirement of displaying the employee photo's thru weservice, in asp.net application.
    Is it  possible?
    If anybody knows..
    Guide me to close this issue...
    Thanks & Regards,
    Balajee Jeyaraj .

    Hi Pramod,
    Thanks for the reply, we stored all our employee photos on  ECC System Only...
    If i enter the Personal No: in PA30, i am able to see the EMployee Photos on the Header..
    But While accessing the COD Service from the Portal, asking ECC system credentials to display the photo.. If i am providing the Credenials Employee Photo is displaying .. other wise Blank Image Displaying...
    Siddarth suggested its due to SSO problem, if its sso issue, how come i login into portal without any errors currently we are using ABAP UME both Portal and ECC Login details r same...
    Please Suggest me how to fix the issue...
    Thanks in Advance
    Adapag

  • Employee Photo Display

    Hi SDN Gurus,
    I want to display employee photo in my custom webdynpro abap application. Im using Document Area as blank, Storage type as SAP System Database and Rep. Sub-Type as Normal and Content Table is SDOKCONT1 in tcode OAC0.
    I have written a FM to output the photo from table SDOKCONT1 which is of data type LRAW.
    though im not able to get the image in Webdynpro component.
    Are there any alternate ways or work arounds for this? Please help as i just want to display employee photo in my webdynpro application anyhow.
    Appreciate your help.
    Regards,
    Vinayak
    Edited by: vinayak landge on Mar 28, 2011 3:27 PM

    DATA:gx_mimetype TYPE string VALUE 'JPG'.
    data lv_url type string.
    ****Create the cached response object that we will insert our content into
      DATA: cached_response TYPE REF TO if_http_response.
      CREATE OBJECT cached_response
        TYPE
          cl_http_response
        EXPORTING
          add_c_msg        = 1.
      TRY. " ignore, if compression can not be switched on
          CALL METHOD cached_response->set_compression
            EXPORTING
              OPTIONS = cached_response->co_compress_based_on_mime_type
            EXCEPTIONS
              OTHERS  = 1.
        CATCH cx_root.
      ENDTRY.
    ****set the data and the headers
      DATA: l_app_type TYPE string.
      DATA: l_xstring TYPE xstring,
            i_cache_timeout  TYPE i VALUE '300'.
      cached_response->set_data( lv_raw ).
      l_app_type = gx_mimetype.
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
    ****Set the Response Status
      cached_response->set_status( code = 200 reason = 'OK' ).
    ****Set the Cache Timeout - 60 seconds - we only need this in the cache
    ****long enough to build the page and allow the Image on the Client to request it.
      cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
      DATA LR_PHOTO TYPE REF TO if_wd_context_node.
      DATA ls_PHOTO TYPE        IG_COMPONENTCONTROLLER=>ELEMENT_PHOTO.
      DATA: i_path TYPE string VALUE '/sap/public',
            i_format TYPE string VALUE 'JPG'.
    ****Create a unique URL for the object
      DATA: guid TYPE guid_32.
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_32 = guid.
      CONCATENATE i_path '/' guid '.' i_format INTO Lv_URL.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = Lv_URL
                                           response = cached_response ).
    lv_raw is the raw string of the image.
    lv_url is the URL bind this to Image UI element source property.

  • How to maintain Employee photo in ESS who's who without sap_all and sap_new

    Hi ALL,
    Displaying Employee photo in ESS Who's who. it is working but with SAP_ALL and SAP_NEW user profiles.
    My requirment is without SAP_ALL and SAP_NEW user profiles. how it is working where can i maintain authorizations for this issue.
    The parameter i used are as follows:
    Business obj: PREL
    Doc type: HRICOLFOTO
    Personal num: 00000094
    Infotype: 0002
    Photo type: .JPG
    please help me.
    Regaards
    Satya.

    Dear satya .
    Please check the following
    1. Trace with the t.code ST01 and check that object require.
    2. The portal require the following obect:
    S_SERVICE
    S_RFC
    P_PERNR
    PLOG
    P_ORGIN/ P_ORGINCON
    P_HAP_DOC, if you work with Appraisal Document.
    3. Check the table T77S0
    P_PERNR, P_ORGIN, y P_ORGINGCON
    4. Check that you have the roles need for ESS.
    SAP_ESSUSER
    SAP_ESSUSER_ERP05
    SAP_EMPLOYEE_ERP05
    SAP_EMPLOYEE_ERP_13
    SAP_EMPLOYEE_ERP05_xx
    SAP_EMPLOYEE_ERP_13_xx
    5. Check the following notes:
    SAP Note 857431 - ESS: Authorizations and roles for WD services in ERP 2005
    SAP Note 844639 - MSS: Authorizations and roles for WD services in ERP 2005
    SAP Note 1373177 - Back end authorization roles missing in EHP4
    SAP Note 824757.
    [ESS Quick Start|http://www.cogentibs.com/pdf/cogsap08/ESS.pdf]
    Hope is help you.
    Regards
    consultor_ess_mss

  • ESS Personal Profile - Employee photo show as 'x'

    Dear experts
    I'm trying to find a conf. table the difference between Dev & QA to display employee photo in ESS personal profile.
    An image like hide photo (Not a actual employee photo) is display in Dev portal where as it show 'X' in QA. I'm trying to find the conf. table to show like hide in QA rather than 'x'. Attached the screenshot of two environment. Highly appreciate your input
    Thanks
    Babu

    run the report RPTMC_INDEX_EE_PIC_URL_TO_INDX  once
    EHP6 MSS Photo Issue
    EHP6 MSS Photo Issue
    1677344 - Poor performance when reading the photo URLs   ------ kindly do as per the steps  mentioned in this note
    1618938
    chk in  se11 > T77TMCPIC_URLS > click on display and do as below ...Activate Content server in SICF once and repeat .....can you check in  t-code ----CSADMIN  ......content repository a2 is runnning or not in overview chk once
    next click on below button and log off and log -in and refresh the team view in portal

  • Extracting employee photo to BW

    Hi Experts,
    Is there a method avialble to extract the employee photo uploaded in SAP HR to BW?
    My requriement is to display employee photo against peronnel number in xcelsius.
    Regards,
    Arun.

    Hi Arun,
    I am not sure if you can extract the image directly from SAP HR to BW or not. But surely you can upload the required image in SAP BW using SE80 transaction.
    Se80->mime repository->sap( folder)->BW->customer->images->right click on image folder and upload your images.
    Afterward I am not sure how you can use it in BEX query or  xcelsius.
    Regards,
    Durgesh.

  • Adding Items During Runtime

    How can i add items like display,text etc during runtime as it is done in visual basics

    In Forms you can set items invisible. You can do it by Set_Item_Property('your_item',VISIBLE,PROPERTY_FALSE).You can also change position of item. All about what you can do with item you can read in the Forms on-line help "Set_Item_Property built-in".
    I hope this will help you.
    Helena
    null

  • Get employee photo and display the photo in external system.

    Hi,
    We start to work with the portal....We want an application that display the employee photo..
    The photo is the same one that appear in pa20/30...
    We create the photos in OAAD and have a table repository.
    How from here i can use this to build a RFC that return "data"..that from the external system we can show the photo,
    Thanks.

    write a RFC which uses
    'HR_IMAGE_EXISTS' to get the image document id and then use 'ALINK_RFC_TABLE_GET' to  image in JPG format convert the returned RAW table to xstring format using SCMS_BINARY_TO_XSTRING pass the resulting xstring as the export parameter of this RFC .
    portal application can now use this xsring to render the image.
    Regards
    Raja

  • Employee photo is not displayed in ESS Who's who service

    Hi colleagues,
    Please help our colleague in this issue:
    1) They have implemented correctly the procedure to display photos in PA20/PA30 and the current ITS based ESS who's who is displaying the photo.
    2) They are trying to implement EP 7 with XSS BP 1.0 SP10 bold however in the Who's Who service the employee photo is not being displayed.
    Best regards

    Hi,
    Yo would have check the forum..
    Display Photo in Employee Who is who search
    Kind Regards
    Hari Sankar M

Maybe you are looking for

  • Unit calculation at routine in update rule

    Hello, Can anybody explain me how to calculate unit in update rule routine. In update rule routine how to access infocube keyfigure like we access communication structure as comm_structure. Is there any sample code? Please help me out. Thanks, Regard

  • IMac display on TV

    Is there a cable available that would allow my iMac to display on a TV with only HDMI or component inputs? Is there a maximum output range? In other words would the display be decent on a TV screen size between 42 and 52 inches?

  • Displaying ppt in the browser window.

    Hi, I have a ppt stored in the database as BLOB.I've fetched it in the jsp and am directly writing it to web using OutputStream's write() method, but I want to show it in the browser window itself instead of opening the ppt seperately.Can anyone tell

  • Data snapshot tool

    hi, does this option work in? i couldn't get it to work in xcelsius 2008 or dashboard design? by that i mean that the data displayed in the model is not what appears in the file after the model is exported? if it does work, are there any instructions

  • Error in link page

    Hi, I am trying to view a page that uses Java, I never had troubles using the link bar on that site before. I resently installed XP on my pc, but as I tried to view it on another pc also with XP I dont understand why I can't see the links. This is th