Webdynpro image
Hi All,
I am using the NWDS 7.0,here i was working on portal side.yes ,Actually i am having one image on my desktop.So how can i put the image in to portal view.and also how can i develope the separate default frame work page our won format by using Webdynpro for java.can anybody help me with example and also step by step procedure.
regards..
sai
hi,
goto following blogs -->
Modifying The Logon Par(or customising the Logon Screen)
Modifying The Logon Par(or customising the Logon Screen)---Part2
A fast and easy Portal logon page customizing
The specified item was not found.
A Change Password Application
MastHead Change & Portal Desktop
regards,
krishna.
Similar Messages
-
how can transfer bitmap images through SAP RFC call to webdynpro?
do the images tranfer work like ordinary data transfer.
images are stored in R/3.
thanks in advance
JRHi,
Actually I do not want to store the images in Java webdynpro application,but would like to display the images through webdynpro.Images are stored in SAP System.
I would like to call these images in to java webdynpro by a RFC call to SAP System.I am not an expert in RFC.SO would like to know whether it is possible to transfer images throuh RFC like a normal data transfer and how.
thanks
JP -
Thumbnail creation during Image Upload
In my application, I am able to upload documents to content server using KPRO API's. Image upload works fine and I can display the same file in webdynpro image UI element. Now while uploading the image, i also need to create a thumbnail image and store it. I can use these thumbnail images for image navigation instead of actual file due to performance issues.
How to create thumbnail images from jpeg image file?
Edited by: ashwinsrinivas on Jul 20, 2010 8:41 PMI'm trying to put the results of my tinkering into a blog - which should hopefully get published in the next few days.
But just to update you here first
Yes it can be done! - here's the proof:
[Large image about to be resize to a thumbnail|https://weblogs.sdn.sap.com/weblogs/images/251723740/large_double_rainbow.jpg]
[Image after resizing|https://weblogs.sdn.sap.com/weblogs/images/251723740/resized_rainbow.jpg]
Thought I'd go with some double rainbows to be topical (plus I can't get the darn song out of my head!)
I created a new method in Thomas' class: TRANSFORM_RESIZE with 2 input parameters of type i, new_width and new_height.
Then most of the code is pretty similar to the rotation code that Thomas had already written...
data l_data type xstring.
data l_new_data type xstring.
data l_row type xstring.
data l_new_row type xstring.
data l_num_pixels type i.
data l_counter type i.
data l_counter2 type i.
data l_len type i.
data l_pad type i.
data l_mod type i.
data l_width type i.
data l_bytes_per_pixel type i.
data: l_y_factor type f,
l_x_factor type f.
data l_new_pad type i.
data l_null(1) type x.
* get the data from the image representation
l_data = gx_content+data_offset.
l_bytes_per_pixel = bpp / 8.
l_width = width * l_bytes_per_pixel.
l_y_factor = height / new_height.
l_x_factor = width / new_width.
l_mod = l_width mod 4.
l_pad = 4 - l_mod.
if l_pad = 4.
l_pad = 0.
endif.
l_len = xstrlen( l_data ).
data lt_rows type standard table of xstring.
data: l_row_index type i.
field-symbols <wa_row> like line of lt_rows.
do new_height times.
l_row_index = floor( ( sy-index - 1 ) * l_y_factor ).
l_counter = l_row_index * ( l_width + l_pad ).
append initial line to lt_rows assigning <wa_row>.
<wa_row> = l_data+l_counter(l_width).
enddo.
l_mod = ( new_width * l_bytes_per_pixel ) mod 4.
l_new_pad = 4 - l_mod.
if l_new_pad = 4.
l_new_pad = 0.
endif.
loop at lt_rows assigning <wa_row>.
clear l_new_row.
do new_width times.
l_counter2 = l_bytes_per_pixel * floor( ( sy-index - 1 ) * l_x_factor ).
concatenate l_new_row <wa_row>+l_counter2(l_bytes_per_pixel) into l_new_row in byte mode.
enddo.
if l_new_pad > 0.
do l_new_pad times.
concatenate l_new_row l_null into l_new_row in byte mode.
enddo.
endif.
concatenate l_new_data l_new_row into l_new_data in byte mode.
endloop.
data x_new_image type xstring.
concatenate gx_content(data_offset) l_new_data into x_new_image in byte mode.
data x_header type xstring.
x_header = gx_content+0(data_offset).
data x_size(4) type x.
data i_size type i.
i_size = xstrlen( x_new_image ).
write4 i_size x_size.
concatenate x_header+0(2) x_size x_header+6 into x_header in byte mode.
data x_data_size(4) type x.
data i_data_size type i.
i_data_size = xstrlen( l_new_data ).
write4 i_data_size x_data_size.
concatenate x_header+0(34) x_data_size x_header+38 into x_header in byte mode.
data x_width(4) type x.
data x_height(4) type x.
data i_width type i.
data i_height type i.
i_width = new_width.
i_height = new_height.
write4 i_width x_width.
write4 i_height x_height.
concatenate x_header+0(18) x_width x_height x_header+26 into x_header in byte mode.
data x_hres(4) type x.
data x_vres(4) type x.
x_hres = x_header+38(4).
x_vres = x_header+42(4).
concatenate x_header+0(38) x_vres x_hres x_header+46 into x_header in byte mode.
concatenate x_header l_new_data into x_new_image in byte mode.
gx_content = x_new_image.
me->read_bitmap_header( ). -
Hi,everybody!
I am developing personality ESS/MSS in webdynpro.When I want show personal photo in my develop function from that stored in ECC6.So I find two BAPIs:HRMSS_RFC_EP_READ_PHOTO_URI and HR_ESS_WHO_PROG_GET_PICT_URI in ECC6.Then I call the HRMSS_RFC_EP_READ_PHOTO_URI or HR_ESS_WHO_PROG_GET_PICT_URI in webdynpro,and them can return personal photo URL.But,the returned URL is be encrypt.If I used this encrypt URL in webdynpro Image control,however the personal photo is not show.How should I do?Can I dencrypt in webdynpro?If can dencrypt in webdynpro,what should I do?
On the side,somebody can tell me the difference of HRMSS_RFC_EP_READ_PHOTO_URI and HR_ESS_WHO_PROG_GET_PICT_URI,and each of them use.
Thank you!Hi,
check this link for webdynpro remote call
The webdynpro/ABAP (WDA) calling RFC enabled FM of other ECC systems
thanks,
Sendil -
WebDynpro calls HRMSS_RFC_EP_READ_PHOTO_URI question!
Hi,everybody!
I am developing personality ESS/MSS in webdynpro.When I want show personal photo in my develop function from that stored in ECC6.So I find two BAPIs:HRMSS_RFC_EP_READ_PHOTO_URI and HR_ESS_WHO_PROG_GET_PICT_URI in ECC6.Then I call the HRMSS_RFC_EP_READ_PHOTO_URI or HR_ESS_WHO_PROG_GET_PICT_URI in webdynpro,and them can return personal photo URL.But,the returned URL is be encrypt.If I used this encrypt URL in webdynpro Image control,however the personal photo is not show.How should I do?Can I dencrypt in webdynpro?If can dencrypt in webdynpro,what should I do?
On the side,somebody can tell me the difference of HRMSS_RFC_EP_READ_PHOTO_URI and HR_ESS_WHO_PROG_GET_PICT_URI,and each of them use.
Thank you!I have a similar issue, can you please let me know if you could resolve the issue with URI from HRMSS_RFC_EP_READ_PHOTO_URI.
-
How to present pics from SAP folder?
Hi,
I would like to present a pic that is on the SAP folder (visible via AL11).
I want to use logical filename to get the path to that gif.
How can I present this pic on the screen?
Thanks,
Itayhi itay,
you can use webdynpro IMAGE ui element. Bind the Source Property of the image UI element to the URL for this image. Check the below code on how to get IMAGE source URL in HR
DATA: it_toav0 TYPE TABLE OF toav0,
wa_toav0 TYPE toav0,
p_exists TYPE c.
DATA: ex_length TYPE int4,
ex_document TYPE TABLE OF tbl1024,
ex_message TYPE bapiret2,
img TYPE xstring,
url TYPE string,
pernr TYPE persno VALUE `1006786`.
DATA: cached_response TYPE REF TO if_http_response,
guid TYPE guid_32.
* check employee image
CALL FUNCTION 'HR_IMAGE_EXISTS'
EXPORTING
p_pernr = pernr
p_tclas = 'A'
IMPORTING
p_exists = p_exists
p_connect_info = wa_toav0.
IF p_exists = 1.
* get image data
CALL FUNCTION 'ALINK_RFC_TABLE_GET'
EXPORTING
im_docid = wa_toav0-arc_doc_id
im_crepid = wa_toav0-archiv_id
IMPORTING
ex_length = ex_length
ex_message = ex_message
TABLES
ex_document = ex_document.
* convert to xstring
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = ex_length
IMPORTING
buffer = img
TABLES
binary_tab = ex_document.
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
* set image to mime
cached_response->set_data( img ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = 'image/pjpeg' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
cl_wd_utilities=>construct_wd_url(
EXPORTING application_name = 'Z_JR05'
IMPORTING out_local_url = url ).
CONCATENATE url '/' guid sy-uzeit INTO url.
cl_http_server=>server_cache_upload(
url = url
response = cached_response ).
* set photo
DATA:
node_photo TYPE REF TO if_wd_context_node,
elem_photo TYPE REF To if_wd_context_element,
stru_photo TYPE wd_this->element_photo.
node_photo = wd_context->get_child_node(
name = wd_this->wdctx_photo ).
elem_photo = node_photo->get_element( ).
elem_photo->set_attribute(
EXPORTING
name = `PHOTO`
value = url ).
ENDIF.
Also check this excerpt from Thomas Jung for previous Thread on same issue
SE78 is the old graphics store for SAPScript. Not the best place to store images now because of the limited support for graphic types. Usually you store as Bitmaps there, making those images highly inefficient for usage on the web. Unless you have thousands of images you need to use, I would suggest downloading them, converting their format and storing them in the MIME repository. If you absolutely must access those images for some reason, look at the function modules in group STXBITMAPS - function module SAPSCRIPT_GET_GRAPHIC_BDS or SAPSCRIPT_BITMAP_GET depending upon which of the two formats/folders where used in SE78.
greetings
Prashant -
Changing URL path or prefix for Java Systems for Reverse Proxying
I am running an Apache Reverse Proxy for multiple systems including Enterprise Portal and GRC. Unfortunately, the two systems share the same directory structure (e.g. /webdynpro, /images, /logon, /useradmin, /VC). The reverse proxy won't be able to differentiate URLs for the two systems.
I want to add a prefix (e.g. /grc/webdynpro) or change the URL directories (e.g. /grcwebdynpro) for Portal or GRC. How can I do this?Thank you for the reply, but could you explain? It seems like this wiki is suggesting how to change the default port and start URL and how to configure reverse proxies in general. It doesn't seem to answer the specific question that I have.
I need to add or modify the URL so that it is unique to the reverse proxy. For example, EP and GRC both use /webdynpro. I would like one of them to use a completely different structure (e.g. /grc/webdynpro) so that the reverse proxy can differentiate requests to different hosts.
The reason why changing the Start URL doesn't seem like the answer is because the fundamental directory structure is still the same. The reverse proxy won't be able to differentiate the different requests because of this.
I am looking for some kind of configuration that lets me add a prefix to the entire web application server. Is anyone aware of this configuration or know of an alternative solution? -
Image not showing in Abobe integrated with Java WebDynPro
Hi All,
Image is not showing in Abobe integrated with Java WebDynPro.
I did the following:
Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
Then in script editor i wrote
this.value.image.href = xfa.resolveNode(this.value.image.href).value;
at innitialize , javascript and client.
I can see the image from the same url context value if image field is created directly in WebDynPro View.
Can anyone suggest what is missing?
Thanks and Regards,
NuzhatTry changing your line of code for this one
this.value.image.href = xfa.record.Images.URL;
Check that the url passed by scripting is correct with a messageBox for example.
You can also try assigning a hardcoded url at scripting level to check if its works.
Best regards, Aldo. -
How to display a image in webdynpro view using a bytearry
Hi Frndz..
How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
*byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
by using this i need to show image in view..
Kindly help me ....
Thankas in Advance
Regards
RajeshHi,
byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
imageEle .setVa_Name(res.toString());
wdContext.nodeVn_ImageTab().addElement(imageEle);
Hope this may help you.
Deepak -
How to insert the image or logo into the table as a field in webdynpro abap
Hi Friends,
Please tell me how to insert the image or logo into the table as a field in webdynpro abap.........Hi Alagappan ,
In your view layout you take table UI element and then you bind it with some context nodes.
The attributes of your nodes comes as a field.
Now in these fields you can set various properties and image is one of them.
Go to ->
1. View Layout -> Right Click on ROOTUIELEMENTCONTAINER -> INSERT ELEMENT -> TABLE
2. Right click on table -> Create Binding.
Here you have to bind it with the appropriate context node.
You will get two properties here
a- Standard Cell Editor :- ( make it image )
b- Standard properties :- ( If required set image properties ).
3. If you want put image from out side then import it as a mime object and set the source of your table field ( used as a image )
also have a look :-
[Image Properties|http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm]
Hope this will solve your problem.
Reply if any case of any issue.
Thanks & Regards,
Monishankar C -
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 -
How to add an image to an IMAGE control in Java WebDynpro
hi
How to add an image to an IMAGE control in Java WebDynpro.
Please give me the steps to assign an image to an IMAGE control.
Advanced Thanks
brahmaThank You Mathan MP,
i tried these steps, but whenever i selected the source property of image UI control, it opens a context window, but this context window does't contain any thing for selection.
so how to solve this problem ?
the link whatever u provided is not opened, please send the correct link.
http://127.0.0.1:1284/help/index.jsp?topic=/com.sap.devmanual.doc.user/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
Thanks in Advance
brahma -
How to display Image/Logo in Html file generated from Webdynpro App
Dear All,
I have developed a webdynpro application and onClick of the Button I am opening a new browser by generating HTML file.The file is opened successfully.
My requirement is to display the company logo on that HTML file. Where to place that image file and how to call that image file in my HTML.
Regards
PonnusamyHi,
Ex. 1 - If the Index file is in the same directory, called "test"
tales/numbers.jpg
Ex. 2 - If the image is in a subdirectory, called "test1" within "test"
test/test1/numbers.jpg
img src="test/test1/numbers.jpg"
Regards
Ayyapparaj -
Inserting Images in the Background of My Webdynpro Application
Hi Experts,
I need your Help. I am a novice to Webdynpro-ABAP and have a requirement to embed
Image in the background of my dynpro Application.Kindly suggest me the solution for the same .
Thanks In advance for your help.Hi,
Please read this [documentation|http://help.sap.com/saphelp_nw70/helpdata/en/46/89af7fbe4d429ee10000000a1553f7/frameset.htm]
grtz,
Koen
Edited by: Koen Labie on Mar 12, 2008 10:30 AM -
How do you display a new image in webdynpro view?
How do you display a new image in webdynpro view?
Where is the image stored and how do we specify the image path?hi ,
The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
saveur image as mime
with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
Right click on ur component->mime object->import
In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
also refer the SAP online help :
http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
to knw more abt mime repositories.
http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
regards,
amit
Maybe you are looking for
-
I use my iPod Touch 5th Gen to check email when away from home. My email account is with Gmail. I primarly use my pc (MS Outlook 2013) for my email processing. Prior to my hard disc drive failure, when I checked email on my iPod Touch, only unrea
-
Hi, When i am creating a PR with Doc type RV & item category M it is showing me an error Field selection PT4B not defined. How can i resolve the query? Thanks Anupam
-
STO shipping data tab not appearing in PO hence cannot make deli.by VL10B
Hi, I am doing stock transfer order setting in define shipping data for plant in SPRO (stock transfer order setting ).In documentation it is mentioned that we had to set customer number of receiving plant and also sales org/dis/channel for supplying
-
ACE - SSL Termination is not working
HTTPS is not working from official IE browser but it is working from test Firefox browser. However HTTP is working with both IE and Firefox browsers. This is true for multiple implementations on the ACE service module with SSL termination. ACE softwa
-
I recently purchased adobe photoshop and premier elements 12. The premier elements won't download on my pc because it doesn't support a 64 bit??