Employee Mass Photo upload

Hi All,
Employee Mass Photo  upload:
Is there any functional way for doing same like Tcode: OAAD/ We dont need any technical team to involve in this photo load
Please let me know any thread related to this.
Appreciating immediate response
SD

Hello,
to mass upload the employee photos please use the program included in note 685520.
Hope this help
Sarah

Similar Messages

  • Delete mass photo upload task?

    Hello everybody,
    I have tried to use the mass photo upload iview in the portal (com.sap.netweaver.coll.demo.UserPhotoAdministrationMassUpload) to upload some photos. Unfortunately I entered an invalid path for the parameter "upload folder". This resulted in a photo upload task that is still running. I have tried to restart the portal, but the task stays active. Does anyone know how to delete this task?
    Best regards,
    Ardiles

    Hi Ardiles,
    We also have the probleme. This problem is statet as an Customer message to SAP-OSS.(Message No. 0020079747 0000068749 2006)
    Answer from SAP:
    the problem is fixed with Sps 16.
    Sorry for any inconveniences this bug might cause.
    Regards,
    Alfons Riedlsperger

  • Mass Photo Upload using Who's Who

    Hi,
    I want to upload Mass Photos using Who's Who .Pls. suggest if any one having this information
    Thanks & Regards,
    Hemant V. Mahale

    Hi Hemant,
    Configure and upload all our photos in the backend ABAP System as per the below link. http://www.****************/Tutorials/HRABAP/Image/Index.htm
    Perform IMG setting 'Display employee photograph' under IMG->Personnel Mgmt->ESS-> Service-Specific Settings ->Address book->who's who->Maintain settings.
         Or
    IMG activity -> Employee Self-Service -> Employee Self-Service (ITS Version) -> ESS Settings for Specific Services ->Office-> Who's Who/User's Own Data (ESS): Determine Functions :
    There is an option called Display employee photograph, please check this check box.
    I hope to have helped you.
    Thanks,
    Padmaja.

  • Mass photo upload

    Hi everyone
    In a ep6.0 sp2 patch28 portal a couple of iViews regarding upload of photos for users are available. The photos can be displayed in a discussion room when clicking on the users name. I can get the photo uploaded correctly when uploading one at a time, but when using the mass upload iView the picutres are uploaded but not displayed. Does anyone know how to solve this problem?
    Best regards,
    Ole

    Hi Ole,
    Were you able to do so I am using EP7 sp12 in which I have a iView which provides me this mass upload feature but i am not able to run the task properly.
    Can you suggest something on this.
    Regards
    sid

  • Mass photo employee upload

    Hi all,
    I got requiremet to mass upload employee photos from UNIX server to Documentum via sap archive link.
    To do this, I am using these function modules:
    SCMS_UPLOAD : to upload photos from application server and stored it in one internal table ( which is in binary format )
    ALINK_DOCUMENTS_CREATE_DIALOG : results the docid and repository id ( throught this all documentids got stored in
    content repository server)
    SCMS_DOC_CREATE : used to store all documents in Content repository server id.
    ARCHIV_CONNECTION_INSERT : establishes the conenction between repository and sap object
    As far as I know , regarding first and second function modules (SCMS_UPLOAD and ALINK_DOCUMENTS_CREATE_DIALOG)  which are used for same purpose ( i.e., to upload only the difference is popup window for second function module .So which one should I have to use among them.
    Which function module should I have to use to store all documents in Content repository server?after using first or secod function module,here I used 'SCMS_DOC_CREATE'.Is this correct?
    Could you please guide me whether the above mentioned function modules sequence are correct or not for my requirement or should I have to use some other function modules?
    Thanks in advance for your helpful answers
    Edited by: Harika Sriram on Feb 24, 2011 12:45 PM
    Moderator message: cross post locked.
    Edited by: Thomas Zloch on Feb 24, 2011 1:21 PM

    To perform a mass document upload and link, a program was developed.
    This program works independent from the business object and is able to:
    -  look for document in a file directory (frontend or backend)
    -  store them into the content repository customized
    -  creates a link to a named business object identified with a key
       which gets it from the file name of the document.
    This program is called ZOA_UPLOAD_AND_LINK and you can find more
    information on this program in the note 685520.
    KR,
    Karen.

  • Employee Photo upload

    Hi Experts,
    I need to upload the photographs of employee to SAP.
    All the config required for photo upload is done
    These photograph path details and Emp Id will be available in a flat file.
    As BDC approach using OAAD is not able to workout (picking of text file is via a Operating system screen so we can’t record it in BDC) so we used below approach.
    Using GUI_UPLOAD and ARCHIV_CREATE_DIALOG_META .
    The above approach works FINE for foreground and presentation server upload.
    Now the requirement is:
    I have 2 questions.
    1. It is not working for background processing.
    2. The photo has to be called from app server (images available on App. Server (UNIX)). is it possible to get JPEG file from app server without using GUI_UPLOAD?
    If it is possible do guide me.
    Regards,
    Rahul

    I thought I'd share this with everyone.   We figured out how to load pictures in batch processing using pictures stored on a unix server.   The code below is what we are using.    For now, I'm using a driver file from the local drive to determine which picture goes with which associate, but we plan to automate this by storing the pictures with the associate number in the name.   We'll then read the directory each night and load any new pictures.    I thought I'd share what we discovered for now so you can build what you need for your side. 
    REPORT ZHR_EMPLOYEE_PICTURES_UPLOAD
    NO STANDARD PAGE HEADING LINE-SIZE 255.
    Program Title: Program to mass load employee pictures into HR module
    INCLUDE
    PARAMETERS:
      P_INFILE   LIKE RLGRAP-FILENAME
                 DEFAULT 'c:\PICTURE.TXT',
      P_UNXDIR   LIKE RLGRAP-FILENAME
                 DEFAULT '/usr/sap/data/WINDOWS_DFS/'.
    I N T E R N A L   T A B L E S
    DATA : BEGIN OF INFILE_DATA OCCURS 0,
           IN_LINE(80)   type c,
           END OF INFILE_DATA.
    DATA : begin of inrec,
           raw(1024) type x,
           end of inrec.
    DATA : begin of itab occurs 0,
           raw(1024) type x,
           end of itab.
    Data: WS_FILENAME   TYPE STRING,
          WS_OBJID      LIKE SAPB-SAPOBJID,
          WS_FILELENGTH TYPE I,
          WS_FLENGTH    LIKE SAPB-LENGTH.
    S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
    Read input file that controls which picture goes with which associate.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          FILENAME = P_INFILE
          FILETYPE = 'DAT'
        TABLES
          DATA_TAB = INFILE_DATA.
      IF SY-SUBRC NE 0.
        WRITE : / 'Unable to upload data'.
        STOP.
      ENDIF.
      LOOP AT INFILE_DATA.
      Determine file name and personnel ID from input file.
        concatenate P_UNXDIR INFILE_DATA-IN_lINE+9(71) into WS_FILENAME.
        WS_OBJID    = INFILE_DATA-IN_LINE+0(8).
      Clear table holding picture data.
        clear ITAB.
        refresh ITAB.
      Reset overall file length variable.
        ws_flength = 0.
      Open dataset to read in binary mode.
        open dataset WS_FILENAME for input in binary mode.
        do.
        Read file one record at a time in binary mode.
          clear inrec.
          read dataset WS_FILENAME into inrec
               maximum length 1024
               actual length ws_filelength.
        Determine accumulated file length as each record read in.
          ws_flength = ws_flength + ws_filelength.
        Last record of file will cause sy-subrc to not be 0 and will be
        less in length than record size.
          if ws_flength > 0.
            move inrec to itab.
            append itab.
          endif.
        end loop at end of file.
          if sy-subrc ne 0.
            exit.                    "end of file must have been reached
          endif.
        enddo.
        close dataset WS_FILENAME.
      Add picture file to content server for specific associate.
        CALL FUNCTION 'ARCHIV_CREATE_TABLE'
          EXPORTING
            ar_object       = 'HRICOLFOTO'
            object_id       = WS_OBJID
            sap_object      = 'PREL'
            flength         = WS_FLENGTH
          TABLES
            binarchivobject = ITAB.
        IF SY-SUBRC = 0.
          WRITE : / WS_OBJID+0(8), ' -- picture loaded: ', WS_FILENAME,
                                   ' -- length: ', WS_FLENGTH.
        else.
          WRITE : / WS_OBJID+0(8), ' -- Unable to load pic: ', WS_FILENAME,
                                   ' -- length: ', WS_FLENGTH.
        ENDIF.
        clear INFILE_DATA-IN_LINE.
      ENDLOOP.

  • Report on employee photo upload [HRICOLFOTO]

    Hi Experts,
    Have gone thru many posts regarding photo upload, but is there any report or table which gives PERNR wise details for all the uploaded photos?
    Basically I want to know for how many employees photos have not been uploaded or the other way will also do.
    Have checked content repository table SDOKCONT1 but not of much help.
    Please help on the issue.

    Hi,
    Run report OAADMILI via SE38 for the relevant content repository.
    There restrict the output to PREL object.
    There you'll see all the personnel numbers who have a photo in the SAP Object ID column (along with the infotype number e.g. XXXXXXXXYYYY where XXXXXXXX is the personnel number and YYYY is the infotype)
    Regards,
    Dilek

  • List/Report of employees whose photos not uploaded

    Hi Friends
    We have uploaded employee photos in SAP, but few employee photos are missing.  Do we have some option to find list of employees whose photos not uploaded.
    Please help
    Thanks and regards
    Surya

    Hi Surya,
    You may have to write a custom report using FM "HR_IMAGE_EXISTS".
    -> For each employee check if image exist using FM "HR_IMAGE_EXISTS"
    -> If the FM does not return any output then that employee does not have any photo uploaded.
    Hope this helps!
    Thanks!
    Muktar

  • Employee Photo Upload through binary data

    Hi all,
    I know the Provision for Photo upload through OAAD Tcode, I know FM to upload the photos by giving path as input data. my requirement is I have picture in the form of binary data . i want to upload that into PA30. I have return the following code. No Error but image is not displayed in PA30.Can u Please correct me?
    tables: toav0, toaom, twfdb, toapa.
    data: key like ojint-key,
          object like ojint-name,
          object_id like toav0-object_id,
          archiv_id like toav0-archiv_id,
          arc_doc_id like toav0-arc_doc_id,
          ablagedatum like sapb-sapabldate,
          ar_date like toav0-ar_date,
          del_date like toav0-del_date,
          sap_object like toaom-sap_object,
          ar_object like toaom-ar_object,
          expiry_tim like toaom-expiry_tim,
          method like ojint-method,
          return like ojint-return,
          parameter like ojint-parameter.
    data:begin of i_toav0 occurs 1.
            include structure toav0.
    data: end of i_toav0.
    data: begin of i_toaom occurs 1.
            include structure toaom.
    data: end of i_toaom.
    data: begin of fields occurs 1.
            include structure ojfields.
    data: end of fields.
    DATA:     filename1  TYPE string.
    Data: i_name TYPE STXBITMAPS-TDNAME value 'TEST',
    *  archiv_id like toav0-archiv_id,
    i_id TYPE STXBITMAPS-TDID VALUE 'BMAP',
    i_btype TYPE STXBITMAPS-TDBTYPE VALUE 'BCOL',
    l_bds_bytecnt TYPE i,
    FLENGTH TYPE SAPB-LENGTH,
    l_bds_content TYPE TABLE OF bapiconten,
    OUTDOC     LIKE     TOADT ,
    wa_l_bds_content TYPE  bapiconten.
    *DATA : BINARY TYPE STANDARD TABLE OF TBL1024,
    data : BINARY TYPE STANDARD TABLE OF TBL1024 WITH HEADER LINE,
    ARCHIVOBJECT type standard table of docs,
    archiv_doc_id like toav0-arc_doc_id,
    wa_binary type TBL1024.
    data:  lw_ar_object like toaom-ar_object,
          lw_object_id like sapb-sapobjid,
          lw_sap_object like toaom-sap_object,
          lw_doc_type like toadd-doc_type,
          lw_path like sapb-sappfad,"toav0-arc_doc_id
    *      archiv_doc_id like toav0-arc_doc_id,
          doc_type like toadt-doc_class.
    constants:  c_sap_object type toaom-sap_object value 'PREL',
                c_ar_object type toaom-ar_object value 'HRICOLFOTO',
                c_doc_type type toaom-doc_type value 'JPG'.
    PARAMETERS: filename(150) TYPE c OBLIGATORY.                               "Name of the File where source as  txt format
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      PERFORM getfile.
    start-of-selection.
      filename1 = filename.
    key = '010001380002'.
      lw_ar_object = c_ar_object.
    *  lw_object_id = w_pernr_pass.
      lw_sap_object = c_sap_object.
      lw_doc_type = c_doc_type.
    *  lw_path = it_data-file_nam.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename = filename1
          filetype = 'BIN'
        TABLES
          data_tab = archivobject.
    * Object to be archived
          select single * from toaom where ar_object = c_ar_object and sap_object = c_sap_object.
          if sy-subrc <> 0.
            raise UPLOAD_ERROR.
          else.
    * Authority check with Archive id
            archiv_id = toaom-archiv_id.
            perform authority_check_create(oaall)
            using archiv_id object space ar_object space
            changing sy-subrc.
            if sy-subrc ne 0.
              raise UPLOAD_ERROR.
            else.
              if sy-subrc <> 0.
                raise UPLOAD_ERROR.
                clear toav0.
              else." Transfer key for archiving
                toav0-object_id = key.
                if key eq space.
                  Raise FUNCTION_ERROR.
                  clear toav0.
                else.
                  perform create_archive_object_new  .
                endif.
              endif.
            endif.
          endif.
    form create_archive_object_new .
    CALL FUNCTION 'ARCHIV_CREATE_TABLE'
        EXPORTING
          AR_OBJECT                      = lw_ar_object
    *   DEL_DATE                       =
          OBJECT_ID                      = '010001380002'
          SAP_OBJECT                     =  lw_sap_object
    *   FLENGTH                        = '2328'
       DOC_TYPE                       = lw_doc_type
    *   DOCUMENT                       =
    *   MANDT                          = SY-MANDT
    * IMPORTING
    *   OUTDOC                         =
       TABLES
       ARCHIVOBJECT                   =  ARCHIVOBJECT
    *     BINARCHIVOBJECT                = binary
    * EXCEPTIONS
    *   ERROR_ARCHIV                   = 1
    *   ERROR_COMMUNICATIONTABLE       = 2
    *   ERROR_CONNECTIONTABLE          = 3
    *   ERROR_KERNEL                   = 4
    *   ERROR_PARAMETER                = 5
    *   ERROR_USER_EXIT                = 6
    *   ERROR_MANDANT                  = 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.
      call function 'ARCHIVOBJECT_CREATE_TABLE'
        EXPORTING
          archiv_id                = archiv_id
          document_type            = lw_doc_type
    *      length                   = '2328'
        IMPORTING
          archiv_doc_id            = i_toav0-arc_doc_id
        TABLES
          archivobject             = archivobject
    *      binarchivobject          = BINARY
        EXCEPTIONS
          error_kernel             = 1
          error_communicationtable = 2
          error_archiv             = 3.
           move i_toav0 to toav0.
        toav0-sap_object = lw_sap_object.
        toav0-object_id = key.
        move archiv_id to toav0-archiv_id.
        move i_toav0-arc_doc_id to toav0-arc_doc_id.
        toav0-ar_object = lw_ar_object.
        move lw_doc_type to toav0-reserve.
        move lw_doc_type to doc_type.
        commit work.
      call function 'ARCHIV_CONNECTION_INSERT'
          exporting
            archiv_id                   = toav0-archiv_id
            arc_doc_id                  = toav0-arc_doc_id
            ar_date                     = ar_date
            ar_object                   = toav0-ar_object
    *     DEL_DATE                    = ' '
    *     MANDANT                     = ' '
            object_id                   = '010001380002'
            sap_object                  = toav0-sap_object
            doc_type                    = doc_type
    *        barcode                     = barcode
          exceptions
            error_connectiontable       = 1
            others                      = 2
    endform.
    FORM getfile .
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = ' '
          def_path         = '*.*'
          mask             = ''
          mode             = 'O'
          title            = ' SELECTING FILE FOR SOURCE PROGRAM'
        IMPORTING
          filename         = filename
        EXCEPTIONS
          selection_cancel = 3
          selection_error  = 4.

    Hi all,
    I know the Provision for Photo upload through OAAD Tcode, I know FM to upload the photos by giving path as input data. my requirement is I have picture in the form of binary data . i want to upload that into PA30. I have return the following code. No Error but image is not displayed in PA30.Can u Please correct me?
    tables: toav0, toaom, twfdb, toapa.
    data: key like ojint-key,
          object like ojint-name,
          object_id like toav0-object_id,
          archiv_id like toav0-archiv_id,
          arc_doc_id like toav0-arc_doc_id,
          ablagedatum like sapb-sapabldate,
          ar_date like toav0-ar_date,
          del_date like toav0-del_date,
          sap_object like toaom-sap_object,
          ar_object like toaom-ar_object,
          expiry_tim like toaom-expiry_tim,
          method like ojint-method,
          return like ojint-return,
          parameter like ojint-parameter.
    data:begin of i_toav0 occurs 1.
            include structure toav0.
    data: end of i_toav0.
    data: begin of i_toaom occurs 1.
            include structure toaom.
    data: end of i_toaom.
    data: begin of fields occurs 1.
            include structure ojfields.
    data: end of fields.
    DATA:     filename1  TYPE string.
    Data: i_name TYPE STXBITMAPS-TDNAME value 'TEST',
    *  archiv_id like toav0-archiv_id,
    i_id TYPE STXBITMAPS-TDID VALUE 'BMAP',
    i_btype TYPE STXBITMAPS-TDBTYPE VALUE 'BCOL',
    l_bds_bytecnt TYPE i,
    FLENGTH TYPE SAPB-LENGTH,
    l_bds_content TYPE TABLE OF bapiconten,
    OUTDOC     LIKE     TOADT ,
    wa_l_bds_content TYPE  bapiconten.
    *DATA : BINARY TYPE STANDARD TABLE OF TBL1024,
    data : BINARY TYPE STANDARD TABLE OF TBL1024 WITH HEADER LINE,
    ARCHIVOBJECT type standard table of docs,
    archiv_doc_id like toav0-arc_doc_id,
    wa_binary type TBL1024.
    data:  lw_ar_object like toaom-ar_object,
          lw_object_id like sapb-sapobjid,
          lw_sap_object like toaom-sap_object,
          lw_doc_type like toadd-doc_type,
          lw_path like sapb-sappfad,"toav0-arc_doc_id
    *      archiv_doc_id like toav0-arc_doc_id,
          doc_type like toadt-doc_class.
    constants:  c_sap_object type toaom-sap_object value 'PREL',
                c_ar_object type toaom-ar_object value 'HRICOLFOTO',
                c_doc_type type toaom-doc_type value 'JPG'.
    PARAMETERS: filename(150) TYPE c OBLIGATORY.                               "Name of the File where source as  txt format
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      PERFORM getfile.
    start-of-selection.
      filename1 = filename.
    key = '010001380002'.
      lw_ar_object = c_ar_object.
    *  lw_object_id = w_pernr_pass.
      lw_sap_object = c_sap_object.
      lw_doc_type = c_doc_type.
    *  lw_path = it_data-file_nam.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename = filename1
          filetype = 'BIN'
        TABLES
          data_tab = archivobject.
    * Object to be archived
          select single * from toaom where ar_object = c_ar_object and sap_object = c_sap_object.
          if sy-subrc <> 0.
            raise UPLOAD_ERROR.
          else.
    * Authority check with Archive id
            archiv_id = toaom-archiv_id.
            perform authority_check_create(oaall)
            using archiv_id object space ar_object space
            changing sy-subrc.
            if sy-subrc ne 0.
              raise UPLOAD_ERROR.
            else.
              if sy-subrc <> 0.
                raise UPLOAD_ERROR.
                clear toav0.
              else." Transfer key for archiving
                toav0-object_id = key.
                if key eq space.
                  Raise FUNCTION_ERROR.
                  clear toav0.
                else.
                  perform create_archive_object_new  .
                endif.
              endif.
            endif.
          endif.
    form create_archive_object_new .
    CALL FUNCTION 'ARCHIV_CREATE_TABLE'
        EXPORTING
          AR_OBJECT                      = lw_ar_object
    *   DEL_DATE                       =
          OBJECT_ID                      = '010001380002'
          SAP_OBJECT                     =  lw_sap_object
    *   FLENGTH                        = '2328'
       DOC_TYPE                       = lw_doc_type
    *   DOCUMENT                       =
    *   MANDT                          = SY-MANDT
    * IMPORTING
    *   OUTDOC                         =
       TABLES
       ARCHIVOBJECT                   =  ARCHIVOBJECT
    *     BINARCHIVOBJECT                = binary
    * EXCEPTIONS
    *   ERROR_ARCHIV                   = 1
    *   ERROR_COMMUNICATIONTABLE       = 2
    *   ERROR_CONNECTIONTABLE          = 3
    *   ERROR_KERNEL                   = 4
    *   ERROR_PARAMETER                = 5
    *   ERROR_USER_EXIT                = 6
    *   ERROR_MANDANT                  = 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.
      call function 'ARCHIVOBJECT_CREATE_TABLE'
        EXPORTING
          archiv_id                = archiv_id
          document_type            = lw_doc_type
    *      length                   = '2328'
        IMPORTING
          archiv_doc_id            = i_toav0-arc_doc_id
        TABLES
          archivobject             = archivobject
    *      binarchivobject          = BINARY
        EXCEPTIONS
          error_kernel             = 1
          error_communicationtable = 2
          error_archiv             = 3.
           move i_toav0 to toav0.
        toav0-sap_object = lw_sap_object.
        toav0-object_id = key.
        move archiv_id to toav0-archiv_id.
        move i_toav0-arc_doc_id to toav0-arc_doc_id.
        toav0-ar_object = lw_ar_object.
        move lw_doc_type to toav0-reserve.
        move lw_doc_type to doc_type.
        commit work.
      call function 'ARCHIV_CONNECTION_INSERT'
          exporting
            archiv_id                   = toav0-archiv_id
            arc_doc_id                  = toav0-arc_doc_id
            ar_date                     = ar_date
            ar_object                   = toav0-ar_object
    *     DEL_DATE                    = ' '
    *     MANDANT                     = ' '
            object_id                   = '010001380002'
            sap_object                  = toav0-sap_object
            doc_type                    = doc_type
    *        barcode                     = barcode
          exceptions
            error_connectiontable       = 1
            others                      = 2
    endform.
    FORM getfile .
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = ' '
          def_path         = '*.*'
          mask             = ''
          mode             = 'O'
          title            = ' SELECTING FILE FOR SOURCE PROGRAM'
        IMPORTING
          filename         = filename
        EXCEPTIONS
          selection_cancel = 3
          selection_error  = 4.

  • HREmpl- Photo upload

    Hi friends,
    Im just beginner in HR-ABAP and Im uploading employee pics(mass) thru BDC object with Tcode:OAOH but Im getting error at end as Error:401 Unauthorised.
    Just kindly advise me, before I go this, is there any confg has to do by the HR consultant? so y Im getting this error or what is the steps will be done.Pls post me in detail.
    Note:The image is not coming out for my HR consultant, has he done all this conf methods correctly and he also got successful message at end but its not displaying the image we loaded.
    Pls advise.
    Thanks & regards
    sankar.

    hi
    check this code for photo uploading
    REPORT ZHR_BDC_UPLOADPIC
         NO STANDARD PAGE HEADING LINE-SIZE 255.
         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_CURSOR'
                                    'TOAOM-AR_OBJECT'.
      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 'SAPLSJ01' '0200'.
      PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                    'FIELD_VALUES-INPUT(02)'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '=OK'.
      PERFORM BDC_FIELD       USING 'FIELD_VALUES-INPUT(01)'
                                IT_DATA-RP50G-PERNR.       "'10002'.
      PERFORM BDC_FIELD       USING 'FIELD_VALUES-INPUT(02)'
                                    '0002'.
      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'.
      PERFORM BDC_TRANSACTION USING 'OAOH'.
      clear IT_DATA-RLGRAP-FILENAME.
      ENDLOOP.
      PERFORM CLOSE_GROUP.
    thanks
    sitaram

  • Photo Uploading

    Hi
    I have configured all the steps necessary for uploading the photograph of the employees. But when at last step when i am running T Code OAAD, after entering all the details it is showing
    Repository A2 not accessible by HTTP
    What is the way out here... Kindy help me out as the photo of the employees cant be uploaded...
    Reagrds
    Harshvardhan

    Hi Harshvardhan,
    Please make your basis people check whether the web engine is up and running or not.
    Regards,
    Dilek

  • Photo Uploading Problem in HR

    Hi can anybodybtell after doing every necessary settings in  employee photo upload "http signer 404 error is coming" & photo is not uploading,What is the reason behind it?

    Hi,
    Can you pleaase try below and the end result the content server should be activated. If it is activate the writing should be in bold (as opposed to greyed out)
    Transaction code: SICF
    Here you activate the Content Server Interface.
    First you need to create a user profile with sufficient authorisations to carry out the processes which are done by the system in the background. Ideally this should be a background user for a notional/dummy user.
    You can use your own user ID after which SAP will warn you that this is a dialogue user account. If you do use your own user ID, change it as soon as you have tested the config. Once you have finished the project, the chances are that your user account will be deleted from the system which will subsequently stop this service from working.
    Double-click on content server in the left hand tree structure. You can find it under default_host --> sap --> bc --> content server
    Once you have done this click on the refresh icon and make sure that the service is activated. If it is activated, the writing should be in bold (as opposed to greyed out)

  • Report - employees with photo/no photo

    Hi Friends
    We have uploaded  only some employees photo, and want to take a report  the employees with photo/no photo, is there any std report available for this purpose (I didnu2019t find), if no, how can we take this report
    please advise
    Regards
    Kiran

    Kiran,
    please try this
    Report of the employees with no photo
    Hope it helps
    No Worries
    KG

  • Photo upload (Urgent)

    Hi SAP gurus,
    We have done photo upload in SAP. Accidently we have missed out upload for few employees. How or where can we find the list of those employees from SAP?

    For missing you need to find out employees for whome u have not created the archive link...
    you can find at OAAD itself... Find Technical Search Button.
    Message was edited by:
            Bhawanidutt Dabral

  • Mass Data upload in SAP from 3rd party system

    Hi Experts.
    Can anyone help me how to do mass data upload in SAP. Actually, when any new joining is done, a form is being filled by employee(joining form), and that data is finally updated in SAP manually using various infotypes. Now, i m planning to make that form available in webpage. The employee will go to the webpage, fill the data , also the HR will fill the required fields, and once the form is complete, the data will get updated in SAP, in resp. infotypes. Like personal details in infotye 2, address in infotype 6, bank details in 9 and so on, in a single shot. Is there any BAPI or something like that, using which this can be achieved.
    Thnx
    S Kumar

    You can try BAPI_BANK_CREATE for IT0009, BAPI_ADDRESSEMP_CREATE for IT0006 and BAPI_PERSDATA_CREATE for IT0002. Otherwise, you can also use FM HR_MAINTAIN_MASTERDATA to create any infotype.
    Have a look also at the Life and Work Events functionality in SAP Portal (http://help.sap.com/erp2005_ehp_04/helpdata/EN/f6/263359f8c14ef98384ae7a2becd156/frameset.htm)

Maybe you are looking for

  • FM for getting all days of week

    Hi, When I enter todays date FM should bring up all dates in a week. Eg: today if user enters 02/04/2009 It should give me values 3/29 , 3/30 , 3/31, 01/04,02/04 etc.. Do we have any FM for this? Rgds Praveen

  • User exit or BADI for ME31K for create Contract

    Hi, I want that in Tcode ME31K when i create a contract, for a particular vendor and particular material only one contract should be allowed to create. If i try to create a second contract with the same vendor and material it should not allow me to d

  • Commit Button Still Disabled After Table Edit

    I am using JDeveloper 11.1.1.6. I have a table on my page that is clickToEdit. I have CreateInsert and Delete buttons. I have Commit and Rollback buttons that are initially disabled. When I edit the value of an existing field and press Enter, the Com

  • PDF printer feature

    My version 7 standard was just retored to a new computer but the PDF printer feature would not load. Any ideas?

  • Unable to start oracle app server 10g through opmnctl file Red Hat linux

    Hi gurus, I have a VM (Red Hat Linux based). I am not able to start my application server 10g through opmnctl file (exists in opmn/bin folder). I open that folder opmn/bin through terminal and write the following command opmnctl startall nothing is h