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

Similar Messages

  • 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....

  • 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

  • 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.

  • 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

  • How to Export multiple photos from pdf files?.

    Good day.
    How to Export multiple photos from pdf files?.
    Thanks.

    Hello
    how to reach from file menu ?.
    Running Adobe reader 9 version 9.3.0
    Thanks again.

  • How to handle unsaved data in portal through webdynpro ABAP ?

    Hi Experts ,
         I  need to handle unsaved data in SAP Enterprise Portal through webdynpro for ABAP . I got a sdn link which explained some code for this..
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/b76f4169e25858e10000000a1550b0/frameset.htm
    I tired to implement this in EXIT method of the view. but im not able to get this . Can any one help me in this ? .
    Regards ,
    Kalpana .

    Hi ,
    Yes i have checked the code . But the example itself not working when i linked the same with portal . If EXIT is not the right method , Can you help in placing the code in right method ? The code i pasted in EXIT method is 
    data L_COMPONENTCONTROLLER type ref to IG_COMPONENTCONTROLLER .
    data L_API_COMPONENTCONTROLLER type ref to IF_WD_COMPONENT.
    data L_PORTAL_MANAGER type ref to IF_WD_PORTAL_INTEGRATION.
    L_COMPONENTCONTROLLER =   WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
    L_API_COMPONENTCONTROLLER = L_COMPONENTCONTROLLER->WD_GET_API( ).
    L_PORTAL_MANAGER = L_API_COMPONENTCONTROLLER->GET_PORTAL_MANAGER( ).
    call method L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
      exporting
        DIRTY_FLAG = ABAP_TRUE .

  • Generate PDF in WebDynpro 4 ABAP

    Hi,
    I have the problem, that I would generate a PDF from WebDynpro 4 ABAP and show it in the WebDynpro application.
    I found the possibility to solve it with the interactive Forms but therefore Adobe Document Service must be installed and the Usage Type BI Java as to be installed on a Web Application Server Java.
    My question is:
    Is there any  possibility to realize this with Smartforms and integrate it in Webdynpro?
    Or is there any other possibility?
    Interactive Forms is more than I need. I only want to create and show the document as PDF.
    Greetings
    Marcus

    You can then store the PDF output using the function module GUI_DOWNLOAD, for example, as a local file on your PC.

  • 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

  • How to display clear screenshots in PDF when default Acrobat page resolution is 110 ppi?

    I want screenshots captured on my 96 ppi screen to display clearly in the PDF. But the Acrobat default page resolution display is configured to 110 ppi, not to the system setting of 96 ppi.
    1) Why is the Acrobat default display 110 ppi and not 96 ppi?
    2) If all Adobe Acrobat and Reader users open PDFs with the default Acrobat setting, how should screenshots taken on a 96 ppi screen be resized to display clearly?
    Thanks

    The concept of matching pixels in a bitmap photo to the user's display doesn't exist in PDF. Pages have physical dimensions, not pixel values, so they will always end up being resampled.

  • 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.

  • How to display employee no in group tree without separator and decimals

    Post Author: makk07
    CA Forum: Formula
    Hi Everyone,   In my database the employee number is stored as follows:8,367.0029,785.00140,742.00   And in the report I have a group based on formula to display employee name and employee number. My formula is as follows:{@Full Name} & ' - ' & {table.EMPLOYEE NO}and in the group tree you will see it asjohn,smith - 140,742.00 but I want to display it as follows:john,smith - 140742, and I am using crystal XI   Please anybody suggest how to achieve that.Thanks in advance

    Post Author: SKodidine
    CA Forum: Formula
    Change your formula to:
    {@Full Name} & ' - ' & totext({table.EMPLOYEE NO},0,'','')

  • How to display a photo slideshow in Widescreen 16x9 format?

    I just bought a 5g iPod and the A/V connection kit. I can play a photo slideshow on my 16x9 TV, but it stretches the photos to fit the screen, so they are out of proper aspect ratio. Is there a way to tell my iPod that it should be displaying the photos on a 16x9 screen?
    I understand that there is a widescreen option in the Video playback menu, but this does not seem to have any effect on the output of photo slideshows.

    Jon,
    See if this works. It may or may not.
    Go to videos-->video settings-->Widescreen-->On
    See if now when you play the photo slideshow it works right.
    Now, if it doesn't then I don't think there is much you can do.
    Tell Apple about the issue (if the steps above don't solve it)
    Send Apple Your Feedback
    btabz

Maybe you are looking for