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

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

  • 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

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

  • 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

  • How to fix photo uploader, ovi store, and social

    after i update my phone to nokia care, the link to ovistore is missing, social can't work, photo uploader just the icon and didn't work. I have try to fix this solution by follow all suggestion in this forum and others but nothing can fix my problem. Can any 1 give me best solution?
    Or this is just the biggest mistake from nokia?

    Hi hatstead ,
    If you can't find any mail, Please clear your Online services data located at-
    C:\Users\suresing.ADOBENET\AppData\Roaming\Adobe\Online Services\Photoshop Elements 11.0.0 and
    C:\Users\suresing.ADOBENET\AppData\Roaming\Adobe\Elements Organizer\11.0\Organizer\OLS
    After deleting this data, refresh the OLS services from Edit ->preferences -> Adobe partner services ->Refresh.
    Check & please let me know if this helps.
    Sarika

  • I just got tOhe iPhone 4Gs today and had contacts and photos uploaded from another phone synced new phone with iTunes for music and accidentally restored it so all my old iPhone stuff is on the new one is there any way to fix this

    I just got tOhe iPhone 4Gs today and had contacts and photos uploaded from another phone synced new phone with iTunes for music and accidentally restored it so all my old iPhone stuff is on the new one is there any way to fix this ?! Please help !!!!

    Could you be more specific about what exactly do you want to fix now?

  • Photo uploading in flex

    Hi,
    I am new to flex.
    I am developing a web application in flex.
    I want to do the photo uploading functionality in flex and action script3.
    I have to do that like "Applet photo uploader" Like what we have in facebook photo uploader.
    Means on left I have client directory structure and images with thumbnail on right side.
    Also I want a multithreading for this.
    Can it possible in flex?
    Any help appreciated.
    Thanks,
    Tushar Gandhi.

    The problem seems to be fixed. Swanky.

  • Photo Uploaded in AD but not showing/visible in Lync 2010 client

    Photo Uploaded in AD but not showing/visible in Lync 2010 client
    bala

    Hi,
    Please also double check the size of the photograph in AD, make sure the size not overtake 48 pixels by 48 pixels, as it has a serious limitation on the size and resolution of the photos: the thumbnailPhoto attribute can only hold a photograph with
    a maximum size of 48 pixels by 48 pixels.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Photo upload pop up window

    When I try to upload a new album to Facebook or pictures to printerpix the photo upload window where I choose which photos to add does not come up, until I click on another screen. But then when it does come up everything is frozen and I have to force quit safari. Pop-ups are not blocked on my computer and all soft wear updates are complete, any other ideas? Thank you!

    Hey, I don't have any answer for you right now but I saw your post and wanted to let you know I'm looking into your issue with Kaleb.
    John M.

  • Facebook Photo uploader not working

    Hi
    a few weeks ago (nov 2012) i upgraded to the latest vresion of facebook, but if i now go into the app and click to upload a photo, nothing happens, not even an error message appears. everythign else is working fine though. Photo uploading works if i go to the gallery and select send to facebook.
    ive tried uninstalling, resetting my phone and upgrading my software but nothing has worked. any help would be good and i have a blackberry curve9300 3G

    do you confirm you are using Facebook 3.3.0.11 ?
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

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

  • Photo upload issue with Facebook

    Am having a problem uploading photos to FaceBook via Lightroom's publish interface. It shows as authorized (which was a problem in itself for a while), but I get a generic "Photo Upload Failed" error from LR4. In addition, JPEGs exported from LR4 will not upload via FaceBook's own interface. This is all new since upgrading to LR4. Windows 7. While it looks like a FaceBook issue, it started with LR4 installation and no one else seems to be having a problem uploading images to FB via Lightroom or otherwise.

    Day 3 of this issue and still no repsonse from Blackberry. I guess we found out who Blackberry really cares about. March 2013 - you will be losing me as a Blackberry user.

Maybe you are looking for