on 03-14-2007 2:36 AM
Dear all,
In OAOH transaction, if you type in the business object PREL, and doc type HRICOLFOTO, a small dialog box appear and you type in the employee no. Afterwards, another window dialog box appear prompting the file name/path....
I would like to know if there is any method to mass upload thousands of employee photos, since batch input does not work in the file/path selection screen (window's dialog box)
Thanks a lot for your help !
patrick
Hi Patrick,
Generally it is not suggested to Upload Photograph using Mass Upload.... normally it is one to one ... one perer at a time.
But if its too urgent and critical then fallow this steps.
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.
This will help you to create the Archive link.
Hope this helps you.
~Bhawanidutt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Once photos are uploaded in archive link what's the next step.
Kindly resolve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.