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.

Similar Messages

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

  • 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

  • ESS- Employee Photo is not displaying.

    Dear All,
    Employee photo is not displaying in Who's who application of Employee search.
    By right click help gone through the Properties.
    It is giving message that..
    "800?get&pVersion=0046&contRep=Z2&docId=E135E81A75C422F1B0B95CF3FC94086E&accessMode=r&authId=CN%3DPR1,OU%
    3DI0020259918,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20120104085649&secKey=MIIBUgYJKo
    ZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UE
    BhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0k
    wMDIwMjU5OTE4MQwwCgYDVQQDEwNQUjECByARBQkJWFkwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG
    9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDEwMzA4NTY0OVowIwYJKoZIhvcNAQkEMRYEFOB%2Fx7LoOChOjGW3iIGG
    FxjjpJkMMAkGByqGSM44BAMELzAtAhRpHueDstxejUkJ0F2j7PNmxPu5xQIVAILHJcNOP7pvx%2BbPVgmDX%2F5Osaby"
    here 800 is client number and Z2 is the content repository name.
    also
    http://<Host>.xxxxxxxxx.com:<port>/sap/bc/contentserver/800?get&pVersion=0046&contRep=Z2&docId=E135E81A75C422F1B0B95CF3FC94086E&accessMode=r&authId=CN%3DPR1,OU%
    3DI0020259918,OU%3DSAPWebAS,O%3DSAPTrustCommunity,C%3DDE&expiration=20120104085649&secKey=MIIBUgYJKo
    ZIhvcNAQcCoIIBQzCCAT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGCAR4wggEaAgEBMG8wZDELMAkGA1UE
    BhMCREUxHDAaBgNVBAoTE1NBUCBUcnVzdCBDb21tdW5pdHkxEzARBgNVBAsTClNBUCBXZWIgQVMxFDASBgNVBAsTC0
    kwMDIwMjU5OTE4MQwwCgYDVQQDEwNQUjECByARBQkJWFkwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhki
    G9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTEyMDEwMzA4NTY0OVowIwYJKoZIhvcNAQkEMRYEFOB%2Fx7LoOChOjGW3iIG
    GFxjjpJkMMAkGByqGSM44BAMELzAtAhRpHueDstxejUkJ0F2j7PNmxPu5xQIVAILHJcNOP7pvx%2BbPVgmDX%2F5Osaby
    Please help to solve this.
    Regards,
    Potru.
    Edited by: N Potru on Jan 3, 2012 10:21 AM

    Hi Siddharth,
    http://yyyy.xxxxxxxxx.com:8000/sap/bc/contentserver/180?get&pVersion=0046&contRep=Z2&docId=E141FAA8EA53BEF1B0AF00145E190D9D
    When I right click on that Place system is giving this error.
    I have maintained number ranges for photo upload. I have uploaded 3 photos and checked the number range but it is showing current number as 0. means no number is generating from the number ranges.
    Thanks,
    Potru.

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

  • 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

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

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

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

  • Photo uploading error in Portal

    HI Experts,
    I have configured the ARCHIVELINK to store the photo in Content Server. Manage to upload the photo and display the photo in PA20/30 from the backend ECC system. but my requirement is when we click and go back to same screen where we uploaded the photo  , that photo will be Disappear.
    Regards,
    Mshaik
    Edited by: murtuza shaik on Dec 2, 2011 7:22 AM

    Hi Shilpa,
    As I said previously, not only in you BP scenario, but also in all portal role objects, if some object (iview / page / workset) which assigned to role and its not there in PCD or its original path has changed ( we call it as broken links) then we will see this error. with yellow warning symbol in front of the linked objects not found error.
    So Just check for the iviews / pages / worksets which needs to be assigned to your student role and you assign it manually.
    If you are not able to see any iviews / pages / worksets in your BP folder (content provided by SAP) then surely there is a problem with your BP deployment some iviews / pages / worksets might be missing from your BP epa file.
    Thanks,
    PradeeP

  • Photo uploading error

    Dear Experts,
    When I try to upload the photo in trnx OAOH, I received the message Error:
    HTTP Access: IF_HTTP_CLIENT->RECEIVE 1 ICM_HTTP_CONNECTION_FAILED
    Could you help me? I need to upload the photo ASAP.
    Thank you for any information that help me.

    Re: Error in HTTP Access: IF_HTTP_CLIENT->RECEIVE 1

  • 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

Maybe you are looking for

  • Connection method

    Hi Hussein and Helios, What is the default connection method in ebs whether shared server or dediacted server? can i change that? Edited by: user3266490 on Feb 26, 2010 8:11 PM

  • Shopping cart with  I1111 - Item in Transfer Process.

    Hi All, I have a shopping cart in our Production system with 5 line items, all had the status "I1111 - Item in Transfer Process". I have run report BBP_ALERT_SB_NOTTRANSFERED and 4 out of 5 items have changed the status from "I1111 - Item in Transfer

  • Idoc for change in purchase order document -outbound

    i have a situation, where i need to populate an idoc whenevr a new PO is created or whenevr a existing PO is changed(outbound). we can populate IDOC for a new PO using Message control(creating our own function module) but how can we handle the 2nd si

  • Err in set up (RH52) Oracle. svrmgl... Any Ideas..

    Everything went smooth with Oracle 8 setup until svrmgl. I believe that oracle was trying to look up the error text. But could not get the error text so displayed another error. So there is actually 2 errors here. Anyone have any ideas.... ----- Star

  • Animation not playing in wordpress theme

    Hey all. I created an animation with Adboe Edge and wanted to include it my wordpress theme, but I can't figure out how. When I upload the .html file it plays perfectly in the browsers. But not when I am trying to include it in my .php file. Is there