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.

Similar Messages

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

  • Employee photo upload in portal and to be saved in infotype 0002

    Hi Everyone,
           I got an requirement where in ESS Portal, through "Change Own Data" link, employee is uploading his photo and it has to be saved in infotype 0002. Below are the doubts i have,
    1. There is no field for photo in infotype 0002, so how it will be saved in 0002.
    2. After uploading and clicking preview button, error was raising saying 'Error when archiving the photo'.
    3. I seen in many forums that the employee photo is visible from PA30. how it will be visible in that tcode ?

    Hi  Chris McNarney,
          Sorry for long delay for replying.. According to you,
    1. I checked the service under /default_host/sap/bc/conentserver/ it was activated and moreover below is the logon data,
            Client           500
         User             XXXXXX
         Language
         Password Status  Set
    and what is the use of this logon data..
    2. According to your link [https://wiki.sdn.sap.com/wiki/display/ERPHCM/Add%20Employee%20Photo%20on%20Infotype%200002?showChildren=false|https://wiki.sdn.sap.com/wiki/display/ERPHCM/Add%20Employee%20Photo%20on%20Infotype%200002?showChildren=false],
    there it has  4.7 version in that they told to create A2 repository with Tcode: OAC0 with details,,
         While creating the repository, keep the Document Area blank, Storage type as R/3 database, Rep. Sub-type will appear as Normal by default, Version No. as 0046 and in Contents table put 'SDOKCONT1' as the table name.
        With that screen im am not able to find table name field to put 'SDOKCONT1' as input and moreover SAP system database is there instead of getting R/3 database for storage type. Screen detilas below,
    Content Rep.    A2                               Active
    Description
    Document Area
    Storage type
    Version no.     0046   Content Server version 4.6 as the table name.

  • Photos uploaded through icloud control panel are only synced with iphone but not with ipad

    Photos which are uploaded through icloud control panel are only synced with iPhone but not with iPad. Photos taken with iPhone or iPad are synced with all devices. So, why I do not get the uploaded photos from my pc to iPad? I alredy disabled photo stream on all devices - same failure

    If only one device is not getting updated data, you need to troubleshoot that device and not photostream itself.
    Verify that ipad is connected to wifi, charged over 20 percent, camera app is closed and take a photo of the screen (or anything else, but then close that camera app).
    Open photostream folder on that ipad and see if picture shows up. If you network is good, should not take long.
    Don't forget that while your phone can use wifi and cellular (even it suppose to use wifi for photostream, cellular networks got much better since original photostream was implemented) - you ipad is probably wifi only.
    If picture shows up - you ipad and photostream have no problems and you can go to other devices one by one.

  • 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

  • Employee photo upload issue

    Hello Experts,
    i am uploading a photo wih the help of abaper but problem is when i run t code OAC0 and create repository for that
    storage type should be type as R/3 database .but when I  am selecting it is not coming another option is comes HTTP CONTENT SERVER.
    Wiil u plz help me out?
    i used below step
    Now Create the A2 repository with Tcode: OAC0
    While creating the repository, keep the Document Area blank, Storage type as R/3 database, Rep. Sub-type will appear as Normal by default, Version No. as 0046 and in Contents table put 'SDOKCONT1' as the table name.
    Thanks and Regards
    Jaydeep Jadhav

    U can follow the following steps.
    Configuring Employee Photos
    Create Number Range
    A number range must be created for SAP Archive Link.
    Transaction code: OANR
    For this process, additional authorisation is required for S_NUMBER = 03 ARCHIVELNK.
    In u2018Intervalsu2019, create number range 01 from 0000000001 to 9999999999 without the external number flag.
    This is likely to already exist.
    Assign Documents Class
    Document type HRICOLFOTO must exist with document class JPG.
    Transaction code: OAC2
    Table TOAVE
    Document type settings
    Document type HRICOLFOTO must be linked to object type PREL and Infotype 0002.
    Transaction code: SM31
    Table V_T585O (View)
    Set all three columns here to minuses and don't put a flag in the check box.
    Content Repository
    Create a content repository with storage type FILE archive.
    Transaction code OAC0
    IMG: Basis Components --> Basis Services --> SAP Archive Link --> Basic Settings --> Maintain content repositories
    Swap from display to amend. Select a current entry and u2018copyu2019 or just hit u2018createu2019. Then select .
    Then fill in the details as below:
    Choose a two character name u2013 can use Zx (where x is a number) if you wish to use the customer namespace
    Choose the relevant description
    Set DocArea to be u2018Archive Linku2019
    Storage type u2013 set to R/3 Database
    Protocol u2013 leave blank
    Choose Version no. 0046 (or the latest one that is available)
    Contents table u2013 set this to SDOKCONT1
    Basic Path u2013 c:\ (this should be set to where the photos are all held)
    Archive Path u2013 c:\ (this is the area from where the photos are retrieved)
    Output Device u2013 can leave blank
    Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a u2018copyu2019 and stores it elsewhere. The path may only need to be entered to u2018Arch.pathu2019, but entering to all three doesnu2019t seem to hurt.
    Maintain the required Basis Service
    Transaction code: SICF
    Here you activate the Content Server Interface.
    First you need to create a user profile u2013 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 u201Ccontent serveru201D 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)
    Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL
    Transaction code: OAC3
    Table TOAOM_C
    Set the u2018Content Repositoryu2019 field to the one you set up in the step above.
    Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!)
    Link photo to personnel number
    Transaction code OAAD
    Click on the Create u2013 Store and Assign button. Enter Business Object PREL and Document Type HRICOLFOTO. Click on create(F8).
    Enter the Personnel Number of the employee you want to link the photo to.

  • 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

  • Employee photo upload from BSP

    Dear experts,
    I'm trying to upload employee photos from a BSP. However, as they have to be stored on the content server and linked to the employee number, I don't know which FM's are need to be called.
    I'd thank you if you can provide me a step by step guide of the process to follow.
    Many thanks in advance,
    Angel Cepa

    Dear Anusha,
    Many thanks for your response.
    Have you tried this method successfully or it's just a clue?
    Best regards.

  • ESS - Employee photo upload - error  - ECC  EHP7

    Dear All,
    When trying to upload employee photo it is giving the following error.
    ERROR: Invalid parameter SECONDARY_RECORD-PSKEY , value 000000013258 9999123119860101000 (termination: RABAX_STATE)
    Regards,
    Srinivas

    Having a look at the settings in our system where this is working, I can see that we have used SDOKCONT1, we haven't created a ZSDOKCONT1. Maybe you can try this as well?
    The other difference is that under the Protocol tab i.e. in transaction OAC0 we have created our own Protocol ZHRPRO, and this is maintained via (i think) via transaction OAA3. Our settings for this are:
    Hope this helps.

  • How to upload large binary data to dB so it can be read by any app?

    Hi everyone,
    Short version: how do you upload binary data into a MySQL blob field in such a way that it can be read by any application?
    Long version:
    I've been struggling with the problem of putting files into database BLOB fields. (MySQL and Database Connectivity Toolkit).
    I was initially building a query string and executing the query but was finding that certain binary characters were causing failures (end of string terminators, etc...) So, a working solution was to encode the binary string, and that worked fine, although bloated the dB a fair bit. I could decode in LabVIEW and then save the file as needed.
    Now, the customer wants to be able to save the files using other apps, including the MySQL Query Browser, so an encoded file is no good.
    I found using a parametrized query allows me to put the unencoded string into the dB, but it appends a 4-byte length at the front of the BLOB before it inserts it into the dB. Some apps ignore these 4-bytes (such as .pdf) but most do not.
    A related thread on NI discussion forums: http://forums.ni.com/ni/board/message?boar...ssage.id=354361 has no solution, and my support ticket at NI has been ongoing without answer for a while.
    Thanks,
    Ben

    The problem is the DCT. Using ADO it is fairly easy to insert binary data into a BLOB field. I have not tried it in MySQL, but it works fine in SQL Server, Oracle, Firebird and other free/open source databases I have tried. To get you started, see this thread.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Employee Photo Upload Error!

    Hi Experts:
    I'm getting an error while trying to display (Using Display All Fascimiles) the Employee Photo assigned to the Personnel No:
    Message:
    "Error while opening document with HTML control; DP_ERROR_GENERAL"
    Has anyone faced this error earlier.......?
    regards,
    Sree

    Hi,
    I am using ECC 6.
    I hope these links may help you
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/employee%252bphoto%252bupload
    http://www.sd-solutions.com/documents/SDS_Employee_Photos_v4.7.html
    also check with SICF GUI setting with basis people
    By,
    Anand
    Edited by: anand babu on Nov 18, 2008 5:56 PM

  • Employee Photo Upload Fail - "System error when archiving"

    Hi all,
       When i am trying upload a photo of an employee in our ESS development portal its working fine. But the issue here is when i am trying to upload the same in testing ESS portal its displaying an error message as "System error when archiving a photo" and i tried to upload the photo in back end also at that time its displaying an error as "HTTP error :401 unauthorized".
    Kindly help me to resolve this problem ASAP.
    URGENT!!!!!!!
    Thanks in advance..!!!

    Hi Van,
      Thank you for your reply. Finally we found the solution for this. The Issue was that the user CONT_SERVER in SICF(tcode) -> Content Server was locked. We unlocked it , now the photos are uploading successfully...

  • Employee Photo Upload in HRMS

    Hi All
    I am working in R12 Implementation and here we need to upload the photos of the employees into the applciations.It would be a great help if any one can suggest me on this. Can this be done? If so which way.
    regards
    Srujana

    Hi,
    This can be done from the application as follows:
    - Login to the HRMS Super User (HRMS manager) responsibility
    - Navigate to People > Enter and Maintain
    - Find the person
    - Click on Picture button
    - Click on Load Picture
    Note: 452165.1 - How To Load New Photos to the Employee Directory
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=452165.1
    If you want to use an API, refer to:
    API to load images for
    Re: API to load images for
    Regards,
    Hussein

  • Info required on Employee Photo upload

    Hi Friends,
    Can any of you explain my questions listed below:
    1. Is there any storage limit for storing the photos in Content repository ?
    2. If not , If I have a requirement to store lot of  photos, does it impact the performance of the system in anyway?
    3. How to upload photos for a group of employees?
    Kindly share the link or document where I can get all the information about the above said questions.
    Thanks in Advance.
    Regards,
    Nithya.

    1) CUstomizing steps
    IMG - Personnel management - personnel administration - customizing user interfaces - change screen header.
    Regarding the archiving part - Basis admin to set that up for document type HRICOLFOTO.
    2) Photo in the PA IT0002 In version 4.0B
    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.
    3)
    In addition to any infotype fields you can also include passport photos of your employees in the infotype header in Infotype Header Definition view (T588J).
    In the System Table view (T77S0), determine the document type with which you want to enter the passport photos in the optical archive.
    Still does not work? try as suggested below:
    When I execute the OAAD transaction the result is ok, but when I look at PA30 I can´t see the photo.
    In PA30 if I look by "Extras-> display all facsimiles" the photo appears correctly, so the photo is assigned to the employee number.
    Then my problem is in the initial screen in PA20, PA30,...
    From an OSS message from SAP:
    For using an employee picture in the PA20/PA30 please check that you have a correct customization for the infotype header.
    For further information please have a look at the corresponding point in the customizing for 'Personnel Administration' - 'Define Dynpro header'.
    You have to check the table T588J and T77S0 (define document type for pictures). Additionally, remember that the photo should be in JPG format."
    You may find helpful note 353949.
    T588J could look like:
    00 1 60 0001 PERNR PIC

  • Photo upload through itunes in IPod

    Hi
    I am using IPod classic 80GB, I downloaded itunes 7.5 from apple.com but am unable to find an option to upload Photos through itunes.
    Please help in knowing how to upload photos & videos to my 80 gb IPod classic.
    Thanks
    Punit Sharma
    [email protected]
    +91 98285 05251

    This should help.
    http://docs.info.apple.com/article.html?artnum=304677#2

Maybe you are looking for