MUNDOSAP

Regresar   MUNDOSAP > CONSULTORIA > HR - GESTION DEL PERSONAL
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Viejo 21/05/10, 16:48:44
William J. Espinoza V. William J. Espinoza V. is offline
Junior Member
 
Fecha de Ingreso: abr 2009
Localización: Caracas - Venezuela
Mensajes: 10
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?
Responder Con Cita
  #2  
Viejo 27/05/10, 16:58:26
Avatar de knito20
knito20 knito20 is offline
Junior Member
 
Fecha de Ingreso: ene 2007
Localización: Chile
Mensajes: 15
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.
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 16:51:10.


www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web