Upload Employee Photo into SAP
Hi,
Due to employee photo is stored as ArchiveLink and I tried to upload it by LSMW, but it doesn't work. I was wordering that, the document that stored in ArchiveLink can be uploaded by LSMW or not.
Has anyone used to upload employee's photo into SAP? If so, how?
Thanks in advance.
Dear Sakchai,
Refer to the following link for step by step procedure:
http://wiki.ittoolbox.com/index.php/Upload_a_photo_in_SAP_HR
Sample program from http://sap.ittoolbox.com/groups/technical-functional/sap-hr/massive-upload-photo-1211577
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_CURSOR'
'TOAOM-AR_OBJECT'.
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 'SAPLSJ01' '0200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'FIELD_VALUES-INPUT(02)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=OK'.
PERFORM BDC_FIELD USING 'FIELD_VALUES-INPUT(01)'
IT_DATA-RP50G-PERNR. "'10002'.
PERFORM BDC_FIELD USING 'FIELD_VALUES-INPUT(02)'
'0002'.
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'.
PERFORM BDC_TRANSACTION USING 'OAOH'.
clear IT_DATA-RLGRAP-FILENAME.
ENDLOOP.
PERFORM CLOSE_GROUP.
Regards,
Naveen.
Similar Messages
-
Is it possible to upload employee photo into IT 0002 in ECC 6.0
Hello Guru's,
I have a requirement to upload employee photo's to Infotype 0002, so gone through all the steps in the threads posted here and felt that all were for R/3 4.6 n 4.7 only.
I have a different set up in few tables like OAC0 in ECC 6.0.
Request you all to let me know if uploading of employee photo is possible in ECC 6.0 ?? if so, let me know the configuration steps.
with screen shots are more appreciated.
Regards,
Priya.You'll find the customizing settings in :-
IMG - Personnel management - personnel administration - customizing user interfaces - change screen header.
Regarding the archiving part you better ask your basis admin to set that up for document type HRICOLFOTO.
2) Photo in the PA IT0002 In version 4.0B it worked
1. Define physical archives using transaction OAC0 Arx. ZZ
2. Assign objects types & document types to archive & documents tables for Obj PREL , doc.type HRIEMPFOTO,
Arx. ZZ using transaction OAC3
3. Define number range using transaction OANR
4. Using transaction OAC2 define doc.typ & tech doc types for exmpl. HRIEMPFOTO - TIF
5. Create protocol for Archive link using transactions OAA3 for exmpl. Comm.prot.,version. Generate it will define
application type from list and so on.
6. In the table 585O define relevant infotype for object and document type for exmpl. for it0002
7. Using transaction OAAD create link for PERNR with relevant infotype & files on the server, which described on the
first step.
Link:Uploading Employee photos against IT0002 in ECC 6.0 -
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] -
Uploading Employee photos against IT0002
Hi,
We have a requirement to upload photos of all the employees of our client to their Personal Data infotype through transaction OAAD. I have written a BDC program for that and tried to upload through session method in foreground. Its working fine, but while picking the photo of a particular employee, its asking me to select the photo. Our requirement is once we start uploading the photos, we will run this in background. So it should not ask us to select the photo, instead it should pick the photo from the path given in the file.Our file contains Personnel Number and the path of the photo corresponding to that personnel number.
Please let me know your suggestions.
Thanks in advanceHi
Check this Upload Employee Photo into SAP
Manoj Shakya -
BSP error when trying to upload employee photo
,<h1>.Dear Experts,<</h1>
<h2>I am trying to upload employee photo on my SAP system DB.
I am following note 595563 and performing below mentioned activities.</h2>
<h3> * Make sure that the HTTP plugin is active.</h3>
<h4> Transaction SMICM, "Display Services" function key (shift F1). The list of services must contain a port other than 0 for HTTP. If not, you must adjust the relevant profile parameter.
Typical entry:
icm/server_port_0 PROT=HTTP, PORT=1080, TIMEOUT=900
Make sure that the /sap/bc/contentserver service is active.
Transaction SICF, select: default_host - sap - bc - contentserver. Select the function to display/change the service. Check that a user is defined.
If a user is not defined, use Transaction SU01 to create a new user. Use the "System" user type. Assign the profiles SAP_ALL and SAP_NEW to the user.
Using the relevant data from the user that has just been created, maintain the anonymous logon data for the service /default_host/sap/bc/ and then save the changes.
Check the system PSE.
Start Transaction STRUST. Expand the system PSE. The system PSE must be green for each application server.
Determine a suitable exchange directory.
The archive system must be accessible from every application server. If all application servers are running on the same platform (for example, Windows), one network directory that is accessible on all application servers (for example,
server\share) is sufficient. You can generally use the global directory (profile parameter DIR_GLOBAL). You can use report RSPARAM to determine the profile parameters.
Setting up the storage
Create a table for storing the data.
Use Transaction SE11 to create a copy of table SDOKCONT1. If you want to create the repository database, you can call the table ZCONT_DB, for example. Save the table as a local object. Activate the table.
Create the repository.
Use Transaction OAC0 to create a new repository.
Use the following parameters:
Repository Max. two characters, for example, DB
Document area ArchiveLink
Storage type R/3 database
Storage subtype normal
Version no. 0046
Contents table <table name> for example: ZCONT_DB
Exchange directory <directory name> for example:
server\share\
Note that the exchange directory ends with a \ (or a / on Unix). If you are using a variety of platforms, you must use Transaction FILE to define a suitable logical file name, and use this file name.
Save the settings.
</h4>
<h5>
Everything goes well but when i try to test the Repository created by RSCMSTH0 in SE38 it throws the error </h5>
HTTP error: 404 Business Server Page (BSP) Error
Message no. CMS025
Diagnosis
Error in accessing via HTTP
404 Business Server Page (BSP) Error
Please help. M i missing anything ..?
<h6>Regards,
Alok</h6>
Edited by: Nikhil Manjrekar on Aug 14, 2009 9:45 AM
Edited by: Nikhil Manjrekar on Aug 14, 2009 9:45 AMHi,
I am getting same problem what is the solution??
Thanks
Santhosh -
Downloading Employees photos from SAP: ECC6
Hi Experts,
There are lot of photos for employees in system. Now client is asking to download the photos.
How to download those photos.
OAAD is uploading the photograph similarly is there any Tcode or table where we can download the photos directly
Thanks in advance. . .
rgdsHai,
Try the below link, might help.....
http://sap.ittoolbox.com/groups/technical-functional/sap-hr/download-the-employee-photo-from-sap-46c-version-1551699?cv=expanded
Regards,
Yoganand.V -
Error while uploading employee photo
i m getting following eror while uploading employee photo through storage server
Error in HTTP Access : IF HTTP_CLIENT-RECEIVE 1 ICM_HTTP_CONNECTION_FAILED
Pls replyHi archana
you have to go with OAC0 tcode here in content repository double click on A5 which is standard one go in details-->clickon fulladministration then in that screen you will be having Basic path and Achive path there basis people need to give sapgui code.
they will be have this code in servermanagemt. i am not clear of this code where they can find. but i am sure of that this code will be given by basis people only. then go with OAOH tcode. give the details as usal and one more thing is that the photo should be save jpeg formate.
Regards
Suresh -
Error while uploading MSP project into SAP PS
Dear Friend's,
For uploading MSP project into SAP PS we are using openps4MSP version 4.0 & MSP version 2007. incase of SAP PS to MSP downloading is ok.
While uploading we are getting following error. Also I have gone through relevant notes on MSP PS interface still I am unable to understand what exactly is the missing.
Action log is as follows.
The WBS.Maintain BAPI was called.
- duration in sec.:0.109396699997887
- return code: E
- I CJ546 WBS-Dates Create
Start date is in the past
- object ID: B1101501000000000 /
- I CJ546 WBS-Dates Create
Start date is in the past
- object ID: B1101500000000000 /
- E CN009 NetworkActivity Create
Network 4003941 does not exist
- object ID: 0000040039410010 /
- E CN009 NetworkActivity Create
Network 4003941 does not exist
- object ID: 0000040039410020 /
- E CJ280 NetworkActivity Create
Termination: Too many errors (more than 10% of methods)
- object ID: 0000040039410020 /
ERROR test import into PS system failed
ERROR updating PS project
Thanks & Regards,
SuvinHi,
Which type of scheduling setting have you configured for WBS scheduling and for n/w. ?
Also, download calendar from SAP to MSP and then add column 'Task Calendar' in which select the downloaded calendar.
Check SAP NOTE 579761
Regards,
Harsh.
Edited by: Harsh Saxena on Aug 10, 2011 3:18 PM -
Uploading my photos into iPhoto from an external hard drive
I have all my old digital photos (approx 17GB) on an external hard drive. I would like to upload them in to iPhoto on my iMac (OS X 10.6.8)
Some questions:
How can I stop any duplicate photos being uploaded into iPhoto (I already have small number of the old photos in iPhoto)
How do I upload the photos into 'Events'? What is the difference between Events and Albums?
Do I need to rename the albums on the hard drive before I upload them with new album names?
How can I delete duplicate photos I already have in iPhoto?
and lastly the iMac is set up with 4 users accounts on it - how do I share (in iPhoto) all these newly uploaded photos with the other users
So many questions, but If I do it right now it will save me hrs of work sorting all the photos out and renaming them all when they are in iPhotoand lastly the iMac is set up with 4 users accounts on it - how do I share (in iPhoto) all these newly uploaded photos with the other users
For iPhoto 09 (version 8.0.2) and later:
What you mean by 'share'.
If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
Remember iPhoto must be running in both accounts for this to work.
If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
(You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up. -
Upload a doc into SAP and then FAX it
Hi
I'm looking for a method of uploading a doc into SAP and then FAX it to a customer.
What currently happens is this:
1. SAP creates a document, which is saved to a UNIX directory as a text file.
2. An external process takes this file, uses the info and creates a new file with alot more info than SAP has. This new file is saved to another UNIX directory.
3. This is where I'm stuck. I would like SAP to upload this new text file (or files) and fax each one.
The filename will contain a document number that SAP can then use to check customer master and obtain correct FAX number.
Can anyone provide a few pointers?
thanks,
StephenHi Stephen,
Your SAPConnect config basically sends a SAPOffice message to your fax server, so to send your unix file in the same way you need an ABAP to create a SAPoffice message.
The steps in your program will be something like;
Read the unix file (OPEN DATASET, TRANSFER etc)
Format the data if necessary
Use a function module like SO_DOCUMENT_SEND_API1 to create the message
Provided you maintain the correct recipient parameters SAPconnect should process this to the fax server.
An alternative is to create a spool then pass this to SAPoffice, the approach is similar but the FMs needed will be different.
Regards,
Nick -
Data upload from excel into SAP
Hi Gurus
Could anyone please guide me how to upload excel data into SAP?
I need to update existing Gross weight and Net weight data. Got new data in excel format.So need to upload excel file straight into SAP and update the data.
Step by step procedure will be much appreciated.
Rgds
Utpaltry with bdc .....
below coding is move the data from excel to internal table ....
TYPES: BEGIN OF s_ovro,
VKORG LIKE V_TVSFK-VKORG,
VTWEG LIKE V_TVSFK-VTWEG,
SPART LIKE V_TVSFK-SPART,
STGKU LIKE V_TVSFK-STGKU,
STGAK LIKE V_TVSFK-STGAK,
STAFO LIKE V_TVSFK-STAFO,
END OF s_ovro.
DATA: I_OVRO TYPE TABLE OF s_ovro,
w_ovro type s_ovro.
data : request(15) type c,
i type c.
DATA : IT_EXCEL TYPE STANDARD TABLE OF ALSMEX_TABLINE WITH HEADER LINE.
FIELD-SYMBOLS: <FS1> TYPE ANY.
include bdcrecx1.
SELECTION-SCREEN BEGIN OF BLOCK DATA WITH FRAME.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME DEFAULT 'C:\Documents and Settings\itfactory\Desktop\sd1.xls' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK DATA.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
start-of-selection.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 24
I_END_ROW = 60000
TABLES
INTERN = IT_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
LOOP AT IT_EXCEL.
ASSIGN COMPONENT IT_EXCEL-COL OF STRUCTURE
W_ovro TO <FS1>.
<FS1> = IT_EXCEL-VALUE.
AT END OF ROW.
MOVE-CORRESPONDING: Wib TO Iib.
APPEND w_ovro to I_ovro.
CLEAR W_ovro.
ENDAT.
ENDLOOP.
through bdc program update the data from internal table to bdc... -
Is there any other method other than se78 to upload a graphic into SAP R/3?
Hi,
Is there any other method other than se78 to upload a graphic into SAP R/3?
Anita Jeyanhi ,
just use OAER or RSTXLDMC program
it will definately help you
regards
rahul -
Hi experts,
I have to upload legacy data into SAP by using eCATT recording Transaction. For doing this I have completed Test script in tcode SECATT. After this what I have to do.. How can I attach my legacy file.. Can anyone help me. ..Its really urgent
Thanks in advanceHi,
There are a series of weblogs in this area. Check them out, I think there are 8 in a series:
/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
cheers
Aveek -
Upload bulk data into sap?
hi all,
let me know is there any methods to upload bulk data into sap and can same data be modified , delete , add. please correct me if i am wrong. what i know is that we can do with lsmw method, as i am new to lsmw method please let me know where to hunt for lsmw documentation.
thanks,
john dias.Hi John-
According to SAP, The Data Transfer Workbench supports the automatic transfer of data into the system. The Workbench is particularly useful for various business objects with large amounts of data. It guarantees that data is transferred efficiently and ensures that data in the system is consistent.
Further, The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
For your purpose you might be helped by the following two links-
'Data Transfer Workbench' - http://help.sap.com/saphelp_47x200/helpdata/en/0d/e211c5543e11d1895d0000e829fbbd/frameset.htm
'Using the LSM Workbench for the Conversion' - http://help.sap.com/saphelp_46c/helpdata/en/0f/4829e3d30911d3a6e30060087832f8/frameset.htm
Hope these links help,
- Vik. -
T-code to upload mutliple files into SAP directories ?
Hi,
Is there any other transaction to upload multiple files into SAP directories ( ALL11) other than CG3Z ? Any other procedures at the operating system level ? Please advise.
Regards
ShivaI dont think so. But you can :
-- Ask your developer to create a BDC for this transaction to upload multiple files.
-- Use LSMW to record this transaction to upload multiple files.
Regards,
Jazz
Maybe you are looking for
-
Why is Mavericks running so slowly after a fresh install on my Macbook Pro?
I have a 13-inch, Early 2011 Macbook Pro. Towards the end of 2013 Mountain Lion had been running very sluggishly, and I was getting the spinning beachball of death all the time, so I decided to do a fresh install of Mavericks. I wiped my whole HD usi
-
User exit or BADI while billing doc is transferred to accounting.
Hello All, I've searched SDN for an issue for which I could not find any psbl help. While billing document is saved, according to the config of the billing type automatic posting to accounting happens and I need a user exit while/after this accountin
-
How can I view the backup folders in "text format" does anyone know the software I would have to have to do this?
-
Changes in local storage not reflecting in the mail client
I am trying to make changes to INBOX file in the local machine in the profile folder and trying to see if the changes are seen when the thunderbird mail client is open. But I am not seeing any changes. Where the same with SENT file is seen. What coul
-
How do I get the toolbar to display for safari on my iPad
How can I get the safari toolbar to display on my iPad?