Problema con carga de foto de personal

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • William J. Espinoza V.
    Junior Member
    • abr
    • 10

    #1

    Problema con carga de foto de personal

    Buenas tardes, estoy tratando de subir de forma masiva las fotos de los empleados de mi compañia, me consegui en un blog de MSN la siguiente información:

    1) Store the Photograph of the Employee as the PERNR.JPG (PERNR = EMPLPYEES PERSONNEL NUMBER) at a predifined location.

    2) Have a text file with all the pernr for whom you want to upload the photo and the JPGs you have in the folder.

    3) Use this Function module with the loop for all the PERNR

    * Function module to update Tran OAAD

    * Create file path (Directory)-(Employee No.).JPG

    CONCATENATE 'dir where the file is stored' wa_pernr-pernr '.' 'jpg' INTO lw_path.
    * Assign Values
    lw_ar_object = text-002. "HRICOLFOTO
    lw_object_id = wa_pernr-pernr.
    lw_sap_object = text-003. "PREL
    lw_doc_type = text-004. "JPG

    CALL FUNCTION 'ARCHIV_CREATE_FILE'
    EXPORTING
    ar_object = lw_ar_object
    * DEL_DATE =
    object_id = lw_object_id
    sap_object = lw_sap_object
    doc_type = lw_doc_type
    path = lw_path
    EXCEPTIONS
    error_conectiontable = 1
    error_parameter = 2
    error_archiv = 3
    error_upload = 4
    error_kernel = 5
    no_entry_possible = 6
    error_comunicationtable = 7
    OTHERS = 8
    .
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

    Pero al hacerlo el programa efectivamente carga todos los datos y las funicones llenan las variables correctamente pero no carga la foto, coloque un commit work despues del proceso de carga para ver si es que quedaba en memoria pero tampoco...

    Será que alguien podria ayudarme para saber que estoy haciendo mal?
  • knito20
    Junior Member
    • ene
    • 15

    #2
    revisar esta nota sap

    hola amigo como estas , revisa esta nota sap por ahi podras conseguir algo muy bueno

    nota sap : 685520
    Carlos Leiva M.
    Consultor SAP HCM
    Santiago de Chile.

    Comentario

    Trabajando...