How to get data from a DSO to another
Hi!
I have two DSO created:
DSO_1
DSO_2
DSO_2 contains values that I need to transfer over to DSO 1 without any direct connection through a transformation.
These are the field in DSO 1:
CALL_ID
REQ_ID
REQ_DURATION
These are the field in DSO 2:
REQ_ID
DURATION
When the REQ_ID are the same in both DSO's, i need the value in DURATION (DSO_2) to transfer over to the Infoonbject called "REQ_DURATION" (DSO_1).
Can anyone help me, please? Is this a "bad" way of doing ut (both DSO contains about 70000 records). Is it easier just to make a transformation from DSO_2 to DSO_1, and make a routine when transfering?
Hi Helge,
Below is the Code,modify this as per your requirement !!!!!!!!!!
Declarations
$$ begin of global - insert your declaration only below this line -
TYPES : BEGIN OF TY_DSO1,
REQ_DURATION TYPE DSO1-REQ_DURATION,
REQ_DURATION TYPE DSO1-REQ_DURATION
REQ_ID TYPE DSO1-REQ_ID,
END OF TY_DSO1.
DATA : IT_TEST TYPE STANDARD TABLE OF TY_DSO1,
WA_TEST TYPE TY_DSO1.
$$ begin of routine - insert your code only below this line *-
Start Routines
IF SOURCE_PACKAGE[] IS NOT INITIAL.
SELECT /BIC/DURATION
INTO CORRESPONDING FIELDS OF TABLE IT_TEST
FROM u201CDSO2u201D
FOR ALL ENTRIES IN SOURCE_PACKAGE
WHERE REQ_ID = SOURCE_PACKAGE-REQ_ID.
ENDIF.
IF NOT IT_TEST IS INITIAL.
SORT IT_TEST BY REQ_ID.
ENDIF.
Transfer ROutine
Source Field = DURATION
Target Field = REQ_DURATION
READ TABLE IT_TEST INTO WA_TEST WITH KEY REQ_ID =
SOURCE_FIELDS-REQ_ID
BINARY SEARCH.
IF SY-SUBRC = 0.
RESULT = WA_TEST-DURATION.
ENDIF.
The field Request_duration will be updated with Duration when req ID are same for both DSO's.
You may have to change the code a bit.
Rgds
SVU123
Similar Messages
-
How to get data from BW Cube to Another File system?
Hi,
I have a requirement to get the sales data from BW system(infoCube) to another file system as XML file using XI as a middleware. Can anybody give the suggestions on this please?
Thanks & Regards,
SatishTake a look at the following document. You will get a fair idea how to integrate BW and XI.
BW > XI
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/integrate bw via xi.pdf
XI> BW
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how to push data into bw from xi.pdf
regards
SKM -
How to get data from a USB-UIRT device using Labview?
How to get data from a USB-UIRT device using Labview?
I'm trying to get data from a USB-UIRT device, is it posible with Labview?
I really appreciate your help,
thanksYou may want to contact the developer of the device for the API and DLL.
http://65.36.202.170/phpBB2/viewforum.php?f=3 -
i have three tables A,B,C. there is one to many relation between A and B. and one to many relation existed between table b and c . how will get data from these three tables
check if this helps:
select * --you can always frame your column set
from tableA a
left join tableB b on a.aid=b.aid
left join tableC c on c.bid=b.bid
This is just a general query. However, we can help you a lot more, if you can post the DDL + sample data and required output.
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to transfer data from one system to another by datamart please give de
how to transfer data from one system to another by datamart please give details
Hi Deba,
Find the below SAP help doc which may help u...
http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
Also find the below threads...
Loading data from one cube to another cube.
data copy from infocube to infocube in two different BW systems
Delta when loading from ODS to ODS
reg datamart
Data mart flag
Regards,
KK. -
How to get data from subsites list of SharePoint 2010 in ssrs
Hi,
Can someone help me on this issue.
I want to create a report using ssrs, I have some of the data in SQL and some of the data in sharepoint list.
First I need to go to SQL and get the data from the table which contains URL for the subsite in sharepoint.
after that I need to go to all the subsites and go to perticulat list in the subsites and get data from that list.
for example, their is a top level site "abc"
it contains sub site "123", "456","567", etc.. All this sub sites contain a list by name "Sample List", Now I need to go to that sub site list(Sample List) and get list-item column say "created By" which
is created on particular date.
in my report, I need to print the sub site "url/Title" which comes from SQL database and list-item column "Created By" of that sub site list "Sample List".
I tried using subreport inside a report by using "Microsoft SharePoint List" as a datasource, but when it comes to real time we don't know how many subsites will be created, so we can't create a datasource for each subsite site.
I guess we need to be using XML as a datasource, but how can we go to particular subsite in query while using XML, since all subsites have list with the same name ?
I appreciate your help.
Thank you,
KishoreHi Kishore,
SQL Server Reporting Services(SSRS) supports expression-based connection strings. This will help us to achieve the goal you mentioned in this case:
Create a new report
Create a Data Source in the report with the connection string like this:
http://server/_vti_bin/lists.asmx (We use static connection string instead of expression-based connection string now, as it is not supported to get fields based on expression-based connection string in design time. We will change it to be expression-based
connection string later)
Create the data set(as you have done using XML query language). Please use list name instead of GUID in the listName parameter.
Design the report(e.g. Add controls to the report)
Now, let's change the connection string to be expression-based. First, please add a parameter to the report, move this parameter to top. This parameter is used to store the sub site name.
Open the Data Source editor, set the connection string to be: ="http://server/" & Parameters!parameterCreatedInStep5.value & "_vti_bin/lists.asmx"
In the main report, pass the sub site name to the report we created above via the parameter created in step5
That is all.
Anyway, this is actually a SQL Server Reporting Service(SSRS) question. You can get better support on this question from:
http://social.technet.microsoft.com/Forums/en/sqlreportingservices/threads
For more information about Expression-Based connection string, please see:
http://msdn.microsoft.com/en-us/library/ms156450.aspx#Expressions
If there is anything unclear, please feel free to ask.
Thanks,
Jinchun Chen
Jin Chen - MSFT -
How to get data from Oracle using Native SQL in SAP.. Problem with date
Hi Masters.
I'm trying to get data from an Oracle DB. I was able to connect to Oracle using tcode DBCO. The connetion works fine
I wrote this code and it works fine without the statement of where date > '01-09-2010'
But i need that statement on the select. I read a lot about this issue, but no answer.
My code is (this code is in SAP ECC 6.0)
DATA: BEGIN OF datos OCCURS 0,
id_numeric(10),
component_name(40),
comuna(10),
record_id(10),
status,
sampled_date(10),
END OF datos.
DATA: c TYPE cursor.
EXEC SQL.
connect to 'LIM' as 'MYDB'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'MYDB'
ENDEXEC.
EXEC SQL PERFORMING loop_output.
SELECT ID_NUMERIC, COMPONENT_NAME, COMUNA, RECORD_ID, STATUS, SAMPLED_DATE
into :datos from lims.SAMP_TEST_RESULT
where date > '01-09-2010'
ENDEXEC.
EXEC SQL.
disconnect 'MYDB'
ENDEXEC.
How can i get the data from that date?? If i delete the where statemet, the program works well, it takes 30 mins and show all the data, I just need the data from that date.
Any help
RegardsPlease refer the example in this link which deals with Oracle date format.
You can finnd a command DECODE which is used for date formats. If you have a look at whole theory then you will get an idea.
Link:[Bulk insert SQL command to transfer data from SAP to Oracle|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bulk-insert-sql-command-to-transfer-data-from-sap-to-oracle-cl_sql_connection-3780804] -
How to get data from a table in a condition between twomonth
hai friends
I have a query that is i want to get data from a table based on a condition between two months in a format of char column
Ex
I have a column called from_month in the format of 'mon/yyyy'(already converted from date')
then the second column is to_month in the same format 'mon/yyyy'
now i wiil select from_month and to_month like
from month jan/2009
to month mar/2010
how to use between of two months in the format of char.Please tell me how to get two different month between data.Hi,
This may be of help.
Remember Pointless has made a point ;) (worth millions)
If possible , DO NOT store dates as strings or numbers.Let dates be dates.
WITH dat AS
(SELECT ' THIS IS JAN' x,to_char(to_date('01-JAN-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS FEB' x,to_char(to_date('01-FEB-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS MAR' x,to_char(to_date('01-MAR-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS APR' x,to_char(to_date('01-APR-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS MAY' x,to_char(to_date('01-MAY-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS JUN' x,to_char(to_date('01-JUN-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS JUL' x,to_char(to_date('01-JUL-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS AUG' x,to_char(to_date('01-AUG-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS SEP' x,to_char(to_date('01-SEP-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS OCT' x,to_char(to_date('01-OCT-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS NOV' x,to_char(to_date('01-NOV-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual)
SELECT * FROM dat
WHERE to_date(y,'mon/yyyy') BETWEEN to_date('01 jan 2009','dd mon yyyy') AND to_date('01 mar 2009','dd mon yyyy')Cheers!!!
Bhushan -
How to get data from a file?
Hello everyone, i'm new to this forum and to java too. Ok, so here is what i want to do:
I want to get data from a file containing words and numbers and store them into variables that i will use them after to insert into a database table. For example i have a file called employees.txt in this form:
eid ename zipcode Hire_date
1000 "Jones" 67226 "12-DEC-95"
In C++ i declare variables for each data and store them, for example in this case:
ifstream in("somefile");
string name, hdate;
int eid, zip;
in >> eid >> ename >> zip >> hdate;
So i want to do the same thing in JAVA but i can't make it work. So, i would appreciate if someone could give me a simple example how to do it. Thank you.[http://java.sun.com/docs/books/tutorial/essential/io/index.html]
-
How to get data from PDF form?
PDF forms can send data in url like GET or POST method. Is it possible to get data from url, like in PHP http://sever/file.php?item1=value1&item2=value2&item3=value3
In APEX url have specific construction and I don't know how to get value of items (1...3)
Please let me help to find simple method of geting data from URL.
Best Regards,
MarkThe APEX URL syntax is detailed here
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BCEDJBEH
How to get it from PDF is another matter...
I'm working on an app that downloads PDFs with a Large amount of data as a blob, takes that blob and changes it to XML, then goes through the xml to validate each section of data and then add it into the schema that my apex app is referencing....
I didn't write the original code but I do know that it isn't a quick thing to implement and includes using some uploading some java jar files to your schema and writing some custom java code.
Someone else may be able to help with grabbing PDF data into the URL for the amounts of data you want to pass to apex.
Gus..
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!
Edited by: Gussay on Sep 21, 2009 5:52 PM -
Any helpful materials or sample on how to get data from lotus in SAP?
I have some experience on get data from Biztalk (Microsoft Middleware). In that case, i could using "call FMxxxx DESTINATION rfc". the destination with type TCP/IP is created via SM59.
and how about lotus ?
thsI have some experience on get data from Biztalk (Microsoft Middleware). In that case, i could using "call FMxxxx DESTINATION rfc". the destination with type TCP/IP is created via SM59.
and how about lotus ?
ths -
Without NI DAQ device- how to get data from MSP into labVIEW and process it
Hi,
I do not have an NI DAQ device. I have an MSP430 and my sensor is an ADXL335 Accelerometer. How do I get data from my MSP into labVIEW and process it?
Just looking for a nudge in the right direction. I'm having a hard time finding resources on labVIEW that don't involve NI specific DAQs.
Thanks in advance,
AzizThere are many ways to get data into LabVIEW that do not involve NI-DAQ devices.
I think your easiest option would be to stream it via serial port if the data rate isn't too fast.
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle -
How to get data from PostgresSQL to Oracle 11g
I have a general idea on the topic but need more information on the procedure to get data from Postgres (version 8.2 on Linux) database to Oracle 11g (on AIX Unix). Thanks very much in advance!
You need to configure DG4ODBC (=Database Gateway for ODBC). When you install it on a 64bit OS (for example on the same machine as your Oracle database), then it requires a 64bit Postgres ODBC driver. If you install it on a 32bit machine (for example on a 32bit Linux), then you need a 32bit Postgres ODBC driver. Commonly on Unix you also need to install a matching ODBC Dreiver Manager (for example you can get it from www.unixodbc.org) when Postgres doesn't ship one with their driver.
A note describing the DG4ODBC configuration can be found on My Oracle Support:
How to Setup DG4ODBC on Linux x86 32bit (Doc ID 466228.1)
and
How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) (Doc ID 561033.1) -
How to get data from php to java via xmlrpc
I have been trying to get data from php through apache xmlrpc to java.
I do get an value as result. The result is "Array". How how do i convert the XMLRPC Object "Array" to Java Object?
Inside the XMLRPC "Array" Object there is object too of type Array from php.
See code for java here
Object result = client.execute( "blogger.getCategories", params1 );
Code from php here
function getCategories($appkey, $username, $password)
global $xmlrpcerruser, $xmlrpcI4, $xmlrpcInt, $xmlrpcBoolean, $xmlrpcDouble, $xmlrpcString, $xmlrpcDateTime, $xmlrpcBase64, $xmlrpcArray, $xmlrpcStruct, $xmlrpcValue;
$structArray = array();
$structArray[] = new xmlrpcval(array("one" => "test"));
return new xmlrpcresp(new xmlrpcval( $structArray , $xmlrpcArray));
I do get Standard String and Integer from php to Java through XMLRPC.
Can someone help me.
Edited by: Electron32 on Aug 13, 2010 9:44 AMThat is what is so strange. I return an 'array' through xmlrpcval() and in Java I tried to cast it to ArrayList, Vector,String[] but get an error
Object[] result = (Object[]) client.execute( "blogger.getCategories", params1 );
String[] array = (String[]) result;
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
at com.dirdalit.window.Main.main(Main.java:41)
Edited by: Electron32 on Aug 13, 2010 12:25 PM -
How to get data from external source
Hi experts,
I want to get data from a different source e.g. from oracle. How can i get the data in BW??
SamHi Samir
there are different interfaces are available according to the source system.
For Oracle source system you can use DB connect interface.
you can extract data from several data sources to BI
File Interface:: Using this interface, you can access files in ASCII format or CSV format
DB Connect :: You use DB Connect to open other database connections in addition to the default connection and use these connections to transfer data from tables or views into a BI system.
UD Connect :: UD Connect (Universal Data Connect) uses the Application Server J2EE connectivity to enable the reporting and analysis of both SAP and non-SAP data. Using UD Connect, you can access all relational and multidimensional data sources. UD Connect transfers the data as flat data.
BI Service API ::
Web Service for Staging ::You use the Web service to write the data from the source into the PSA. The transfer of data is controlled externally, without placing demand on BI.
You can use this interface in conjunction with real-time data acquisition.
Please assign points if this info helps.
Regards
Vivek..
Maybe you are looking for
-
The first page doesn't open properly
When I updated Fireforx to the 5th version, it now doesn't work properly. To open th1st page it takes ages and then the small window comes out with the message that scenario: chrome:/tavgp/content/libs/include/js:595 is busy or doesn't answer, then I
-
How can you create an activity as subsequent act. of more than one activity
Hi. I want to create an activity as subsequent activity of more than one activity. I am using FM CRMXIF_ORDER_SAVE, but if I write data structure CRMXIF_DOC_FLOW with more than one item the system shows the error CRM_COPY 010 More than one predecesso
-
On Friday, 9/17 @ 7 am, after deselecting Windows 2003 in products, I ran Server Cleanup Wizard (as well as sqlcmd -I -i"WsusDBMaintenance.sql" -S "np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query"), and 0 bytes were freed which I thought odd. I then se
-
Email sent but no copy in "sent" box?
I've replied a email through company email account on my iphone. I am sure it is sent and there is a replied arrow displayed on the original mail. However it is not shown in the "sent" mail box, not on the phone, not on the server. Can anybody adivce
-
When is the error regarding option changes being reset going to be fixed?
I keep getting an error message that there have been changes to the options detected and do I want to allow this. No matter how I answer the default opening pages are erased. I do not have babylon installed. I have reinstalled Firefox 17 three times