SQL queries against a database view from an external system?

Hi,
I have a question about Database views in se11.
Is it possible to create a database view and that do SQL queries against this  view from an
external system, Not a SAP system?
Please, I need you help.
Best Regards
Annika

Hi Annika,
it is possible , yes... but depends on your database systems in the SAP source DB and the external DB
(easier if they are the same,  i.e. both ORACLE) - check out with your BASIS team (they have to create something like a "database link" in the external DB system  that you can use to access the tables in the SAP source).
In the external DB you sure can create a view on these "remote" tables.
We used this to pull data form SAP DB  to another DB system (both ORACLE based).
But this is NOT supported by SAP , so be carefull. Below is the restriction for ORACLE (as well for other DB systems )
see SAP note 581312 "Oracle database: licensing restrictions"
As of point 3, it follows that direct access to the Oracle database is
only allowed for tools from the areas of system administration and
monitoring. If other software is used, the following actions, among
other things, are therefore forbidden at database level:
* Querying/changing/creating data in the database
* Using ODBC or other SAP external access methods
This means that additional application software is only allowed if this
accesses the database through SAP interfaces (for example, RFC, SAP J2EE
or BAPI).
I would say if you KNOW the tables involved (using valid WHERE conditions and joins )
and don't start queries from hell (ad-hoc type) wich can bring down your SAP system performance
you can try it.
But be warned...
good luck...
bye
yk

