How To Upload a Mime Object into BSP Application??
Hi all,
I am new to Developing BSP Applications.
I have a requirement to design a BSP Page and in the header part of the page, i have to display a JPG file from my local PC.
To achieve this, I did the following:
1) Upload/Import the MIME Object(JPG File) into MIME Repository and into the relevant BSP Application.
2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
3) In my BSP Page, I tried to use the uploaded JPG file using the following Source Code, as was explained in the Documentation.
<IMG SRC="myfile.jpg">
I did not not do any basic mistakes and went according to documentation in using the above mentioned SRC command to upload the Image from the MIME Repository onto the BSP Page.
But when I run my BSP Application in TEST mode, the Image never shows up; I tried all different way to get this image on the BSP Page and i could not.
I am currently on ECC 6 Version. Please guide me.
Thanks
all that you have to do is reference the image in your page.
<htmlb:image id = "TOG"
tooltip = "tooltip text"
src = "picturename.jpg"/>
2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
Can you see this in SE80->applicationname->mime objects folder
Similar Messages
-
How to upload and display image using bsp application
hi
I just wants to know that
1- how to upload image from BSP page with attachment into sap server .?
2-how to display image in to BSP page(webpage).
thanksHello Gupta Prashant,
Just to upload and display an image, import image in MIME repository. Not only still images but also flash files can also be uploaded in the MIME repository. Once you import the image in it, use normal html code for image call;
<img src = "file.jpg/gif" width= height=>
Besides it, if your requirement is to store the image in the database and fetch it based on specified field-name, then you have to go for BLOBs i.e Binary Large Object, using this you can also store images, videos, pdfs, applications in the database.
MBLOB - Medium BLOBs store videos and pdfs,
LBLOB - Large BLOBs store movie files and applications.
You have got 2 ways to use it; some databases store BLOB objects into themselves and some store the path of the BLOB object maintained on the FTP server.
You can also implement it in ABAP;
read the following link and practice the tutorial;
[ Use of MIME Types|http://help.sap.com/saphelp_45b/helpdata/en/f1/b4a6c4df3911d18e080000e8a48612/content.htm]
also check this
[TYPES - LOB HANDLE|http://help.sap.com/abapdocu/en/ABAPTYPES_LOB_HANDLE.htm]
And looking at your question, in order to upload an image, you can make use of FILEUPLOAD tag provided by HTMLB.
Step 1: FILEUPLOAD provides a browse button to choose desired image file.
Step 2: Store that image in database using BLOBs.
Step 3: Retrieve the image using normal select query and display it on the screen.
Hope it helps you,
Zahack -
Mime objects in BSP application
Hi all,
We have a BSP application with mime objects (images). We have assigned a default user to the application node in SICF. But when we test the BSP page in the browser, it still prompts for the userid/password, for the images.
How to set the user for the mime objects so that it doesn't prompt for any userid/password.
HI,
we noticed that one of the images was refereing to another BSP application , hence was prompting for the password.So we uploaded that image in the same application and now it works fine.
Thanks anyways..
Thanks & Regards,
Ravikiran.C
Message was edited by: Ravikiran C
Message was edited by: Ravikiran Cwhere are mime objects stored? within your application?
if yes and if you have assigned default user and password in application node it should not be prompting for user id password.
is this prompt only happenning for mimes or for the application.
Regards
Raja -
How to upload image in MIME repository from bsp application
Hi,
I want to upload Image in MIME repository from my BSP Application. I want to access again or reuse uploaded image later in my BSP application. Can you please help me how to do this?
I already go through http://help.sap.com/saphelp_nw2004s/helpdata/en/eb/8c683c8de8a969e10000000a114084/frameset.htm.
but this is not helpful in my case. It only uploads in cache (temporary) not in MIME repository.
ThanksHi Prashant,
In Layout...
<%
data: icon_save type string.
icon_save = cl_bsp_mimes=>sap_icon( id = 'ICON_SYSTEM_SAVE' ).
%>
For using image globally...
If you need to upload an image to MIME Repos Go to transaction se80> MIME Repository>
sap->bc->bsp->sap->public->bc->bsp->icons ---> right click on icons folder --> import mime objects
Regards,
Anubhav -
How to upload the Excel sheet into SAP
Hello Gurus,
Please let me know the steps how to upload excel sheet file in sap at one time.Suppose i have entered the employee details and their caste .This detail has been maintained in Excel.I want to know the total steps how to upload this total file into SAP System.
Regards
AM. TCode : LSMW.
2. Enter Project name, sub project name and object name.
Execute.
3. Maintain object attributes.
Execute
select Batch Input recording
goto->Recording overview
create
recording name.
enter transaction code.
start recording
do recording as per ur choice.
save + back.
enter recording name in lsmw screen.
save + back
Now there will be 14 steps.
2. MAINTAIN SOURCE STRUCTURES.
Here you have to enter the name of internal table.
display change
create
save + back
3. MAINTAIN SOURCE FIELDS.
display change
select structure
source_fields->copy fields.
a dialogue window will come .
select -> from data file
apply source fields
enter No. of fields
length of fields
attach file
save + back
4. MAINTAIN STRUCTURE RELATIONS
display change
save + back
5. MAINTAN FIELD MAPPING & CONVERSION RULE
display change
click on source field, select exact field from structue and enter
repeat these steps for all fields.
save+back
6. MAINTAIN FIXED VALUES, TRANSACTION, USER DEFINED
execute
save + back
7. SPECIFY FILES.
display change
click on legacy data
attah flat file
give description
select tabulatore
enter
save + back
8. ASSIGN FILE
execute
display change
save + back
9. IMPORT DATA.
execute
display change
save + back
10. DISPLAY IMPORTED DATA
enter ok, it willl show records only.
back
11. CONVERT DATA
execute
display change
save + back
12. DISPLAY CONVERTED DATA
execute
display change
save + back
13. CREATE BATCH INPUT SESSION
tick keep batch input folder
F8
back
14. RUN BATCH INPUT SESSION.
sm35 will come
Object name will be shown here
select object & process
inputs given by KAPIL -
Loading of MIME objects into HTML pages
Hi Everyone
I am trying to load two logos as mime objects into an HTML page.
I am using
call method web_page->load_mime_object
After that I use
call method web_page->show_url
Whenever I call this last method with parameter in_place as a space (to call an external browser) my logos are not displayed.
If I call the method with in_place as 'X' the logos appear.
The mime objects reside in the SAP web repository (trans smw0).
Any ideas how to pull the logos into the external page?
Regards
JohanHi Satya
Thanks very much for your reply. I do not use ITS for my purposes but it is something to be remembered for next time.
I have actually solved the problem but only with a "second price" solution.
In the HTML form I have pointed the source of my two images to a shared folder somewhere on our dev server. For our purpose this will always work.
What I am thinking is that if SAP allows an external browser to be used it should also give the means of loading the images. Maybe I just don't know how.
Now that I think about it more - I should go and try your suggestion in any case and see if it works.
I thank you again and if anyone comes with more ideas they will be as welcome.
Regards
Johan -
How to upload a flat file into a Z DB table
Hi All,
For a planning application I would like to permit our users to upload a flat file to a internal table to be persisted on to any given database Z Table. From here we would use it in a planning application.
Please kindly share the code and approach to implement this in BSP.
Thanks
KarenHi Karen,
Check the links mentioned below.
[Excel to internal table|Excel to Internal table in BSP;
[upload excel into BSP|upload excel sheet into BSP application;
The two links show how to convert an excel file data to internal table in BSP application.Similarly you can convert the flat file data to internal table and then modify the Z DB table to store the data from internal table.
Regards,
Anubhav -
How to upload a Flat file into sap database if the file is in Appl'n Server
Hello Sap Experts , Can you tel me
" How to upload a Flat file into sap database if the file is in Application Server.
what is Path for that ?
Plz Tel Me its Urgent
Thanks for allHi,
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
*& Report ZUPLOADTAB *
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
* con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
* Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop. -
How to place am mime object on the smartform ?
Hi All,
How to place am mime object on the smartform ?
Is there any function module to read a mime object from mime repository?
Any help would be appreciated.
Regards,
Raja Ram.Hi Vishwa,
Thanks for your prompt response.
How to get the obj ID of a MIME object?
I checked in So2_MIME_REPOSITORY bur couldn't find?
Is there any mapping table between MIME object and object ID ?
I am very new to MIME objects.
Please tell me.
Regards,
Raja Ram. -
How to upload 20MB of file into MySQL through Java
Hi Friends
Anyone let me know how to upload 20MB of file into MySQL through Java programming, is there is any feature available, or any changes to be made in MySQL
Thanks
SellaDon't know. Ask the MySQL folks. This is not a Java issue.
-
How to convert a Graphics object into a JPG image?
I have this simple question about how to make a Graphics object into a JPG file...
I just need the names of the classes or the packages ... I'll figure out the rest of the details...
Thanks...Anyway this might come in handy
JPEGUtils.java
============
* Created on Jun 22, 2005 by @author Tom Jacobs
package tjacobs.jpeg;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.imageio.ImageIO;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageDecoder;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
* Utilities for saving JPEGs and GIFs
public class JPEGUtils {
private JPEGUtils() {
super();
public static void saveJPEG(BufferedImage thumbImage, File file, double compression) throws IOException {
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
saveJPEG(thumbImage, out, compression);
out.flush();
out.close();
public static void saveJPEG(BufferedImage thumbImage, OutputStream out, double compression) throws IOException {
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(thumbImage);
compression = Math.max(0, Math.min(compression, 100));
param.setQuality((float)compression / 100.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(thumbImage);
public static BufferedImage getJPEG(InputStream in) throws IOException {
try {
JPEGImageDecoder decode = JPEGCodec.createJPEGDecoder(in);
BufferedImage im = decode.decodeAsBufferedImage();
return im;
} finally {
in.close();
public static BufferedImage getJPEG(File f) throws IOException {
InputStream in = new BufferedInputStream(new FileInputStream(f));
return getJPEG(in);
public static void saveGif(RenderedImage image, File f) throws IOException {
saveGif(image, new FileOutputStream(f));
public static void saveGif(RenderedImage image, OutputStream out) throws IOException {
// Last time I checked, the J2SE 1.4.2 shipped with readers for gif, jpeg and png, but writers only for jpeg and png. If you haven't downloaded the whole JAI, and you want a writer for gif (as well as readers and writers for several other formats) download:
// http://java.sun.com/products/java-media/jai/downloads/download-iio.html
ImageIO.write(image, "gif", out);
public static void main(String[] args) {
// TODO Auto-generated method stub
} -
How to add a ChartOfAccounts object into the database.
how to add a ChartOfAccounts object into the database. please shows sample code
thanksDim CoA As SAPbobsCOM.ChartOfAccounts
CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
CoA.Code = 11223344
CoA.ExternalCode = "a1234"
CoA.ForeignName = "f Test Account"
CoA.Name = "Test Account"
CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other
CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES
CoA.FatherAccountKey = 100001
If CoA.Add <> 0 Then
MessageBox.Show(oCompany.GetLastErrorDescription)
Else
MessageBox.Show("Added Account")
End If
Remember the father account key must be a valid account number in the company where you are trying to add the new account. (The G/L Account code seen in the SBO client) -
How to upload a file in bdc from application server
how to upload a file in bdc from application server
Hi
Check if this is useful and reward.
PERFORM UNIX_UPLOAD.
FORM unix_upload.
DATA : lv_string(600) TYPE c.
lv_string = p_fname. "p_fname is the filename in path
OPEN DATASET lv_string FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE 'File Not Found' TYPE 'I'.
LEAVE PROGRAM.
ENDIF.
DO .
READ DATASET lv_string INTO gs_gfile.
IF sy-subrc NE 0 .
EXIT.
ENDIF.
APPEND gs_gfile TO gt_gfile .
CLEAR gs_gfile .
ENDDO.
CLOSE DATASET lv_string.
CLEAR lv_string.
DATA: lc_split TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
LOOP AT gt_gfile INTO gs_gfile .
SPLIT gs_gfile AT lc_split INTO
gs_ipfile-field1
gs_ipfile-field2.
ENDLOOP.
ENDFORM. "unix_upload
here gs_ipfile is the same structure as your input file to upload
and
gs_gfile is the work area of the internal table containing characters as :
TYPES : BEGIN OF ygs_gfile ,
data(600) ,
END OF ygs_gfile .
*Internal table declaration for input file as text
gt_gfile TYPE STANDARD TABLE OF ygs_gfile INITIAL SIZE 0 ,
*Work area declaration for input file
gs_gfile TYPE ygs_gfile .
Thanks and Regards
A Swarna -
Display icon using MIME Objects and BSP Tags on Pop up
HI all,
My requirement is to add the warning icon in my pop up along with the text..
I accomplished this using the warning message
DATA: lr_msg_service TYPE REF TO cl_bsp_wd_message_service, lr_msg_service ?= view_manager->get_message_service( ). lr_msg_service->add_message( iv_msg_type = 'W' iv_msg_id = '000' iv_msg_number = '007' ).
But i wish to know the other way to accomplish this using the Mime Objects..
Can any one pls lemme know how do i achieve this using the Mime Objects + BSP HTML Tag.
Kindly help !!If it doesn't work with a custom theme then the theme makers didn't include that icon in its theme. You can contact the creators of those themes and inform them about that.
You can re-enable the sliding info bar at the top of the browser.
You can look at these prefs on the about:config page and reset them via the right-click context menu:<br />
Info bar at the top: privacy.popups.showBrowserMessage<br />
Status bar icon: browser.popups.showPopupBlocker<br /> -
Dynamic insertion of MIME object into a web dynpro component
Hi,
I want to dynamically insert a MIME object of type JPEG or type GIF into my web dynpro component at runtime.
I was unable to find the database table which contains the list of MIME objects for a particular web dynpro component.
Can you please help me out with this?
Thanks in advance,
Adithya
Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on May 23, 2011 9:55 AMHi Muzammil Bichoo ,
when you copy the wda component, it will be copied and will be in active state, once all the components are activated means, windows, views, everything will be available.
now create application for your component, if you have more than one window(interface view) select the one which you need for the application.
Regards
Sarath
Maybe you are looking for
-
I use my iphone 5 to record home videos. I have an apple tv but dvd burners dont have a hdmi plug in. Any suggestions on how i can burn videos from iphone 5? I had a av cord that plugged into the iPhone 3gs and iPad 2 but its not compatible with the
-
Large mp3 collection painfully slow to open in Mus...
I know my mp3 collection is relatively large (full 16gb class 6 micro sd card) so I expect a bit of lag but im finding access to my mp3's on my E72 frustratingly slow. For example opening my list of Artists isn't so bad but accessing an individual a
-
hello everyone, i have coded a program that user type text in (textArea1) and then press a button and copy this text to (textArea2) , before it copy this text i got a tokenizer that make every word copied in a single line, the question is , how i can
-
UCCX 9.0 HR delete filters
Hi, We have UCCX 9.0 after deleting some agents, CSQs and Teams, they still found at UCCX HR filter. How can we totally remove that? they won't be used any more. Regards. Mohamed Helmy
-
TS3988 my account was verified but when i open my icloud still verifying how can i open my icloud
my account was verified but when i open my icloud still verifying why?