Saving the data to spread sheet.
Hi guys, i just have a simple question about the function "writing to spreadsheet". I have a 16 channel output from the DAQ assist, and i connect this output the the "2D line of the writing to spreadsheet". I do have a a file save at the location i desire. Here is the question, the data i collect is continuous, is there a way that i can only store a controlable number sets of data point in the spreadsheet? The next question would be that is it possible to give a title before each data in the spreadsheet. I.E if i have a 3x3 array. i want to see the following happened in the array" DATA1 DATA2 DATA 3
5 5 5
5 5 5" or
"DATA1 5 5
DATA2 5 5
DATA3 5 5"
Thank for you time reading my problems,
1) to store a controlable number sets of data point in the spreadsheet you just need to play with your 2D array of data and remove what you dont want.
2) you can add text by simply creating a string that concatenate whatever text you want with your data. See my example
NicolasMessage Edited by titi_nicolas on 05-04-2007 11:54 AM
Attachments:
array_title.PNG 78 KB
array_title.vi 32 KB
Similar Messages
-
Grouping the data in Spread sheet component in xcelsius
Hi,
I need to know how to perform grouping of data inside the spread sheet table
For Eg:
Category Profit Loss
[+]Manufacturing 10 5
[+]Retail 70 0
Here i get the aggregate total of category
If i expand the "manufacturing category", it could see tyres,products, cars list below
Category Profit Loss
[-]Manufacturing 10 5
tyres 5 1
Products 3 2
cars 2 2
Can u tel me how to implement this in the Spreasheet componet.
Note: Can you tel me how to post the attachment,
Regards,
AbiHi Prasad,
Thanks a lot for ur earlier response.
It solved my queries.
Regards,
abirami. -
Hi,
I am working on a dashboard where my requirement says, Drill down data from Pie-Chart to Raw data ( Excel Spread sheet).
Clicking on one pie should show me the required data in Excel format
May I know if this is possible to create from Dashboard design tool SAP R4
Thanks
JaveedHi Javeed,
Drilling data from pie charts is very much possible. The data drilled down can be shown either in spread sheet format via components called "Scorecard" "List View". But if its specified that you need the current data drilled down to a separate excel spread sheet only then, you may need to use the third party components for it.
There are many such components available for free. There are components available which are paid as well. You will have to find out which ones are free. Check out the threads below.
How to export data out of Xcelsius to Excel
CSV Connector
http://pentaho-bi-suite.blogspot.sg/2013/12/exporting-table-component-to-excel-or.html
Export Data from Dashboards | Just-BI | Business Intelligence
SAP Dashboard Components - Multi Colour Column Chart, Hierarchical ComboBox & Export To Excel Manufacturer from Beng…
SAPexperts | Give Dashboard Users the Ability to Export Data to Excel at Run Time
I hope this derives you to come conclusion.
Thanks,
Sara -
Uploading Datas From Spread sheet to Database Table
I went to URL http://htmldb.oracle.com/pls/otn/f?p=38131:1 and download Vikas' CSV Upload application (a zip file) as well as the script to create the HTMLDB_TOOLS package.
I follow the steps in the link : Re: File Browse, File Upload
The application is created,Preview shows that the datas in the form of Excel sheet,but I cant upload the spread sheet.
If I click the Upload button It shows the Error:
ORA-01861: literal does not match format string
Error ORA-01861: literal does not match format string
OK
Kindly let me know the reason for the error.
Please help me to solve this Issue.
Thanks in Advance
by
SureshHi Gussay,
Thanks for ur reply.
I found the error,it was due to the date format.
If i drop the date column from the table and also from spread sheet,then it uploads.
How can we load dates in spread sheet to database column.
Thanks in advance
Suresh -
Not saving the data in two tables
Hello,
its my production problem, i have an update form where you can update the records and these
records will sit in the temp tables until the final approval from the supervisor.
In this update form i have two table where i am saving the data one is dup_emp to save the
officer data and another is the dup_address to save the officer where he worked data.
in this form address form is pop up screen where you can update and gets back to the original
form where you can see all the other fields. my problem is if a user hit the cancel button on
address form example the user doesnt want to update any information on that screen so user
cancel that screen, and comes to the other screen where the user makes the changes to the
appropriate fields and hits the SAVE button. in this case its saving only to the dup_emp table
data not the address data from the address form to dup_address table for the same record.
if the user cancels in both the screens cancel button it should delete the record from both the
tables but cancel in form and saves in another form it should save the record in both the
tables.
here is my code from both cancel buttons from both the forms.
this is code is from address form cancel button.
delete from dup_address
where address_id=:address_id
and parent_table_name='emp';
commit;
CLEAR_BLOCK;
go_block('DUP_EMP');
This code is from dup form of the cancel button
declare
temp_address_id varchar2 (12);
begin
delete from dup_emp
where secondemp_id =:dup_emp.secondemp_id;
delete from dup_address
where parent_t_id=:global.secondemp
and parent_table_name='emp';
commit;
clear_block;
go_block('secondaryemp');
END;Hi,
As Aravind mentioned, it's nothing related to workflow. You have to find a BADI in tcode PA30 that could be used after the infotype is updated. So, you can use FM SAVE_TEXT.
Regards, -
How to read the data in excel sheet
Dear sir,
How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
Cell A Cell B
A Apple
B Ball
C Cat
D Doll
when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on..Hi,
I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached.
Trust this would help you solve the issue.
Regards,
Sagar G Yadav | Application Engineer | National Instruments
Attachments:
read_from_excel.vi 10 KB
Book1.txt 1 KB -
How to upload the data from two sheets in one excel into SAP
Hi experts,
My requirement is to upload the data from two sheets in an excel into an internal table.How can this be achieved.Is some OLE application has to be used?
Thanks
AbhishekHi
see this program will upload excel file to application.
*& Report ZSD_EXCEL2
REPORT ZSD_EXCEL2.
types: begin of ttab ,
fld1(30) type c,
fld2(30) type c,
fld3(30) type c,
fld4(30) type c,
fld5(30) type c,
end of ttab.
data: itab type table of ttab with header line.
selection-screen skip 1.
parameters: p_file type localfile default
'C:\test.xls'.
selection-screen skip 1.
at selection-screen on value-request for p_file.
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = 'X'
changing
file_name = p_file.
start-of-selection.
clear itab. refresh itab.
perform upload_data.
loop at itab.
write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.
endloop.
* Upload_Data
form upload_data.
data: file type rlgrap-filename.
data: xcel type table of alsmex_tabline with header line.
file = p_file.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '200'
i_end_row = '5000'
tables
intern = xcel
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
loop at xcel.
case xcel-col.
when '0001'.
itab-fld1 = xcel-value.
when '0002'.
itab-fld2 = xcel-value.
when '0003'.
itab-fld3 = xcel-value.
when '0004'.
itab-fld4 = xcel-value.
when '0005'.
itab-fld5 = xcel-value.
endcase.
at end of row.
append itab.
clear itab.
endat.
endloop.
endform. -
How to export the data to Multiple sheet in Excel
Hi,
How can I export the data to multiple sheets in excel using Crystal Report XI.
Thanks,
Baski.
Edited by: J_Baskaar on Mar 31, 2010 8:14 AMOne of the 3rd-party Crystal report schedulers listed at http://www.kenhamady.com/bookmarks.html allows you to burst a report so that each group at level 1 becomes a separate worksheet inside a single workbook.
-
How to validate plan data before saving the data
I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
Regards,
Tipo.Hi,
I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
My development also stopped for this issue,In my case i have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
Thanks. -
Saving the data through subscreens
Hi,
I have created a dialog program in which there is a tabstrip with 3 tabs in it.On the main screen I have the school name.In the first subscreen of the tabstrip there is school details,in the second tab there is teacher deails and in the third tab there is students detail.I am writing the code in the PAI module of the main screen for saving the data.
when 'SAVE'.
ztable-school_name= it_school-school.
and so on.
But when I am pressing the save button on the main screen the data is not getting saved.Do I need to write the code in the PAI module of the subscreens.Please suggest some solution.hi shashi,
since u r displaying values in all the three tabs, the functionality of save should be given in PAI of main screen. If u do it in PAI of subscreens, it will not be triggered as u r not inputing any there..
Rgds.,
subash -
How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App
How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App
Darrell,
Thanks for this response. After I posted mine, I saw that the resetForm JavaScript method is documented as being supported starting with version 10.5: http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/js.html
But I haven't been able to get it to work. Can you clarify if support was indeed added and if it works for you? -
Table Maintenance Events - "Event 02 After Saving the Data in the Database"
Hi,
Can we identify the record marked for deletion in the "Event 02 After Saving the Data in the Database" ?
Thanks & Regards,
Esha RajLook at online documentation :
- [Event 02: After Saving the Data in the Database|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. - [Internal Table TOTAL|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. . - [Field Symbols <ACTION> and <ACTION_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
. . . - [Constants for Field Symbols <ACTION>, <ACTION_TEXT>, <XACT> and <XACT_TEXT>|https://help.sap.com/saphelp_nw04/helpdata/en/77/06b11859f511d2a6070000e82deaaa/frameset.htm]
Regards,
Raymond -
Update the data into excel sheet .
Hi Friends..
If I run the program it want to store the data into excel sheet(first few lines) , if i run the program again I want to store the next result in the same excel sheet after that data(first time data).
is it any solution available to store the data in the same excel sheet again again in different row of that excel sheet.
Thanks
GowrishankarHi,
I am not sure which FM u r using for downloading. The FM GUI_DOWNLOAD will work for your requirement. Set the parameter Append to value 'A'. Every time it will append the data to ur file.
Check below code.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = l_file
FILETYPE = 'ASC'
APPEND = 'A'
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = i_tab
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Vinod. -
Cannot retrieve the data from excel sheet
hi all ...
i am trying to retrieve the data from excel sheet and at the same time i am inserting the data into mysql database.
code is as follows
try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn1=DriverManager.getConnection("jdbc:odbc:"+estr,"",""); Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+ t_dsn ,"root","manager"); sql="select * from student_info"; srch2 = conn.prepareStatement(sql); rs1 = srch2.executeQuery(); String query = "select * from ["+einput+"$]"; String query1= "select count(*) from ["+einput+"$]"; st = conn1.createStatement(); rs = st.executeQuery(query); ResultSetMetaData rsmd = rs.getMetaData(); c = rsmd.getColumnCount();//gets the column count rs1 = st.executeQuery(query1); while (rs1.next()) //loop to get no. of rows { r = rs1.getInt(1); } rs = st.executeQuery(query); for(i=1;i<=r;i++){ rs.next(); for(j=1;j==c;j++) { a = rs.getString(j); b= rs.getString(j); d = rs.getString(j); } rs1.next(); PreparedStatement ps2 = conn.prepareStatement("insert into materials_out values(?,?,?)"); ps2.setString(1,a); ps2.setString(2,b); ps2.setString(3,d); ps2.executeUpdate(); } }catch(Exception e){ e.printStackTrace(); }
but it is showing error as :
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at Outward_register.jButton2ActionPerformed(Outward_register.java:368)
at Outward_register.access$400(Outward_register.java:23)
at Outward_register$5.actionPerformed(Outward_register.java:312)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
please help me ...please help me ... The question has nothing to do with 'getting' data from excel and certainly not with putting it into MySQL.
The stack trace specifically tells you that your connection string is wrong.
It also tells you which connection string is wrong.
Which you can use to determine specifically which one is wrong. And which you did not provide that info to us. -
Hi Expert gurus..
When i am running the report in foreground and downloading the output on spreadsheet ... the output layout is coming fine....NO. OF COLUMNS AND ROWS ARE COMING SEPERATELY
But when i am running the report in background and the downloading the output in the spreadsheet ...... all the NO. OF COLUMNS OF ALV ARE MERGING INTO SINGLE COLUMNS OF SPREAD SHEET........................
what can be the problem ..................
Please help........
I will reward points for all the question....
thanks.Hi,
How are you downloading in background.
You need to read the spool output into an internal table RSPO_DOWNLOAD_SPOOLJOB or RSPO_RETURN_ABAP_SPOOLJOB and use GUI_DOWNLOAD to download the data.
Best regards,
Prashant
Maybe you are looking for
-
How to enable the check box using cl_salv_table?
Hi Experts, what code will change for to enable the check box in the following Report program? REPORT ZMA_ALV_OOPS2. TABLES:MARA. TYPES:BEGIN OF T_MARA, SEL TYPE C, MATNR TYPE MARA-MATNR, WERKS TYPE MARC-WERKS,
-
Are there limits to devices connected to the Jetpack?
I'm using the Jetpack and it's working fine, except that I can not get my second eReader to connect even with the correct password. Is there a limit to the number of devices connected to the Jetpack; and, if not, how does one allow additional device
-
Erstellungs Datum must have some value. = IT HAS!
hi. i created a form with a report with the wizard. but very strange: when i try to insert a new value into a form it tells me Erstellungs Datum must have some value. on 2 input fields, but there IS an appropriate value in it, and in other required f
-
Power Shell Get Command not recognized
Dear expertise, I was assigned to filter spam mailing at work . i am trying to find out the current junk mail configuration. We have 2 exchange servers, one is CAS server and one is mailbox server. While i type in the Get commands IE Get-IPAllowList
-
Audio problem with win xp sp3 black edition
Product Name-Hp Pavilion g6-1318AX I've recently installed the win xp sp3 black edition.All the drivers are working but there is a problem in recognizing the sound hardware...I have tried installing many IDT HD drivers but its not working...On the pr