How to get SEC data into numbers??
I am trying to get the SEC data into a .csv file so that I can play with it in a numbers. A few years ago the program thumbval (thumbnail evalu-a-tor) did a pretty good job, but it used web queries, which broke over time, as the pages it referenced changed.
What I would like to do is simply get the data from the SEC, and CUT AND PASTE it into numbers, but this is difficult, as it is improperly formatted and just gets placed in a single cell. grrrrr
Any suggestions? Morningstar has 'watered down' financial statements in table form. My broker (BMO investorline) provides .csv files, but they contain only summary data - for instance the quarterly income for BWLD is just a few lines, and contains none of the detail breakdown found in the SEC reports.
The data exists. It is plastered all over the financial world, surely getting it into a spreadsheet ready format has been done to death, but I am going crazy trying to figure this one out.
Hello
As I don't know from where where grabbed your datas, I can't make tests.
May you copy a block of datas from the web page then paste into a Pages document.
After that activate the "Show hidden chars" tool.
You will see which character is used as a separator.
You may also attach the Pages doc (after zipping it) to a mail and send it to:
koenig PERIOD yvan AT tele2 PERIOD fr
I will be able to look at the datas's contents.
I met several cases.
- 1 - values separated by TABs and they may be pasted as is.
- 2 - values separated by Returns. They can't be pasted as is. I posted a script to deal with this case. But often this one is linked to Safari. Entering the Web page with Firefox gave a TAB separated values block
- 3 - values separated by spaces. In this case, it is difficult to get a correct result.
I posted a script able to deal with this case because most of the values where numbers so I was able to replace every occurence of (digit + space) by (digit + TAB) and every occurence of (space + digit) by (TAB + digit).
Yvan KOENIG (from FRANCE lundi 31 décembre 2007 18:17:9)
Similar Messages
-
I am trying to get an excel document I exported from Wufoo into numbers on my mac. It works but I cannot read the data.
I got it to work!! Just had to select Commas (.csv) instead of excel for the export. What happened before was that I chose .xls to export the data and when I tried to open the file in Numbers, it showed an error.
Import Warning - This is a tab delimited document, not a valid Excel document. The data might look different.
the data was all symbols etc..
Thanks for replying to my question! -
How to get editable data into internal table
Hi ABAPers,
I am displaying REUSE_ALV_GRID_DISPLAY report with one editable field and i have post button in report. Once i select post button i need to get editable data to internal table which i passed to REUSE_ALV_GRID_DISPLAY.
actually i am writing below code but data is not coming to internal table.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = 'USER_COMMAND '
it_fieldcat = t_field[]
i_default = 'X'
TABLES
t_outtab = <fs_display1>. "t_display
FORM user_command USING g_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
g_test1 = g_ucomm.
CASE g_ucomm.
WHEN 'POST'.
READ TABLE <fs_display1> ASSIGNING <fsw_display1> INDEX 1. "Just for testing index 1
IF sy-subrc = 0.
w_display = <fsw_display1>.
APPEND w_display TO t_display.
CLEAR : w_display.
ENDIF.
PERFORM v1.
PERFORM bapi_call.
ENDCASE.
ENDFORM. "USER_COMMAND
Please help me how to get.
Regards,
Raju.Hi,
Try the following:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = 'USER_COMMAND '
it_fieldcat = t_field[]
i_default = 'X'
TABLES
t_outtab = <fs_display1>. "t_display
FORM user_command USING g_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
g_test1 = g_ucomm.
CASE g_ucomm.
WHEN 'POST'.
* to reflect the data changed into internal table
DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data.
ENDIF.
READ TABLE <fs_display1> ASSIGNING <fsw_display1> INDEX 1. "Just for testing index 1
IF sy-subrc = 0.
w_display = <fsw_display1>.
APPEND w_display TO t_display.
CLEAR : w_display.
ENDIF.
PERFORM v1.
PERFORM bapi_call.
ENDCASE.
ENDFORM. "USER_COMMAND
Hope it helps.
Regards,
Gilberto Li -
How to get the data into select options if we have 10 select options
Hi Experts,
I facing problem to get the data from diffrent tables and different select options.
I have to pass different parameter ranges.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: rb1 RADIOBUTTON GROUP g1. "Existing Key Accounts
PARAMETERS: rb2 RADIOBUTTON GROUP g1. "Potential Key Accounts
SELECT-OPTIONS: s_part FOR but000-partner."Business Partner Number
PARAMETERS: p_bpkind LIKE but000-bpkind. "Business Partner Type
PARAMETERS: p_but000 LIKE but000-partner. "Key Account Manager
SELECT-OPTIONS : s_vkont FOR fkkvkp-vkont. "Contract Account
SELECT-OPTIONS : s_ktokl FOR fkkvkp-ktokl. "Debtor Type
SELECT-OPTIONS : s_sparte FOR ever-sparte. "Division
SELECT-OPTIONS : s_vertra FOR ever-vertrag. "Contract
SELECT-OPTIONS : s_budat FOR erdk-budat. "Invoice Date
SELECT-OPTIONS : s_netto FOR dberchv-nettobtr."Billing Amount
SELECT-OPTIONS : s_abrm FOR abc. "Consumption Value
SELECTION-SCREEN: END OF BLOCK b1.
need response asap.
Thanking you.
Regards Surya RamireddyHI,
You can use as many Select-options in the select statment,
Select XXXX yyyy from TABLE where FIELD In S_FIELD1 and
FIELD2 In S_FIELD2.
Regards
Sudheer -
How to get webi data into dashboard for non-users of webi.
I need to find a way to get data from a WebIntelligence Report (essentially 3 numbers: Average This Year, Average Last Year and Target This Year (eg, 40, 63, 55)) into a dashboard, where the data is refreshed each day. The resulting dashboard will be published on my external web site where anyone can access it. It is essential that a connection to the webi server is not required, so I can publish the report data to a text file on a network drive and pick it up from there. The data will change daily so this must be reflected in the dashboard.
Webi has no capability of saving to XML, so it's excel, text, csv archive or PDF only.
I have been playing with the "From Text" option in the Data tab, but changes to the data do not show when the .swf file is run. When in dashboard mode, I can click on preview to show the dashboard and the data doesn't change, however when I exit preview, the data is updated in the spreadsheet of the dashboard. It is just never reflected when the dashboard is displayed. I have dicked the refresh ever 1 minute, refresh data when opening the file, overwrite existing cells options in the External Data Range Properties page for the From Text option and am looking at the data via both a Grid object and an Spreadsheet object.
Could anyone please suggest what I am doing wrong, or anything else I may be able to try instead.
Using BO4.1, sp1, p1.
Thanks
Rodney.Hello Evans,
PLZ refer publishing webservice connection in webi
Creating BI Web Service in BO 4.0
Hope it will suits your requirement
Regards
Subbarao M -
How to get raw data into BI system from maxdb database
Hi Friends
I have a scenario where i need to get the raw data from a maxdb database into my BI system.The data is stored in the sapdata folder of maxDB.
Can you please throw somelight on it?
Thanks in advance.....................................................Hi Rajat
Please check SAP note 520647.
It explain the steps for DB Multiconnect using DBCON
Hope this helps
Ravinder -
Hi,
I have installed BC for Appraisals. I want to use extractors 0HR_PA_HAP_3 and 0HR_PA_HAP_2. In SAP R/3 RSA3 give me the results I expect (multiple appraisal documents). I get result in RSA3 with or without selection (the selection works correct).
In BW I also installed BC. Every object in the dataflow is active. When loading apraissal data I get 0 records. It does not make any difference what selection I make in the infopackage. The monitor just ends with 'no data selected'.
Does anyone know what can cause the fact that BW does not select any data while RSA3 gives results ?
ThankFor people who face a similar problem: It turned out to be an authorization problem. The RFC user who accesses R/3 and collects the data did not have sufficient right to excute this. A authorization trace lead us to this.
-
How to get Header data into multiple times along with the Line Items
Dear All,
I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.
Details is below.
Example
Header record is one
E1EDK01
E1EDKA1
Line items are two
E1EDP01
E1EDP01
I want in the flat file two records having duplicate data in the fields which is belongs to header data
Like :
Record # partner data Line item data
Record 1 : WE name1 city 00010 materialname1 156
Record 2 : WE name1 city 00020 materialname2 198
( WE name1 city - data is same in the record 1)
For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.
I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.
If any one knows , please give solution.
It is great help to me.
Thanks in Advance.
RamaraoDear Ramarao,
This will help you,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
No Documentation for Mapping Function useOneAsMany (Mapping Problem)
/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
Thanks & Regards
Agasthuri Doss -
How to get the data from multiple tabes into single table
hi all,
here i am having 10 data base tables,how to get the data into a single table.
regards,
subba reddyhi,
non XI/PI related
Regards,
Michal Krawczyk -
How to get values/data stored in the database into a list-item.
how to get values/data stored in the database into a list-item.
i tried to make a list item without any values assigned to it...but i got the below error.
FRM-30191: No list items defined for required poplist.
or
FRM-32082: Invalid value for given item type.
List EMPNO
Item: EMPNO
Block: EMP
Form: MODULE5
FRM-30085: Unable to adjust form for output.
then according to some docs, i tried the the following for the trigger
when-new-form-instance
declare
rg_name varchar2(40) := 'emp_rec';
status number;
groupid recordgroup;
it_id item;
begin
it_id := Find_Item('empno');
groupid := create_group_from_query(rg_name, 'select empno from emp');
status := populate_group(groupid);
populate_list(it_id, groupid);
end;
but yet didnt work... :(
so how the heck do i get values fetched from the database table into the list item?for list items you need to values in the record group, one is the shown value and one is the returned value.
Check out the online help for the populate_list built-in.
You'll need something like select ename,ename from emp as the record group query. -
How to get performance data out of SCOM and into a 3rd party management tool
Hi
I am creating an integration between a 3rd party management tool and System Center Operations Manager 2012 R2. I need to export performance data from SCOM into our application for both HyperV servers and virtual machines. Our application runs on
linux so I cannot do any .NET programming.
What is the best way to do this? I am aware of using the Usage SPF web service but this will not share performance data for the hyperv servers, just the virtual machines .
thanks in advanceHi,
We can use SQL query to get SCOM data out, but about how to send those data into your application, this should be related with how you develop your application.
Here is an article about Operations Manager integation, hope it helps:
http://social.technet.microsoft.com/wiki/contents/articles/12804.system-center-2012-integration-guide-operations-manager.aspx
Regards,
Yan Li
Regards, Yan Li -
Extracting data from Legacy system - How do we get the data into a normaliz
Hi All,
Requirement that I have now is to get the data from 6 different tables ORACLE database to BI using DB Connect, where in each of those 6 tables has the transactional data as well - If it is only 2 tables, would have been creating a view and get the data. Each of the 6 tables are linked to one other by the Primary Key and Foreign key relation ship.
If it is from ERP system we would have created a Functional Module.
Please advice me on how to get the data to BI end from those tables in Legacy system.
Thanks in advance.Anil:
I recommend following Ralph Kimball's EDW data modeling principles.
Have a staging layer of DSO's with data dump from source system. So have 6 different DSO's extracting data from 6 tables from source system independently.
Then have an integeration layer of DSO's depending on requirement. You could combine data from 2 or more DSO's here based on requirement and integrate your data here. Use primary key foreign key relationships here to do look ups or direct loads to do your business logic.
Then have an analytical layer of InfoCubes, MultiProviders, InfoSets as required.
The 3 layered architecture is a standard best practice that i have seen followed in many organizations. You could search for this type of architecture online under EDW (Enterprise Data Warehouse). There should be plenty of information available.
Good Luck.
MP. -
How to get purchasing data from SAP R/3 to OWB (Oracle warehouse builder).
Hi,
My name is Pavan Tata. I work as a SAP BW developer. Here is the situation at my client place. Client decided to retire BW system and wants to replace with OWB(Oracle warehouse). In all this currently we have purhchasing application in BW production system and wants to move this application to OWB for the same type of reporting what they are getting currently.
Here is my question:
How to get purchasing data from SAP R/3 to OWB(Warehouse) with initial full loads and deltas mechanism in the same way as we do in BW.
Please help on this, also send me any documentation about this if you have.
Thanks,
Pavan.Hello,
here is a short report which converts S012 entries to strings with separator semicolon. Perhaps this will help you?
Regards
Walter Habich
REPORT habitest2 LINE-SIZE 255.
TYPES:
strtab_t TYPE TABLE OF string.
CONSTANTS:
separator VALUE ';'.
DATA:
it_s012 LIKE s012 OCCURS 0,
wa_s012 LIKE s012,
strtab TYPE strtab_t,
strele TYPE string.
SELECT * FROM s012 INTO TABLE it_s012 UP TO 100 ROWS.
PERFORM data_to_string
TABLES
strtab
USING
'S012'. "requires it_s012 and wa_s012
LOOP AT strtab INTO strele.
WRITE: / strele.
ENDLOOP.
*& Form data_to_string
FORM data_to_string TABLES strtab TYPE strtab_t
USING ittab TYPE any.
DATA:
h_zaehler TYPE i,
line_str TYPE string,
l_tabellenname(10) TYPE c,
l_arbeitsbereichsname(10) TYPE c,
h_string TYPE string,
h_char(255) TYPE c.
FIELD-SYMBOLS: <l_tabelle> TYPE ANY TABLE,
<l_arbeits> TYPE ANY,
<feldzeiger> TYPE ANY.
CLEAR strtab.
CONCATENATE 'IT_' ittab INTO l_tabellenname.
ASSIGN (l_tabellenname) TO <l_tabelle>.
CONCATENATE 'WA_' ittab INTO l_arbeitsbereichsname.
ASSIGN (l_arbeitsbereichsname) TO <l_arbeits>.
LOOP AT <l_tabelle> INTO <l_arbeits>.
CLEAR: h_zaehler, line_str.
line_str = ittab.
DO.
ADD 1 TO h_zaehler.
ASSIGN COMPONENT h_zaehler OF
STRUCTURE <l_arbeits> TO <feldzeiger>.
IF sy-subrc <> 0. EXIT. ENDIF.
WRITE <feldzeiger> TO h_char LEFT-JUSTIFIED. "#EC *
h_string = h_char.
CONCATENATE line_str separator h_string INTO line_str.
ENDDO.
APPEND line_str TO strtab.
ENDLOOP.
ENDFORM. "data_to_string -
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get the Date in a particular format?
Hi,
How to get the Date in the below format? I will be passing the year in my method..
2/10/2003 9:46:52 PM
D/M/YYYY H:M:S A
public Date getDate (String year) {
Here i want to get the Date in this format
2/10/<Passed Year> 9:46:52 PM
ThanksThis is my code
public static Date getCalendar(Calendar calendar,int getYear) {
String formatted_date="";
int year = getYear;
int month = calendar.get(Calendar.MONTH+1);
int day = calendar.get(Calendar.DATE);
int hour = calendar.get(Calendar.HOUR);
int min = calendar.get(Calendar.MINUTE);
int sec = calendar.get(Calendar.SECOND);
int am_pm =calendar.get(Calendar.AM_PM);
formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
System.out.println("formatted_date is "+formatted_date);
o/p : formatted_date is 1/4/2006 1:44:21 PM
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
// DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
Date passdate = new Date();
try {
passdate = dateFormat.parse(formatted_date);
} catch (ParseException e) {
System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
return passdate;
Expected O/P is 3/1/2006 1:44:12 PM
}
Maybe you are looking for
-
Why can't I access the app catalog?
I have a Verizon palm Pre Plus and when I try to access the app catalog I get this: The action could not be completed. Try again later. When I go online and send the app to my phone and then use my phone to click the link it gives me this same messag
-
Hi, Is there any report in R12.1.1 which contains all the supplier ledger details. I have seen India- Creditors Ledger report already existing and registered under Asia/Pacific Application, can I use the same report for countries other than India. Th
-
FNDLOAD fail update parameter's value set in concurrent program
I am try to update 1 parameter's value set from one enviorment to other using the following script but that parameter is still using old value set: FNDLOAD apps1/xxx 0 Y DOWNLOAD $FND_TOP/patch/115/import/xx_afcpprog.lct XXPN_PTLAIO.ldt PROGRAM APPLI
-
Server stays to 'starting apps' after upgrade in SP11 and last kernel
Hello, So I restart and I have a problem. Server stays to 'starting apps' and the log of std_serv0 is: null
-
Safari keeps saying that the certificate for My Yahoo can't be trusted
Suddenly today when I try to sign in to "My Yahoo" I get the message that Safari doesn't trust the certificate. Is this a real problem or some glitch?