on 04-07-2010 8:22 AM
Dear all,
As we know, we can upload employee photo so that the employee photo can be seen when user browses through transaction code such as 'PA30/PA20'. Where as the employee photo is uploaded through the transaction code OAAD so the picture is stored as an Archive-Link document.
Currently I have a requirement to create a custom form using SMARTFORMS which can show the employee photo in the form. I've been reading through this forum and find negative responses for this kind of requirement because:
1.Smartform can only uses 'BMP' type picture
2. Smartform can only uses graphic object stored through the transaction code: SE78.
Is there anybody who has found a way around this problem and uses uploaded employee photo within the smartform. Kindly share the solutions.
If we can't uses the uploaded photo, is it possible for a smartform to uses a picture which is put in a file server.
Best Regards
-Suwardi Nursalim-
You can use the HTML control to display photos from your archive server. You can do this with a couple of function calls which returns the URL of the photo on the server. Then pass the URL to the HTML viewer.
...
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
* P_TCLAS = 'A'
p_begda = sy-datum
p_endda = sy-datum
IMPORTING
p_exists = image_exists
p_connect_info = image_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.
CALL FUNCTION 'ARCHIVOBJECT_GET_URI'
EXPORTING
objecttype = image_info-sap_object
object_id = image_info-object_id
TABLES
uri_table = uri_tab
EXCEPTIONS
error_archiv = 1
error_communicationtable = 2
error_kernel = 3
error_http = 4
error_dp = 5
OTHERS = 6.
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Decided to upload employee photo to SAP to simplify problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well this is QUITE a task.
In my eyes you are better off just uploading every employee photo again with TA SE78, and make use of those pics then in your smartforms.
Problem is then you got redundant pics, which means when Changing, deleting, adding you need to do it twice for evey photo then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Graphics form Smartforms / Saspscript can only be used when saved
with SE78, which means table STXBITMAPS and KPro. This is a completely
different direction as Archivelink.
But using SE78 and the formats known there (TIFF and BMP) is a way.
It will mean also duplicating the objects, but unfortunately SAP do not
have anyzhing better nor will ever be with Smartforms. If the files are
stored as TIFF and OTF files they can be opened and viewed using a PDF
converter. You can see following notes for further info:
-> 83019 TIFF graphics and PDF conversion in SA
-> 152442 SAPscript: Collective
There is currently no recognized way by SAP to reload a graphical object
besides program RSTXLDMC that has been saved on Archivelink. As for the
reason for that, that is up to development.
Regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To convert from various formats to BMP, have a look at IGS converter: [sdn blog - ABAP Bitmap Image Processing Class|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7249] [original link is broken] [original link is broken] [original link is broken];, and this SDN thread:
You'll have to store BMP into file then upload it using RSTXLDMC program (same as SE78) so that it can be used in smart forms.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.