CCM 2.0 Upload Schema (csv) 1 Subcategory in many Maincategories
Hello,
i have an Problem to upload a schema with csv
a few subcategories should be displayed in more then one maincategory
when the schema is uploaded the subcategory is only mapped to the last defined maincategory
EXAMPLE:
SAP CATALOG CSV 2.0<|> full
defaults|de
Model
Catalog|CAT||Katalog
Characteristic|BEGRU|/CCM/NAME|FALSE|Berechtigungsgrupppe
Characteristic|UNBW|/CCM/NAME|FALSE|Unbewertet
Characteristic|LAGER|/CCM/NAME|FALSE|Lagerhaltig
Characteristic|LGORT|/CCM/NAME|FALSE|Lagerort
Schema|Schemaname|BEGRU|UNBW|LAGER|LGORT|
Category|UZE|||Zubehör
Category|ZE140002|UZE||ZE Transp.+ Grünpfl.Transport- und Grünpflegegeräte
Category|ZE140010|UZE||ZE Möbel/Hausrat Möbel/Hausrat
Category|ZE140020|UZE||ZE Med.-Therap. Med.- Therap.-techn. Geräte
Category|ZE|||Zubehör/Ersatzteile
Category|ZE140001|ZE||ZE Kfz+Fahrräder Kfz/Fahrräder
Category|ZE140002|ZE||ZE Transp.+ Grünpfl.Transport- und Grünpflegegeräte
Category|ZE140010|ZE||ZE Möbel/Hausrat Möbel/Hausrat
Category|ZE140020|ZE||ZE Med.-Therap. Med.- Therap.-techn. Geräte
in CCM e.g. Subcategory ZE140010 is only displayed in Maincategory ZE
anyone an Idea what we make wrong - or isn't it possible to have a Subcategory in more then 1 Maincategory
-hope my English isn't to bad
thx or your help
erich
Edited by: Erich Tischler on Sep 23, 2011 11:36 AM
Problem is solved
Hi,
I think that at least the category 3 should be defined previously to the content line
I hope this helps you
Regards
Similar Messages
-
CCM automatic upload of CSV files
Dear CCM experts,
We are running CCM 2.0 installed within SRM and do not have XI in place so we use CSV files to load our catalogs manually via the web. We have to fullfill the requirement to load the catalogs automatically. The files should be "picked up" by a custom build abap program from a file server.
The question is: Are there function modules, abap programs that allow you to load the CSV files from the SRM GUI that we can incorporate in a custom build program? In other words, we load CSV files currently via the web, but which ABAP program/function module runs this process?
Thanks in advance.
We have a requirement to load our catalogHi
I guess this can be possible, but will require some research and analysis.
<b>You need to create the function module based on your business requirement. Incase you need any help, do let me know.</b>
Have a look at the following function modules, which will help.
<u> CALL FUNCTION 'WS_FILENAME_GET'
CALL FUNCTION 'RSDS_CONVERT_CSV'</u>
Refer to following reports
<u>BBP_NONR3_ADDRESS_UPLOAD
B_DOWNLOAD_EBP_USER_DATA</u>
Class methods ->
<u>/CCM/CL_FILE_UPLOAD_CSV</u>
Meanwhile, Please refer to following SAP OSS notes ->
<u>Note 898011 - Mass upload/dowload - delete item
Note 1043932 - Catalog Component Definitions
922392 Upload:Catalog content deleted when model updated
816937 Error in csv upload: short dump MESSAGE_TYPE_X
822074 Schema is sent to all packages during CSV 1.0 upload
796099 CSV 2.0: Downport to CCM
790368 CCM10: CSV Upload sends the catalog model before content
783385 CSV 1.0: inconsistent data entry possible with price
766384 CCM 1.0 enhanced with B2B/A2A interface
755230 CCM10SP01: upload predefined characteristic in the csv
603291 Information: Patches in DADB 311 and BB 30
688316 CSV upload fail on create partial response</u>
Regards
- Atul -
CCM Catalog Mass upload problem
Dear Experts,
Could you please help me to find an answer to the below issue?
We are doing a mass catalog upload in CCM 2.0 => we are uploading our CSV file as follows:
Supplier ID A => Supplier name A => Item details A
Supplier ID B => Supplier name B => Item details B
etc.
Usually, I give the first Supplier ID when creating the Supplier catalog.
The upload process is working fine, BUT...
When the catalog has been uploaded, from the Procurement Catalog side there is only the first "Supplier ID A" what's beeing uploaded to all of the items instead of all the other respective Supplier IDs.
Therefore we have to change the rest of the Supplier IDs by mass changing the respective Proc Cat.
Do you know how we could keep all the other Supplier IDs?
Thanks a lot - imre
Edited by: Imre Matyas on Feb 8, 2010 11:09 AMHi,
In that case my solution will help.
Here is sample schema with custom characteristics. Please look at Z_SUPPLIER_ID and Z_SUPPLIER_NAME.
SAP CATALOG CSV 2.0 <;>
Defaults;EN
Model
Catalog;Master;;Master Catalog
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;Z_UPDATE_BY;/CCM/ID;false;Updated By
Characteristic;/CCM/LONG_DESCRIPTION;/CCM/LONG_DESCRIPTION;false;Long Description
Characteristic;/CCM/PICTURE;/CCM/ATTACHMENT;false;Picture
Characteristic;Z_BUYER;/CCM/ID;false;Buyer
Characteristic;Z_BUYER_CONTACT;/CCM/ID;false;Buyer Contact Number
Schema;Master;Z_ACTION;Z_MATERIAL_TYPE;Z_CONTENT;Z_SUPPLIER_ID;Z_SUPPLIER_NAME;Z_P_GROUP;Z_P_ORG;Z_DATE;Z_UPDATE_BY;Z_BUYER;Z_BUYER_CONTACT;Master Schema
Regards,
Masa -
Error while uploading schema for Master Catalog
Guys,
I got the below error while uploading Schema with custom char for Master catalog;
"Error in row 11 of the CSV file" where as the 11th row is "DataType;INTEGER;integer;Integer Type"
in the csv file. Please suggest.
Regards
TGBHi,
Check txn-SLG1 in SRM system. There if you go to details, you will see exact description of error.
There are some dos and donts for csv files. for e.g you can't put : , / etc.symbols in the csv file.
Regards,
Sanjeev -
I have an issue where myself and another user are unable to upload a csv file to my application using the "File Browse" page item in V4.1.1. I get the following error, "Error ORA-01403: no data found".
This function was working perfectly last week prior to the upgrade of our APEX to V4.1.1 from V3. Other users are still able to upload the csv file, so the PL/SQL behind it must be ok.
So here is where I am up to with testing.
Tested the upload using my login on my PC – Fail
Tested the upload using my login on another PC – Fail
Tested the upload using other user’s login on my PC – Success
Tested the upload using other user’s login on another PC - Success
Any help would be greatly appreciated.
Cheers,
GregThe offending piece of code was in a block of script that I used from an online sample when I was first setting up this upload script. A colleague had the same issue in another application and rewrote the script to resolve the issue, see below.
I'm still perplexed as to why the majority of users could run it ok, and there were only 2 of us that it errored on. But now it's working for all, and I can go back to building some cool stuff in V4.1.1.00.23.
-- Read data from wwv_flow_files
select blob_content into v_blob_data
from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USERID)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USERID);
-- Rewritten to the following, which works.
select blob_content into v_blob_data
from wwv_flow_files
where id = (select ID from wwv_flow_files
where UPDATED_BY = :APP_USERID
and LAST_UPDATED = (select max(LAST_UPDATED) from wwv_flow_files where UPDATED_BY = :APP_USERID)); -
When I try to upload a CSV file in my program it gives me an error message - Do not have an E-mail address column even though I do have an E-mail column and a list of E-mail addresses. How can I resolve this problem?
What email program are you using? I sent a .csv file via Mail, it worked perfectly.
-
How to use GUI_upload for Uploading a CSV file in Microsoft Excel.
Hi Guys,
can anybody tell me how to Upload the CSV format file in Microsoft excel sheet?
Thanks,
Gopi.Hi Gopi,
u can use GUI_UPLOAD, TEXT_CONVERT_XLS_TO_SAP.
Please check these codes.
Uploading data from CSV file format into internal table using GUI_UPLOAD
REPORT zupload MESSAGE-ID bd.
DATA: w_tab TYPE ZTEST.
DATA: i_tab TYPE STANDARD TABLE OF ZTEST.
DATA: v_subrc(2),
v_recswritten(6).
PARAMETERS: p_file(80)
DEFAULT 'C:\Temp\ZTEST.TXT'.
DATA: filename TYPE string,
w_ans(1) TYPE c.
filename = p_file.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Upload Confirmation'
* DIAGNOSE_OBJECT = ' '
text_question = p_file
text_button_1 = 'Yes'(001)
* ICON_BUTTON_1 = ' '
text_button_2 = 'No'(002)
* ICON_BUTTON_2 = ' '
default_button = '2'
* DISPLAY_CANCEL_BUTTON = 'X'
* USERDEFINED_F1_HELP = ' '
* START_COLUMN = 25
* START_ROW = 6
* POPUP_TYPE =
* IV_QUICKINFO_BUTTON_1 = ' '
* IV_QUICKINFO_BUTTON_2 = ' '
IMPORTING
answer = w_ans
* TABLES
* PARAMETER =
* EXCEPTIONS
* TEXT_NOT_FOUND = 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.
CHECK w_ans = 1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
* FILETYPE = 'ASC
has_field_separator = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
data_tab = i_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.
* SYST FIELDS ARE NOT SET BY THIS FUNCTION SO DISPLAY THE ERROR CODE *
IF sy-subrc <> 0.
v_subrc = sy-subrc.
MESSAGE e899 WITH 'File Open Error' v_subrc.
ENDIF.
INSERT ZTEST FROM TABLE i_tab.
COMMIT WORK AND WAIT.
MESSAGE i899 WITH sy-dbcnt 'Records Written to ZTEST'.
Uploading data from Excel file format into internal table using TEXT_CONVERT_XLS_TO_SAP
REPORT zupload_excel_to_itab.
TYPE-POOLS: truxs.
PARAMETERS: p_file TYPE rlgrap-filename.
TYPES: BEGIN OF t_datatab,
col1(30) TYPE c,
col2(30) TYPE c,
col3(30) TYPE c,
END OF t_datatab.
DATA: it_datatab type standard table of t_datatab,
wa_datatab type t_datatab.
DATA: it_raw TYPE truxs_t_text_data.
* At selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FILE'
IMPORTING
file_name = p_file.
*START-OF-SELECTION.
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = it_raw " WORK TABLE
i_filename = p_file
TABLES
i_tab_converted_data = it_datatab[] "ACTUAL DATA
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.
* END-OF-SELECTION.
END-OF-SELECTION.
LOOP AT it_datatab INTO wa_datatab.
WRITE:/ wa_datatab-col1,
wa_datatab-col2,
wa_datatab-col3.
ENDLOOP.
reward if helpful
raam -
Flat File Upload as CSV File in BPS.
Hi Friends,
We have to upload CSV file to BPS and as of now we are able to upload tab spaced file as per the How to Document.
Kindly can some body post the COMPLETE CODE changes for Uploading the CSV File in both LOAD and WEB Function Modules.
For complete code points are guaranteed.Hi BI,
please check the following thread.
Load flat file to BPS - GUI issue
I've implemented the file upload for CSV file. please note the changes i've made -
Code for INIT function module :-
FUNCTION Z_BPS_FILE_UPLOAD_INIT_CSV.
""Local Interface:
*" IMPORTING
*" VALUE(I_AREA) TYPE UPC_Y_AREA
*" VALUE(I_PLEVEL) TYPE UPC_Y_PLEVEL OPTIONAL
*" VALUE(I_PACKAGE) TYPE UPC_Y_PACKAGE OPTIONAL
*" VALUE(I_METHOD) TYPE UPC_Y_METHOD OPTIONAL
*" VALUE(I_PARAM) TYPE UPC_Y_PARAM OPTIONAL
*" REFERENCE(IT_EXITP) TYPE UPF_YT_EXITP OPTIONAL
*" REFERENCE(ITO_CHASEL) TYPE UPC_YTO_CHASEL OPTIONAL
*" REFERENCE(ITO_CHA) TYPE UPC_YTO_CHA OPTIONAL
*" REFERENCE(ITO_KYF) TYPE UPC_YTO_KYF OPTIONAL
*" EXPORTING
*" REFERENCE(ETO_CHAS) TYPE ANY TABLE
*" REFERENCE(ET_MESG) TYPE UPC_YT_MESG
DATA: lto_chas TYPE yto_chas,
ls_chas TYPE ys_chas,
ls_exitp TYPE upf_ys_exitp,
ls_mesg TYPE upc_ys_mesg,
ls_chasel TYPE upc_ys_chasel, "<<<INSERT
ls_charng TYPE upc_ys_charng. "<<<INSERT
DATA: lt_filetab TYPE filetable,
ls_filetab TYPE file_table,
l_file TYPE string,
l_separator TYPE char01,
l_action TYPE i,
l_count TYPE i.
FIELD-SYMBOLS: <f> TYPE ANY. "<<<INSERT
Try to get file name from parameter
READ TABLE it_exitp INTO ls_exitp WITH KEY parnm = 'FILENAME'.
IF sy-subrc = 0.
l_file = ls_exitp-chavl.
ENDIF.
If no file name is given, prompt user for it
IF l_file IS INITIAL.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select Upload File'
default_extension = 'csv'
file_filter = 'Text Files (*.csv)'
CHANGING
file_table = lt_filetab
rc = l_count
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
OTHERS = 3. "#EC NOTEXT
IF sy-subrc <> 0.
CLEAR ls_mesg.
MOVE-CORRESPONDING syst TO ls_mesg.
APPEND ls_mesg TO et_mesg.
EXIT.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
LOOP AT lt_filetab INTO ls_filetab.
l_file = ls_filetab.
ENDLOOP.
CHECK l_action = 0.
ENDIF.
l_separator = 'X'.
Upload file from front-end (PC)
File format is tab-delimited ASCII
l_separator = ';' .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_file
filetype = 'DAT'
has_field_separator = l_separator
TABLES
data_tab = gt_file_csv
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.
CLEAR ls_mesg.
MOVE-CORRESPONDING syst TO ls_mesg.
APPEND ls_mesg TO et_mesg.
EXIT.
ENDIF.
Create one dummy combination
If we don't do this, the upload won't work since the second function
will not be executed at all in case no transaction data exists so far.
The combination must be a subset of the planning level!
" >>> BEGIN INSERT
CLEAR ls_chas.
LOOP AT ito_chasel INTO ls_chasel.
READ TABLE ls_chasel-t_charng INTO ls_charng INDEX 1.
IF sy-subrc = 0.
ASSIGN COMPONENT ls_chasel-chanm OF STRUCTURE ls_chas TO <f>.
IF sy-subrc = 0.
<f> = ls_charng-low.
ENDIF.
ENDIF.
ENDLOOP.
" <<< END INSERT
COLLECT ls_chas INTO lto_chas.
eto_chas = lto_chas.
ENDFUNCTION.
Include should contains following declarations-
TYPES: begin of itab_CSV,
text(255) type c,
end of itab_CSV.
Global table to temporarily store loaded data.
DATA: gt_file_CSV TYPE STANDARD TABLE OF itab_csv WITH DEFAULT
KEY.
Hope it will help you.
Regards
Tarun -
Please help on uploading a CSV file on APEX through file browse
Hi All,
I need to upload a csv file in the table through file browse button.For that i have created the below process and function.This method is working perfectly fine when the file size is small.But i need to upload the file of 16 MB size and when i try to upload that file it gives error wwv_flow.accept error.Any expert of APEX please help me out on this error.As i am very new to APEX and i need to get this done as early as possible.Please provide any solution ,i will be really grateful to the person.
function_
create or replace function hex_to_decimal
--this function is based on one by Connor McDonald
--http://www.jlcomp.demon.co.uk/faq/base_convert.html
( p_hex_str in varchar2 ) return number
is
v_dec number;
v_hex varchar2(16) := '0123456789ABCDEF';
begin
v_dec := 0;
for indx in 1 .. length(p_hex_str)
loop
v_dec := v_dec * 16 + instr(v_hex,upper(substr(p_hex_str,indx,1)))-1;
end loop;
return v_dec;
end hex_to_decimal;
Process_
DECLARE
v_blob_data BLOB;
v_blob_len NUMBER;
v_position NUMBER;
v_clob_data CLOB := 'anything';
dest_offset NUMBER := 1;
src_offset NUMBER := 1;
blob_csid NUMBER := dbms_lob.default_csid;
lang_ctx INTEGER := dbms_lob.default_lang_ctx;
warning INTEGER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
c_chunk_len number := 1;
v_line VARCHAR2 (32767) := NULL;
v_data_array wwv_flow_global.vc_arr2;
v_rows number;
v_sr_no number := 1;
BEGIN
delete from scg_recievables2;
-- Read data from wwv_flow_files</span>
select blob_content into v_blob_data
from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
v_blob_len := dbms_lob.getlength(v_blob_data);
v_position := 1;
-- Read and convert binary to char</span>
WHILE ( v_position <= v_blob_len ) LOOP
dbms_lob.converttoclob(v_clob_data, v_blob_data, v_blob_len, dest_offset,src_offset,blob_csid,lang_ctx,warning);
v_char := dbms_lob.getlength(v_clob_data);
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When a whole line is retrieved </span>
IF v_char = CHR(10) THEN
-- Convert comma to : to use wwv_flow_utilities </span>
v_line := REPLACE (v_line, ';', ':');
-- Convert each column separated by : into array of data </span>
v_data_array := wwv_flow_utilities.string_to_table (v_line);
if IsNumber(substr(v_data_array(9),1,1)) = 1 then
v_data_array(9) := substr(v_data_array(9),1,11);
else
v_data_array(9) := '01-JAN-1900';
end if;
v_data_array(9) := NVL(v_data_array(9),'01-JAN-1900');
-- Insert data into target table </span>
EXECUTE IMMEDIATE 'insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount,source_of_payment)
values (:1,:2,:3,:4,:5,:6,:7,:8,:9)'
USING
v_data_array(1),
v_data_array(2),
v_data_array(3),
v_data_array(4),
v_data_array(5),
v_data_array(6),
v_data_array(7),
v_data_array(8);
-- Clear out
v_line := NULL;
v_sr_no := v_sr_no + 1;
END IF;
END LOOP;
END;As noted, this confuses the issue, since a possible answer was posted in the OTHER thread.. Check your server logs, you are probably timing out.. From prior threads with a similar issue:
Have a look at the httpd.conf file (or get your system administrator to look at it) and see what the value of TimeOut is set to. You may need to increase it in order to export large tables via APEX.
http://www.apacheref.com/ref/http_core/Timeout.html
Thank you,
Tony Miller
Webster, TX
A lady came up to me on the street, pointed at my suede jacket and said "Do you know a cow was murdered to make that jacket?"
"I didn't know there were any witnesses", I replied " Now I'll have to kill you too" -
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. -
How to add dimension in dimension_values.csv and schema.csv file
How to add one dimension in dimension_values.csv and schema.csv file
I'm not sure on the equation Ventzo, so please tell me if I've got this wrong.
This should create a text file on the desktop with a name of the folder you are in plus the time.
#target bridge
if( BridgeTalk.appName == "bridge" ) {
var quadDetails = MenuElement.create("command","Get Quadrature", "at the end of Tools","QuadDetails");
quadDetails .onSelect = function () {
var file = new File(Folder.desktop +"/" + decodeURI(Folder(app.document.presentationPath).name) + time() +".txt");
file.open("w", "TEXT", "????");
$.os.search(/windows/i) != -1 ? file.lineFeed = 'windows' : file.lineFeed = 'macintosh';
file.open('w');
var sels = app.document.selections;
for(var a in sels){
var myThumb = new Thumbnail( sels[a]);
var Resolution = myThumb.core.quickMetadata.xResolution;
if(Resolution == 0) Resolution = 72;
var CM = Resolution /2.54;
var m = CM*100;
var Height = (myThumb.core.quickMetadata.height/m);
var Width = (myThumb.core.quickMetadata.width/m);
file.writeln(decodeURI(sels[a].spec.name) + " - " +(Height * Width).toFixed(4));
file.close();
alert(decodeURI(file.name) + " Has been created on the Desktop");
function time(){
var date = new Date();
var d = date.getDate();
var day = (d < 10) ? '0' + d : d;
var m = date.getMonth() + 1;
var month = (m < 10) ? '0' + m : m;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
todaysDate = "-" + hours + "_" + minutes + "_" + seconds + amOrPm;
return todaysDate.toString(); -
I'm on 9i on a Microsoft Windows Server 2003.
What are some of the native tools to Oracle 9i for uploading a CSV File to a Table in the Database?Alex
I realize that "evangelist" is part of your job title. But are you really intending to exhume any old thread the search engine chucks that which may be relevant to your product? Because you are really going to start annoying people soon.
Obviously you will claim that your company's dual GPL/commercial licensing policy means that you are not violating these forums' Terms of use. But as your ultimate aim is no doubt to get people to buy the non-GPL option I suggest that you are breaking this rule: Forums shall be used in a noncommercial manner only.
Furthermore, a sufficient amount of this type of thread-bombing would (IMO) constitute unsolicited bulk e-mail, "junk mail," "spam" or chain letters.
Namaste, APC -
Upload a csv file in application server with the specified codepage(Poland
Hi,
i want to upload a csv file in application server with the specified codepage ( for poland ) , please let me know how to use open dataset for that.?
AnuragI would upload the file with transaction CG3Z in binary mode and do the code page translation with a report: read from server an save with different name.
-
"No Data Found" Error when uploading a CSV
Hi All,
I am using htmldb_tools to upload a csv file into a collection and then to a table. The upload works perfectly if the last column of the csv has data present
(ex. ...,,a) however when the value is null (ex. ..,a,) then the upload fails with the Oracle error: ORA-01403: no data found. If anyone has encountered this issue and knows how to resolve that would be GREATLY appreciated.
After much debugging I found out that this section of the parse_file function was what was causing the error. When I commented out the section the upload worked perfectly, so I am wondering what this section does, and if it is necessary.
BEGIN
-- Get datatypes
FOR i IN 1..l_record.count
LOOP
l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
END LOOP;
l_ddl := '('||ltrim(l_ddl,',')||')';
htmldb_util.set_session_state(p_ddl_item,l_ddl);
EXCEPTION WHEN NO_DATA_FOUND THEN
raise_application_error(-20000, 'after getting datatypes');
END;
Thanks
Paul
Edited by: user9508468 on Sep 12, 2008 1:50 PM950001 wrote:
Hi,
Thanks, but i want to remove only space character after the work that is at the end of word.then add $ symbol.
see the eg:-
SELECT Length(STR) Orginal_length,Length(regexp_replace(str,'\s+$',NULL)) Space_removed_length,
regexp_replace(str,'\s+$',NULL) str_space_removed,str FROM (SELECT 'Welcome hai ' str FROM dual);
ORGINAL_LENGTH SPACE_REMOVED_LENGTH STR_SPACE_REMOVED STR
12 11 Welcome hai Welcome hai -
Netbeans - How to Upload a csv File
Hi all
A J2EE question from a java beginner:
I am using NetBeans and JBoss to develop a web application.
I need to create a JSP page for user to upload a csv file and then read from the csv file (the file is in certain fixed format).
The csv file will be read line by line to be updated into database.
In JSP Page I have this:
<td align="left" scope="col"><input type="file" name="meterList" id="meterList"></td>
<td><input type="submit" name="upload" id="upload" value="Upload File" ></td>What should I do in Servlet when I clicked on the "Upload" button?
How if I want to control the uploading size and type of the the file?
How to get the file to be processed in servlet?
Your help is much appreciated.
Thanks alot.this question has been asked a million times
try searching next time
and uploading a csv file has nothing to do with netbeans
Maybe you are looking for
-
Error while loading Data into Essbase using ODI
Hi, I am very new to ODI. I have installed ODI and working on Demo environment only. I havn't done any configuration. I am using Essbase Technology which is coming by default. I have created one sample outline in Essbase and a text file to load data
-
Error Operation could not be completed movie rental
I Rented a movie and when I press "Watch" it asks if I want to play it, Press OK and I get the message"The operation could not be completed". Home sharing is on, mirroring is on...It briefly shows the remote control screen then the Rented Movie scre
-
Last played from itouch to itunes
Hi, Ive listened to a lot of songs on my Itouch 2nd gen 16gb and when I connect it to my pc it doesn't update anything (last played, play count etc) in my music library on itunes. Anyone know how to get it to update. Right now on my touch i have song
-
Use DW for mouse over button images but won't validate
Hi All, I've done this three times and give up. Here's the link http://pooledesignstudio.com/wendysawesomeart/ I used the Rollover Image icon on the common tool bar and created my nav bar. When I try to validate I get 24 errors and they are in the c
-
Mac Mini crashes when I attempt to boot to OS Disc
Can't reinstall/reformat. System crashes when I try to reboot with the OS disc in. Before that, when i started the computer, the pinwheel kept spinning and I had to boot in safe mode and run Disk repair. Then it booted fine. But my iMovie project