Pulling/Extracting Data from Multiple SAP Systems - Scripting, ABAP?
Hello All,
I am working as an analyst for a large company that has multiple SAP installations across the world. What I am trying to do is create some global reporting metrics based on data from all of those systems on an ad-hoc basis without having the other units send the data to a central repository. I can receive access to all of the systems but I am unsure how to pull the data. The access to one of the systems I have currently does not allow the use of ABAP or RFC but does allow scripting. If I have a good business case I could ask for ABAP access and RFC as well.
I have researched and read through many posts and articles within the forums but I am yet to find a solution. I have experience in VB, VBA, and MS Access.
Can anyone suggest any ways to move forward?
Thanks!
According to my understanding, you may use vba in your excel or a just vb by programming against rfcsdk(librfc32.dll) or the newly nwrfcsdk, or use jco or nco..., but all these method are based on rfc function call.
You may write a simple abap side data extraction agent, just a function select some table with the data you interest, and then call this function from outside regularly, then you may save the returned table to a csv then bcp to sqlserver(c + batch), or just write to excel sheets(vba).
The simple table read function you may check RFC_READ_TABLE, but it has some limits and are not released. The more functional agent is also can be found from other vendors, eg ms sqlserver2005 kit`s sap adapter...
I do not have idoc or services experience, maybe in that senerio you will find a easier solution.Good luck, you may reach me at <b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
Similar Messages
-
Looking for SAP solution to extract data from the production system
Hello,
we are looking for the SAP standard tool to extract data from the production system and copy it to the development system. It should be as functional as some kind of partial client copy. The data, which we need to replicate is master and transactional data from FI, CO, AA MM and nice to have FS-RI modules. There is a product offered by the IntelliCorp called "Data Management" but we would like to know if SAP offers its own product.
Kind regards,
Krzysztof MurkowskiHi,
SAP offers a solution called 'Test Data migration Server' or TDMS.
You can access the master guide from the below link:
https://service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700006332942006E
Cheers !!
Satya.
PS: Pls reward points if the answer was helpful...Thx. -
JDBC-XI-FILE scenario. How to extract data from multiple tables
Hi,
At this moment I didn't have the access for XI system. So here I have some silly question. Could you please clarify the same ??
If I got to extract data from single table using JDBC adapter I can put the below query in communication channel
SELECT *FROM orders WHERE new='true'.
But if I got to extract data from multiple tables, logic to be used should be like as shown below. ( from previous thread------prabhu).
SELECT <Table_2>.EID, <Table_2>.FName, <Table_2>.LName, <Table_1>.REC_DAT, <Table_1>.DESCRP
FROM <Table_1> INNER JOIN <Table_2> on
<Table_1>.CARDNO = <Table_2>.CARD
where REC_DAT = <condition>
union
SELECT <Table_2>.EID, <Table_2>.FName, <Table_2>.LName, <Table_1>.REC_DAT, <Table_1>.DESCRP
FROM <Table_1> INNER JOIN <Table_2> on
<Table_1>.CARDNO = <Table_2>.CARD
where REC_DAT = <condition>
But my query is ........how to put the above entire code in one line. (i.e in Qery place of communication channel ) ??
Thanks
KumarHi Palnati,
You either use a select query with join or a stored procedure which will contain the logic to extract the data from multiple tables. But, the limitation in case of stored procedure is u can hv only one selct query in it.
You write ur actual query provided in the parameter 'Query SQL Statement". u can also wrt a stored procedure in it. Also, u can provide a update statement in it which will update a certain flag so tht u don selct the data again.
Check the following link
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm</a>
Regards,
Akshay
Message was edited by:
Akshay Salunke -
Accessing data from other SAP system
Hi experts
I need to access data from one SAP system from other. My requirement is , perform applications (programs) in some SAP system, but using/accessing data from other SAP system .
For example, when we press F4 we get the match code (search help) for the field ; that window is alredy created by SAP and it shows the data for that field . Of course the application (ike any other program/application) read the data from the SAP system is being executing ; well i need execute that match code but show (taking) the data from other SAP system; i not refer to other MANDT in same system but other SAP system.
The communication between SAP1 system and SAP2 system is already created from BASIS.
My doubt is how can i execute that standard application (search help) but 'invoke' to standard application this take data from other system ?
I guess i can create Z search help wich call a Z Function (RFC) to get the data required from the other system ;
or maybe enhance the standar search help to call that Z RFC ; but standard application search help is already created and this access the data in several ways or places of code , and this has severals sub-windows and search features ; and i just need execute exactly same search help but accesing data from the other SAP system ; so my doubt is, is there some way to indicate to SAP the applications always (wherever) these applications acces the data do it but from other SAP system,
like if we 'redirect' the Data Base to other SAP system.
SAP1 applications are being executing -
> but all data (records) are taking from SAP2
Maybe the first suggestion is simply why do not we execute applications in SAP2 instead SAP1 , that's because the version package in SAP2 system (where we have the data) does not support some (non SAP) applications we need to use.
Excuse the long thread. Does somebody can help, any idea ?
Best Regards
FrankHi Frank,
Below are my thoughts, these are only conceptual and haven't had an opportunity to try these possibilities, also not sure if this is the right thing.
1) Create an entry in DBCON using TCode: DBCO for the Database of system SAP2. Now in the application of SAP1 use the "SET CONNECTION" construct as the very first statement, so that consecutive SQL statements will point at the DB of SAP2.
2) I have read somewhere that the Work Processes are connected to the Default database and i am not sure if you can change this setting, but if you can and provided you have have multiple application servers in your SAP1 landscape, then pick one of the application servers and change the settings on the WP to point at the DB of SAP2, you have the end users login to this particualr app server.
3) If there are multiple app servers in SAP1 landscape, then choose one of the app servers and change the default database setting to point at DB of SAP2.
Regards,
Chen -
Migrate Closed Sales Data from one SAP system to Other
Hi,
We have a requirement to migrate Closed Sales Order data from one SAP System to the New SAP system.
Please share your thoughts on the considerations / DOs and Donts for such cases.
Appreciate your response.
Kind Regards,
TanujiHi,
If you want to migrate closed SOs..then first consider why? and from what date i.e how long back?
Following are the considerations:
1) You can't get the creation date same as your previous system dates--this might lead to incorrect reporting. So you'll have to check if its really worth?
2) You might want to have a reference no somewhere in the new transactions from the previous system.
3) If you want to migrate the deliveries, invoices then you've to consider also GL migration as well as payments.
Regards,
Raghu. -
How to extract data from multiple tables (always got errors)
Dear Experts,
I have a simple mapping to extract data from multiple tables as a source (A, B, C) to a target table (X). Below is the picture:
(Sources)....(Target)
A----------------***
B----------------X
C----------------***
Sample Source Data:
Table A:
ColA1
100
200
etc
Table B:
ColB1 ColB2 ColB3
10 Y Ten
20 Y Twenty
30 Y Thirty
etc
Table C:
ColC1 ColC2
11
12
13
etc
Target table (X) should be (just has 1 group INGRP1):
ColA1 ColB1 ColB3 ColC1
100 10 Ten 11
100 10 Ten 12
100 20 Twenty 21
etc
Scenarios:
1. Directly map from A, B, C to X. Unable to map with error message: "API8003: Connection target attribute group is already connected to an incompatible data source. Use a Joiner or Set operator to join the upstream data first before connecting it into this operator."
2. Map each source to Expression Operator and then map from each Expression to target table. I am able to map all attributes successfully but got error when validating it with message: "VLD-1104: Attributes flowing into TEST.EXPR_SRC.INGRP1 have different data sources."
How can I achieve the correct mapping for this purpose?
Use Joiner? I have no key to join the sources
Use Set? The sources have different number of columns
Thanks in advance
PratThanks Nico,
I think it will results data like this:
100 10 Ten 11
200 20 Twenty 12
300 30 Thirty 13
etc
and not the expected:
100 10 Ten 11
100 10 Ten 12
100 20 Twenty 21
etc
But it inspired me to solve this by adding key expression in each source table (B & C) to be joined to table A with this formula:
100+TRUNC(INGRP1.COLB1,-2)
Regards
Prat -
Error while extracting data from a remote system
Hi,
I am facing problem while extracting data from a remote system. The connection is alright I can extract the table required from the remote system,but when I deploy it I get this error
ORA-04052: error occurred when looking up remote object [email protected]@ORACLE_UBN_15_LOCATION1
ORA-00604: error occurred at recursive SQL level 1
ORA-28000: the account is locked
ORA-02063: preceding line from UBNDW@ORACLE_UBN_15_LOCATION1
here Scott.demo1 is the table and UBNDW is the sid of the remote system and ORACLE_UBN_15_LOCATION1 is the location. Please help me out with this
ThanksHi,
IDOC's need to be processed manually either in OLTp or in BW depending on the failure. Error msg in monitor status will take u to either BW or OLTP whernever there is a prob. Process IDOC's , this will start the left over packets and will finish the load.
we hav to check IDOC in WE05(t-code) and know the status these are WE51,WE52,WE53 AND GOTO WE19 there we hav to execute the exist Idoc will succesfully loaded Idoc
Goto St22 see the short dump error msg..
post if there any inf..
Thanks,
Shreya -
Migrate PY and TM cluster data from One SAP System to another
Hi Experts,
Could you please suggest me some options to migrate PY and TM cluster data from One SAP System to another? My requirement is to move all the cluster data (Active and Inactive ees).
I see that PU12 is an option. Anybody used that to migrate between SAP systems. Please provide some details
Points guaranteed
I see that using PU12 you can export only PCL2 Clutsers. Are there any ways to move the other clusters like PCL4 ?Hi,
As far as data transfer, If have all normal configuration settings in your targeted system you can use LSMW (Use T.code AS91 in LSMW for recording) to transfer your data in your both cases.
Hope it resolves your both the issues.
Regards,
Murali -
Copy data from one SAP system to another based on conversion rules
Hi All,
Please provide your input on how can we copy data from one SAP system to another based on conversion rules.
Conversion rule :
vkrog in 110 vkorrg in 120
1234 4567
<<text removed>>
Thanks
Edited by: Matt on Feb 16, 2009 4:35 PMPlease read the Rules of Engagement here: Please read "The Forum Rules of Engagement" before posting! HOT NEWS!!
Please note that offering points is against the rules.
matt -
Does ODI has ability to extract data from multiple tables
We have requirement using ODI to extract data from multiple tables depending on certain logic and spool 100+ files.
How efficient ODI is in data extraction from several multiple tables especially when the extraction is dependent on certain business logic conditions ? Also, if anyone used Peoplesoft Application Engine process to extract volumes of data, how efficient Peoplesoft Applicaiton Engine process is as compared to ODI ? I will really appreciate if someone throws some light on this ? Thanks in advance.
RamOne more option
Create two Integration Interfaces and launch them sequentially:
1st Interface : select a IKM ... Append and activate the Distinct rows check box.
2nd Interface : select an IKM ... Incremental Update and set the UPDATE option to No.
Be aware that the update key in this Integration Interface should be composed of all the target columns mapped. Also activate the Distinct rows check box.
Thanks,
Sutirtha
Edited by: Sutirtha Roy on Jul 21, 2009 10:08 AM -
Extract data from Retai & AFS system
Hi , Guys,
If there are SAP Retail & AFS system with different master data and transactional data , how can I extract master data and transactional data from these two system into SAP BW?
For example , if i want to extract the stock management data , how do I create the two Souce system in BW, both as SAP souce system or not?
Thanks !Hi Yong,
1. Should I create both systems as SAP source system or not?
Yes, both should be created as SAP source systems.
2. If I want to extract the master data of 0MATERIAL , should I do the extraction job from the two source system with "0LOGSYS" ?
You have to understand the business process of how material master data flows across these two systems with the help of the functional team.
In our scenario, we have not used '0LOGSYS', because the same material code coming from both the systems were one and the same.
3. If I want to extract the transactional data of stock movement data from both systems, which infocube in BI content can I use?
I suggest you implement standard business content ( 0IC_C03, I guess ) and utilize that for one source system ( Say AFS). Copy this cube into Z cube called ZIC_C03 and connect the retail data sources to this cube. If you want to combine stock reporting from both the systems, you can create a multiprovider on top of this.
Thanks,
Krishnan -
Uploading data from non sap system to sap system
hi to all experts,
my requirement is to upload data into the sap system from non sap system . the data is in a flat file ,but the problem is that in the flat file all the field lengths and fields are not in order or same as sap system. How to upload the data into sap system ....hi,
the data is in a flat file,but the problem is that in the flat file all the field lengths and fields are not in order or same as sap system.
If the data is in excel sheet use this FM.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 17
I_END_ROW = 3000
TABLES
INTERN = itab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
It will read the data from excel sheet column wise and then store it in ITAB. you can change the order after reading the file.
In case of Text file use FM GUI_UPLOAD.
You can change the order of the fileds after reading it from file, but the length and all you have to make compatible to SAP standard fields.
Regards,
Sachin -
How to configure RBE in order to get data from a SAP System
Dear all,
I downloaded the last version of RBE in order to install it and evaluate the concept of Reverse Business Engineering.
After installing it on my laptop, I try to access with no exit. It appears a log on screen.
Someone can help me by explaining how to set first steps in order to connect with a system?
Thanks in advance, XavierHi Gopi,
Here I enclose the steps for sending data from a SAP R/3 system to Non-SAP R/3 thru ALE.
Here my Non SAP System is - Web Methods.
1.Creating LS - 1. SAP R/3 - S1_800
2. web methods LS - WM_800
2. ASSIGN CLIENTS TO LS - S1_800 TO 800
3. DEFINE TARGET RFC DESTINATIONS -
3.1. TCP/IP Connection - RFC DEST NAME -WM_800
Connection Type - T
Applicataion Type - Registered server proggram
PROGRAM ID - WMB2B1
Gateway Host - Sap Server Name
4.0. Model View Name - W_M_V (for sending data to IS)
sender - S1_800
receiver - WM_800
message type - MATMAS
4.1. Create Partner Profiles.
5. Create PORT - TCode - we21
5.1. For Wem Methods system - WM_PORT
RFC Destination Name - WM_800 (created in step 3.1.)
With Regards
Vasu -
How to extract data from a remote system
Hi,
I want to extract data from another system and map it with a target table in my local machine. what is the procedure to do that?
I tried to create another module specifying location of that remote system I could extract the table but when I am mapping with the target table I am getting this error
ORA-04052: error occurred when looking up remote object [email protected]@ORACLE_LOCATION_UBN_15
ORA-00604: error occurred at recursive SQL level 1
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from UBNDW@ORACLE_LOCATION_UBN_15
here ORACLE_LOCATION_UBN_15 is the location and UBNDW is the SID for that system
SCOTT is the username I have provided while creating the module
Please help me out with this..
ThanksHi Roberto,
thank you for the fast answer. I have read this before but i don't understand the needed steps on the Oracle-System.
Hope anyone can help me...
Thanks
Muammer
Message was edited by:
Muammer Kizilaslan -
Extracting data from multiple tables using DB connect
Hi,
I am having different tables which are having the same structure in oracle database but there names are different.Now i have only one datasource at BI side.This datasource shld extract data from the tables dynamically.How can i do it using DB Connect .
Thnxsahh I see - problem as you said then is if you then take on a new location!
I would then put into the source system a table identifier and create a view across all the tables
Then dbconnect from the view and use the selection parameter of table parameter if you wanted one infopackage per "location"
If you do need to have a new table in the source then just expand the view and create a new ipak
hence NO bw changes required that need a dev-q-p transport - just the ipak in prod and it;s the source systems problem to add the extra table to the view
Maybe you are looking for
-
hi there, I'm looking for it for few days and just couldn't find what i'm looking for. i need to use the same button on click to play the next animation (label) and i have a back button which need to play the previous animation. sounds pretty easy, b
-
Setting up your iPhone to sync with 1and1 Exchange Server.
_+*You *must have* iPhone firmware version 2.0 and higher to sync to Exchange Services+.* iPhone and 1and1 exchange work amazingly well. Most folks out there are still using the IMAP side of the 1and1 Exchange service. *"THIS IS NOT FULLY FUNCTIONING
-
I'm trying the understand the concept of correlation in BPEL. I went thru the singleton example. I couldn't get much from it. Any information or some code samples on correlation sets is much appreciated
-
Transferring iPod To New Computer With Windows 8
I'm trying to transfer my iPod to my new laptop (Windows 8) for college. The version of Windows I used on my home computer is Windows 7. I tried simply syncing my iPod into iTunes on my new computer (twice). All it did was charge. When I ejected it,
-
Menu Buttons and remote buttons in DVDSP 4.2.1
Hi Sorry, this is the first real DVDSP project for me that involves menus and chapters. I used template from the program. I deleted the 3 bottom buttons and added text in a different place for play and scene menu. I then drew a button box around the