Add Image in ABAP Report
Hi All,
I want add image in ABAP Report.
Please let me know how it can be done?
Regards,
Jagdish More
Hi Jagdish,
to upload the image follow these steps.
1. Upload image in web repository.
Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
2. Click on Execute.
3. Click on Create and give the obj.name and description and click on import.
once the image gets uploaded.in your program do the following
1. Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
2. Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
data container type ref to cl_gui_custom_container.
data picture type ref to cl_gui_picture.
data url(256).
3. Now create the object Container and Picture.
create object container
exporting container_name = 'CONTAINER'.//name of the custom control
create object picture
exporting parent = container
exceptions error = 1.
4. Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
data query_table like w3query occurs 1 with header line.
data html_table like w3html occurs 1.
data return_code like w3param-ret_code.
data content_type like w3param-cont_type.
data content_length like w3param-cont_len.
data pic_data like w3mime occurs 0.
data pic_size type i.
5. Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
refresh query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZLOGO.GIF'."name of logo
append query_table.
6. Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
call function 'WWW_GET_MIME_OBJECT'
tables
query_string = query_table
html = html_table
mime = pic_data
changing
return_code = return_code
content_type = content_type
content_length = content_length
exceptions
object_not_found = 1
parameter_not_found = 2
others = 3.
if sy-subrc = 0.
pic_size = content_length.
endif.
call function 'DP_CREATE_URL'
exporting
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
tables
data = pic_data
changing
url = url
exceptions
others = 1.
7. Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
call method picture->load_picture_from_url
exporting
url = url.
Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
I have already done this program and uploaded the image...
this will surely help you
Thanks and regards,
Tanmaya
Similar Messages
-
Add Image to Jasper Report with Struts 2 and Hibernate
Hi I want to add image to jasper report[pdf] in the environment of Struts 2 framework and hibernate. I am trying
this for last couple of days, but i am unable to get the work done. if any body know the steps to add image to
jasper reports, please help me or if u have any tutorials please let me know. I am using iReport-nb-3.5.0 to generate jasper files.
Thanks in advanceFinally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work -
Displaying image in abap report
Hi Everyone.
I need to display an image in a simple ABAP report giving the filepath of the image.
Can anyone suggest me how to do it???
Is there any FM for that, i need some solution.
Kindly help.
Thanks
Regards
NaveenI need to give the path of the image in the report itself and then while executing i must get the image in the output screen...
Giving path is a must.... -
How to add images to a report with action links
I am working with Action Links between OBIEE 10.1.3.3 and EBS 11.5.10.2
I would like to hide the action link URL with an image. Can someone point me to documentation for adding images to a report with action links.
Regards,
ManavI am working with Action Links between OBIEE 10.1.3.3 and EBS 11.5.10.2
I would like to hide the action link URL with an image. Can someone point me to documentation for adding images to a report with action links.
Regards,
Manav -
Displaying image in ABAP report "Urgent"
Hi Everyone
My requirement is as follows...
On Material Master there is an image stored in document management system.
In a report we need to display the material details plus the image from DMS system.
I heard that there is some function module in this area.
Can anyone pls help how can i achieve this....
Kindly help as soon as possible.
Thanks
Regards
NaveenHi Naveen,
Hope the report is ALV..
Re: How do I insert a logo in ALV using Function Modules?
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
Here you go !!
*& Form TOP_OF_PAGE
text
FORM F_TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_LISTHEADER
i_logo = Logo name
I_END_OF_LIST_GRID =.
ENDFORM. "TOP_OF_PAGE
<b>Reward points if this helps.
Manish</b> -
View an image in abap report.
I have stored the logo but I want to see it printed an previewed in a report without using ALV or smartforms. Is that possible ??
I have Write:/ Sentences and I want to print the logo above.
Thanks in advance.hi,
try this program and set the width lenght accordingly.
REPORT zgb_prog06.
START OF DO NOT CHANGE***********************************
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i.
END OF DO NOT CHANGE*************************************
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
START-OF-SELECTION.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 200
left = 100
top = 20
width = 400.
CHANGE POSITION AND SIZE ABOVE**************************
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
CHANGE IMAGE NAME BELOW UPLOADED IN SWO0*****************
query_table-value = 'BIKER'. GIVE UR LOGO NAME HERE
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 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.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
*Syntax for URL
*url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
*url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
ENDFORM. "show_pic
Make changes in the report accordingly.
REWARD POINTS IF USEFUL,
SIRI -
Hi,
I'm working with obiee 11.1.1.6.1 and I need to add images in a report column.
I tried to follow the advices of Gerard for formulas as in
http://gerardnico.com/wiki/dat/obiee/image
but I don't see the images. I used the formula
'<img src="dir/dir/.../myimage.gif">' with data format HTML.
What wrong? Thank for your help.
maxb (Italy)Hi,
Please refer this link.
I guess you have to place image into two location. Please refer the location path the below link then try to use same syntax
http://satyaobieesolutions.blogspot.in/2012/08/fmap-in-obiee-10g-obiee-11g-using-fmap.html
Thanks,
satya
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:48 PM
Edited by: Satya Ranki Reddy on Sep 3, 2012 4:50 PM -
Which way to get image for webi report?
Hi,
I have to add image to webi report. So any way is there for adding image for webi intelligence.check this thread:
Adding an image (logo) to webi report -
Dears,
i am try to add image in IR report but it's not appear
this table structure
CREATE TABLE "EMPLOYEE"
( "EMP_CODE" VARCHAR2(200) NOT NULL ENABLE,
"EMP_NAME" VARCHAR2(200),
"COMP_ID" NUMBER,
"POSITION_ID" NUMBER NOT NULL ENABLE,
"GROUP_ID" NUMBER,
"EMP_IMAGE" BLOB,
"FILESIZE" VARCHAR2(4000),
"MIMETYPE" VARCHAR2(4000),
"FILENAME" VARCHAR2(4000),
CONSTRAINT "EMPLOYEE_PK" PRIMARY KEY ("EMP_CODE") ENABLE
ALTER TABLE "EMPLOYEE" ADD CONSTRAINT "EMPLOYEE_R01" FOREIGN KEY ("COMP_ID")
REFERENCES "COMPANY" ("COMP_ID") ENABLE
ALTER TABLE "EMPLOYEE" ADD CONSTRAINT "EMPLOYEE_R02" FOREIGN KEY ("POSITION_ID")
REFERENCES "POSITION_TYPE" ("POSITION_ID") ENABLE
ALTER TABLE "EMPLOYEE" ADD CONSTRAINT "EMPLOYEE_R03" FOREIGN KEY ("GROUP_ID")
REFERENCES "GROUP_SETTING" ("GROUP_ID") ENABLE
CREATE UNIQUE INDEX "SYS_IL0000030135C00006$$" ON "EMPLOYEE" (
/this the query in the report
select "ROWID",
"EMP_CODE",
"EMP_NAME",
"COMP_ID",
"POSITION_ID",
"GROUP_ID",
CASE WHEN NVL(dbms_lob.getlength(EMP_IMAGE),0) = 0
THEN NULL
ELSE CASE WHEN MIMETYPE like 'image%'
THEN '<img src="'||apex_util.get_blob_file_src('P509_IMAGE',EMP_CODE)||'" class="image" />'
ELSE
'<a href="'||apex_util.get_blob_file_src('P509_IMAGE',EMP_CODE)||'">Download</a>'
end
END new_img,
nvl((select sum(dbms_lob.getlength(EMP_CODE)) s from EMPLOYEE where EMP_CODE = p.EMP_CODE),0) as "EMP_LOGO"
from "#OWNER#"."EMPLOYEE" p
what's the problem ?Hi,
I do not know your server setup, so it is hard to say.
Probably problem is not related to tablespace. I would check first e.g. grants and try debug app.
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/debug.htm#BCGCIBJA
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
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 -
How to upload images in to custom table and display them in normal ABAP report?
Hi Experts,
Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
Thanks in Advance,
Rgds,
AnushaHi Experts,
Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
Thanks in Advance,
Rgds,
Anusha -
How to add Image to Web Document Report?
Hi,
I need to add Logo in my report. Please share how to achieve this, and are there any constrains regarding picture format, or placement of the image or report transformation(to XL/PDF) or printing.
Thanks in advance,
-VishiYou simply embed the logo in your report however It does not gets exported when the report in exported in Excel but works in PDF.
You can fine complete details and workaround for image in excel at below link.
http://www.dallasmarks.org/blog/2009/02/tips-and-tricks-displaying-images-on-web-intelligence-reports/
--Kuldeep -
Hello,
In my programm i create a word report. In this report exists a table with several parameters. Now I want to add a small Image in each cell, behind the parameters, in the table. How can I add images to a table? I use the Office Report Toolkit.
Thanks
MZHello,
if you search on the Office report toolkit, I think that you'll find the vi "append image to report.vi".
Software developer
www.mcm-electronics.com
PS: Don't forget to rate a good anwser ; )
Currently using Labview 2011
PORTUGAL -
Abap report print logo or image in reverse order
Dear all,
Currently we are using sap enterprise 4.7 . in our abap report sap report and data is OK but log is print in reverse in HP LaserJet p255d and HP LaserJet p250 series PCL 6.
But same report in hp leaser jet 1320 run ok in SWIN driver.
I change the driverson output dvice in sap but result is same how can I update or install print driver that can be I see in SPAD --> output device --> device type
thanks
ShahidHi,
please check this [LINK|http://sap.ittoolbox.com/groups/technical-functional/sap-basis/how-to-install-new-printer-drivers-in-sap-1262490?cv=expanded] and SAP Note : 8928
Regards,
Srinu -
How to add image of Front panel TAGS to html report?
I have a VI with several tabs some of which I would like to append to an HTML report. So far I have managed to include just the front panel front tab (using the Append Front Panel Image to Report.vi. Is it possible to create an image of the tabs in order to append to my report?
I'm using LabVIEW 7.1 on windows 2000
Thanks for any help. It would be greately appreciated.
EduardoHello Eduardo,
In order to accomplish this, you'll need to use the Append Control Image to Report VI in a loop. On each iteration of the loop, programmatically change the Tab Control page (with a local variable or the Value property), then append the tab control image to the report. That way you'll have N images in the report, where N is the number of pages in your tab control.
Hope this helps,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Maybe you are looking for
-
[SOLVED] Linux 3.6.6 boot trouble
Hello all Today I upgraded to Linux 3.6.6 but I had to rollback to 3.6.5 because it did not boot. The process went flawlessy till the moment it had to start the graphical interface, but nothing happened and I had to switch to another console to downg
-
Card Reader not working for HP 20 All-in-One
I have an HP 20 All-in-One PC and have bought two All in one card readers that use the USB slots to connect with the PC. Neither work though which is very frustrating! Nothing happens apart from the light comes on in the card reader.
-
External Hard drive on mac and pc??
Hello, Quick Question...sorry if this has already been discussed.. Set up my ipod as an external hard drive on my mac, but can't plug it into a pc without it asking me to format it....obviously I say no to this, but it won't let me open it without fo
-
Is anyone else experiencing fan issues? I have a mid-2011 MacBook Air 13" (4gb RAM, 128mb SDD). Problem is that the cooing fan runs non stop...and it's LOUD. I run it on a stand, lid closed attached to a 27inch LG Display. Anyone else seen this?
-
Image barcode file creating with report using barcode javabean
hi all I have report in report 9i using barcode javabean. at runtime my report make image file with barcodevalue name on desktop. i have to change this folder .I dont want to have this image file on desktop. i set REPORTS_TMP on registery but i have