Similar Messages

  • Joining multiple views from different HANA systems

    Hi
    We are on Business suite on HANA environment ;that means ECC , CRM , BW on different HANA DB / instances.
    For reporting ; i would like to combine calculation / analytical views from these different  systems.
    Any thoughts on approach?
    Thanks in advance

    If you are looking at something like HANA Live from multiple systems then check following
    How to Realize Cross System Reporting Using SAP HANA Live Content
    But if you are really looking at multiple HANA systems and remote connectivity options then may be links below helps out. There are bunch of articles on Cross-System reporting/SDA so may be you can do some research.
    I have not tried this so can't give real hands-on feedback
    SAP NetWeaver BW on SAP HANA & SAP HANA Smart Data Access
    Smart Data Access: Connecting multiple SAP HANA... | SAP HANA

  • Read/Open a file in SAP DMS from an external system

    Hello Sap Gurus,
    I want to read/open a file in SAP DMS from an external system . External system is basically a non-sap system.
    Can this be achieved through an RFC..
    Does anyone know of any BAPI's/FM's that can be called from an external system (non-sap system) through RFC which will open a document which is stored in SAP DMS.
    Regards,
    Madan Shetty.

    Hi Madan,
    If you want to view documents from an external system, there are many ways of achieving this.
    It depends on the solution that you are approaching.
    Few methods that I have come across are, OData services, Custom RFC Function  Modules, to retrieve document attachments.
    FTP is also a possible solution.
    Please let us know your exact requirement.
    Regards,
    Tamilnesan G

  • How to find in R/3 System, which FI document is from which external system?

    Hi Moderator/ FICO Experts,
    How to find in R/3 System, which FI document is from which external system?
    In case of different Non-SAP external Systems posting the data to one R/3 System.
    Thanks
    Chandra

    Hi,
    That really depends on the interfaces that your external systems are using. Check with your ABAP or BASIS team to see what is the method used for posting those documents and with which parameters is passed. Look at BKPF table (FI header) to see the attributes such as user, document type, reference, etc.
    Regards,
    Eli

  • Sender File Adapter  not able to get file via FTP from an external system

    Hi,
    I have a Sender File Adapter using FTP which polls a server every 10 seconds looking for a file ".xml".  The adapter will connect and pick up the waiting file, but sometimes the adapter not able to get file via FTP from an external system. The file is on the server, but despite the polling, the adapter does not pick up it. There is no return error.
    The connect mode is Permanently and the transfer mode is Binary.
    Can you help me?
    Thanks.
    T.

    Hi Teresa,
    does this case appears with a file size higher the others?
    Personally, I do not recommend to have a polling under 1min.
    10s could be too just, if the file is not small and/or if the file server is far (several kilometers) to where the Adapter Engine is, and/or this file server is beside a firewall. Do not forget also that, with previous points, you could have like a conflict, betwen the 1st polling and the 2nd polling, if in less 10s PI adapter has not enough time: to connect to the FTP server (several Km), find the file (perhaps among 100 other files in the directory), go back to the file to Adapter Engine server (several Km again), convert your file to XML message (with a complex Content Conversion), then check the XML structure, and when all that is done, return back to FTP server (several Km), to archive the source file... Well It's my understanding of a FTP exchange with FILE adapter...
    If you really need a 10s polling, that's mean your have a pseudo real time interface. In that case, in my mind file should not be used! but we should use a Web service, JDBC JMS (any exchange without a physical object like a file). For me, it's a non-sens to have a file in that case.
    regards.
    mickael

  • HTTP REST API call to CPSC 10.x from an external system

    Hi,
    I would like to know the below items.
    Is it possible to connect with the CPSC 10.x from an external system via HTTP REST API call to process a request and complete a task?
    Is it possible to create a new ticket / request in CPSC for a specific service via the HTTP REST API call?
    One of the use case is to know how many requests are pending in a queue via a HTTP REST API call? How to pass a queue name in the HTTP REST API call to get the result? These kind of custom piece is not available in the integration guide.
    Is there any specific REST API guide available which Cisco provides for the REST capability in CPSC?
    Any help is highly appreciated!
    Thanks.

    When a task is invoked from a service catalog request to an external system, the request remains open and the task is pending until the external system issues a call to complete the task.  The API for completing the task is SOAP-based.  Check out the Cisco Prime Service Catalog Integration Guide.  Within the doc, go to the section about "Web Service Listener Adapter" for the WSDL.
    You can order a service within Prime Service Catalog with a SOAP call, which is also documented in this same document.  Starting with Prime Service Catalog 10.1, you will have a way to order a service via a REST API.
    Existing REST APIs are also documented in the integration guide.

  • Change owner for transport from an external system

    Hi Everyone,
    I have some transports that were brought into our DEV system from an external system.  (They're BSI transports but I don't think that detail is important.)  We are using a third party transport management system (Insite) and in order to move these transports using Insite, I need to change the owner of these transports to myself.  When I try to do so I receive an error "Request L6BK134312 cannot be changed: Incorrect system or wrong naming convention".
    I've been told that all I need to do is to configure or add the source system to our DEV system and then I should be able to change the owner.  My problem is that I cannot figure out where to go to make this change.
    Can anyone point me in the right direction?
    Thanks!
    Jeff

    Hi Jeff,
    Yes, I do have a regular procedure that I follow to get this to work.  Ruchit Khushu was correct when he said that it had to be "a normal customizing or workbench request."  Creating a transport of copies never worked for me, so I had to set the task to Workbench.
    Here's my procedure:
    1) Import the transports
    2) Go to SE10 and create a new transport
    3) Change the task to Workbench by selecting it, using menu option Request/Task > Change Type... and select Workbench.
    4) Click on the transport number to select it.
    5) Select menu Request/Task > Object List > Include Objects...
    6) Enter a transport you want to include
    7) Repeat 5 & 6 until all transports have been included.
    Hope that helps.
    Jeff

  • How to trigger Solution Manager Change request from an external system

    Hello All,
    I have a scenario where in I would like to create and trigger a Change Request in Solution Manager from an external system, for instance, a custom web application. How could this be done? Are there standard interfaces (BAPIs) available in Solution Manager for doing this? If yes, then what are the BAPIs? Or Can a custom RFC be developed to achieve this..? If yes, then what are the underlying / base BAPIs that could be wrapped?
    Any pointers will be highly appreciated. Sorry if the question is naive. I'm a novice to the Solution Manager topic.
    Bala

    Hi Bala,
    I am facing the same issue. I want to create a change request in background from an external application, like an adobe form for instance. Would you be so kind to tell me, which BAPI you used in your solution?

  • Creating an IT 0015 from an external system

    Hi,
    I would like to post a new record in IT 0015 (additional payments for an employee), from an external system (XI/PI) as the information is coming via mapping from an external system.
    Do any of you have an idea of an RFC to use ?
    I taught I could use BAPI_WAGE_COMP_EXT_CREATE but finally saw that it is for IT 0579 and also I tried, I couldn't place a correct record via SE37.
    Thanks in advance for your suggestions.
    greg

    After some discussions, seems that the only viable solution for IT 0015 is to use encapsulation into a personal written RFC with HR_INFOTYPE_OPERATION *** proposed.
    Do any of have experience with BAPI_WAGE_COMP_EXT_CREATE as it would permit to create a IT 0579 that could be included in the payroll process and which can be used from XI/PI directly. More over, it limits the possibilities of the caller (XI/PI) to the strict Wage type defined. (I'm not yet clear about how to create and allow accesses for a specific application to a particular wage type, if somebody has any tips about it, thanks in advance)
    Cheers,
    greg

  • Creating shopping cart in SRM through an interface from an external system

    Hello,
    i am currenlty working on a SRM implementation at a client and we are looking into
    building an interface for purchase requisitions from an external system to SAP.
    To be able to get these requisitions as a package approved I would want them to go though the
    approval process in SRM. Does anybody know if it is possible to create a shopping cart in SRM through an interface from another system?
    thanks,
    Geert

    SRM has a standard business scenario of PDP PM
    here the external requirements are transferred to SRM for sourcing
    in normal business scenario ECC PR is transferred to SRM which creates a dummy SC or say sourcing SC in SRM which appears in Purchaser's worklist after correct settings
    SRM can work with NON SAP system also
    so logically yr requirement should be possible
    but in ECC PR transfer case the SC created in SRM is already apparoved.
    BR
    Dinesh

  • Run a SQL procedure with multi database querying from Excel

    I'm using SQL Server 2008 Enterprise. I created a procedure in one database. The procedure is composed of several queries to different databases and the final combined result set is being displayed.
    I try to execute it via Excel, so the results will appear automatically in Excel sheet, but I'm getting the error:
    "The query did not run, or the database table could not be opened. Check the database server or contact your DBA. Make sure the external
    database is available and hasn't been moved or recognized, then try the operation again".
    I created a simpler procedure that queries only one database, and the results displayed at the Excel sheet with no issues.
    I suspect that, the original procedure failed due to the fact that I'm querying several databases in the procedure, when in the connection details of the "External Data Properties", only one database is mentioned.
    My question is - can it be solved? Can I use multiple databases in the procedure and see it in the Excel?
    Thanks, Roni

    Use Global Temporary table(##) instead of Local Temporary table(#).
    The scope of the temp table is limited to one database and it dispose automatically when jump to another database.
    No, that is not correct. From where did you get that idea?
    USE tempdb
    go
    CREATE TABLE #a(a int NOT NULL)
    INSERT #a(a) VALUES(9)
    go
    USE master
    go
    SELECT a FROM #a
    go
    USE msdb
    go
    SELECT a FROM #a
    go
    DROP TABLE #a
    And Roni's stored procedure does not even change database.
    ...however, the temp tables may very well be the problem, but for a completely different reason. Excel may ask SQL Server for the shape of the result set before it runs the procedeure, and this does not work with the temp tables. For this reason, using a
    table variable my save the show.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Sysql - use SQL queries against output of linux commands

    Hello!
    Many linux commands have table-like output. Sometimes it is better to analyze such output as a real table in relational database. I have published prototype of utility that parses output of one or several linux commands, saves it in database and allows to make SQL queries to that data. Program is written on python and uses sqlite database engine.
    sysql at AUR
    sysql at Github
    Here is why I wrote it:
    * No need to remember command syntax to format command output - just select necessary fields in SQL query
    * No need to know sed, awk, head, join and other linux commands to manipulate with output - it's all SQLite
    * Table data is stored with meaningful column name and type (int, text, float, datetime etc)
    * All power of SQL can be used to query output (JOIN, WHERE, GROUP BY etc.)
    * To support new command, output parser must be developed only once and then can be shared with community to make life easier
    * All supported commands are kept in one place as set of python files, so it is easy to find out how to customize existing parsers or create new ones
    This is my first community contribution, so kindly ask everyone to share your opinions and advices on what can be done better. Thank you!
    Examples:
    Display help and list of available commands:
    sysql
    Display output of ps command:
    sysql ps
    Query output of lsblk command:
    sysql -q "SELECT device,uuid,filesystem FROM lsblk" lsblk
    Query output of several commands:
    sysql -q "SELECT ps.pid, ps.command, ps.elapsed_time, lsof.name FROM ps JOIN lsof ON ps.pid = lsof.pid WHERE name LIKE '%LISTEN%'" ps -e --- lsof -Pni4

    I am not sure, if I will ever use it, but I do think, this is an _amazing_ idea!
    You may consider something like a global repository for output parsers accessable directly via sysql.
    Last edited by myname (2013-11-24 09:16:59)

  • Access database view from JPA to HANA database, JDBC: [258]: insufficient privilege:

    My java application is delopyed on neo.ondemand.com and use the hana database on cloud also, we use eclipselink
    the jpa persistence configuration:
    <property name="eclipselink.target-database" value="com.sap.persistence.platform.database.HDBPlatform"/>
    here i do not specify any user or password to access the database, i think hana JDBC somehow hide the user information when java application and hana database both are on the cloud.
    for the tables created by JPA itself, access if fine.
    now i have created a view via Hana studio, though database tunnel using account  dXXXXXXsapdev
    i have an JPA entity, and i am trying to access the view from java application, it reports error:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [258]: insufficient privilege:
    I do not know which database user is used by JPA to access the view, how can i grant the database rights on the view so that "native java application on cloud" can
    access the database schema (or view created though database tunnel )
    any comment is welcomed.

    Hi,
    Please post this issue under SAP HANA Cloud Platform space. The platform experts should be able to help with that.
    Regards,
    Ifat.

  • Sql queries for this database schema

    1) Patient—PatientID, Name, DOB
    2) Doctor—DoctorID, Name, MedLicenseNumber, Phone
    3) Medication—MedicationID, BrandName, GenericName
    4) Prescription—PrescriptionID, Date, PatientID, PrescriberID, MedicationID
    Specify the SQL queries to retrieve:
    a) The prescription information along with patient name, DOB, medication brand name, and prescribing doctor name sorted by most recent date.
    b) The most prescribed generic medication name

    Looks like assignment question to me
    a, seems to be a case of straight forward join among all the involved tables on common fields. Suggest you learn about joins and try it out yourself.
    see below link
    http://www.w3schools.com/sql/sql_join.asp
    b, Have a look at GROUP BY. you need to apply group by and take medicine name which repeats maximum (ie largest count value)
    see
    http://www.w3schools.com/sql/sql_groupby.asp
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Consume a HANA Database Procedure from an ECC system (Netweaver 7.31 sp 04)

    Hi All,
    Is it possible to consume a HANA Database Procedure (for that matter anything which is in HANA system) in an ECC system using ABAP?
    I checked the forums and it is mentioned that it is possible to consume from Netweaver 7.4 but we have Netweaver 7.31 sp 04.
    Any help in this regard will be greatly appreciated.
    Thank you.
    -Chandra

    Hi Chandra,
    You can use native SQL to call HANA database procedures or any other HANA views from ABAP.
    You can refer this link to get the more info on how to call native procedures using ABAP.
    http://help.sap.com/abapdocu_702/en/abenadbc.htm
    Hope this helps.
    Best Regards,
    Vaibhav

Maybe you are looking for

  • Getting error in consuming google webservices from JspDynPage

    Hi All, Getting following error while consuming google webservices from JspDynPage An exception occurred while processing a request for : iView : GoogleSer.google Component Name : GoogleSer.google Could not find portal application com.company.global.

  • Spatial index - mapviewer demo

    Hi, I tried the mapclient.jsp demo of the maviewer demo and it only returns a blue image. I check the log file and found this: [oracle.sdovis.JDBCDataSource4PT, Thu May 18 10:21:36 CST 2006, ERROR] *** SQL Exception while querying theme: THEME_DEMO_C

  • Help with Password Management!!!

    I am having a problem configuring my OID password management options... the Admin guide says that I can do it through Directory Manager by selecting the server in the left hand pane and editing the data on the password management tab... problem is I

  • Shockwave Player Version 11

    Well, the links to the Shockwave Player 11 are up now at 9pm EST 3/24 at http://www.adobe.com/shockwave/download/alternates/. Their links are broken, so you can't actually download anything. But they are there.

  • 3G doesnt work on my iPad 2 since i updated my iPad to iOS 6, 2G works instead. I need help please

    Im facing problems with cellular network, cant enable 3G on my ipad since i updated it to iOS 6 and i need a solution pls