Massupload of Employee image
Hi Guys,
I am able to upload employee images for single employee using 'OOAH' and 'OOAD' . My requirement is mass upload of images. I am unable to record shdb as these transaction contain browse option , i tried using "ARCHIV_CREATE_DIALOG_META "
Import parameters Value
ARCHIV_ID A2
AR_OBJECT HRICOLFOTO
DEL_DATE
NOTE
OBJECT_ID 102
SAP_OBJECT PREL
FILE C:\11.JPG
COMMIT_FLAG
ARC_DOC_ID CO DOC_CLASS
DF7AA9E6FB1300F1A5D100215E270DFE A2 JPG
But i am unable to see the picture , can you please suggest me bdc upload program or any changes if i have give to this function module .
Thanks in advance .
Try this.
REPORT zhriphoto NO STANDARD PAGE HEADING LINE-SIZE 255
MESSAGE-ID zdev .
*I N T E R N A L T A B L E S
DATA : BEGIN OF gt_photo OCCURS 0,
pernr(8),
END OF gt_photo.
DATA: g_path LIKE draw-filep,
g_sapobjid LIKE sapb-sapobjid,
g_filename TYPE string,
g_sappfad LIKE sapb-sappfad.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY. " Document route
*& Initialization
INITIALIZATION.
CONCATENATE sy-uname sy-datum+4(4) INTO group.
START-OF-SELECTION
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING " DEF_FILENAME = ' '
def_path = 'C:\'
mask = ',Text Files,.txt;.prn,All Files,..'
mode = 'O'
title = 'Chose File'(100)
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc <> 0 AND sy-subrc <> 3.
MESSAGE e102(zdev) WITH 'Error Selecting File'(007).
ENDIF.
START-OF-SELECTION
START-OF-SELECTION.
g_path = p_file.
CALL FUNCTION 'CV120_SPLIT_PATH'
EXPORTING
pf_path = g_path
IMPORTING
pfx_path = g_path.
g_filename = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = g_filename
FILETYPE = 'ASC'
has_field_separator = 'X'
dat_mode = 'X'
TABLES
data_tab = gt_photo
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE s306 .
ENDIF.
LOOP AT gt_photo.
CONCATENATE g_path gt_photo-pernr '.JPG' INTO g_sappfad.
CONCATENATE gt_photo-pernr '0002' INTO g_sapobjid.
CALL FUNCTION 'ARCHIV_CREATE_FILE'
EXPORTING
ar_object = 'HRICOLFOTO'
object_id = g_sapobjid
sap_object = 'PREL'
doc_type = 'JPG'
path = g_sappfad
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.
CLEAR g_filename.
ENDLOOP.
END-OF-SELECTION
END-OF-SELECTION.
WRITE / 'Done succesful!'.
Similar Messages
-
HRMS - Diplaying Employee image in XML Publisher Report
I have uploaded employee picture through people screen in HRMS, The same picture i am trying to display in my XML report. Concurrent request is ending with warning. I couldnt find any help from metalink and SR. Got some clues from metalink to use URL. but we need to display employee image for each employee. did anybody worked on the same requirement. please provide the complete steps for the same.
Hi,
I am also having the same requirement,did u got the solution? pls share with me some inputs if u have achieved this.
Regards,
Sayeed. -
How to view the employee image in Selfservice?
Hi firends,
I'm trying to view the employee image in Selfservice.
The idea is the following:
- When we enter in Preferences Menu --> Person Search Menu
- Then Customize for HR User --> Level : Responsability
(we choose a responsibility associed to Preferences) and then, inside the "advanced properties" for the columns we can associate an URL to the column we want...
- The idea is to associate an image (photo) to the employee number.. so we could use an url link to the blob column stored in fnd_lobs if the employee image would be stored as an attached document for the employee... or... a link to show the image column (lon raw) in per_images table... (I think this would be more difficult)
What I don't know ... how to do is how to show the image.. (how to build the url through the customization of the fnd_gfm.get procedure....
Another doubt in relation with that is..
When we show the image stored as an attachment in fndattch form, the internet explorer opens with the url
http://my_domain:8000/pls/my_project/fndgfm/fnd_gfm.get/42387354799/423868/fnd_gfm.jpg
the last number: 423868 is the file_id in fnd_lobs but... how about the other? how is it generated? Have this some relation with the problem to show with download_blob....?
Any ideas
Thanks,
Jose.the "Employee Directory" shows you the photos by default. Should not be that hard to add an url via personalizations that points to that directory.
good luck. -
How to load the Employee Images through Script
Dear All,
How to load Employee Images into HRMS module through script, Pls provide scripts any body having..
Thank in advance,
Hanimi
Edited by: Hanimi on Jun 7, 2011 10:12 AMHi Hussain,
Following ctl file is working fine for loading images, But problem is at a time it is loading only 64 rows, pls let me know what i have change in my ctl file for loading all data at a time..
load data
infile '/usr/tmp/Images_Data.dat'
INTO TABLE PER_IMAGES
append
FIELDS TERMINATED BY ','
TRAILING NULLCOLS(
parent_id,
table_name constant "PER_PEOPLE_F",
ext_fname FILLER CHAR(80),
"IMAGE" LOBFILE(ext_fname) TERMINATED BY EOF,i
mage_id "PER_IMAGES_S.nextval"
Thanks,
Hanimi.. -
Unable to display employee image in pdf forms from webdynpro?
hi friends,
i am using webdynpro application and ADOBE forms. i designed adobe form with 3 fields. IM_VORNA, IM_NACHN, IM_PHOTO.
I created one interface of adobe form also with the 3 fields of which specified above.
And i am using webdynpro application to get the details of emplyee by passing pernr.
i created a view. in this, and i attached every thing interface context. And in methos tab, wddoinit method i wrote code like this...
DATA pernrid TYPE PERNR-PERNR. "tdobname.
DATA temp TYPE c.
DATA: p_connect_info TYPE TOAV0,
wa_p_connect_info TYPE TOAV0,
p_document_type TYPE TOAV0-RESERVE,
exists TYPE c.
DATA: url TYPE char255,
turl TYPE string,
turl1 TYPE xstring.
DATA lo_nd_z_if_test_cv TYPE REF TO if_wd_context_node.
DATA lo_el_z_if_test_cv TYPE REF TO if_wd_context_element.
DATA ls_z_if_test_cv TYPE wd_this->element_z_if_test_cv.
* navigate from <CONTEXT> to <Z_IF_TEST_CV> via lead selection
lo_nd_z_if_test_cv = wd_context->get_child_node( name = wd_this->wdctx_z_if_test_cv ).
* get element via lead selection
lo_el_z_if_test_cv = lo_nd_z_if_test_cv->get_element( ).
* get all declared attributes
lo_el_z_if_test_cv->get_static_attributes(
IMPORTING
static_attributes = ls_z_if_test_cv ).
* *** Vorna and Nachn.
ls_z_if_test_cv-im_vorna = 'shankar'.
ls_z_if_test_cv-im_nachn = 'chamala'.
***pernr
pernrid = '00000003'.
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
P_PERNR = PERNRID
* P_TCLAS = 'A'
* P_BEGDA = '18000101'
* P_ENDDA = '99991231'
IMPORTING
P_EXISTS = exists
P_CONNECT_INFO = P_CONNECT_INFO
EXCEPTIONS
ERROR_CONNECTIONTABLE = 1
OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
CALL FUNCTION 'SCMS_DOC_URL_READ'
EXPORTING
* MANDT = SY-MANDT
STOR_CAT = SPACE
CREP_ID = P_CONNECT_INFO-ARCHIV_ID
DOC_ID = P_CONNECT_INFO-ARC_DOC_ID
* PHIO_ID =
COMP_ID = 'DATA'
* SIGNATURE = 'X'
* SECURITY = ' '
* USE_LOCATION = 'A'
* LOCATION = ' '
* HTTP_URL_ONLY = ' '
DP_URL_ONLY = 'X'
* LIFETIME = ' '
* NO_CACHE = ' '
* EXPIRATION =
* PDF_MODE = ' '
* URL_EXTENTION = ' '
* FORCE_GET = ' '
IMPORTING
URL = URL
EXCEPTIONS
ERROR_CONFIG = 1
ERROR_PARAMETER = 2
ERROR_SIGNATURE = 3
HTTP_NOT_SUPPORTED = 4
DOCGET_NOT_SUPPORTED = 5
NOT_ACCESSABLE = 6
DATA_PROVIDER_ERROR = 7
TREE_NOT_SUPPORTED = 8
NOT_SUPPORTED = 9
OTHERS = 10
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
turl = url.
CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
EXPORTING
* CODEPAGE_TO = '8500'
UNICODE_STRING = turl
* OUT_LEN =
IMPORTING
XSTRING_STREAM = turl1
EXCEPTIONS
INVALID_CODEPAGE = 1
INVALID_STRING = 2
OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ls_z_if_test_cv-im_photo = turl1.
*** Get the Photographs
*CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
* EXPORTING
* p_object = 'GRAPHICS'
* p_name = pernrid
* p_id = 'BMAP'
* p_btype = 'BCOL'
* receiving
* p_bmp = ls_z_if_test_cv-im_photo
* EXCEPTIONS
* not_found = 1
* internal_error = 2
* others = 3
*IF sy-subrc EQ 0.
** MOVE 'y' TO temp.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*** Send the values back to the node
lo_el_z_if_test_cv->set_static_attributes(
EXPORTING
static_attributes = ls_z_if_test_cv ).
But here the problem is when i executed this application i am able to see the VORNA and NACHN fields in ADOBE Form. But the employee photo is not appearing in adobe form.
Here employee photo i amretreving from archive link.
Even i set the Imagefield property URL in Adobe forms. i.e $record.IM_PHOTO.
Any solutions regarding this...
Regards,
Shankar.Hi Shankar,
according to the sap documentation (inserting a graphic), I could imagine the following problems
1.) image file type is not supported (-> "see the online help in Adobe LiveCycle Designer under Defining Object Properties ® Image Fields ® About Image Fields" )
when you use "Graphic Reference"
2.) url could not be accessed.(-> "This means that you may have to configure appropriate access rights for Adobe Document Services (ADS)" ).
Maybe this will help you finding the problem.
Regards,
Andreas -
Error uploading employee image.
Hi All
When I try to upload an employee's image, I am getting the error HR_IMAGE_UPLOAD UX ERROR: HRTNSLK.
How to solve this?
Thanks
RahmanPlease refer to Note:202793.1, Note:223746.1, Note:140528.1
Hope it helps you to resolve the issue. -
Error: "file not found" when try to display image on report
Dear All
I have a problem when running my report.
My Table emp_info Stores all data about employees in addition to the employee image path.
I made a report that display employee information including its photo.
I run my report passing the parameter p_emp_id to display the desired emploree information.
I made a field on the report to display the employee image
and i set its property READ FROM FILE = YES and FILE FORMAT=IMAGE
But the following error occurs
"File '\\iai3\iaigc\ALL\emp_images\51.JPG' not found. "
I'm sure that the path is correct
But i do not know why the report stops and can not read the image path.
My platform is:
Oracle application server installed on linux
and oracle report builder installed on widows for developmentDear aweiden
thanks for replaying
I belive you are right . I think the problem is in the path.
But there is something that i did not mentioned to you. I work on two different servers.
1- "iai2" : Linux server which contains oracle application server.
2- "iai3" Windows 2003 server which contained oracle database 10g and the folder "aigc\ALL\emp_images" which contains Employees images
I think that the problem is that Linux server can not understand the path "\\iai3\iaigc\ALL\emp_images\51.JPG".
Do you have any idea how the path should be changed so that Linux can recognizes it.
Thanks in advance -
Dynamic Images in Crystal 8.5
I'm trying to get images displayed dynamically in a Crystal 8.5 report. I have the image data loaded into a recordset and am passing it into the report via a blob field. It is working correctly for a .bmp image file, but when I try to use a .jpg or .png file, the image doesn't show in the report. Is .bmp the only file type supported for Crystal 8.5 or is there something else I need to do to specify to the report what type of image it is?
Hello Jennie,
Iam not remembering about 8.5. I But, Iam sure that itis possible to display image in 8.5 I have done itm, once.
Keep all the image in one folder with unique names which should be the key in database field.
eg:
employee id
I wanto to show the employee image in crystal report.
I will create a formula which will hold the image name.
d:\images\RAB0001.jpg
will be
d:\images\"tempid".jpg
Go to Insert->OLE Object
or
use BLOB object itself
Is this answers your question?
REgards
Usama MOhammad -
Upload image that is not in local file system
We have an abomination of a project where we are trying to upload employee images into our main 'People' form. The only issue is that the images exist on a SQL Server database. I can get the images onto the Oracle server easily enough but the functionality does not exist to browse to a remote server, just the local machine. Has anyone had to do something like this before? If it was just a few images we could FTP them to a mapped drive and do it 1 by 1 but we are talking about 15000 images so that is not an avenue we would care to explore. Any advice would be welcome.
Hi,
Please see if these threads help.
API to load images for
API to load images for
Employee Photo Upload in HRMS
Employee Photo Upload in HRMS
Dispay employee pictures in Employee Self Service screen
Dispay employee pictures in Employee Self Service screen
Regards,
Hussein -
Image Doesn't Display in Region
Hi All,
i have add picture of employee in my form with report option.employee picture is display in report .
For editing i have created an region for edit Employee Image .
Now problem is when i click on Edit Button in Report then control move to second page but Emploee image Does not display in Image Region .
My Image Region Code
Image Region Condition PL/SQl Funtionon Body Returning Boolean
declare
begin
if :P20_EMPLOYEE_ID is not null then
for c1 in (select nvl(dbms_lob.getlength(EMP_IMAGE),0) l
from HR_EMP_PERSONAL_INFO where EMPLOYEE_ID = :P20_EMPLOYEE_ID)
loop
if c1.l > 0 then
return true;
end if;
end loop;
end if;
return false;
end;i have created one Display as Text (Save State ) ITEM.
Source Type
return '<img src="'||apex_util.get_blob_file_src('P20_EMP_IMAGE',:P20_EMPLOYEE_ID)||'" />';Item Condition type Exists ( SQL Query Returning at least One Row)
SELECT mimetype from HR_EMP_PERSONAL_INFO where EMPLOYEE_ID = :P20_EMPLOYEE_ID and mimetype like 'image%'My First page Report Query
select EMPLOYEE_ID,
EMP_NAME,
EMP_DOB,
EMP_MARITAL_STATUS,
LOCATION,
DESIGNATION,
decode(nvl(dbms_lob.getlength(EMP_IMAGE),0),0,null,'<img src="'||apex_util.get_blob_file_src('P20_EMP_IMAGE',EMPLOYEE_ID)||'" height="75" width="75" />') Picture from HR_EMP_PERSONAL_INFO
Where is i am wrong .How can i display image in Image Region.
Thanks
Edited by: 805629 on Feb 2, 2011 2:34 AM
Edited by: 805629 on Feb 2, 2011 2:35 AM
Edited by: 805629 on Feb 2, 2011 2:36 AM
Edited by: 805629 on Feb 2, 2011 2:43 AMHi jairohernan ,
use WORKSPACE_IMAGES or APP_IMAGES instead of IMAGE_PREFIX
<img src ="#WORKSPACE_IMAGES#LOGO.jpg" />
Note : Give More Details to get quick solution.
Regards,
Jitendra -
How to Print Employee Photo using Smartform
Dear All,
I have requirement to print Employee photo using Smartform.
Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002 after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
These employee image I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
Thanks ,
RegardsHi ABAP Programmer,
Refer this link
i want to retrieve a photo image of an Employee to display in smartforms
Regards,
Sravanthi -
Dear all, we have a requirement to upload employee images in the custom application we have built. The applicaiton runs under ora apps env.
Is there a procedure available in ora apps which we can call to upload images from client hard disk to the DB server ?
As i'm new to ora aps, please point me to the right direction.
Thanks
RahulI've done this several times, and many ways are possible. The easiest one is via dataload, which works fine, if your number of photos to load is not too high.
-
DataGrid or AdvancedDataGrid to implement this ?? Image Attached
Hi ,
Please see the Image attached with this Thread .
I need to implement this kind of Feature in my Application .
I need to show Employee Image , Emp Name , Email Address and Linked link if avialable .
I would be getting all this data in XML Format with the help of HttpService from a Servlet .
Please suggest whether i should use DataGrid or AdvancedDataGrid to implement this Feature ??
I am using FLEX 3 for my development .Thanks for the reply .
Currently we are using DataGrid to just show the Name on to DataGrid Column .
Now we want to extend this fuctionality to show all these above features on to the DataGrid Column , so please guide .
Thanks . -
Displaying Images In Form Component
Hi
How do I display an employee image in a form Componet, if it is located in file server??
and how do display an employee image in form component
if it is saved in the Databse ??
Many Thanks
nullWalid,
If you want to display an image in a form it should be "physically" uploaded to the table on which your form is based. The only supported datatypes now are BLOB and ORDIMAGE (interMedia image).
Thanks,
Dmitry -
Reports 10g dynamic image logo
Hi,
I want to insert an employee image which changes in reports and taken from file system.I dont want to take image from database.Is there any solution?
Your ideas will be appreciated.
Regards,Hello
Search in the Reports Builder help for : " Linking an image object to a file"
Regards
Maybe you are looking for
-
I have a 3gs, thats was "upgraded" with iPad software. No Longer Works
excuse my untech saviness when I write this: I have a 3GS, it was jailbroken for me, but not only that, it was running on Ipad software. I was told the reason was at the time there werent any hacks for the 3GS software due to the 4 being out and the
-
How to change default container in Hive
Hi, Can any one provide me procedure to update default container name in Hive. i try to modify the C:\apps\dist\hadoop-2.4.0.2.1.10.0-2290\etc\hadoop\core-site.xml but the new values are not getting reflected. Is their any Hive command to update def
-
Preview is broken and when exported in Nik Software plugin, it's black or over bright
I'm working on a project for a Sail championship (last month the J24 European Championship, while this week Interlaghi) and since I started the last one I've really great problems with preview and "exporting" in Nik Software, that I never had before.
-
Phase MAIN_SHDRUN/ACT_UPG hanging?
<h5> I am upgrading from NW 7.0 Enhancement Package 1 (7.01) using SAPEhpi. The SAPEhpi tools shows that the ABAP progress has status RUNNING 'Executing phase MAIN_SHDRUN/ACT_UPG', and J2EE progress has status WAITING 'Waiting for synchronization eve
-
Oracle xml_dom.writeToClob ignore the character set
I'm trying to generate a xml file using oracle. After generating the xml using dbms_xmldom, it is stored in a CLOB and later written to a table. The problem is that the character set ('UTF-8') is not included in the header even though it is specified