Use employee photo in SMARTFORMS

Dear all,
As we know, we can upload employee photo so that the employee photo can be seen when user browses through transaction code such as 'PA30/PA20'. Where as the employee photo is uploaded through the transaction code OAAD so the picture is stored as an Archive-Link document.
Currently I have a requirement to create a custom form using SMARTFORMS which can show the employee photo in the form. I've been reading through this forum and find negative responses for this kind of requirement because:
1.Smartform can only uses 'BMP' type picture
2. Smartform can only uses graphic object stored through the transaction code: SE78.
Is there anybody who has found a way around this problem and uses uploaded employee photo within the smartform. Kindly share the solutions.
If we can't uses the uploaded photo, is it possible for a smartform to uses a picture which is put in a file server.
Best Regards
-Suwardi Nursalim-

You can use the HTML control to display photos from your archive server.  You can do this with a couple of function calls which returns the URL of the photo on the server.  Then pass the URL to the HTML viewer.
        CALL FUNCTION 'HR_IMAGE_EXISTS'
          EXPORTING
            p_pernr                     = pernr
*   P_TCLAS                     = 'A'
           p_begda                     = sy-datum
           p_endda                     = sy-datum
         IMPORTING
           p_exists                    = image_exists
           p_connect_info              = image_info
         EXCEPTIONS
           error_connectiontable       = 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 FUNCTION 'ARCHIVOBJECT_GET_URI'
          EXPORTING
            objecttype               = image_info-sap_object
            object_id                = image_info-object_id
          TABLES
            uri_table                = uri_tab
          EXCEPTIONS
            error_archiv             = 1
            error_communicationtable = 2
            error_kernel             = 3
            error_http               = 4
            error_dp                 = 5
            OTHERS                   = 6.

