Webdynpro-RFM-images
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
JR
Hi,
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
Similar Messages
-
I watched and read about images that were selectable. Only it was done in Adobe Flex Islands. I'm currently on Netweaver 7.0 - no enhancement packs. So I can't use Adobe Flex.
Is there a way using just Webdynrpo to create this? I'd like to have many different images that you can scroll. Then when the image is clicked - something happens.
Hopefully I'm making sense.
Thank you!
Michelle
(Here's the link to the demo.) I want to be able to do something similiar to the product images. [Sales Order|http://a.blip.tv/scripts/flash/showplayer.swf?file=http%3A%2F%2Fblip.tv%2Frss%2Fflash%2F1105659%3Freferrer%3Dhttp%25253A%25252F%25252Fwiki.sdn.sap.com%25252Fwiki%25252Fdisplay%25252FEmTech%25252FIslandsWDA_MHO%26source%3D3&showplayerpath=http%3A%2F%2Fblip.tv%2Fscripts%2Fflash%2Fshowplayer.swf&feedurl=http%3A%2F%2Fthomasjung.blip.tv%2Frss%2Fflash&brandname=blip.tv&brandlink=http%3A%2F%2Fblip.tv%2F%3Futm_source%3Dbrandlink&enablejs=true]Hi Michelle,
If you use the link to action UI element you can also supply an image and event on the click of the image (you don't need to supply text) - this might be helpful if you had other information in the table that you didn't want to trigger the event (if you were just using the lead selection event). I often use this to replace a "button" in my applications where the standard WD button design is not what the application requires.
Hope this helps,
Chris -
Setting Image field in adobe form
Hello Gurus,
I have a question setting the image field dynamically.
I have created a following context structure for
DataSource(ValueNode Cardinality (1..1))->imagenode(Valuenode Cardinalty(0..n))->image(Value attribute))
I have binded the Datasource node to the Datasource of the interactive form.
I have dynmaically created the imagenode and set the value for the image.
for(int i=1;i<5;i++)
image= wdContext.createIImagenodeElement();
if(i==1)
image.setImage("http://Image1.png");
if(i==2)
image.setImage("http://Image2.png");
if(i==3)
image.setImage("http://Image3.png");
if(i==4)
image.setImage("http://Image4.png");
wdContext.nodeImagenode().addElement(image);
Now I want to set this node to the image field in adobe.
In URL of the image field I have enterted $record.imagenode[*].image and its not working where as the same thing works for text field.
Please let me know if any one has any idea on this.
Thanks,Hi Naresh,
Copy the images to src -> mimes - > Components of your development component / project.
To the value node set the url like the following way ...
http://<hostname>:<port number>/webdynpro/resources/image.gif
Thanks
Madhu -
Can a iview monitor the loading of another iview?
Hello,
We created some IAC iviews and these IAC sometimes takes upto 1 minute to load completely. While doing so, there is no indication that the page is loading. In workplace, there was a image(similar to the webdynpro loading image) but this is not available in the portal. We poked around and concluded that the image was being loaded and unloaded by the base frame. How can we accomplish something similar in the portal? Specifically, can we use EPCF for it? Biz has ruled out modifying IAC pages to fire EPCF events. Can a iview monitor the loading of another iview?
Thanks for viewing this question,
Raj BalakrishnanTo make app maintenance easier, I'd prefer to define the logic in one button and have the second button
simply do whatever the first button is defined to do -- as if it was the one that was clicked. Generally a button either submits the page with a request (i.e. 'CREATE') or executes some Javascript. You can make multiple buttons on your page that when clicked issue the same submission request. In that case, the Processing designed to run on that request will run regardless of which is clicked. Likewise more than one button could execute the same Javascript function.
For example, I have several apps that my userbase makes use of, and some people make use of several. To make it clear which they are logging into, the login screen of each has a graphic that indicates the app name (the same as defined in the application's logo). That graphic is actually in the screen as a graphic button and when clicked will submit as 'LOGIN', so it matters not whether someone clicks on the image or the Login button, the login logic will execute. -
Reinstallation of SAP NetWeaver ABAP
My first installation failed. So I cleaned my PC from
saü and sapdb manually since the uninstallation.exe
is missing. Then I cleaned the registry manually.
Now I tried installation again, but at 17% I get an Error:
Error-Log:
Wed May 07 09:33:17 CEST 2008 MaxDB sdbinst: Installation of MaxDB Software
Wed May 07 09:33:17 CEST 2008 MaxDB sdbinst: *******************************
Wed May 07 09:33:17 CEST 2008 MaxDB sdbinst:
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst:
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst: starting installation We, May 07, 2008 at 09:33:17
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst: operating system: Windows I386 NT 5.1 Service Pack 2
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst: callers working directory: D:/WebDynpro/Part1/image
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst: installer directory: C:/sapdb/NSP/_tempLocation
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst: archive directory: C:/sapdb/NSP/_tempLocation
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst:
Wed May 07 09:33:18 CEST 2008 MaxDB sdbinst:
Wed May 07 09:33:25 CEST 2008 MaxDB sdbinst: One or more validation errors occured:
Wed May 07 09:33:26 CEST 2008 MaxDB sdbinst: PARAMETER ERRORMESSAGE
Wed May 07 09:33:26 CEST 2008 MaxDB sdbinst: ========= ============
Wed May 07 09:33:26 CEST 2008 MaxDB sdbinst: DBNAME Instance already exists
Wed May 07 09:33:26 CEST 2008 MaxDB sdbinst: Database NSP must not exist
Wed May 07 09:33:26 CEST 2008 MaxDB sdbinst: installation exited abnormally at We, May 07, 2008 at 09:33:25
Wed May 07 09:33:26 CEST 2008 MaxDB: Error during call to sdbinst, rc= 1
Wed May 07 09:33:26 CEST 2008 MaxDB: Done with call_sdbinst
Wed May 07 09:33:26 CEST 2008 MaxDB: rc of sdbinst = 1
Wed May 07 09:33:26 CEST 2008 MaxDB: Start of CallSdbuninst
Wed May 07 09:33:26 CEST 2008 MaxDB: No IndepProgPath. Nothing to do.
Where is the database? How can I find it?
What can I do?
Thank you!Hello Doris,
please try following the steps of the first part of the following link --> Troubleshooting
Also please check your C:WINDOWSsystem32driversetcservices -file that there aren't any entries like NSP are left.
Hope it helps.
Regards,
Norman Schröder -
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 -
How to add Image dynamically in Webdynpro ABAP
Hi Experts,
How to add Image dynamically in Webdynpro ABAP.
My requirement is i maintain all the images in a table.
image source has to pick the table URl dynamically and display.
is that possible in webdynpro?
and also please give the suggesion,
without using MIME objects is that anyway to get images?
Thanks in advance.
Regrads,
JeyanthiHi,
are those icons wou want to display then. he following code will be useful.
data : lo_IMG type ref to CL_WD_IMAGE.
LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
lo_cont->add_child( the_child = lo_img ).
here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
Regards,
Anil kumar G -
About list dynamic images in ADS for WebDynPro ABAP
Hi All
I find a blog and try it on my server .
I had added theimage in se78, During debugging, everything seems to get filled correctly,
but r the image doesn't display in UI - Image file Q_Q
Please help
the blog is : ( How Tou2026 Integrate ADOBE form on WebdynPro for ABAP and Deploy it on portal )
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID0559322050DB00377446485733506510End?blog=/pub/wlg/7783Sorry I late >"<
My org. program used the method "cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp"
and i used ls_z_if_test_cv-im_photo ( type is Xstring) to receive export data
the program code is :
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = 'GRAPHICS'
p_name = 'ENJOY' " Sap logo
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.
in this case , i need using cl_http_utility=>encode_x_base64( ) to conver ls_z_if_test_cv-im_photo ???
and in my sap, i only found METHOD "cl_http_utility=>encode_base64( )"
Maybe you are looking for
-
My iphone 3gs stopped appearing in the sidebar
A week or so ago my iphone 3gs stopped appearing in the itunes (10.7) sidebar when plugged in to my computer. It shows in the itunes fuile menu and when I right click the itunes icon in my task bar. It would still sync from the file menu. Now, itu
-
[RESOLVED] MPD can't add files to db, says ignoring unrecognized file
Sorry to bother you guys with this, but I have searched a while on google and the forums and come up empty. I'm trying to add some music to my database with mpd and ncmpcpp. I start mpd and it starts fine, and start ncmpcpp and it starts fine, and hi
-
Acrobat DC Backwards Compatibility?
I've been searching and can't find an answer to these questions: When using Acrobat DC, what previous versions of Acrobat can I save a file as? In other words, if I am using Acrobat DC and my clients are still on Acrobat X (for example), can I save t
-
Does single-app version of Photoshop include Lightroom?
Hi! Looking into getting the single app version of Photoshop in Creative Cloud, but don't know if it includes access to Lightroom or not... It doesn't say so anywhere, but Lightroom isn't an option under single app so I was curious... Thanks!
-
Getting gifs to work in photoshop...?
I can't seem to save a gif properly. I have imported a small video and I see each image in all the layers and frames (75 to be exact). Now when I go to save it as a (compu serv) Gif, it only seems to save the first image and nothing else - no moving