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
Naveen
I 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....
Similar Messages
-
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> -
Hi All,
I want add image in ABAP Report.
Please let me know how it can be done?
Regards,
Jagdish MoreHi 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 -
Hi,
I would like to display a jpeg image in the initial screen of an abap report. I already have an image uploaded to SAP using the transaction SMW0 and I've also learnt from other threads in the SDN that I can refer to the sample program SAP_PICTURE_DEMO for reference.
However, I would like to have the picture to occupy the entire SAP window and would like the picture to resize automatically when the sap gui window is resized. Would anyone of you be kind enough to let me know if there are ways to do it.
Thanks,
FrancisHi,
Please follow the links below
Re: Bar Code Generation in ABAP Report
Create Barcode in ABAP : conversion to PDF
also chk the link below, It also gives info about barcodes..
http://www.mecsw.com/info/appnote/app_024.html
hope it helps
Regards,
Manish -
Display image in classical report
Experts,
Please share how to display image stored in SO10 in to a classical report??Hi
check this
In the transaction OAOR, you should be able to insert your company Logo.
GOTO - OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
FORM TOP-OF-PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = HEADING[]
I_LOGO = 'ENJOYSAP_LOGO'
I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
ENDFORM. "TOP-OF-PAGE
Here 'ENJOYSAP_LOGO' will replace by ur created logo.
Refer this link
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
http://www.sap-img.com/abap/alv-logo.htm
http://www.sap-img.com/fu002.htm
Re: Logo on Login screen
Re: To change image into main menu of sap
Regards
Anji -
Insert and display images in a report
Hi ABAPers, I need to insert and display an image (bitmap format) in a standard ABAP report. With the consideration that the image (an employee photograph) could vary depending on the employee numer the user enter as an input parameter for the report. Any ideas of how can I do it? Help will be appreciated. Thanks in advance.
Regards.
Sebastian.No you cant do it as Vashmi already said so , you can upload the pictures in ALV, but in your requirement I must say you should see the OSS note # 353949
<b>FYI</b>
Symptom
In the following note you will find some of the most frequently asked questions and their answers. Most answers are release independent, but some are valid for release 4.6 only.
Other terms
Questions, picture in header, profile, FAQ
Solution
[1] Question: Is it possible to configure the profile e.g. for a person?
[2] Question: How can I bring a picture of the person into the profile header?
[1] Question: Is it possible to configure the profile e.g. for a person?
Answer: It is possible to add or delete sub-profiles. You can do this in the customizing (transaction OOPF). There you can deactivate sub-profiles for an object type. Or add a new existing sub-profile.
<b>[2] Question: How can I bring a picture of the person into the profile header?
Answer:
You should have an employees picture with format JPG or BMP...
Start transaction OAAD to add the picture to SAP ArchiveLink. Press the Create-Button there. You have to type in PREL for the Business object and HRICOLFOTO for the Document type. Then press create. On the popup you must maintain the wished Personnel number for that the picture should be valid. Then press 'Continue'. Choose the picture and continue.
For the screen header 00 (if it isn't changed) you should see the picture in the profile.</b>
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Knowledge comes but wisdom lingers!!" -
How to display barcode in ABAP report
Hi Experts,
I want to display the barcode of process order number in ABAP report without using SAP script or smart form. Please let me know how is it possible to display and print the barcode in the ABAP report.
Thanks in advance.Hi,
Please follow the links below
Re: Bar Code Generation in ABAP Report
Create Barcode in ABAP : conversion to PDF
also chk the link below, It also gives info about barcodes..
http://www.mecsw.com/info/appnote/app_024.html
hope it helps
Regards,
Manish -
Can We Display Image on Hieararichal Report on Each Line item
Dear Gurus ,
I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same .
Thanks in advance
regards
ShankarI am having a path which is stored in SAP database which i have fetched in the reported in both alv heriarchal and also in Alv Grid . The Image is stored from DMS . Now what i am doing is i am trying to load a excel file from program BCALV_BDS_UPLOAD and when i run my report and go to view and select Microsoft Excel option the I am getting an error Bad file format .
The Path is : SAPR3://SAPR3CMS/get/200/DMS_5FC1/DE72B28A5B76F0F1AF0000215E54283E/FM1E1085XX18W-001E.jpg
Can you please help me out in this .
Regards
Shankar -
Displaying Images in a Report or in PLSQL Code
Hi all,
I have a products catelog in an items table (item_id, item_name, item_image (blob)). I want to display it in a table form but Reports in Portal30 do not allow images.
I can write simple PLSQL code to display table contents in tabular form (using htp, htp packages) but I could not find any procedure/function to display image stored in a db table to an HTML table.
I shall be grateful for any help or hint regarding this. You can mail me directly if you like.Armaghan
This question is best asked in the Oracle9iAS Portal Applications Forum. -
ORA-01403 displaying image in a report
Hello.
I have a table with BLOB column that stores an image. I created a report on this table trying to display this column's images. I surround the column with dbms_lob.getlength() function in the SQL of the report and I use the following for the column's Number / Date Format in the "Column Formatting" section of the Report Attributes:
IMAGE:PROJECT:PRODUCT_LOGO:PROJECT_ID::::::inline:Download
This syntax is what makes things works for me in other areas of the application where I display stored images in a report. But not here. The report works, returning a number (representation of the getlength function returned value), as it should. As soon as I add the above Number / Date Format, I get:
report error:
ORA-01403: no data found
What is different in this report from the others that work is that this report's SQL is a join of a number of tables, not a straight select on one table like the others. In the SQL, the tables are referenced by alias, so table PROJECT's PRODUCT_LOGO column is referenced as a.product_logo in the query's select clause.
I don't see any other substantive differences.
What could be the cause of the failure?
Thank You
BorisThank You Scott for your reply.
I was able to figure it out.
In my report query, I forgot to reference PROJECT_ID, which is the primary key of the table by which the IMAGE mask is called. Apparently, it is necessary to awalys include the primary key in the query SELECT clause, where you actually need it in the report or not, just to make the image retrieval in the report work.
Thank You
Boris -
Displaying images in pdf reports
a question please..
can one display only .gif type images or can they also be .jpgs?
also, is there a limit to the size of the image one displays?
also, can one control the size of these images in the reports.
sorry about the above. I have looked around for answers with very little success.
thanks in advance.Hi
I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
Regards,
Vidar -
Hi all,
I have a table, Standard_Products, and i want to show an image in my report along with some other data.
I am using file browser to import the images at the moment.
Please advise what to do - at the moment the column is showing "Datatype" instead of the image itself.
Thanks,
RobTake a look at: http://htmldb.oracle.com/pls/otn/f?p=18326:54:2841216309756218::::P54_ID:268
Mike -
Hi All,
I have a requirement where the client wants to dsiplay the image of a particular characteristics in the Bex report.
For example, they have a charaacteristic Material, and they have the images of all the materials. The requirement is to display the image of the particular material wherever it appears in any report.
Can somebody let me know if this is possible and if yes how this can be done? I want to know how the master data (with the images) will be maintained and how it can be implemented on the reporting side.
Thanks in advance for any help.
Arnab Ghoshrefer:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/709cfb6e-f99c-2910-ba82-e85202944022
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8046aa90-0201-0010-5e99-962948c83331 -
Display image in forms & reports developed on windows and deployed on Unix
Hi,
We are upgrading from Forms and reports 6i to forms10g.
We need to insert image in forms and reports. Recompile and deploy on unix server.
So can anyone let me know the exact steps to create jar file containing images, where to place the jar file.
Corresponding folder, file and configuration changes required on windows and unix.
Av.Hi Frank,
thanks for the link it helped me in understanding how images work for forms.
But my real concern is how this will work in reports?
As we dont have any reportsweb.cfg nor any java path for reports?
Can you help me in understanding how to embed image in reports that will be displayed even after porting the report on unix oas.
Regards,
Av. -
Displaying Images In A Report Template Build In Word
Hi
I am trying to display a company logo (image) blob data type from a query within my database on a BI Report
EG
A basic Query
Select id, logo
from headers
where company_id = 1
I am then trying to display this by creating a word template. I can display the ID fine but the image is just the raw content of the blob.
Can someone point me in the right direction.
Many ThanksIve resolved this
Thanks
FYI In case anyone needs the info
<fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//FIELDNAME"/></fo:instream-foreign-object>
Maybe you are looking for
-
Slow system and application startup times
Hi, I've got a 17" Macook Pro (Early 2011) 2.2 GHz Intel Core i7 - ever since I bought it I feel like it runs a little slow. I've been a long-time mac used but I feel a little disappointed with this machine. e.g.: Startup time takes around 4 minutes.
-
Creative Cloud installs and appears in my menu bar, but will not truly "open".
I'm on OSX 10.9.3 . Creative Cloud downloads, installs, and appears in my menu bar, but will not truly "open". I only see the spinning symbol (the Adobe one, not the Apple beach ball). I never even get a chance to log in and download anything. I've t
-
Present video and powerpoint side-by-side
I am searching for an easy way to merge a powerpoint presentation and a video clip (of presenter) side-by-side and produce it into one Flash video for streaming on our website. Can it be done in Flash CS4? Or, is there another Adobe program that can
-
Deploying printer through VBScript used by GPO
Hi there everyone I need to deploy printers on a windows 7 machine through Group Policy. In the past a GPO has run a .vbs script that installs the printer including it's name, port, drivers (with location on server of those drivers). Recently it seem
-
I have created a document in Pages with about 15 photos. The document size is is 20 MB. I created a PDF of the document which doubled the size to 40 MB. Is there a way to compress this document to <10 MB so can be emailed?