Help! Need to save data from field point in excel sheet!!!
Hey colleagues,
I need help. I am writing on my diploma thesis.Main topic is to develop a visualization of a process of a process plant which is used for an internship in uni. My meain problem is that I need a vi where I can save my fieldpoint data only in special cycles. At the moment I use a vi which can only save every second in form of a while loop and a metronom. I am searching for a vi where I can choose the time between every saving step in excel. In addition to that I would like to have a boolean button where i can start/stop the saving within running process.
please help me urgently!!!
Marco
Hello Marco,
the answer
for your problem is called “Software Control Timing”.
If a
desired time has elapsed, you can write data’s to a file.
The explicit
timing is the timing for your while loop, e.g. 10ms.
If a
desired time has elapsed, you get a flag from a timing-function and an
additional block of your code (e.g. a subVI) will executed.
The set
time for the timing function is settable dynamically, while your program is
running.
Find the VI
in the attachment, which will provide this functionality for you.
I hope this
VI will bring you further ahead…..
Have nice
day…
Ulrich
AE-NIC
Attachments:
SoftControlTiming.vi 41 KB
Similar Messages
-
Facing a Problem while downloading the data from ALV Grid to Excel Sheet
Hi Friends,
Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
Can any one help me out in this case.hi...
if this problems happens dont display the same internal as u finally got.
just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
for eg.
ur final internal int table for disp,
data : begin of itab occur 0,
matnr like mara-matnr,
end of itab.
create new like this,
data : begin of itab occur 0,
matnr(12) type N,
end of itab. -
How to download data from abap-ouput to excel sheet with logo
how to download data from abap-ouput to excel sheet with standard logo
Edited by: Harish Kasyap on Nov 18, 2008 8:19 AM
Edited by: Harish Kasyap on Nov 18, 2008 8:20 AMFor saving the report you can goto System -> List -> Save -> Local File -> Location where you want to save in your presentation server.
You can also give a option in your selection screen to save the file to Presentation server using FM GUI_DOWNLOAD.
Hope it helps.
Thanks,
Jayant. -
Gui_download for transferring the data from internal table to excel sheet.
hi all,
i am using gui_download for transferring the data from internal table to excel sheet.
I have a internal table with 3 columns col1,col2,col3 and I am getting the file at the specified path,but my problem is that,in the excel sheet(path specified) all the 3 columns values are printed in one column.Please help me.
Thanks in advance.Hi Venkata,
plz use FM 'SAP_CONVERT_TO_XLS_FORMAT' :
call function 'SAP_CONVERT_TO_XLS_FORMAT'
exporting
* I_FIELD_SEPERATOR =
* I_LINE_HEADER =
i_filename = p_file
* I_APPL_KEEP = ' '
tables
i_tab_sap_data = t_mbew
* CHANGING
* I_TAB_CONVERTED_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.
Hope this helps,
Erwan -
How to I convert data from oracle database into excel sheet
how to I convert data from oracle database into excel sheet.
I need to import columns and there datas from oracle database to microsoft excel sheet.
Please let me know the different ways for doing this.
Thanks.asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
Justin -
Help needed to insert data from different database
Hi ,
I have a requirement where i need to fetch data from different database through database link .Depending on user request , the dblink needs to change and data from respective table from mentioned datbase has to be fetched and populated .Could i use execute immediate for this, would dblink work within execute immediate .If not , could pls let me know any other approach .What does "the dblink needs to change" mean?
Are you trying to dynamically create database links at run-time? Or to point a query at one of a set of pre-established database links at run-time?
Are you sure that you really need to get the data from the remote database in real time? Could you use materialized views/ Streams/ etc to move the data from the remote databases to the local database? That tends to be far more robust.
Justin -
Help needed in extracting data from PCD tables
Hi Friends
I Have a requiremnt for creating custom portal activity report ,even though
we have standard report, the extraced data will be used to create bw reports later.
my part is to find a way to extract the data from PCD tables for creating
custom portal activity reports
i have selected the following tables for the data extraction
WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,
WCR_USERPAGEUSAGE.
My questions are
1.Did i select the Exact PCD tables?
2.Can i use UME api for accessing the data from those tables?
3.can i use the data extracted from PCD tables in JSPdynpage or
webdynpro apps?
4.can i Querry the PCD tables from JSPDynpage or Webdynpro
Please help me in finding a solution for this
Thanks
Ashok BattulaHi daniel
Can u tell me weather i can develop the following custom reports from those WCR tables
Report Type
1 Logins
- Unique Count
- Total Count
- Most Active Users (by Partner Name)
- Most Active Users (by Contact Name)
- Entry Point (by page name)
- Session Time
- Hourly Traffic Analysis
2 Login Failures
- Total Count
- Count by error message
- Credentials Entered (by user name and password)
3 Content Views (by File Name)
- Unique Count
- Total Count
- Most requested Files
- Most requested Pages
- File Not Found
4 Downloads (by File Name)
- Unique Count
- Total Count
- Most requested Files
- File Not Found
5 Portal Administration
- Site Content (by file name)
- Site Content (by page name)
- Latest Content (by file name)
- Expired Content (by file name)
- Subscriptions Count (by file name)
6 Login History (by Partner, Contact Name)
- No Login
- First Login
- Duration between registration and first login
- Most Recent Login
- Average Number of Logins
plz help me in find ing a way
thanks
ashok -
Help needed in loading data from BW(200) to APO(100).
Hi everybody,
I am trying to load a master data from BW(200) to AP1(100) , this is what i did.
1) created a InfoObject, with some fields (general-ebeln, Attributes- bukrs, werks,matnr).
2) created and activated communication structure.
3) Then went to BW(200) created data source(sbiw) and extracted datas from a particular info object, which had same fields and saved it, then went to RSA3 checked for data availability in data source , and it was available there too.
4) Came back to AP1(100), in the source system tab, opened BW(200) and replicated the datas. I was able to see the Data source name which is created in BW(200).
5) Create and activated the Transfer struct.
6) created a info package, and loaded the data, but the monitor says " NOT YET COMPLEATED" , "CURRENTLY IN PROCESS". and it also shows "0 of 0 RECORDS".
I want to know,
1) Is there any mistake in what i have done above ?
2) how long will it take to complete the process (i.e. the loading) ?.
Please help me through this problem.
Thanks,
Ranjani.Hi,
I am surprised with your steps. In APO, you want to load data from a particular infoobject from BW. Why did you create a specific extractor in SBIW???
You have just reinvented the wheel... It reminds me some people in the world ...
Here is what you should do:
- in BW, at the infosource level, you create a direct infosource based on the infoobject that you want to extract the data to APO (let's say 0MATERIAL)
- in BW, at the infosource level, you right click on the infosource itself and you choose 'GENERATE EXPORT DATASOURCE. That will create the datasources for you (attributes, texts, hierarchies) depending on the infoobject settings. The names of these datasources will begin with a 8 for the datamart
- in APO, you replicate the BW system. Now you find the datasources 80MATERIAL something
- in APO, you create the transfer rules to your infosource and you can load
Just give it a try
Regards -
Help needed with loading data from ODS to cube
Hi
I am loading data from an ODS to a cube in QA. The update rules are active and definition seems right. I am getting the following error, in the update rules.
"Error in the unit conversion. Error 110 occurred"
Help.
Thanks.Hi Chintai,
You can see the record number where the error occured in the monitor (RSMO) for this data load > goto the details tab and open up the Processing area (+ sign). Try it out...
Also about ignoring the error record and uploading the rest, this is done if you have set Error Handling in your InfoPackage (Update tab), but this would have to be done before the load starts, not after the error happens.
Hope this helps...
And since you thanked me twice, also please see here:-) https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/7201c12f-0701-0010-f2a6-de5f8ea81a9e [original link is broken] -
Store data from a table into excel sheet and email
Hi all,
I am just wondering, i m not sure where to start. I want to insert data from a table into an excel spread sheet.
I'm working on a stored procedure with 3 input parameters:
1. the actual query
2. userid
3. the column headers (comma separated) - these will be in the same order as the outer select statement in the query itself. I will use the column headers for the respective columns in Excel worksheet.
When the proc is executed, the excel is populated. If the record count is > 65536, then I need to create multiple worksheets in the same excel file.
How can i do that? Can any body please help with this..?We are doing like this ( Not sure whether it is the best method available)
--Get the output of the query (Since the number of columns is not fixed you would have to use dbms_sql package)
--loop through the output and write into a file, for example test.csv, using UTL_FILE package
--load the file into a blob variable(we are doing it by loading it into a table)
--For mailing You can use the below package
http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
Mailing code we are using is given below:
CREATE OR REPLACE procedure xls_mail(
p_sender varchar2, -- sender, example: 'Me <[email protected]>'
p_recipients varchar2, -- recipients, example: 'Someone <[email protected]>'
p_subject varchar2, -- subject
p_text varchar2, -- text
p_filename varchar2, -- name of xls file
p_blob blob -- xls file
) is
conn utl_smtp.connection;
i number;
len number;
BEGIN
conn := demo_mail.begin_mail(
sender => p_sender,
recipients => p_recipients,
subject => p_subject,
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.begin_attachment(
conn => conn,
mime_type => 'application/xls',
inline => TRUE,
filename => p_filename,
transfer_enc => 'base64');
-- split the Base64 encoded attachment into multiple lines
i := 1;
len := DBMS_LOB.getLength(p_blob);
WHILE (i < len) LOOP
IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
ELSE
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
END IF;
UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
END LOOP;
demo_mail.end_attachment(conn => conn);
demo_mail.attach_text(
conn => conn,
data => p_text,
mime_type => 'text/html');
demo_mail.end_mail( conn => conn );
END; -
Download data from internal table to excel sheet from the background
Hello Experts,
I have written a code where the data is stored in the internal table . Now when i run this code in the background i want this internal table data to get downloaded in the excel sheet. The function module GUI_DOWNLAOD is not supported in the background. So is there any other function module that can be used or is there any other way to do this
Thanks in advanceHi Aditya,
I would provide you 2 advice:
1. save the file on the application server as text file and the fileds in it separated by TAB,you can download the file whenever you want and open it with excel.
2.generate excel files and send it to the email address whatever you specify in the selection-screen.
Thanks,
Sam -
Urgent help needed with reading data from Cube
Hi Gurus,
Can anyone tell me how to read a value from a record in the CUBE with a key (combination of fields).
Please provide if you have any custome Function Module or piece of code.
Any ideas are highly appreciated.
Thanks,
Regards,
aarthiDue to the nature of the cube design, that would be difficult, that's why there are API's, FMs, and MDX capabilities - to eliminate the need to navigate the physical structure. Otherwise you would have to concern yourself with:
- that there are two fact tables E and F that would need to be read. The Factview could take of this one.
- you would want to be able to read aggregates if they were available.
- the fact table only as DIM IDs or SIDs (for line item dims) to identify the data, not characteristic values. A Dim ID represents a specific combination of characteristic values. -
Help needed in reading data from a Crystal Report
I am trying to read data values from a saved crystal report. (groovy code snippet below)
I open a new ReportClientDocument and set the RAS using the inprocConnectionString property.
Then I get the rowsetController and set defaultNumOfBrowsingRecords, rowsetBatchSize and maxNumOfRecords all to 1000000
Using the browseFieldValues method after that returns only 100 records. I want to get all.
ReportClientDocument clientDocSaved;
def pathout=rc.pathToSavedReports+rr.path;
//****** BEGIN OPEN SAVED SNAPSHOT ************
clientDocSaved = new ReportClientDocument();
clientDocSaved.setReportAppServer(ReportClientDocument.inprocConnectionString);
// Open report
println("Reading file in.")
clientDocSaved.open(pathout, OpenReportOptions._openAsReadOnly);
def rowsetController = clientDocSaved.getRowsetController()
rowsetController.setDefaultNumOfBrowsingRecords(1000000)
rowsetController.setRowsetBatchSize(1000000)
rowsetController.setMaxNumOfRecords(1000000)
//setup metadata
IRowsetMetaData rowsetMetaData = new RowsetMetaData()
Fields fields = clientDocSaved.getDataDefController().getDataDefinition().getResultFields()
rowsetMetaData.setDataFields(fields)
def values = rowsetController.browseFieldValues(fields.get(0), 1000000)
values.each{value->
println(value.displayText(new Locale("ENGLISH")))
Before using the browseFieldValues method I was trying to use a rowsetCursor
//get the rowset cursor to navigate through the results
RowsetCursor rowsetCursor = clientDoc.getRowsetController().createCursor(null, rowsetMetaData)
//navigate through the rowset and log the name and value
rowsetCursor.moveTo(0)
while(!rowsetCursor.isEOF()){
Record currentRecord = rowsetCursor.getCurrentRecord()
//println("current record number: " + rowsetCursor.getCurrentRecordNumber())
for(int i=0;i<fields.size();i++){
//println("Column - "+fields.get(i).getName())
if (currentRecord.size()>0){
println(currentRecord.getValue(i))
rowsetCursor.moveNext()
the currentRecord was always an empty list and I did not get any data values at all.
Am I missing something in using these approaches?
I'm fairly new to using the Java SDK for CR. Any help will be greatly appreciated.
Thankshi, I am trying this second method to read the values from report. but all the records comming as null. Kindly help me to resolve this issue.
-
Help need to Recover data from 2009 iMac failing drive won't boot?
How can I boot my 2009 iMac which came with Snow, from my macbook pro yosemite to recover my data on iMacs failed drive?
Yes in target mode can I do wirelessly? or does it need wired firewire cable between the computers?I want to try to repair from disc utility and recover my data using my data rescue app first.Will there be any problems using
macbook pro which is using
yosemite? -
Advanced Help Needed - Restoring iPhone data from Backup
Upon updating my iPhone 3G[S] from 3.1 to 3.1..2 I did a full restore, I made sure to backup the device before this. Post-update/restore I, accidentally, hit "Set up as new phone" therefore deleting my earlier backup, a backup I have been building on for over 2 years now. When realizing that iTunes had automatically deleted my backup, I quickly opened my file recovery program and got the whole backup folder restored to a separate drive. I moved the whole freshly-recovered back up folder to the correctly directory within iTunes appdata, right next to where my new/empty/useless backups where. Right clicking my device within iTunes and selecting "Restore from backup" my backup from earlier in the day was not listed. After further inspection of the backup folder that I had recovered I noticed that there was no Info.plist file. I went into the other/useless backup that iTunes had just made and brought the info.plist into my older backup folder, now in iTunes my older backup was listed, I selected it and attempted to restore to only receive an error half way through restore "(-32)" to be exact. I checked again and again with my recovery tools to see if the original info.plist file was deleted, it was not, I have no idea why it would be missing, but worse is that I have no idea how I can get iTunes to restore the backup without it, considering it doesn't even recognize it the backup as existing without it, is there way to create a custom info.plist so I could restore or force a restore outside of iTunes? Please any advice would be greatly appreciated !
Backup c:\users\[username]\AppData\Roaming\Apple Computer\MobileSync\Backup
If you copy these folders into a new computer in the same location (or the contents of a current long name folder into one of the long name folders in backup) you should be able to restore your old data.
Outside of that maybe track down the location of your outlook PST or address book database. support.microsoft.com probably has some tips.
Maybe you are looking for
-
How to check the resolution of a pdf file using Acrobat 9 pro?
How to check the resolution of a pdf file using Acrobat 9 pro?
-
SSIS Oracle 11g 64 bit client upgrade Issue
After the oracle client upgrade from 10g to 11g, the ssis jobs are getting failed for the BadImageFormatException. Attempt to load Oracle client libraries threw This problem will occur when running in 64 bit mode with the 32 bit Oracle client compone
-
Flashbelt Conference in Midwest
Robert Reinhardt. Danny Patterson. Moses Gunesch. Paul Ortchanian. Sam Pastel. Chris Allen. What do they have in common? They all be giving sessions at the Flashbelt conference in Minneapolis this June along with 30 others great Flash and Flex relate
-
Hi, can any one tell me how to stop and start services for essbase. Also, let me know how to check the database schemas whether they are Up or not.
-
Paid for monthly plan for photoshop cc but did not receive activation serial number?
Can somebody tell me if Adobe will email me the activation key or is photoshop CC for photography automatically activated? I have downloaded the PS trial version through CC. Thanks.