Upload ed file's data?
Hello
By using FileUpload UI element, i am UPLOADing my_microsoft_word_2010_DOCX file into my_WDA, fine. And am getting the data in XSTRING format, fine.
Now, i want to play around with this data (XSTRING, my_microsoft_word_2010_DOCX file's text), pls. let me know how can convert this XSTRING to Human readable format in my_WDA?
Pls. note tthis is MS-Word 2010 DOCX file
Thank you
Hi,
Use below coding,
DATA: loc_conv TYPE REF TO cl_abap_conv_in_ce,
loc_xstring TYPE xstring,
loc_string TYPE string.
Convert XString to String
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
input = lv_filecontent "type XSTRING
encoding = 'UTF-8'
replacement = '?'
ignore_cerr = abap_true
RECEIVING
conv = loc_conv.
*Read the file contents
TRY.
CALL METHOD loc_conv->read
IMPORTING
data = file_content. "loc_string.
CATCH cx_sy_conversion_codepage.
*-- Should ignore errors in code conversions
CATCH cx_sy_codepage_converter_init.
*-- Should ignore errors in code conversions
CATCH cx_parameter_invalid_type.
CATCH cx_parameter_invalid_range.
ENDTRY.
*Put the contents into String table
SPLIT file_content AT crlf INTO TABLE it_string.
Thanks,
Chandra
Similar Messages
-
Getting error when try to upload xml file into Data Template
Hi,
Getting error when try to upload xml file into Data Template.error:"The uploaded file XXSLARPT.xml is invalid. The file should be in XML-DATA-TEMPLATE format."Plz anybody help me.
Thanks,
Prasad.Hi,
Anybody Help Plzzzzzz.
thx,
Prasad -
Negative Numbers considered as VARCHAR while uploading CSV file under Data Load in APEX
I am trying to upload a CSV file which contains negative numbers. These negative numbers are being considered as VARCHAR2 while uploading. And if I change the Column Type to Numbers the upload fails.
Any solutions the problem will highly be appreciated.select * from nls_database_parameters
where parameter = 'NLS_NUMERIC_CHARACTERS'
shows you which characters your database believes represent the decimal place and the thousands separator. So, if your database expects 1,234.123 and you present a 'number' as 1 234,123 it will complain.
Also, in your case... your comma-separated-values contain commas? Or are the individual fields enclosed with quotes? -
Upload XML file data into internal table
Hi,
I need help from you.
I am uploading XML file from Application server.
1.In application server under directory it may have several XML files and i need to upload all the XML files when we gave only directory name. So, what is the function module for that logic . If possible code also.
2.Once we get the files into some internal table we need to upload data from that files to internal table.
So what is the logic for that , if possible code also.
I am giving sample directory:
For example in this directory assume 3 xml files are there.
I need to upload those files and data from that in to internal table.
Thanks & Regards
VSRBelow code will give you an idea.
TYPE-POOLS: ixml. "iXML Library Types
*TABLES : rbkp.
TYPE DECLERATIION
TYPES: BEGIN OF type_tabpo,
ebeln TYPE ekko-ebeln, "PO document number
ebelp TYPE ekpo-ebelp, "PO line item
END OF type_tabpo.
TYPES: BEGIN OF type_ekbe,
belnr TYPE rbkp-belnr, "Invoice document
gjahr TYPE rbkp-gjahr, "fiscal year
END OF type_ekbe.
TYPES: BEGIN OF type_invoice,
belnr TYPE rbkp-belnr, "PO document number
gjahr TYPE rbkp-gjahr, "Fiscal Year
rbstat TYPE rbkp-rbstat, "invoice status
END OF type_invoice.
TYPES: BEGIN OF t_xml_line, "Structure for holding XML data
data(256) TYPE x,
END OF t_xml_line.
INTERNAL TABLE DECLERATIION
DATA: gi_tabpo TYPE STANDARD TABLE OF type_tabpo,
gi_ekbe TYPE STANDARD TABLE OF type_ekbe,
gi_invoice TYPE STANDARD TABLE OF type_invoice,
gi_bapiret2 TYPE STANDARD TABLE OF bapiret2.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory.
DATA: l_xml_table TYPE TABLE OF t_xml_line, " XML Table of the structure
l_xml_line TYPE t_xml_line, " Record of structure t_xml_line
l_xml_table_size TYPE i. " XML table size
DATA: l_filename TYPE string.
WORK AREA DECLARATION
DATA: gw_tabpo TYPE type_tabpo,
gw_ekbe TYPE type_ekbe,
gw_invoice TYPE type_invoice,
gw_bapiret2 TYPE bapiret2.
BEGIN OF SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: p_file TYPE pathintern LOWER CASE DEFAULT '/usr/sap/tmp/'.
Validation of XML file: Only DTD included in XML document is supported
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN.
To validate p_file is not initial
PERFORM sub_validate_file.
PERFORM sub_validate_path.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Request for filename for xml file from the application server
PERFORM sub_get_filename_appl USING p_file.
START OF SELECTION SCREEN
START-OF-SELECTION.
PERFORM sub_fetch_po_details.
PERFORM sub_get_invoice.
PERFORM sub_rel_invoice.
END OF SELECTION SCREEN
END-OF-SELECTION.
*& Form sub_validate_file
To Validate the file
FORM sub_validate_file .
IF p_file IS INITIAL.
MESSAGE e000. "specify the file path
ENDIF.
ENDFORM. " sub_validate_file
*& Form sub_get_filename_appl
form sub_get_filename_appl USING l_fname TYPE any.
DATA: l_fname TYPE filename-fileintern. " File name
*GET THE FILENAME FROM THE APPLICATION SERVER
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = l_fname
filemask = '*'
IMPORTING
serverfile = l_fname
EXCEPTIONS
canceled_by_user = 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.
ENDFORM. " sub_get_filename_appl
*& Form sub_fetch_po_details
To fetch the PO details from the application server
Format of file is XML
FORM sub_fetch_po_details .
TYPE DECLERATIION
l_ixml = cl_ixml=>create( ).
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
PERFORM get_xml_table.
LOOP AT gi_tabpo INTO gw_tabpo.
WRITE:/ gw_tabpo.
ENDLOOP.
ENDFORM. " sub_fetch_po_details
*& Form get_xml_table
Read from the xml file
FORM get_xml_table .
Local variable declarations
DATA: l_len TYPE i,
l_len2 TYPE i,
l_tab TYPE tsfixml,
l_content TYPE string,
l_str1 TYPE string,
c_conv TYPE REF TO cl_abap_conv_in_ce,
l_itab TYPE TABLE OF string.
l_filename = p_file.
code to upload data from application server
OPEN DATASET l_filename FOR INPUT IN BINARY MODE.
IF sy-subrc 0.
WRITE:/ 'invalid file path'.
ENDIF.
DO.
READ DATASET l_filename INTO l_xml_line.
IF sy-subrc EQ 0.
APPEND l_xml_line TO l_xml_table.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET l_filename.
code to find the table size
DESCRIBE TABLE l_xml_table.
l_xml_table_size = ( sy-tleng ) * ( sy-tfill ).
*code to convert hexadecimal to XML
LOOP AT l_xml_table INTO l_xml_line.
c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
replacement
= space ).
c_conv->read( IMPORTING data = l_content len = l_len ).
CONCATENATE l_str1 l_content INTO l_str1.
ENDLOOP.
l_str1 = l_str1+0(l_xml_table_size).
SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
LOOP AT l_itab INTO l_str1.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
l_str1 WITH space.
ENDLOOP.
CALL TRANSFORMATION ('ID') " code to put in internal table
SOURCE XML l_str1
RESULT tab = gi_tabpo[].
ENDFORM. " get_xml_table -
How to remove an XML file from Data Template in Data Definition Screen
Hi,
Issue: I have uploaded the file in Data definition in Data Template.
How to remove it.
Also what does each file type mean?
XML Schema
Data Template
Preview file
Bursting control File
I have an XML file and XSL file. I need to have an output in XML.
So I installed my XML file in data template in data definition.
And XSL file in Templates.
Am I correct?
11.0.10.2
Regards,
AvijitIssue: I have uploaded the file in Data definition in Data Template.
How to remove it.You cannot remove it but you can end-date it.
Also what does each file type mean?
XML Schema
Data Template
Preview file
Bursting control FileThis is explained in "Oracle XML Publisher Administration and Developer's Guide Release 12" manual -- http://docs.oracle.com/cd/B34956_01/current/acrobat/120xdoig.pdf
I have an XML file and XSL file. I need to have an output in XML.
So I installed my XML file in data template in data definition.
And XSL file in Templates.
Am I correct?Correct -- See Chapter 2 "Creating the Template" and Chapter 5 "Data Templates and Chapter" in the same doc referenced above for details.
Thanks,
Hussein -
Why is Firefox suddenly sorting windows Files by Date?
I may have changed a setting without knowing with some keystroke command, but suddenly yesterday Firefox started sorting my files in Windows (when I go to upload a file) by date modified. I tell it to sort by name but each time I go back it has defaulted to sorting by date again. This is really annoying.
== This happened ==
Every time Firefox opened
== YesterdayI may have changed a setting without knowing with some keystroke command, but suddenly yesterday Firefox started sorting my files in Windows (when I go to upload a file) by date modified. I tell it to sort by name but each time I go back it has defaulted to sorting by date again. This is really annoying.
== This happened ==
Every time Firefox opened
== Yesterday -
Error while uploading WSDL file in Interactive Form Data Connection!
I have created we service to return some data based on user input.
I am trying to link this webservice to Interactive adobe form! and While creating new data connection->uploading WSDL file--> I am receiving error i.e. Invalid File.
Please help me in resolving this issue.
I have created this WSDL file copy/pasting XML code generates from "Open WSDL document for selected binding" link in SOAMANAGER.
Regards,
Naveen.IHello,
This is a Webservice created for the FM : HRXSS_PER_READ_EMERGENCY_AR
Here is the sample of the WSDL file generated, as asked by you.
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:n1="urn:sap-com:document:sap:rfc:functions">
- <wsdl:documentation>
<sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
</wsdl:documentation>
<wsp:UsingPolicy wsdl:required="true" />
- <wsp:Policy wsu:Id="BN_BN_ZHR_READ_EMERGENCY">
<saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
<saptrnbnd:OptimizedXMLTransfer uri="http://www.w3.org/2004/08/soap/features/http-optimization" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
- <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
- <wsp:All>
- <sp:TransportBinding>
- <wsp:Policy>
- <sp:TransportToken>
- <wsp:Policy>
<sp:HttpsToken />
</wsp:Policy>
</sp:TransportToken>
- <sp:AlgorithmSuite>
- <wsp:Policy>
<sp:TripleDesRsa15 />
</wsp:Policy>
</sp:AlgorithmSuite>
- <sp:Layout>
- <wsp:Policy>
<sp:Strict />
</wsp:Policy>
</sp:Layout>
</wsp:Policy>
</sp:TransportBinding>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
- <wsp:Policy wsu:Id="IF_IF_ZHR_READ_EMERGENCY">
- <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
<sapsession:enableSession>false</sapsession:enableSession>
</sapsession:Session>
<sapcentraladmin:CentralAdministration xmlns:sapcentraladmin="http://www.sap.com/webas/700/soap/features/CentralAdministration/" wsp:Optional="true" />
</wsp:Policy>
- <wsp:Policy wsu:Id="OP_IF_OP_HrxssPerReadEmergencyAr">
<sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
<sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
<saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
<saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM>
</wsp:Policy>
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
- <xsd:simpleType name="char1">
- <xsd:restriction base="xsd:string">
<xsd:maxLength value="1" />
</xsd:restriction>
</xsd:simpleType>
"More simple types
<xsd:pattern value="\d*" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
- <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:n0="urn:sap-com:document:sap:rfc:functions">
<xsd:import namespace="urn:sap-com:document:sap:rfc:functions" />
- <xsd:complexType name="Bapiret2">
- <xsd:sequence>
"More element names
- <xsd:complexType>
- <xsd:sequence>
<xsd:element name="Messages" type="tns:Bapirettab" />
<xsd:element name="Records" type="tns:HcmtBspPaArR0006Tab" />
<xsd:element name="Records2" type="tns:HcmtBspPaArR0021Tab" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="HrxssPerReadEmergencyAr">
<wsdl:part name="parameters" element="tns:HrxssPerReadEmergencyAr" />
</wsdl:message>
- <wsdl:message name="HrxssPerReadEmergencyArResponse">
<wsdl:part name="parameter" element="tns:HrxssPerReadEmergencyArResponse" />
</wsdl:message>
- <wsdl:portType name="ZHR_READ_EMERGENCY">
- <wsp:Policy>
<wsp:PolicyReference URI="#IF_IF_ZHR_READ_EMERGENCY" />
</wsp:Policy>
- <wsdl:operation name="HrxssPerReadEmergencyAr">
- <wsp:Policy>
<wsp:PolicyReference URI="#OP_IF_OP_HrxssPerReadEmergencyAr" />
</wsp:Policy>
<wsdl:input message="tns:HrxssPerReadEmergencyAr" />
<wsdl:output message="tns:HrxssPerReadEmergencyArResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ZHR_READ_EMERGENCY" type="tns:ZHR_READ_EMERGENCY">
- <wsp:Policy>
<wsp:PolicyReference URI="#BN_BN_ZHR_READ_EMERGENCY" />
</wsp:Policy>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="HrxssPerReadEmergencyAr">
<soap:operation soapAction="" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="service">
- <wsdl:port name="ZHR_READ_EMERGENCY" binding="tns:ZHR_READ_EMERGENCY">
<soap:address location="http://cieh4-srvr.collabera.com:8000/sap/bc/srt/rfc/sap/zhr_read_emergency/900/zhr_read_emergency/zhr_read_emergency" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Cheers,
Remi -
Upload material and contract data from file in CCM 2.0
Hi guys,
This might be a difficult one!
We have the following situation in a Client:
We are upgrading a Requisitite catalog (working with BBP 2.0)
to a CCM 2.0 catalog.
In Requisite, one can upload material- and contract data from a file (it is standard funcionality) into the database.
We need to have the same kind of funcionality in CCM 2.0 because our client does not prefer to work with XI (which is the standard SAP solution in these cases).
How can we accomplish this? maybe with some additional ABAP coding!
Our client is not working with Vendor Catalogs but I´m trying to see if we can use a dummy vendor catalog to accomplish material upload in CCM2 form a CSV file.
Anyone had to face this situation before?
If so, please provide some clues how to do it?
Thanks in advance,
AartSAP CATALOG CSV 2.0 <;>
Defaults;EN
Model
Catalog;All;;All Catalog
DataType;DATE;DATE;Date
Characteristic;Z_ACTION;/CCM/NAME;false;Action
Characteristic;/CCM/PRODUCT_ID;/CCM/ID;false;Part Number
Characteristic;/CCM/SHORT_DESCRIPTION;/CCM/DESCRIPTION;false;Description
Characteristic;Z_MATERIAL_TYPE;/CCM/ID;false;Material Type
Characteristic;/CCM/MINIMUM_QUANTITY;/CCM/MINIMUM_QUANTITY;false;Order Unit
Characteristic;Z_CONTENT;/CCM/MINIMUM_QUANTITY;false;Content
Characteristic;/CCM/LEAD_TIME;/CCM/LEAD_TIME;false;Lead Time
Characteristic;Z_SUPPLIER_ID;/CCM/ID;false;Supplier Number
Characteristic;Z_SUPPLIER_NAME;/CCM/NAME;false;Sup Name
Characteristic;Z_P_GROUP;/CCM/ID;false;Purchasing Group
Characteristic;Z_P_ORG;/CCM/ID;false;Purchasing Org
Characteristic;/CCM/CONTRACT_ID;/CCM/ID;false;Contract Number
Characteristic;/CCM/CONTRACT_ITEM_ID;/CCM/ID;false;Contract Item
Characteristic;/CCM/PRODUCT_GROUP;/CCM/ID;false;Product Category
Characteristic;/CCM/PRICE;/CCM/PRICE;true;Price
Characteristic;Z_DATE;DATE;false;Date
Characteristic;/CCM/LONG_DESCRIPTION;/CCM/LONG_DESCRIPTION;false;Long Description
Characteristic;/CCM/PICTURE;/CCM/ATTACHMENT;false;Picture
Schema;All;Z_ACTION;Z_MATERIAL_TYPE;Z_CONTENT;Z_SUPPLIER_ID;Z_SUPPLIER_NAME;Z_P_GROUP;Z_P_ORG;Z_DATE;All Schema
Category;10000300;;;ABC
Category;10000400;;;DEF -
Hi ,
I am loading falt file data through data manager .
where can i select master data or transcatioanal data option .
while run package i am getting fallowing eroor : Conversion result file is empty; either the source data file was empty or all records were rejected during conversion.
Please let me know your inputs
PSRHi,
To load transaction data - Run "Data Management>Import" Package. Before this make sureto upload the file to the server using "eData>Data Upload". You also need to create a transformation file to define the mappings between the data in flat file and the dimensions in the application.
To load master data - Run "System Administrative>ImportMasterData" package.
Hope this helps.
Regards,
Shoba -
When downloading/uploading any file with Firefox, Finder shows date but not time
On my iMac, as I either upload or download a file using Firefox after installing Lion, the Finder window that opens for me to tell it where to either download the file to or upload it from, shows dates of all the existing docs there, but not the time. How can I make it show the time as well?
I have found the problem.
A download manager had been installed for a specific website and it was butting in all the time. Even after removing it with 'Add or remove software' it still had its hooks into the system and it was impossible to download anything as it now would not run.
Had to do an XP 'System restore' before I could get rid of it.
The offending program was MD_setup.exe size 3,045KB from the themediadownloader.com -
Upload csv file data to sql server tables
Hi all,
I want clients to upload csv file from their machines to the server.
Then the program should read all the data from the csv file and do a bulk insert into the SQL Server tables.
Please help me of how to go about doing this.
Thanx in advance.....1) Use a multipart form with input type="file" to let the client choose a file.
2) Get the binary stream and put it in a BufferedReader.
3) Read each line and map it to a DTO and add each DTO to a list.
4) Persist the list of DTO's.
Helpful links:
1) http://www.google.com/search?q=jsp+upload+file
2) http://www.google.com/search?q=java+io+tutorial
3) http://www.google.com/search?q=java+bufferedreader+readline
4) http://www.google.com/search?q=jdbc+tutorial and http://www.google.com/search?q=sql+tutorial -
Upload media file and submit data in a same time
Hi,
I'm trying to submit data and upload file in a same time to a web page(which is jsp). But i found that the method used to upload file and submit data are different.
Method used to submit data :-
PostMethod post = new PostMethod(wbIndex);
post.addRequestHeader("Content-Type","text/html; charset=big5");
for(int i=0;i<field.length;i++){
post.addParameter(field,value[i]);
System.out.print("field[" + field[i] + "], value[" + value[i] + "] ");
responseCode = client.executeMethod(post);
System.out.println("response code : " + responseCode);
and method used to upload file
URL url = new URL(wbIndex);
// create a boundary string
String boundary = MultiPartFormOutputStream.createBoundary();
URLConnection urlConn = MultiPartFormOutputStream.createConnection(url);
urlConn.setRequestProperty("Accept", "*/*");
urlConn.setRequestProperty("Content-Type",
MultiPartFormOutputStream.getContentType(boundary));
// set some other request headers...
urlConn.setRequestProperty("Connection", "Keep-Alive");
urlConn.setRequestProperty("Cache-Control", "no-cache");
// no need to connect cuz getOutputStream() does it
MultiPartFormOutputStream out =
new MultiPartFormOutputStream(urlConn.getOutputStream(), boundary);
// write a text field element
out.writeField("myText", "text field text");
// upload a file
out.writeFile("myFile", "text/plain", new File("C:\\test.wav"));
out.close();Does anyone know how to submit data and upload file to the page at a same time?
nullHi,
Thanks for your reply. You meant that both method also can used to upload file and submit data? How about if i want to use the first method to upload file and submit data? How can i upload the file by using first method? -
Reading html data & uploading a file in single html form using htp package
Hi
I have designed a html screen using htp package in which i have few text items and file upload button. I have to validate all forms data like text items and check box elements and upload file to unix. I am using java script for file validations and cgi script to upload file. With this I am able to either read form data or upload file but not both.
At a time I want to insert a record to database with html form values and upload file to unix with htp package. Please suggest how can I read html form data + uploading a file to unix simultaneously in a single htp procedure.
Thanks,
PradeepHave you ever considered using Application Express (APEX)?
Oracle Application Express (APEX)
Sounds like you're going the long way around to create a web based application. -
Cannot upload csv file of customer data on sample application...
Hi I am learning about APEX through the Oracle hosted site and I've been trying the data upload on the customers table.
I downloaded the sample data from the customer table into a csv file using the apex download feature. I then just left the first row which
contains the column names,deleted the other rows in the csv,except for one where I changed the data.
When i try to upload the csv file back,using the sample app with comma as separator,and first row as column data, I get the error "Do not Load"
in the column names although the row1 of the data displays correctly under each column.
Here's the Copy and Paste text:
"CUSTOMER_ID","CUST_FIRST_NAME","CUST_LAST_NAME","CUST_STREET_ADDRESS1","CUST_STREET_ADDRESS2","CUST_CITY","CUST_STATE",
"CUST_POSTAL_CODE","PHONE_NUMBER1","PHONE_NUMBER2","CREDIT_LIMIT","CUST_EMAIL"
"9","Rahul","Surname","46 Somewhere","Some Town","MyTown","MA","230","(230) 434-2443","(230) 733-4344","200","[email protected]"
Can anyone help please?Hi again
I did use a comma. I did it again just to be sure.
Using the Data Workshop->Text Data and a csv file I was able to load the data without any problem.
Using the same csv, but from the sample application,same problem. Pasting in the Data Field,same problem.
Also I was trying to load about 20 records to another table from an Excel file,by copying the range and pasting in the Date Field of the Data Workshop.
The rows displayed correctly in the Data Field but on loading,got "No Data Found".
Saving the Excel data to a csv and again using the Data Workshop>Text Data >csv file etc,no problem at all,data was loaded instantly.
The safest bet is to use the Data Workshop and a csv file,but thats only for developers.
Probably a simple error somewhere ,but if (thats a big if) anyone could paste the data I posted earlier in the demo_customers and see if they have the same error,
I would be grateful. Having endusers upload their Excel-based data is a central part of my planned site.Here it is again:
"CUSTOMER_ID","CUST_FIRST_NAME","CUST_LAST_NAME","CUST_STREET_ADDRESS1","CUST_STREET_ADDRESS2","CUST_CITY","CUST_STATE",
"CUST_POSTAL_CODE","PHONE_NUMBER1","PHONE_NUMBER2","CREDIT_LIMIT","CUST_EMAIL"
"9","Rahul","Surname","46 Somewhere","Some Town","MyTown","MA","230","(230) 434-2443","(230) 733-4344","200","[email protected]".
Regards -
Create BDC group per uploading excel file to fill data in Tcode FB01l
hi experts,
i'm using BDC to run T-code FB01L . for this i'm uploading excel file for input data. my requiremenr=t is as follows : "
only one BDC group should be created per uploading file." But At this moment BDC group is created per document. For user it is not possible to handle, say 1000 BDC groups.
please suggest.
Thanks
DeepikaThe answer is simple and you should be able to work it out yourself but I am feeling generous today.
I am assuming that each line in your excel spreadsheet is a document. The easiest way to do this is simply build up youd BDC table first then create the group.
<- build your bdc table before opening the group ->
call function 'BDC_OPEN_GROUP'
exporting
group = p_group
keep = p_keep
user = p_uname.
call function 'BDC_INSERT'
exporting
tcode = 'FB01'
tables
dynprotab = gt_bdcdata
exceptions
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
others = 7.
call function 'BDC_CLOSE_GROUP'
In the future please do a search on SDN. I have also moved this thread to the ABAP General forum as this is not related to ABAP OO.
Maybe you are looking for
-
Why do I need to pass params. to getConnection when using OracleDataSource?
Hi, I've been experimenting with Tomcat 5.5 and using Oracle proxy sessions. After many false starts, I finally have something working, but I have a question about some of the code. My setup: In <catalina_home>/conf/server.xml I have this section: <C
-
What are Apple doing to rectify the problem that the Wifi icon is greyed out and you can no longer get onto Wifi!! This has happened on both iPhones I my household!! It must be a problem with Apple as so many people seem to having the same problem.
-
I have broken my screen and cannot access my iphone. I have an icloud account which I have used to back up my phone previously but nothing is showing on the website in contacts etc. As I can enter my pin I cannot connect it to a laptop. Is there anyw
-
Trouble with Exported .pdf Files
I created three 20"x30" one-page documents (with iPhoto-sourced images) which saved as 24.7 MB, 19.4 MB, and 10.7 MB files, respectively. I needed to send JPEG files to my service provider for high-resolution prints. Since Pages '08 doesn't have a JP
-
Chart Legend Edits not holding - CR XI R2
We are making a report with multiple sub reports. Many of the sub reports are charts (Pie, stacked bar & line). The default legend labels are "Sum of [table or query name].[field name]." When we preview, then edit the legend labels to something more