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.

Similar Messages

  • 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

  • Mass uploading of employee photos.

    Hi Experts,
    I am uploading one  employee photo in ecc 6.0,Thats completed successfull.Now i am planning to upload bulk number of employee photos in to sap as well as in to ESS.I am tried to upload of 2000 employee photos through bdc ,but while running the BDC its asking the selection of employee photos from the location.So kindly update your views on this how to upload all employee photos with out manuall selection of photos.
    how can we update our photos in ESS once we completion of photos updation in sap.
    Thanks & Regards,
    arjun

    check this thread
    Mass upload of employee photos in OAOH

  • Upload Massive Employee Photo into SAP - Archive link - SAP ECC 6.0

    Dear all,
    I try to insert the employees photo in Archive Link (release 46).
    I write a massive report to do a batch input, but I cannot insert the path and the name of the picture.
    Because the BTC don't memory the "call method cl_gui_frontend_services=>file_open_dialog"
    I wrote the folowing report
    *& Report  ZHR_BDC_UPLOADPIC
    REPORT zhr_bdc_uploadpic
         NO STANDARD PAGE HEADING LINE-SIZE 255.
    * include
    INCLUDE bdcrecx1.
    * i n t e r n a l t a b l e s
    DATA : BEGIN OF it_data OCCURS 0,
         rp50g-pernr(8), " LIKE RP50G-PERNR,
         rlgrap-filename(128),
      END OF it_data.
    * s t a r t - o f - s e l e c t i o n
    START-OF-SELECTION.
      PERFORM open_group.
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = 'C:\PICTURE.TXT'
          filetype                = 'DAT'
        TABLES
          data_tab                = it_data
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      IF sy-subrc NE 0.
        WRITE : / 'Unable to upload data'.
        STOP.
      ENDIF.
      LOOP AT it_data.
        PERFORM bdc_dynpro      USING 'OANEWCON' '0100'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=NEW'.
        PERFORM bdc_field       USING 'TOAOM-SAP_OBJECT'
                                      'PREL'.
        PERFORM bdc_field       USING 'TOAOM-AR_OBJECT'
                                      'HRICOLFOTO'.
        PERFORM bdc_dynpro      USING 'SAPLOA12' '0200'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=OK'.
        PERFORM bdc_field       USING 'OBJID-VALUE(01)'
                                      it_data-rp50g-pernr.
        PERFORM bdc_field       USING 'OBJID-VALUE(02)'
                                      '0002'.
    *---- not exist - begin
    *    PERFORM bdc_dynpro      USING 'SAPLOPTM' '0105'.
    *    PERFORM bdc_field       USING 'BDC_CURSOR'
    *                                  'SAPB-SAPPOOLINF'.
    *    PERFORM bdc_field       USING 'BDC_OKCODE'
    *                                  '=OKAY'.
    *    PERFORM bdc_field       USING 'SAPB-SAPPOOLINF'
    *                                  it_data-rlgrap-filename.      "JPG'.
    *---- not exist - end
        PERFORM bdc_dynpro      USING 'OANEWCON' '0100'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/EBACK'.
        PERFORM bdc_transaction USING 'OAOH'.
        CLEAR it_data-rlgrap-filename.
      ENDLOOP.
      PERFORM close_group.
    Could you help me to understand a different method to upload the pictures?
    Thank you in advance.
    Best regards
    Luca Moschioni

    Hi,
    for uploading the photograph you need to do some customization.
    1. Initial customization
    Execute transaction code OAQ1 and put X in all the boxes.
    Execute t code OAB4 and schedule the job
    Execute t code SPAD and configure an output device
    Execute T code OANR and configure the number range
    Execute T code OAGI and deactivate Print list management system
    EXecute T code SA38 and execute program RAPARAM and check for rspo/archive_format and make sure it should have 2 assigned on it.
    2. Execute t code OAC0 and configure content repository
        Execute t code OAC2 and make your document type
        Assign JPG doc class to your doc type made in OAC2 in t code OAC3.
    3. Now go to transaction code OAD5 and configure your settings
       Come to t code OAWD and upload all your scanned photo to SAP
    I know the procedure is tedious and lenghthy but there is no way out.
    If it helps you then reward it.
    Enjoy
    For further help contact at [email protected]

  • 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

  • Mass upload of employee photos in OAOH

    Dear all,
    In OAOH transaction, if you type in the business object PREL, and doc type HRICOLFOTO, a small dialog box appear and you type in the employee no.  Afterwards, another window dialog box appear prompting the file name/path....
    I would like to know if there is any method to mass upload thousands of employee photos, since batch input does not work in the file/path selection screen (window's dialog box)
    Thanks a lot for your help !
    patrick

    Hi Patrick,
    Generally it is not suggested to Upload Photograph using Mass Upload.... normally it is one to one ... one perer at a time.
    But if its too urgent and critical then fallow this steps.
    1) Store the Photograph of the Employee as the PERNR.JPG (PERNR = EMPLPYEES PERSONNEL NUMBER) at a predifined location.
    2) Have a text file with all the pernr for whom you want to upload the photo and the JPGs you have in the folder.
    3) Use this Function module with the loop for all the PERNR
    * Function module to update Tran OAAD
    * Create file path (Directory)-(Employee No.).JPG
        CONCATENATE 'dir where the file is stored' wa_pernr-pernr '.' 'jpg' INTO lw_path.
    * Assign Values
        lw_ar_object  = text-002.         "HRICOLFOTO
        lw_object_id  = wa_pernr-pernr.
        lw_sap_object = text-003.         "PREL
        lw_doc_type   = text-004.         "JPG
        CALL FUNCTION 'ARCHIV_CREATE_FILE'
          EXPORTING
            ar_object                     = lw_ar_object
    *   DEL_DATE                      =
            object_id                     = lw_object_id
            sap_object                    = lw_sap_object
            doc_type                      = lw_doc_type
            path                          = lw_path
         EXCEPTIONS
           error_conectiontable          = 1
           error_parameter               = 2
           error_archiv                  = 3
           error_upload                  = 4
           error_kernel                  = 5
           no_entry_possible             = 6
           error_comunicationtable       = 7
           OTHERS                        = 8
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    This will help you to create the Archive link.
    Hope this helps you.
    ~Bhawanidutt

  • Uploadation of employee photo

    Ii am going to upload employee photo. Does anybody know the configuration setting, transaction for this step and also please tell me what is the format i will use for pics....

    Hi,
    Please refer to earlier posts or go through this link for your query...
    http://www.sd-solutions.com/SAP-HR-Employee-Photos-v4.6.html

  • Mass upload for employee photos (IT0002)

    Hi I would like to do a mass upload of employee pics to R/3 . I have tried the FM, ARCHIV_CREATE_FILE and it was uploaded successfully but I'm unable to specify the infotype. which for my case I would need it to be in IT0002.
    I've tried the BDC program
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/add%2bemployee%2bphoto%2bon%2binfotype%2b0002
    But the pics are still not appearing.
    Anyone has this issue befofe?

    yes. I have tried to upload it manually and it is working. But when I run the program it doesn't work. Could it be the path that I need to specify? Because the client uses IXOS software(links with the 4.6c) to upload the pics and doc. I'm not sure is this the reason it is not working.

  • Very Important: Employee photo on module pool screen: Points assured

    hi all
    I have uploaded the employee photos using tcode OOAD.
    Now in a module pool program, i need to show the emloyee's photo on the screen alongside the employee's other details..
    Please let me know how to get the employee photo on screen.
    thanks in advance
    <b>Points assured </b>

    You can use the PICTURE CONTROL for this. Check the Link for further details
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf
    http://help.sap.com/saphelp_erp2004/helpdata/en/9b/d080c09fc111d2bd68080009b4534c/frameset.htm
    Also check the program RSDEMO_PICTURE_CONTROL
    Message was edited by:
            Abhishek Jolly

  • 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

  • Is it possible to upload employee photo into IT 0002 in ECC 6.0

    Hello Guru's,
    I have a requirement to upload employee photo's to Infotype 0002, so gone through all the steps in the threads posted here and felt that all were for R/3 4.6 n 4.7 only.
    I have a different set up in few tables like OAC0 in ECC 6.0.
    Request you all to let me know if uploading of employee photo is possible in ECC 6.0 ?? if so, let me know the configuration steps.
    with screen shots are more appreciated.
    Regards,
    Priya.

    You'll find the customizing settings in :-
    IMG - Personnel management - personnel administration - customizing user interfaces - change screen header.
    Regarding the archiving part you better ask your basis admin to set that up for document type HRICOLFOTO.
    2) Photo in the PA IT0002 In version 4.0B it worked
    1. Define physical archives using transaction OAC0 Arx. ZZ
    2. Assign objects types & document types to archive & documents tables for Obj PREL , doc.type HRIEMPFOTO,
    Arx. ZZ using transaction OAC3
    3. Define number range using transaction OANR
    4. Using transaction OAC2 define doc.typ & tech doc types for exmpl. HRIEMPFOTO - TIF
    5. Create protocol for Archive link using transactions OAA3 for exmpl. Comm.prot.,version. Generate it will define
    application type from list and so on.
    6. In the table 585O define relevant infotype for object and document type for exmpl. for it0002
    7. Using transaction OAAD create link for PERNR with relevant infotype & files on the server, which described on the
    first step.
    Link:Uploading Employee photos against IT0002 in ECC 6.0

  • Employee Photo Mass upload

    Hello,
    We are trying to upload Employee photos using FUnction Modulr ARCHIVE_CREATE_FILE
    it is working till we upgraded to patch level 55 after that it is giving Error_Archive
    What needs to be done
    Regards
    Chakravarthy Nalla

    Hi Nalla,
    Please try Function module ARCHIV_CREATE_DIALOG_META.
    Regards,
    Dilek

  • How to know whether employees' photo were uploaded?

    Hi SAP Gurus,
    We have uploaded some employees photo thru BDC. We need to know the gaps. Is there any standard report in SAP thru which we can get the data of which employees photos got uploaded and who are left out.
    Thanks in advance.
    Best regards,
    Soumyajit

    Hi,
    Is there any report that will give us the entire list of employees, including those whoes photo have been uploaded and those who were missed out.
    Points awarded.
    Best regards,
    Soumyajit

  • 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

  • ESS Employee photo

    Dear Experts,
    Currently ESS portal employee  photo is been wrongly getting updated.We have checked in R3 system per employee more than one JPG photo file  is there.
    Is there any option to overwrite the last updated photo as default one in R3 system same can be shown in ESS portal.if yes how can be done.
    kindly add your valuable suggestion.
    Regards
    Vinodh

    Dear Vinodh,
    Yes, you can delete the last document of photo.
    T.code-oaad
    Go to stored document->documents-> find documents in menu bar and click on execute button, you can see list of photo uploaded document and you can select the object type row with your wrongly updated employee ID and click on delete button up. With this wrongly updated photo will be removed.
    Please let me know incase any help.
    Regards,
    Meenakshi

Maybe you are looking for

  • Removing Forefront Protection for Exchange

    I am looking into moving away from Forefront Protection for Exchange since it can't be renewed (prob to Cisco Ironport). What exactly do I need to do remove it completely? Current set up: Exchange 2010 behind Forefront TMG. Forefront Protection for E

  • Slow back-up on Time Capsule

    I have had my iMac since 2009 and the same date for my Time Capsule.  I am a paranoid back-up person, so I back-up to my Time Capsule and I also back-up to an external hard drive via Firewire.  The same amount of back-up material takes about 5 minute

  • Too many recipients in email

    I get fax from Myfax via email, so I added my eprint email address to the list of emails on Myfax receive preferences. I get the fax to the yahoo email but not to my eprint email. When I check on ePrint Center it says  "Too many recipients in email"

  • Getting Artifacting in my Audio Files

    I'm getting artifacting in my audio files and I can't find any reason for them to become corrupt. It seems pretty random and not connected with any particular function. Artifacts appear at random in my audio files in soundtrack pro, even when I haven

  • Need help with vectors

    I'm creating Drink objects into my vector (I'm required to use a vector in my program). However everytime a new Drink object is created and added into the vector, the other Drink objects in the previous indexes are somehow made into aliases of the ne