Mass upload of photo in Archive link
Hi.
We have to do a mass-upload of photos in the Archivelink (OAAD).
Any standard program to do this, or any other clues anyone please?
Thanks in adv.
Hi,
just write a report and combine the function modules:
SCMS_UPLOAD for uploading from a shared backend path
SCMS_DOC_CREATE for storage of a binary table in a content repository (the ID of the content repository must be ArchiveLink compliant meaning a two letters ID).
ARCHIV_CONNECTION_INSERT to write the connection in the ArchiveLink table. Here, you must know your relevant business object (SAP_OBJECT) your doctype (AR_OBJECT) and your OBJECT_ID.
I assume that you need this for HR so here your SAP_OBJECT is PREL and your AR_OBJECT should be HRICOLFOTO
Now, you report must loop over the files and execute the upper function modules.
I hope that helps a bit
Best regards
Torsten
Similar Messages
-
Mass Upload of Photos in Portal
Hi,
I am trying to do mass upload of JPEG Photos.
I have tried using User Self Service and that works fine.
Reqmnt is that administrator needs to upload 100 photos as a bulk for each user.
I have read the document on help.sap.com and it certainly gave me few insights but if anyone has done this before, i would like to steps on how to go about doing this.
Regards,
DevHi;
Assign yourself to the role
pcd:portal_content/com.sap.pct/Collaboration/DemoRole
After that you will have the Link
"Collaboration Demo\People Centric"
This gives you the possibility to make a manual or
mass upload of user photos. -
Hi All,
I am trying to use the collabration iView <b>User Photo Maintenance (Mass Upload)</b> but when I check the application log it shows the following error message:
<i>TaskID=261993005069Parameter 'directory' is not a directory</i>
I have followed all the image charactersticks like the image name same as User ID image size less that 10K and dimension 100 x 130 and has placed this images in folder on my desktop named "image" and then has specified the complete path of that folder with name.
I tried the same with a folder in KM also but I am not sure from where this iView is going to read I am getting the same error in both the cases. Please help.
Regards
SidI fond this thread .. May be its helps you..
http://sap.ittoolbox.com/groups/technical-functional/Sap-r3-hr/photo-upload-871217
Thanks
Saquib -
Upload of doc through Archive link
Good morning to all
wht is the T-code for uploading the doc into the archive link????
pls give me the step by step process
Regards
SURYAhi,
TC- OAWD upload document.
preequisite;
1. u have to be defin document type
2. u have to be link this doc type to content reopository
3. u have to link this doc to link table [only for archive linking ex TOA01]
4. u have to set work flow.
Ex;
spro>SAP NetWeaver>Application Server>Basis Services>ArchiveLink-->Basic Customizing
u2022Maintaining Content Repositories TC-OACO
Content repositories are logical units within a storage system.ZA
u2022Maintaining Business object type
Here you have to maintain standard business objects which are given by
SAP.BKPF
u2022Maintaining Document Classes
The document class is the technical format of a document type (for
example, PDF, TIF, DOC etc.).
u2022Maintaining document types
A document type groups documents of the same type together, Some
customizing settings for storage scenarios are made according to the
document type. Before a document is stored, it must be assigned to a
document type so that the correct processing for the document is
triggered.Z_FIINVICE
u2022Maintaining Links
You could link a document type to an object type, a content repository
through a link table. TOA01
After this u need to set work flow
Customizing Incoming Documents>Workflow Scenarios>Use Workflow Wizard
here u have to mention workflow nomber i gave earliyer.
After this go to tc-OAWD, u will get Z_FIINVICE, double click and link doc to this doc type.
A work flow task generates, open office mail, execute work flow, enter FI number and save.
Benakaraj
??P -
Get photo from archive link and link into WDA Image UI
Hi guys,
I have employee photos stored in archive link under PREL HRICOLFOTO object.
The question is: how can I get the image and link it on an image UI element on WDA?
I have read some posts but, to be honest, I don't understand very well.
I'm trying use ARCHIV_GET_CONNECTIONS function module to obtain ARC_DOC_ID field, but I don't know which is the following step.
Can anyone help me?
Thank you.More info about the issue...
In fact, I can see the temporary file created on ICM cache, but when I try to open the file is not appearing the photo, it is appearing the string. I put my source code:
<pre>
<code>
<B>* Get ARC_DOC_ID string from archive link for the employee 10002 </B>
CALL FUNCTION 'ARCHIV_GET_CONNECTIONS'
EXPORTING
objecttype = 'PREL'
object_id = '10002'
until_ar_date = sy-datum
TABLES
connections = lt_connections
PARAMETER =
EXCEPTIONS
nothing_found = 1
OTHERS = 2.
DATA: gx_mimetype TYPE string VALUE 'image/jpeg'.
DATA: l_image TYPE xstring.
DATA: converter TYPE REF TO cl_abap_conv_out_ce.
****Create the cached response object that we will insert our content into
DATA: cached_response TYPE REF TO if_http_response.
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
TRY. " ignore, if compression can not be switched on
CALL METHOD cached_response->set_compression
EXPORTING
OPTIONS = cached_response->co_compress_based_on_mime_type
EXCEPTIONS
OTHERS = 1.
CATCH cx_root.
ENDTRY.
****set the data and the headers
DATA: l_app_type TYPE string.
DATA: l_xstring TYPE xstring,
i_cache_timeout TYPE i VALUE '60'.
READ TABLE lt_connections INTO ls_connections INDEX 1.
<B>* On this part I try to convert STRING (ARC_DOC_ID) into XSTRING, I don't know if it is correct or not!!!!</B>
*-- Convert
converter = cl_abap_conv_out_ce=>create( encoding = 'DEFAULT' ).
converter->reset( ).
CALL METHOD converter->write
EXPORTING
data = ls_connections-arc_doc_id.
<B>* Store on l_image xstring converted!!!!!!</B>
l_image = converter->get_buffer( ).
cached_response->set_data( l_image ).
l_app_type = gx_mimetype.
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = l_app_type ).
****Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
****Set the Cache Timeout - 60 seconds - we only need this in the cache
****long enough to build the page and allow the Image on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
DATA: r_url TYPE string.
DATA: i_path TYPE string VALUE '/sap/public/bc/webdynpro',
i_format TYPE string VALUE 'JPG'.
****Create a unique URL for the object
DATA: guid TYPE guid_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE i_path '/' guid '.' i_format INTO r_url.
****Cache the URL
cl_http_server=>server_cache_upload( url = r_url
response = cached_response ).
" bind the generated url with the image uielement attribute
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_url LIKE ls_context-foto.
get element via lead selection
lo_el_context = wd_context->get_element( ).
set single attribute
lo_el_context->set_attribute(
EXPORTING
name = `FOTO`
value = r_url ).</code></pre>
Thank you
Edited by: vanbelal on Apr 22, 2010 9:39 AM -
Upload Massive Employee Photo into SAP - Archive link - SAP ECC 6.0
Dear all,
I try to insert the employees photo in Archive Link (release 46).
I write a massive report to do a batch input, but I cannot insert the path and the name of the picture.
Because the BTC don't memory the "call method cl_gui_frontend_services=>file_open_dialog"
I wrote the folowing report
*& Report ZHR_BDC_UPLOADPIC
REPORT zhr_bdc_uploadpic
NO STANDARD PAGE HEADING LINE-SIZE 255.
* include
INCLUDE bdcrecx1.
* 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_OKCODE'
'=NEW'.
PERFORM bdc_field USING 'TOAOM-SAP_OBJECT'
'PREL'.
PERFORM bdc_field USING 'TOAOM-AR_OBJECT'
'HRICOLFOTO'.
PERFORM bdc_dynpro USING 'SAPLOA12' '0200'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=OK'.
PERFORM bdc_field USING 'OBJID-VALUE(01)'
it_data-rp50g-pernr.
PERFORM bdc_field USING 'OBJID-VALUE(02)'
'0002'.
*---- not exist - begin
* 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'.
*---- not exist - end
PERFORM bdc_dynpro USING 'OANEWCON' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/EBACK'.
PERFORM bdc_transaction USING 'OAOH'.
CLEAR it_data-rlgrap-filename.
ENDLOOP.
PERFORM close_group.
Could you help me to understand a different method to upload the pictures?
Thank you in advance.
Best regards
Luca MoschioniHi,
for uploading the photograph you need to do some customization.
1. Initial customization
Execute transaction code OAQ1 and put X in all the boxes.
Execute t code OAB4 and schedule the job
Execute t code SPAD and configure an output device
Execute T code OANR and configure the number range
Execute T code OAGI and deactivate Print list management system
EXecute T code SA38 and execute program RAPARAM and check for rspo/archive_format and make sure it should have 2 assigned on it.
2. Execute t code OAC0 and configure content repository
Execute t code OAC2 and make your document type
Assign JPG doc class to your doc type made in OAC2 in t code OAC3.
3. Now go to transaction code OAD5 and configure your settings
Come to t code OAWD and upload all your scanned photo to SAP
I know the procedure is tedious and lenghthy but there is no way out.
If it helps you then reward it.
Enjoy
For further help contact at [email protected] -
Linked (not uploaded) User Photos???
Hello!
We have a problem where we want our users to have photos attached to their profiles for collaboration etc, but we DO NOT want to upload photos to our current portal server.
Unfortunately our server space is at a premium.
Is there a way to avoid actually uploading the photos, but instead link to them in a seperate location on a seperate server?
I have reviewed the three iViews for uploading photos (i.e. mass upload, administrative upload, and self service) and these aren't going to be sufficient for what we need to do.
Anyone have any ideas on how this might be accomplished??
I'll award points for helpful answers!
Thanks!
Edited by: Beau Bourgeois on Apr 22, 2008 4:29 PMOk.
I'm a bit new to KM etc. If these photos are stored in KM under /um, what does that correspond to; i.e. are these photos etc stored in the database, or somewhere on the OS filesystem?
thanks for your help. -
Mass upload of documents through SAP Archive Link
Hi Experts,
Our client is having a requirement, to upload legacy (old) data from third party tool to DMS Content server through Archive link. Tool is implemented and it works fine for attaching individual document along with SAP Object like, Purchase Order, material, etc.
We dont have any idea as how to upload bulk of drawings for material, need your advice on this.
Regards,Hi,
I am trying to get more info on how to bulk upload employee documentation through SAP Archive Link' OpenText Enterprise Scan into the categories in OAWD. Once the documents are in Enterprise Scan the Administrator needs to link these to the categories in SAP. This is a manual process - is there a way to bulk upload these documentation to the right categories? Since these documents vary I am not sure that OCR will be a help.
Pleae could you help in this regard.
Thank you.
Regards,
-- Gustav de Bruyn -
Mass upload of employee photos in OAOH
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 !
patrickHi 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 -
Hi experts!
We have an excel with this information:
-Photo file path
-PERNR
Example:
PATH PERN
C:\TEMP\1.JPG 00101800
C:\TEMP\2.JPG 00101801
We need mass upload to ArchiveLink every employee photo.
I've found the report OA_UPLOAD_AND_LINK but I do not know how associated the file path image to the employee PERNR.
How we should do that?
Any Idea?
Kind Regards,
Julian.Hi Julian,
Please follow:
Table (TOAOM) SAP Archive Link - Meta table for links u2013 indicates the content repository that will be utilized for particular object and document type.
Table CREP u2013 List of content repositories
Prerequisites:
1. PERNR and infotype must have valid entries. Say custom info type is IT9007
2. Image file name should be represented as concatenation of PERNR and infotype number.jpg [example 900000019007.jpg where 90000001 u2013 pernr 9007 u2013 infotype]
STEP 1
Firstly go to transaction code CG3Z.
Transferring images from presentation server to Application server. The same can be done by asking the BASIS team to transfer all the required image file names to application server.
STEP 2
Browse the location for the source file which is to be uploaded.
Browse the location (directory) for the target File where the image has to be stored in sap.
Click on Upload button to upload the image.
STEP 3:
To check whether the file has been uploaded or not uploaded, navigate to transaction code Al11 (tcode).
Select your directory and check whether the file is successfully uploaded in required directory.
STEP 4:
Now navigate to transaction code SE38 (tcode) and execute the standard program OA_UPLOAD_AND_LINK.
Values are entered in the screen: with PREL as business object and HRICOLFOTO as document type for color documents.
Mention the file path where you are storing all the images to be uploaded for mass migration.
OUTPUT:
The output will provide the list of files accepted for uploading
STEP 5:
Now navigate to transaction OAAD (tcode) to link/assign the documents to PERNR
STEP 6:
Click Technical search and then click execute button.
STEP 7:
Enter Personnel number and info type. Click on Enter button.
Select your record and click on display button.
The screen is displayed.
STEP 8:
Click on Reassign document button. Click on Enter.
OUTPUT: Storage parameters are updated after reassigning the document
Use recording for Steps 6 to 8 u2013 for mass upload of images providing the input PERNR and Info type number to input parameter SAPOBJECTID on selection screen.
Verification:
Navigate to transaction code PA30 (tcode). To check the image id uploaded or not for particular personnel number. Click on Display button.
OUTPUT: Image on right top has been uploaded.
I hope to have helped you.
Thanks,
Padmaja. -
Mass upload of user photos in EP
Hi All,
I have to do a mass upload of user photos in EP. I tried it in two ways.
1. In a network folder say
173.XX.XX.XXUserPhotos, I stored the photos and then I used the Mass photo upload iview, which is available inside collaboration demo role.
2. I created a new task and given the below parameters,
1. Task nameà MyPhotUpload
2. Upload from folder à
173.XX.XX.XXUserPhotos
3. Photo Typeà NORMAL
I clicked on save and then I run the task. I didnu2019t got any errors, at the same time I didnu2019t got any output also.
Then I tried it this way.
I created a nework path in System Administration à System Configuration à KM à CMà Global Services à Network Path (really sorry if I am being stupid)
Here I specified the network path and the login credential required to access this folder and named this network path as u201CMyNetWrkPathu201D
Now, I came back to mass upload ivew, there I deleted the old task and created a new task with
a. Task Name à MyPhotoUpload2
b. Upload from folder à MyNetWrkPath
c. Photo Typeà NORMAL
I clicked on Save and then I run the task. Again the same result. No errors no success.
PS: I already specified the photo type check and photo size check in System Administration à System Configuration à KM à CMà Global Services àUserPhoto
Somebody please help me.
Regards,
SrinivaSHi,
it seems the portal doesn't have permissions to read contents from this physical folder.
Try to import a sample photo with "apply checked conditions" unchecked in mass upload iView.
If that doesn't help then try to increase the trace level to INFO for this app in Visual Administrator and see what is causing
the problems.
The location is com.sap.netweaver.kmc.people.photo.admin .
Eventuallly try to import files from local folder instead of network share.
Hope this helps.
Regards,
Ladislav -
Urgent : Mass Upload of Element Links
Hello,
Can somebody pls suggest how to load Element links when it comes to mass upload?
If the option is API then we would like to know how to pass people group segements as our link criteria is based on that.
Regards,
GayatriThis might help you
People group is a KFF use this cursor to get the people group Id for you desired value. here we have are using just 2 segments
SELECT people_group_id
INTO v_people_group_id
FROM pay_people_groups
WHERE segment1 = TRIM (x_people_group_segment1)
AND segment2 = TRIM (x_people_group_segment2)
AND segment3 IS NULL;
Pass this people group in the api hr_assignment_api.update_emp_asg_criteria
Hope this helps
Thanks,
Nitin Singh
Edited by: HRMS Consultant on Oct 26, 2009 12:56 PM -
Mass uploading of employee photos.
Hi Experts,
I am uploading one employee photo in ecc 6.0,Thats completed successfull.Now i am planning to upload bulk number of employee photos in to sap as well as in to ESS.I am tried to upload of 2000 employee photos through bdc ,but while running the BDC its asking the selection of employee photos from the location.So kindly update your views on this how to upload all employee photos with out manuall selection of photos.
how can we update our photos in ESS once we completion of photos updation in sap.
Thanks & Regards,
arjuncheck this thread
Mass upload of employee photos in OAOH -
Mass upload for employee photos (IT0002)
Hi I would like to do a mass upload of employee pics to R/3 . I have tried the FM, ARCHIV_CREATE_FILE and it was uploaded successfully but I'm unable to specify the infotype. which for my case I would need it to be in IT0002.
I've tried the BDC program
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/add%2bemployee%2bphoto%2bon%2binfotype%2b0002
But the pics are still not appearing.
Anyone has this issue befofe?yes. I have tried to upload it manually and it is working. But when I run the program it doesn't work. Could it be the path that I need to specify? Because the client uses IXOS software(links with the 4.6c) to upload the pics and doc. I'm not sure is this the reason it is not working.
-
User Photo Administration (mass upload) iview doesn't run
Hello,
I'm trying to mass upload lots of pictures about employees to show on CLP the photo detail. I've been searching for a long time the right way to do it through the standard User Photo Administration (mass upload) iview but not success for me.
I've checked this message really similar to mine but not solve my problem:
https://forums.sdn.sap.com/thread.jspa?threadID=1063236&tstart=0
The iview properties are set to run as explain:
http://help.sap.com/saphelp_nw04/helpdata/EN/09/d7fe40be6eef23e10000000a155106/content.htm
This is my scenario:
EP7 sp15
i've got a folder on my filesystem (c:\photos). In this folder i have two files
a) mapping.properties.txt
inside filled with:
emp10110=10110
USER.CORP_LDAP.emp10110=10110
b) 10010.JPG
After starting the task the photo was not updated and there was nothing in the application log!?
What could be the problem? I can add the file manually but not through mass upload iview.
Has anybody used the User Photo Administration (mass upload) iview ?
Thanks in advance
Scott
Edited by: Scott Summer on Apr 28, 2009 9:57 AMHi,
Instead of use User Photo Administration (Mass upload) using a mapping.properties file, forget it and use a easy DOS script (lots of examples on google) to rename all files on your folder with the user ID of employees. Then you'll get a folder with the employees pictures with ID user as name file.
If your pictures are set like Required Picture Settings on your system(size,dimensions,...) , now you will upload files without problems directly.
Regards
Ruben
Maybe you are looking for
-
Not able to install Oracle 10g on Windows 7 Ultimate
Dear Oracle Xperts, Can anyone guide me how to go about installing on Windows 7. I downloaded the 10.2.0.3 version. Its not installaing throwing the following error. Checking operating system requirements ... Expected result: One of 5.0,5.1,5.2,6.0 A
-
Credit card file upload(Tcode: PRCC) in a batch process
Hi all, Is it possible to make credit card file upload(Tcode: PRCC) in a batch process. when i tried doing so got message "frontend function cannot be created in batch mode" . I am aware that it is because this program is using "GUI_UPLOAD" function
-
Jpeg does not open in iOS 5 email as an attachment
Jpeg does not open in iOS 5 email as an attachment
-
"Net use" not working in application that runs as "system"
Hello, I am trying to create an application object to distribute a program which during the setup procedure creates two local users on the workstation. I tried to set up the application to run as an unsecure system user and start the setup.exe. This
-
Sql Query to replace the square bracket and the whole text inside with a single charecter
Hi All, I have a question. I am using Sql Server 2012. I have a situation where i need to replace the entire text and the square bracket with a single charecter. Eg:-> I have atext san[123456dd]text i just wanted to replace all teh text inside