Data from all servers
Hi All,
I need to develop a report which will run indevelopment system but need to fetch the data from all the servers( Dev, Qual and Prod) for the given selection, same need to run as batch job.
How to proceed plz help me.
Regards,
Venkanna
Hi
Try this code :
Get the catalogue flag based on destination
systemid = sy-sysid.
IF ( systemid = 'ADW' OR systemid = 'TDW' ).
l_dest = 'BSD320'.
ELSEIF ( systemid = 'ACW' OR systemid = 'TCW' OR systemid = 'TC2' ).
l_dest = 'BSQ521'.
ELSEIF ( systemid = 'APW' OR systemid = 'TPW' ).
l_dest = 'BSP920'.
ENDIF.
*Get the catalogue flag from SRM
CALL FUNCTION 'ZBBP_SC_DETAILS'
DESTINATION l_dest
EXPORTING
date_from = s_badat-low
date_to = s_badat-high
co_code_from = s_bukrs-low
co_code_to = s_bukrs-high
prod_cat_from = s_matkl-low
prod_cat_to = s_matkl-high
pur_grp_from = s_ekgrp-low
pur_grp_to = s_ekgrp-high
pur_org_from = s_ekorg-low
pur_org_to = s_ekorg-high
TABLES
t_crmd_orderadm_h = lt_crmd_orderadm_h
t_crmd_orderadm_i = lt_crmd_orderadm_i
t_bbp_pdbei = lt_bbp_pdbei
t_bbp_pdigp = lt_bbp_pdigp.
LOOP AT lt_crmd_orderadm_h.
LOOP AT lt_crmd_orderadm_i WHERE header = lt_crmd_orderadm_h-guid .
READ TABLE lt_bbp_pdbei WITH KEY guid = lt_crmd_orderadm_i-guid
BINARY
SEARCH.
IF sy-subrc EQ 0.
lt_sc_cat-sc_no = lt_crmd_orderadm_h-object_id.
lt_sc_cat-posnr = lt_bbp_pdbei-be_obj_item.
READ TABLE lt_bbp_pdigp WITH KEY guid = lt_crmd_orderadm_i-guid
BINARY
SEARCH.
IF sy-subrc EQ 0 AND lt_bbp_pdigp-catalogid IS NOT INITIAL.
lt_sc_cat-catalogue = c_x.
ENDIF.
APPEND lt_sc_cat.
CLEAR lt_sc_cat.
ENDIF.
ENDLOOP.
ENDLOOP.
here the rfc fm has to be written in the qlty and prd servers and have to be called from dev to get the data.
check in sm59 if rfc connection is working properly ...Hope it helps!
Similar Messages
-
Select data from multiple servers(instances)
Hi All,
Is possible that we can login to SQLPLUS of one server and be able
to select data from other servers. For MSSQL server we can use
opendatasource but I don't know if in ORACLE we can
get the data from other servers by login to SQLPLUS of one server.
Your help is greatly appreciated.
Thanks in advance for your response.
JPHi,
Please try this ...
DATA: BEGIN OF ITAB1 OCCURS 0.
INCLUDE STRUCTURE A_TABLE.
DATA: END OF ITAB1.
DATA: BEGIN OF ITAB2 OCCURS 0.
INCLUDE STRUCTURE B_TABLE.
DATA: END OF ITAB1.
DATA: BEGIN OF ITAB3 OCCURS 0.
INCLUDE STRUCTURE C_TABLE.
DATA: END OF ITAB3.
SELECT *
INTO TABLE ITAB1
FROM A_TABLE
WHERE A_ID IN S_A_ID.
SELECT *
INTO TABLE ITAB2
FROM B_TABLE
WHERE A_ID IN S_A_ID.
SELECT *
INTO TABLE ITAB3
FROM C_TABLE
WHERE A_ID IN S_A_ID.
To download to PC or application server, please check this sample codes.
http://www.sapdevelopment.co.uk/file/file_downloadpc.htm
http://www.sapdevelopment.co.uk/file/file_downloadsap.htm
Regards,
Ferry Lianto
Please reward points if helpful. -
Can we export DATA from all tables in a schema?
Hi,
I have a question; Can we export all the DATA from all the tables present in the schema to any source (eigther CSV, TXT, DAt, etc..)?
Or
Can I have a PL/SQL procedure to display DATA from all Tables in a schema?
With Best Regards,
- NaveedHi,
This is pretty much what you need.
DECLARE
V_COUNT NUMBER;
v_sql varchar2(1000);
IN_OWNER_NAME VARCHAR2(100) := 'AP' ; -- SCHEMA NAME
TYPE T_COL_NAME is table of varchar2(1000) index by binary_integer;
v_col_tbl t_col_name;
BEGIN
FOR i in
(SELECT object_name
FROM dba_objects
WHERE owner = IN_OWNER_NAME
AND object_type ='TABLE'
and rownum < 2)
LOOP
v_sql := 'SELECT COUNT(*) FROM ' || i.object_name ;
EXECUTE IMMEDIATE v_sql INTO V_COUNT;
if v_count > 0 then
v_sql := 'SELECT * FROM ' || i.object_name ;
select column_name
bulk collect
into v_col_tbl
from DBA_TAB_COLUMNS
WHERE TABLE_NAME = I.OBJECT_NAME
AND OWNER = IN_OWNER_NAME;
-- start selecting the column and exporting using the column names selected.
end if;
if v_col_tbl.count > 0 then
for i in v_col_tbl.first .. v_col_tbl.last
loop
DBMS_OUTPUT.PUT_lINE(v_col_tbl(i));
end loop;
end if;
DBMS_OUTPUT.PUT_lINE( i.object_name || '-' || v_count);
END LOOP;
END;
- Ronel -
Return data from all columns apart from a certain data type.
Bit stuck on something, hope somebody here can help:
I want to do a 'select * from ' a table, to return all columns except ones of a certain datatype. ie. I want to return data from all columns, excluding columns of datatype 'SDO_GEOMETRY'.
This gives me the list of columns:
SELECT COLUMN_NAME
FROM USER_TAB_COLUMNS
WHERE TABLE_NAME = 'ORDER_ITEM'
AND DATA_TYPE <> 'SDO_GEOMETRY'; But I can't seem to take it any further...
Now if I knew the columns beforehand, then of course I could just list them, excluding the geometry column, but this is to be used for a plug-in for MS Word, where a user can pick database columns to dynamically fill a report from - but I don't want the geometry columns as these can't be handled in this way.Hi Reggie,
> connects to the database and presents a list of tables
My guess is that this macro is written so it selects from all_tab_cols.
Change that plugin and let it select from a view like the one above. That way, the users won't be able to see/pick anything that you are not able/willing to present for them.
Edit:
You could even tease your users, and let them see the columns, but not being able to pick them.
create or replace view available_tab_columns
as
select decode(pickable.data_type, null, 0, 1) pickable
,atc.* -- narrow down yourself
from all_tab_cols atc -- or maybe user_tab_cols
,(select 'CHAR' data_type from dual union all
select 'DATE' from dual union all
select 'NUMBER' from dual
-- complete positive list, yourself
) pickable
where atc.data_type = pickable.data_type(+);Regards
Peter
Message was edited by:
Peter Gjelstrup -
Acquiring data from all the analog channels of NI-3202 NODE using a single sensor
Hi all,
I would like to know that can i be able to get the data from all the four analog channels of NI-WSN node 3202(analog input node) connecting only single sensor on the analog input and connecting all the remaining analog inputs using wires and also shorting the ground pins corresponding to each analog input pin.
By configuring the each channels like 0.5 sec delay for every analog channels to acquire data. can we get the sensor data from all the channels by doing this. basically here i am trying to increase the minimum sampling rate of the ni-wsn NODE 3202 which is 1s.
I this approach is correct or we cannot do this.
ThanksStefan,
In terms of differential and RSE, channels 0-8 should default to differential when using test panels. Differential needs two input channels to function correctly and these channels must be spread apart by 8 channels. (i.e channels 0 and 7 are a differential pair) Channel 13, on the other hand, will default to rse if chosen as the reading channel because there does not exist another channel that is eight away. I am not quiet sure if the virtual channels will default channel 5 into being differential but I will check into it. If it is differential as default then you may run into problems since channel 13 is utilized in both strain gauge reads.
"The second question is, if we can also use the "voltage" setting for measuring strain gauges? we did that in the past, using LabView 6.2."
If you are referring to "voltage" as acquiring a signal with custom voltage with exciation then I would reccomend using example in LabVIEW called Acq Wheatstone Bridge Samples (with Calibration). This can be found by navigating to LabVIEW's example finder and expanding Hardware Input and Output>>DAQmx>>Analog Measurements>>Strain.
I have also included some useful links that may provide more insight into the SCC modules as well. Also, what is the excitation voltage and power that your strain gauges are expecting?
SCC Tutorial Series: SCC-SG0x
SCC Example Series: SCC-SG0x
Using the SCC-SG11 Shunt Calibration Module
Thanks,
Gio L.
Digital Support - Product Manager
National Instruments -
Select data from all the table names in the view
Hi,
"I have some tables with names T_SRI_MMYYYY in my database.
I created a view ,Say "Summary_View" for all the table names
with "T_SRI_%".
Now i want to select data from all the tables in the view
Summary_View.
How can i do that ? Please throw some light on the same?
Thanks and Regards
Srinivas CheboluSrinivas,
There are a couple of things that I am unsure of here.
Firstly, does your view definition say something like ...
Select ...
From "T_SRI_%"
If so, it is not valid. Oracle won't allow this.
The second thing is that your naming convention for the
tables suggests to me that each table is the same except
that they store data for different time periods. This would be
a very bad design methodology. You should have a single
table with an extra column to state what period is referred to,
although you can partition it into segments for each period if
appropriate.
Apologies if i am misinterpreting your question, but perhaps
you could post your view definition and table definitions
here. -
Hi,
I have a sitecollection named sitecollectionA....
There are 3 subsites under this site collection named as site A, site B, site C
and there are many libraries present in these subsites.
I want to fetch the items from all the libraries present in site B ONLY.
My custom webpart is in site B.But I am not able to fetch the data from this particular site(site B).
I am using SPSiteDatauery....but getting nothing with below scopes-
query.Webs = "<Webs Scope=\"Recursive\" />"; ---- this gives data from all subsites and their subsites
query.Webs = "<Webs Scope=\"\" />"; - ----this gives data from only the top level subsite of sitecollectionA
Below are few lines from my code.....
SPSiteDataQuery query = new SPSiteDataQuery();
query.Lists = "<Lists ServerTemplate=\"101\" />";
query.Webs = "<Webs Scope=\"\" />";
Please help...Got the answer....
I defined my site collection object like below and it worked.
SPSite site = new SPSite(SPContext.Current.Web.Url); -
How to import data from all excel worksheet ?
hi
I want to import data from excel worksheet. There is a fm ALSM_EXCEL_TO_INTERNAL_TABLE but it read data only from "actual" sheet. How can I
read data from all exel spread sheets ?
krzysHi,
check this code, this is gathered from one of the thread.
report zole123.
INCLUDE ole2incl.
DATA: count TYPE i,
application TYPE ole2_object,
workbook TYPE ole2_object,
excel TYPE ole2_object,
sheet TYPE ole2_object,
cells TYPE ole2_object.
CONSTANTS: row_max TYPE i VALUE 256.
DATA index TYPE i.
DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
DATA: BEGIN OF itab3 OCCURS 0, place(50), END OF itab3.
*START-OF-SELECTION
START-OF-SELECTION.
APPEND: 'name1' TO itab1, 'surname1' TO itab2,
'worli' TO itab3,
'nam2' TO itab1, 'surname2' TO itab2,
'chowpatty' TO itab3,
'name3' TO itab1, 'surname3' TO itab2,
'versova' TO itab3,
'name4' TO itab1, 'surname4' TO itab2,
'grant road' TO itab3,
'name5' TO itab1, 'surname5' TO itab2,
'gaon' TO itab3,
'name6' TO itab1, 'surname6' TO itab2,
'mahim' TO itab3.
CREATE OBJECT application 'excel.application'.
SET PROPERTY OF application 'visible' = 1.
CALL METHOD OF application 'Workbooks' = workbook.
CALL METHOD OF workbook 'Add'.
CREATE OBJECT excel 'EXCEL.APPLICATION'.
IF sy-subrc NE 0.
WRITE: / 'No EXCEL creation possible'.
STOP.
ENDIF.
SET PROPERTY OF excel 'DisplayAlerts' = 0.
CALL METHOD OF excel 'WORKBOOKS' = workbook .
SET PROPERTY OF excel 'VISIBLE' = 1.
Create worksheet
SET PROPERTY OF excel 'SheetsInNewWorkbook' = 1.
CALL METHOD OF workbook 'ADD'.
DO 3 TIMES.
IF sy-index GT 1.
CALL METHOD OF excel 'WORKSHEETS' = sheet.
CALL METHOD OF sheet 'ADD'.
FREE OBJECT sheet.
ENDIF.
ENDDO.
count = 1.
DO 3 TIMES.
CALL METHOD OF excel 'WORKSHEETS' = sheet
EXPORTING
#1 = count.
perform get_sheet_name using scnt sname.
CASE count.
WHEN '1'.
SET PROPERTY OF sheet 'NAME' = 'firstName'.
CALL METHOD OF sheet 'ACTIVATE'.
" add header here
LOOP AT itab1.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Formula' = itab1-first_name.
SET PROPERTY OF cells 'Value' = itab1-first_name.
ENDLOOP.
WHEN '2'.
SET PROPERTY OF sheet 'NAME' = 'LastName'.
CALL METHOD OF sheet 'ACTIVATE'.
" add header here
LOOP AT itab2.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Formula' = itab2-last_name.
SET PROPERTY OF cells 'Value' = itab2-last_name.
ENDLOOP.
WHEN '3'.
SET PROPERTY OF sheet 'NAME' = 'place'.
CALL METHOD OF sheet 'ACTIVATE'.
" add header here
LOOP AT itab3.
index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'Formula' = itab3-place.
SET PROPERTY OF cells 'Value' = itab3-place.
ENDLOOP.
ENDCASE.
count = count + 1.
ENDDO.
Save excel speadsheet to particular filename
GET PROPERTY OF excel 'ActiveSheet' = sheet.
CALL METHOD OF sheet 'SaveAs'
EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
#2 = 1. "fileFormat
Note: to make headings, change the -1 to +1 where specified in the above code and add the following where i have mentioned to add it
index = row_max * ( sy-tabix - 1 ) + 1.
CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
SET PROPERTY OF cells 'value' = header1.
Reward for helpful answers
Thanks
Naveen khan -
Getting data from two servers?
Experts-
We have two servers for storing tables . 1. Historical server 1.Current Prod server
We have same tables in both server databases.
All the info prior to a month of current date is stored in Historical server database tables
and the rest in current prod server dtabase tables.
I have to build reports such that, when user enters a date, OBIEE has to check if the date is in a month period(30 days) of todays date or earlier to 30 days, based on this, it has to get the data from historical server database tables / current prod server database.
How can I implement this?
Do I need to create two connction pools(folders in rpd) and develop same Model twice?(One for historical tables and one for prod tables?)
or Can I use fragmentation technique? if so, Can you give me an Idea hwow to implement Fragmentation for this requirement?
Thanks for your help in advanceYou should use fragmentation for this requirement. It's not that hard once you've understood the basic principle. Read Nico's article here for the detail:
http://gerardnico.com/wiki/dat/obiee/fragmentation_content
The only non-standard bit for you will be to set the fragmentation criteria on your logical table sources. This is the part that tells BI server which source to hit.
Post back here if you get stuck.
Paul -
Transferring data from different servers of different versions.
I have got data on Oracle 7.3 on one server and i want to
transfer it to the another server on another location having
version 8.1.5 . Both of these servers can be connected and
communicated properly. My problem is how to transfer this data?
I have tried export from 7.3 but it is unable to import at
8.1.5, giving an error.Hi Yayati,
this can be done and follow the below logic.
Create an RFC to fetch the data you need and the tables parameter will have the table which will have all the fetched data. After creating this RFC in dev move it to QA.
The create a Program and call this RFC inside the program. The program should also have logic to fetch the data from the current system. After the RFC is executed you will now have data from both the system and all you have to do is to display it.
move this program to QA as well.
The RFC destination should vary as shown below.
IF SY-SYSID EQ <Dev system id>.
RFC destination <Quality system>.
ELSEIF SY-SYSID EQ <quality system id>.
RFC destination <Dev system>.
ENDIF.
Please let me know if you require further clarifications.
<removed by moderator>
Regards,
Praveenkumar T.
Edited by: Thomas Zloch on Feb 14, 2012 -
Client reads data from 2 servers parallely
Hej
I wonder if someone can help me. I wrote server/client program there client read text file fr server.
I don't know khow to make client to read from 2 servers files parallelly - same time. I suppose I must start 2 threads i client program that reads servers.
thanksso the server reads something from a file and them writes it to clients connected to it write?
well, first of all, if you have not done, make the server accept multiple connections (if you dont know how, heres a start: http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html )
now, if you already know how to do that, the client side is far easier:
create a thread that creates, connect and communicate with the server... -
New printer prints fine from web, gets stuck sending data from all Adobe CS2 programs
I'm trying to print envelopes on a Lexmark x5650 I just bought. Things can print just fine from all sources but as soon as I try to print from InDesign CS2 the print manager just shows "sending data" and doesn't do anything else. In fact, the same thing happens from all Adobe programs. If I pause the job and start it again then it gets stuck "opening printer connection". I deleted all my other printers so there weren't any other print jobs anywhere else. Help me please!
Side note, when I reinstall the printer the help assistant it tells me at one point that there are print jobs running and I have to cancel them to fnish the install. For the life of me I cannot find this print job, it's no where to be seen in the system preferences printer section.If you did not, then that's the reason it isn't working. Do it. Make sure that the specific printer is selected in Page Setup and then check the Printer Features under the Printer button.
Ignore the dire warnings that pop-up when you click those buttons.
It should not be necessary to go to PDF first.
Dave -
How to select data from all HR Master Tables(PA0000 to PA****)
Hi Gurus!
My requirement is to pick the changedon(AEDTM) , changedby(UNAME) and reason for change(PREAS) from all tables (pa0000 to pa****)of HR in which he made any change during a specific date.
Now if it is specific for two or three tables then inner join can solve it. but now it is the matter of picking data from maximum 9999 tables for which inner join will not be accurate.
plz suggest me any appropriate way to solve it out. or there is any table which store the changes in All HR Master Tables.
Thanking in Advance.
Tahir NaqqashHi,
it is very tidious to get it in one go, as u know hr tables contains huge data.
You can chack my wiki in https://wiki.sdn.sap.com/wiki/x/XYC0Aw .
Here you need to make the following modification.
1. in the selection screen set on date range with select option.
2. in the select query, change select * by ur specified fields.
3. change dynamic internal table and ALV as per ur required fields
In this way you have to put the table name and the date range and will get the data.
for repeation u can call the same job in background again and again store data in a seperate internal table and display finaly ..... but huge chance of getting 'Time Out ' error in that case for comparetively large day gap.
Regards,
Anirban -
Will upgrading to windows 10 delete the data from all drives
A notification for upgrade to windows 10 is available for my mentioned notebook. I've never upgraded to a newer version of windows earlier so i wanna be sure if the upgradation would delete all the data from each drive(i.e. windows drive"c" along with D,E and F)) and what is the total amount of NET-DATA(in MB) will be used for Upgrading online..so that i might not run out of data balance during upgradation process. One more thing..currently the windows 10 logo has arrived at the bottom right of my task bar. Do REPLY asap!!!
Always back up your data when upgrading! It will only if you tell it to during setup. I would not upgrade untill you have backed up important data manually (copy>paste) to another external hard drive.
-
Please delete my Adobe account and remove all my data from your servers
As above.
Thank you.No one here has that ability, and I don't know if Adobe Support can even do that but thast is where you need to connect to for your best shot at realizing it.
For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
Adobe ID and registration chat support (non-CC)
http://helpx.adobe.com/x-productkb/global/service-c1.html ( http://adobe.ly/19r6ZDp )
Maybe you are looking for
-
I get this message when I try to open cr2 images in bridge camera raw is not enabled. Camera raw requires that a qualifying product has been launched at least once to enable this feature. I also noticed that the thumnail previews are not sharp eve
-
Just upgraded to Leopard. Can't get Flash content to play. Have tried removing preference files and changing text in files as suggested on other forums. What's the fix?
-
Resize and display large images at high frame rate.
Hi, I am looking for some suggestions on how to implement fast image display. I have a device which creates 3000x3000 data arrays which I then convert into images. The device can output this data at anywhere from 5-50fps. For display these are then r
-
Creation date used during ingest File Rename incorrect
Hi System: Windows 7 64-bit SP1 Prelude CC v2.0.1 (118) I've been using Prelude about 9 months now and have got used to it's foibles. Hopefully some of these are being addressed for future releases. But the recent update seems to have introduced som
-
I have been using CS6 Dreamweaver on my laptop running Windows 8 for a about a month or so. Just recently, when I try to open up Dreamweaver, it failts to load. Once I click on the Dreamweaver to open, it begins to load and fails right when it gets t