Similar Messages

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

  • Employee Photo In Smartform or Adobe Interactive Form

    Hi Everybody,
    We need to diaplay employee Photo in smartforms or adobe interactive form for Employee ID Card.
    We are not uploading employee photo tru SE78. We need to get Photo from archieve Link, image being displayed in PA20/PA30 transaction.
    I had been tru Many threads, but couldn't find any proper solution.
    Please suggest.
    Thanks in advance.
    Regards
    Ravi

    In forums, there are answers, but not the exact code. The most achieved is that one: Dynamically include a picture in smartform
    Tell us if you need more information.

  • How to Print Employee Photo using Smartform

    Dear All,
    I have requirement to print Employee photo using Smartform.
    Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002  after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
    These employee image  I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
    Thanks ,
    Regards

    Hi ABAP Programmer,
    Refer this link
    i  want to retrieve a photo image of an Employee to display in smartforms
    Regards,
    Sravanthi

  • 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

  • Batch uploading of employee photo using T-code OAAD

    Hi All,
    When uploading employee photos with OAAD, I can not use SHDB to record the bdc actions because there is a popup function(to specify uploading JPG file) which can NOT be recorded by BDC.
    So anybody got some suggestions?
    Thanks in adv.
    Br,Kee

    Hi,
    Use this code this will work.
    This is a code workaround instead of BDC from SHDB.
    START-OF-SELECTION.
      LOOP AT t_record.
    Since the employee photo is always stored in 0002 infotype, we need to
    concatenate the employee id with preceeding zeros and pad "0002" in
    right into the pernr field which will be passed to object_id
    Any unwanted leading zeros deleted
        SHIFT t_record-pernr LEFT DELETING LEADING '0'.
    Any leading space is removed
        CONDENSE t_record-pernr.
    0002 is concatenated to the emp id
        CONCATENATE t_record-pernr '0002' INTO t_record-pernr.
    Push the contents of pernr into pernr_zero since its a NUMC type field
    and hence zeros will be padded automatically by the system
        w_pernr_zero = t_record-pernr.
    Now pernr will be having zero padding
        CLEAR w_pernr_pass.
        w_pernr_pass = w_pernr_zero.
    Call this function module for storing the photos.
        CALL FUNCTION 'ARCHIV_CREATE_DIALOG_META'
          EXPORTING
            archiv_id  = 'A1'
            ar_object  = 'HRICOLFOTO'
            object_id  = w_pernr_pass
            sap_object = 'PREL'
            file       = t_record-path.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDLOOP.
    Hope this helps you.
    Regards,
    Subbu.

  • How to get (OAAD tcode) employee photo into sapscript / smartforms??

    Hi!
    I need to insert the employee photo jpeg (from oaad) into an sapscript or smartforms.
    It's possible to do dynamically? (without file conversion)
    Thanks

    Hi,
    I m providing u with this link, u may get some idea .
    How to display the employee photo in a smartform
    or
    These are all the steps to upload the Photo.
    1. Create a number range for SAP Archive Link :
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
    Tcode: OANR
    Create range 01 from 0000000001 to 9999999999 without the external number flag.
    2. Document type HRICOLFOTO must exist with document class JPG.
    IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
    Table: TOAVE
    Tcode: OAC2
    3. Document type HRICOLFOTO must be linked to object type PREL and IT0002.
    IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
    View: V_T585O,
    In all three columns there are minuses, don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
    Table: TOAOM_C,
    Tcode: OAC3
    5. Create this content repository with storage type FILE archive.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
    Tcode: OAC0
    Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C .
    6. Link photo to personnel number.
    Menu>Tools>Business Documents>Miscellaneous>Stored Documents.
    Tcode: OAAD
    Thanks,
    Mamta Kumari

  • Use of ArchiveLink for Employee Photos - Performance

    All,
    We are currently using a simple web repository to surface employee photos in SAP and non-sap content. We're thinking about switching to ArchiveLink. We've configured ArchiveLink based employee photos in our sandbox environment and have an idea how that works. On one hand we'd like to pursue a standard SAP based solution for photos but are concerned that performance could suffer as the biggest consumer of our employee photos is SharePoint and SharePoint Search, sometimes serving up 25-100 photos per page. Does anyone have any experience with performance issues with employee photos in ArchiveLink?
    Thanks,
    Doug

    Hi.
    The volume will be a challenge, if 0BPARTNER is the ONLY restriction in the query, but is that the case?
    An alternative is to grant access based on either a custom grouping of 0BPARTNER into few categories or a grouping into fxTerritory, like you mention. You can do this in a separate cube for users who will have access to large numbers of business partners anyways, and use just 0BPARTNER in another cube for users who will have few business partners. If your users can not be split like that, fx because you also have users with not really many, but more than a few, etc,  maybe you can use cubes partitioned by Territory or something else, for users who DONT have many business parterns. Like that, you reduce the "threat" from the volume
    br
    Jacob

  • Reg : Employee photo Upload using OOAD

    try to upload employee photo using tcode OAAD and enter information as
    follows:
    menu Archived Link: Store and Assign
    Business object = PREL
    Document type = HRICOLFOTO
    Personnel number = xxxxxxxx
    infotype = 0002
    enter
    The system asks for file name, select file
    I got the error message "HTTP error: 401 Unauthorized"
    Message no CMS025
    Error in accessing via HTTP, 401 unauthorized, access denied
    I activated /default_host/sap/bc/contentserver also since im getting above error
    Any ideas what wrong?

    Hi,
    Double click the content server.
    Go to Logon details tab.
    There specify the user name and password of a fully-authorized user (with SAP_ALL profile) and save.
    Make sure that user type is C - communication (check it via SU01)
    Re-activate the service.
    Regards,
    Dilek

  • How to get Employee Picture in Smartforms

    Hi Experts
    Please help me out in getting employee picture in Smartforms
    I have used the following FMs
    1. HR_IMAGE_EXISTS
    2. SCMS_DOC_URL_READ
    By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
    But Please tell how to get this picture in Smartform .
    As i am generating Employee Biodata and in that i need employee Picture.
    Please HELP me ....
    Thanks & Regards
    Shaveta Prabhakar

    Hi,
         U need pictures in smartforms for that just try this one I think so it will help full to u.
          First Upload that picture in the se78 that photo must be in the bitmapformat(picture.bmp).
    steps are:
             goto se78>graphics->import--->it asks the file path here,fill those details
    Then goto Smartform--->In which page u want to put the picture,
              there click that page  and goto Background picture,
             here give the name of that picture and select the resolution and positin of the picture there. 
               Then u will get the picture in the output.
    Regards,
    Surya

  • Show Employee Photo in Sapscript

    Hello,
    I wish to know if it's possible displaying the employee photo, stored in the Archive Link, in a Sapscript.
    Thank You all beforehand.

    Hello Bharat,
    Sadly the employee photos are already loaded in ArchiveLink to make them available in transactions PA20 and PA30,  so  we are looking for a way to use it in some Sapscripts and Smartforms without reload all of them.
    Thank you very much.
    Regards
    Manuel

  • Employee Photos from KM

    I have a requirement to print Employee photos on a Smartform. These photos are stored separately in a Knowledge Management folder on Portal.
    Any thoughts on how this can be acheived would be highly appreciated.

    One possible way could be:
    Get the access URL from the Properties of your image files in KM e.g: http:/host:port/irj/go/km/docs/documents/a.jpg and use this link in your smart form

  • Calling infotype 0002 in ALV  report for showing employee photo

    Hi all,
    The requirment from business side is a report in which employees personal data shuold be shown with employee photo, I had tried for employee photo in ALV report but it didnt sucessed, then I went for other solution like calling transaction in ALV report.
    In this case I am calling Infotype 0002 but the issue is that the transaction PA20 is coming with PERNR but I am not able to go directlly to infotype which shows employee Photo,please suggest any solution.
    Thaks.
    JAY

    Hi Jay,
    It is possible. Please refer the syntax for the CALL TRANSACTION
    CALL TRANSACTION ta { [AND SKIP FIRST SCREEN]
                        | [USING bdc_tab [bdc_options]] }.
    You can do a recording till the required page comes & call the transaction accordingly. Hope, you are aware about the same.
    For example, I just had a solution to go to the roles tab in the user profile and I did as below:
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLSUU5'.
        wa_bdcdata-dynpro   = '0050'.
        wa_bdcdata-dynbegin = k_ok.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_CURSOR'.
        wa_bdcdata-fval   = 'USR02-BNAME'.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'USR02-BNAME'.
        wa_bdcdata-fval   = g_value.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_OKCODE'.
        wa_bdcdata-fval   = 'SHOW'.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-program  = 'SAPLSUU5'.
        wa_bdcdata-dynpro   = '0100'.
        wa_bdcdata-dynbegin = k_ok.
        APPEND wa_bdcdata TO it_bdcdata.
        CLEAR wa_bdcdata.
        wa_bdcdata-fnam  = 'BDC_OKCODE'.
        wa_bdcdata-fval   = '=ACTG'.
        APPEND wa_bdcdata TO it_bdcdata.
        g_opt-dismode = 'E'.
        g_opt-defsize = k_ok.
    *** if user click on the User Name, call SU01
        CALL TRANSACTION 'SU01' USING it_bdcdata
                    OPTIONS FROM g_opt.
    Regards,
    Selva K.

  • How to fetch Employee Picture in Smartforms

    Hi Experts
    Please help me out in getting employee picture in Smartforms
    I have used the following FMs
    1. HR_IMAGE_EXISTS
    2. SCMS_DOC_URL_READ
    By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
    But Please tell how to get this picture in Smartform .
    As i am generating Employee Biodata and in that i need employee Picture.
    Please HELP me ....
    Thanks & Regards
    Shaveta Prabhakar

    Hi Shaveta,
    The question has been raised earlier as well on SDN.
    Please search for 'Smartforms dynamic picture' on sdn and you will get a good number of solutions.
    The one answer which i found to be promising one is the one which mentioned somethig like:
    <b>Create a graphic node in the Smartform and under the tab 'General Attributes' fill the Name, Object and Id with variables (e.g. &NAME&, &OBJECT& and &ID&) and fill these parameters to get the picture you want at runtime.</b>
    See if this helps.
    check this link too
    smartforms dynamic logo
    and revert for more clarifications if any.
    <b>Always reward points to useful suggestions.</b>
    regards,
    Vikas

  • 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

Maybe you are looking for

  • Users to be created for ART and Workbech

    Hi Todd, I have an ART installation where I have created separate unix users for Workbench ( user work1 ) and ART (Work2 ). The product has been installed with a different user ( oracle ). I am facing some issues with this as work2 user is unable to

  • Best way to create animation in Flash and import into Premier Elements?

    Very short, 5-10 seconds, very simple animation. I would like to import it as my intro but I don't know what file format to export as from Flash, that would import well into PE? I am using Flash CS5 and PE 10. On a Mac 10.6.8... Thank you

  • Dynamically insert data into PDF possible?

    This is the scenario and I am hoping someone can advise whether it is possible. We want to create a PDF fillable form. However there are a few fields that we want to be read only but to injected before the user downloads the PDF. e.g. There is a PDF

  • My netflix app dosent have an X in the top left corner to close it what do i do?

    Im trying to watch netflix on my iphone 5s and its not letting me open it! It dosent open and then crash, it straight up wont open. I tried to delete it and uninstall it but theres no X in the top left corner of the app and i went to the app store to

  • Premiere Pro CC is not in the Creative Cloud

    I wantet to try Premiere Pro and I have Creative Cloud but I can't found Premiere Pro in the CC. What can I do?