Is it possible to upload a xls file into an application and store in table.
Hello,
I just want to know whether its possible to upload a xls file into application in Oracle 10g .
i.e. have a separate xls file stored in computer then in the application just have a browse button to upload that xls file and that data should be inserted into a new table.
Thanks
Good morning,
You can upload the .XLS file into a BLOB field in a table and then download that back to the local PC. Look in the APEX Advanced Tutorial for "Create an Upload Item", Page 9-3 (PDF Page: 109). There it will explain how to upload to a BLOB and then how to download that again.
Don.
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)
Similar Messages
-
How can I upload a pdf file into the application server?
Hi,
I have the otf data, which i have converted into pdf using the funcation module "Convert_otf". Is it possible to upload the pdf file in application server?Dear Srishti,
Use OPEN DATASET in BINARY MODE.
following link will help you.
http://scn.sap.com/thread/1480434
thanks,
vidyasagar -
Import an excel file into SQL Developer and create a table
Hello everyone!
I have an Excel file I want to Import into SQL Developer. Do I need to Create a table first than import the file into the table?
Or is there a way to import an Excel file and it automatically generate or turn into a table?
I would really appreciate any directions or explanations.
Thanks everyone!
Java ManJoyce Scapicchio wrote:
I suspect that you are having memory problems opening the excel file. This is a known issue with excel files for importing and exporting. Check this post for suggestions:
Re: Export to Excel Hangs to Excel Hangs ]
Joyce Scapicchio
SQLDeveloper TeamThanks for the reply but the problem was I needed to convert the file to a csv format. To do this open the file in Excel and re-save as CSV Comma Delimiter. Don't worry about data-types because when the file is uploaded to SQL Developer, you will have the chance to set all the parameters, data-types and so on.
Once I did this and try opening the file, the setup window opened and I was able to do all the additional tweaking and convert the data to a table.
Because of this I am speculating that SQL Developer does not work with Excel XLSX extension.
Thanks again!
JM -
Upload a .xls file in web dynpro abap
Hello,
I want to upload a .xls file into a internal table in web dynpro abap (Netweaver 7.31).
The file is not delimited, is not an csv file.
In my view I have an fileUpload UI Element with the attribute data is un attribute type XSTRING and the following function module are not in my system:
HR_KR_XSTRING_TO_STRING
ALSM_EXCEL_TO_INTERNAL_TABLE
How can I upload the file with this format?.
Thanks in advance.
XaviUnless the files are zipped together into one archive file, you have to do them one at a time. Furthermore with the normal browser based fileUpload UI element, you must do them one at a time and the user must manually select each one (browser security limitation).
If you are on 7.01 you can use ACFUpDown to perform multiple file uploads, but there is no file dialog or directory scan so file selection is difficult.
If you are on 7.02 you can use ACFUpdown and it has a multiple file open/save dialog.
If you are on 7.01 you could use FlashIslands to perform the multiple file upload. I have a tutorial and source code sample for this on SCN.
If you are on 7.01 you could also use ACFExecute to run a batch script on the client side that zips all the files and then upload the zip archive. -
Upload a Dicom file into an OrdDicom object
Hi,
Is it possible to upload a Dicom file into an OrdDicom object using JSP?
I now that an image file can be uploaded into an OrdImage object by passing that file from the jsp page to a java bean class through an OrdHttpUploadFile object, that has a method loadImage(OrdImage ob).
Which is the mechanism for a Dicom file?Hi,
Check the below code.
TYPE-POOLS: truxs.
TYPES:
BEGIN OF ty_line,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
END OF ty_line.
*data: ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
DATA: itab TYPE STANDARD TABLE OF ty_line WITH DEFAULT KEY.
DATA: itab1 TYPE truxs_t_text_data.
SELECT
vbeln
posnr
UP TO 10 ROWS
FROM vbap
INTO TABLE itab.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
i_field_seperator = ';'
TABLES
i_tab_sap_data = itab
CHANGING
i_tab_converted_data = itab1
EXCEPTIONS
conversion_failed = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'd:\TEMP\test1.txt'
TABLES
data_tab = itab1
EXCEPTIONS
OTHERS = 1.
IF sy-subrc eq 0.
WRITE: 'Data downloaded successfully'.
ENDIF.
DATA: BEGIN OF IEXCEL OCCURS 0.
INCLUDE STRUCTURE ALSMEX_TABLINE.
DATA: END OF IEXCEL.
PARAMETERS: FILENM LIKE rlgrap-filename MEMORY ID M01,
NOHEADER AS CHECKBOX.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = FILENM
i_begin_col = 1
i_begin_row = 1
i_end_col = 100
i_end_row = 30000
tables
intern = IEXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'EXCEL UPLOAD FAILED ', FILENM, SY-SUBRC.
endif. -
1.is it possible to read a .xls file and load it into an oracle table
1.is it possible to read a .xls file and load it into an oracle table, using oracle database or oracle forms i.e. either utl_file, or text_io, or any other oracle tool.
As far as I know we need a csv file or a txt ( tab delimited) file ?
2.Are there any windows tools for the sameHi,
If you want to use the DDE package to read the XLS file then yes, you will neeed to know the number of rows and columns in the input file.
i.e. How will you know :
1) How many columns are there in the input file.
If I have a XLS file with the following data :
R1C1 R1C2 R1C3 R1C4 R1C5 R1C6 R1C7
xxx xx x
Where R represents row and C represents column, then how will you know the each row has 7 columns. If you know the answer upfront, then it's not a issue.
Using the DDE apprach, you will have to specify the RowNum and the ColumnNo of each idividual cells to read/write data from xls sheet.
Look at the syntax in my ealier post.
using the other approch (i.e. comma delimited text file - CSV file) , you need not know the number of columns as you can loop thru the input record till the last column is read.
All you have to do is to look for the 'n' occurances of the field delimiter say ',', do a substr from the current position to the point where the ',' was found.
This process is to be repeated in a loop till all columns are read.
The TEXT_IO package can trap for EOF (End Of File).
Hope I made myself clear.
-- Shailender Mehta -- -
To upload a flat file into BW using a variable entry in web application
hi guys,
how to upload a flat file into the web browser using a
a variable entry in the wad application.
Thanks,
your help will be duly appreciated
Message was edited by:
Vj.R Tthanks arun
but is it not possible to load the flat file at bex level which
might be the same at wad level
and also what do you mean the load package
triggered from the backend and how do i
manipulate the data is it at bex level or wad level
please elaborate.
thanks
your help will be rightly acknowledged. -
Upload Attachements(Doc File) into SAPand Read The same in BADI
Hi All,
I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
Class name : PICTURES
Class type : OT
Object key : CAPA.
I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
Regards,
Nagesh Kumar.
Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AMHi All,
I am Nagesh, and presently working on a BADI(NOTIF_EVENT_POST) for sending emails when a new Notification is created through QM01 Transaction Code, and its working very very fine. But now an additional requirement has come up, where i need to upload an Standard Format Word Document into SAP and then attach this file to the Mail to which the converted PDF Smartform file has been attached and then send both files in single mail to concerned Vendor. So I tried to upload the .Doc file into SAP by using OAER TCode with following Parameters
Class name : PICTURES
Class type : OT
Object key : CAPA.
I exactly dont know whether this is the right format or not, please help me, if this is possible or not.
And also I uploaded the same doc file from application server to Presentation Server using Tcode CG3Z, to a ditectory which exists in SAP (Checked in AL11 Tcode). So the nhow to read that complete file to send the same as attachemnts without making any changes .
Regards,
Nagesh Kumar.
Edited by: Nagesh Kumar on Mar 12, 2010 9:39 AM
Edited by: Nagesh Kumar on Mar 12, 2010 11:32 AM -
How to upload an rtf file into a table? (without using UNIX box)
Hi All,
Our requirement is to upload a rtf file into table in database.
Later that rtf is used to generate a report.
Is it possible to upload the file directly into a table by using SQL developer?
our requirement is to upload the files without placing them in a particular path in unix box.
Thanks in advance
Regards
SudeepIf you are in EBS
When you upload Template in Application
I guess It'll get stored in apps.XDO_LOBS table, in FILE_DATA Column
select * from apps.XDO_LOBS
where lob_code=<'con. program short name'>
and file_name= <'your.rtf'>
Thanx
Rahul -
Getting an Error while uploading a WSDL file into ServiceRegistry
Hi,
I am trying to uploading a WSDL file into ServiceRegistry with following URL:
file://PEPWUL32116/D:/shared/ORDER.wsdl
but I am getting the error below:
com.sap.esi.uddi.sr.api.exceptions.SRExceptionerror code: null detail message: java.lang.IllegalArgumentException: Unsupported protocol. Supported protocols are http and https->java.lang.IllegalArgumentException: Unsupported protocol. Supported protocols are http and https
Is there a way to upload a local WSDL into registry.
ThanksRama ,
Look into the error...
file://PEPWUL32116/D:/shared/ORDER.wsdl
but I am getting the error below:
com.sap.esi.uddi.sr.api.exceptions.SRExceptionerror code: null detail message: java.lang.IllegalArgumentException: Unsupported protocol. Supported protocols are http and https->java.lang.IllegalArgumentException: Unsupported protocol. Supported protocols are http and https
> not the right way of registering a service ...Use HTTP or HTTPS...protocol rather than file . It is not a FTP site
more over D: should not be used..
Regards , -
Upload an XML file into the Internal table
Hi Guys,
I want to know, how to upload an xml file into the Internal table through ABAP programmingyou just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
for the first one you can simply use gui_upload
and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
Regards
Raja -
Is it possible to load a xdp file into a subform?
Is it possible to load a xdp file into a subform?
That worked with an existing fragment.
What i'm tryin to do is generate a xdp file like (which i can open in the designer as preview pdf correctly), and insert this as subform.
<?xml version="1.0" encoding="UTF-8"?>
<xfa>
<template xmlns="http://www.xfa.org/schema/xfa-template/2.8/">
<subform name="TopmostSubform">
<pageSet name="PageSet">
<pageArea name="MasterPage1" id="p1">
<contentArea name="ContentArea" x="0pt" y="0pt" w="595.3pt" h="841.9pt"/>
<medium stock="a4" short="595.3pt" long="841.9pt" orientation="portrait" imagingBBox="none"/>
</pageArea>
<pageArea name="MasterPage2" id="p2">
<contentArea name="ContentArea" x="0pt" y="0pt" w="595.3pt" h="841.9pt"/>
<medium stock="a4" short="595.3pt" long="841.9pt" orientation="portrait" imagingBBox="none"/>
</pageArea>
</pageSet>
<subform name="Page1" w="595.3pt" h="841.9pt">
<draw name="Text" x="59.25pt" y="117pt" minW="400.25pt" minH="12pt">
<ui>
<textEdit multiLine="1"/>
</ui>
<value>
<exData contentType="text/html">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Assunto: Apólice nº #MC_Apolice_MC# - Actualização de Condições 2012/2013</p></body>
</exData>
</value>
<para/>
</draw>
<draw name="Text" x="59.25pt" y="141pt" minW="88.25pt" minH="12pt">
<ui>
<textEdit multiLine="1"/>
</ui>
<value>
<exData contentType="text/html">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Estimado Cliente,</p></body>
</exData>
</value>
<para/>
</draw>
<draw name="Text" x="59.25pt" y="165.75pt" w="490.25pt" minH="24pt">
<ui>
<textEdit multiLine="1"/>
</ui>
<value>
<exData contentType="text/html">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt">Aproximando-se a data de renovação do seu seguro de saúde Multicare, vimos informá-lo das alterações que ocorrerão na sua apólice a partir de #MC_Dt.Inicio_MC#.</p></body>
</exData>
</value>
<para/>
</draw>
<draw name="Text" x="59.25pt" y="201.75pt" minW="155pt" minH="12pt">
<ui>
<textEdit multiLine="1"/>
</ui>
<value>
<exData contentType="text/html">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-align:justify;font-family:Verdana;font-size:10pt;font-weight:bold">Reforç ;ámos a sua proteção</p></body>
</exData>
</value>
<para/>
</draw>
</subform>
</subform>
</template>
</xfa> -
How to upload an XML file into another system
Hi friends,
I have a requirement where I need to upload an XML file into one system
which has been downloaded using another system.
I have tried using the method ' cl_gui_frontend_services=>gui_upload'
to upload the file but it is going for dump.
I have used the method ' w_xml->import_from_file' also,
but it is also going for dump ,because both methods are using the same FM
' GUI_UPLOAD'.
Can any one suggest on this.
Regards,
Bhargavi.D"Here is the Explaination for uploading the XML Format file to sap " through ABAP Program ....
1. Basically you simply have to convert the XML file into the proper IDoc format. There are many ways to achieve this. One solution would be to convert it externally to SAP, e.g. via VB Script or with an XSLT transformation. Or you use the built in SAP functions for importing an IDoc from an XML stream.
2. Uploading a file is either done via GUI_UPLOAD or via the usual way of reading a file from the application server (Open dataset. Read dataset) But what do you mean by "send to external system"? Do you want to convert an IDoc into XML? Then you simply define an XML port with WE21 to send the IDoc out.
Here is an example of code that loads an XML from file and posts it as an IDoc. Please keep in mind that the XML has to be in its canonical format as described in the interface repository: ifr.sap.com (choose the template of the desired IDoc from there as an example).
data: data_tab type table of char1024.
data: XML_STREAM type string.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:test.xml'
* FILETYPE = 'ASC'
* HAS_FIELD_SEPARATOR = ' '
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = DATA_TAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
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 'CONVERT_TABLE_TO_STRING'
EXPORTING
I_TABLINE_LENGTH = '1024'
IMPORTING
E_STRING = XML_STREAM
TABLES
IT_TABLE = DATA_TAB[].
write: / xml_stream color col_total.
data: CONTENT_LENGTH type string.
data: CONTENT_TYPE type string.
data: REMOTE_ADDR type string.
CALL FUNCTION 'IDOC_INBOUND_XML_VIA_HTTP'
EXPORTING
XML_STREAM = XML_STREAM
CONTENT_LENGTH = content_type
CONTENT_TYPE = content_type
REMOTE_ADDR = remote_addr
EXCEPTIONS
NO_IDOCS_SAVED = 1
TAG_ERROR = 2
NO_DATA_RECEIVED = 3
NO_IDOCS_RECEIVED = 4
SEGMENT_ERROR = 5
IDOC_WAS_SEND_SECOND_TIME = 6
OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
write: / sy-subrc color COL_NEGATIVE.
ENDIF.
reward points if it is usefull.......
Girish -
How to upload a text file to a webpage and process it using a Java app?
Apologies if the question is off topic.
I would like a user to upload a text file to a webpage and have a pre-existing Java application I created process the text file and return the results to the user. The Java application is fairly memory intensive. It is expected that multiple clients will be uploading at the same time. What is the simplest or most efficient method to achieve this?
Thank youThis might help you to get started: http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml
As done in this example, processing the uploaded file in the JSP itself may not be a good idea though. You're better off handling it in your controller servlet or action class. -
Upload a .CSV File into an Internal table
Hi,
What are the parameters to be filled into the Function Modules "GUI_UPLOAD" and "ALSM_EXCEL_TO_INTERNAL_TABLE" to Upload a .CSV File into an internal table.
Please send a sample code to support this....
Regards,
Aadhi.Hi,
Check the below code.
TYPE-POOLS: truxs.
TYPES:
BEGIN OF ty_line,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
END OF ty_line.
*data: ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
DATA: itab TYPE STANDARD TABLE OF ty_line WITH DEFAULT KEY.
DATA: itab1 TYPE truxs_t_text_data.
SELECT
vbeln
posnr
UP TO 10 ROWS
FROM vbap
INTO TABLE itab.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
i_field_seperator = ';'
TABLES
i_tab_sap_data = itab
CHANGING
i_tab_converted_data = itab1
EXCEPTIONS
conversion_failed = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'd:\TEMP\test1.txt'
TABLES
data_tab = itab1
EXCEPTIONS
OTHERS = 1.
IF sy-subrc eq 0.
WRITE: 'Data downloaded successfully'.
ENDIF.
DATA: BEGIN OF IEXCEL OCCURS 0.
INCLUDE STRUCTURE ALSMEX_TABLINE.
DATA: END OF IEXCEL.
PARAMETERS: FILENM LIKE rlgrap-filename MEMORY ID M01,
NOHEADER AS CHECKBOX.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = FILENM
i_begin_col = 1
i_begin_row = 1
i_end_col = 100
i_end_row = 30000
tables
intern = IEXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'EXCEL UPLOAD FAILED ', FILENM, SY-SUBRC.
endif.
Maybe you are looking for
-
BI Consumer unable to open Sample Lite and Samples reports BI 11.1.1.3
Hi all, I have Oracle BI 11.1.1.3 installed. I am trying to use Oracle Fusion Middleware security model. I have couple of users configured as BI Consumers in weblogic server. When I try to login as BI consumer and try to open some of the reports avai
-
Auto Starting E530c and E545 laptops
I have been trying for ages to get both of these models to auto start for updating purproses. These machines are stored in a cart so no matter what route I took, I enabled them to stay on even when the lid was closed. This cart is wired with network
-
I just bought a used 20" G5 iMac 1.8Ghz from a web company. It seemed to start a little slow out of the box or maybe its my imagination. It came with 10.5, so I updated w/the combo update 10.5.8. It asked for the restart. It wont boot since then. I p
-
[svs@mugen media]$ ls -l total 104 drwxr-xr-x 2 root root 4096 2008-03-10 15:20 cd drwxr-xr-x 2 root root 4096 2008-06-17 19:44 d1 drwxr-xr-x 7 svs root 8192 1969-12-31 16:00 disk drwxrwxrwx 1 root root 32768 2008-06-19 18:56 disk-1 drwxrwxrwx 1 root
-
Can I use JNI in my xlet?
Can I use JNI in my xlet? Is there any security issues?