Error in abap query sq03,02,01(to get data from structure) it is possible?
hi
experts,
i am developing a report using abap query .(stand t code is s_alr_87012277 it contain more fields but i want only 4 fields , i found 2 but remaining 2 are from structure)
my problem is that debit and credit amount is in structure
how i can get data from structure(FAGL_S_RFSSLD00_LIST )
solbm = debit.
habbm = credit.
report is like
op.
gl acc no, discription, credit amount,debit amount.
Hi ajay,
try to use with logical database SDF.
assign the logical database name in info set.
gl acc no - SKA1-SAKNR
debit. - Field: um02h
credit. - field: um02s
discription - SKAT-TXT20
regards,
sateesh.
Similar Messages
-
Query OR Stored Proc to get data from Tables from All Schemas in the d/base
Hello Experts, (I appologize if i am not using the right way to ask questions)
I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
But it will be a tedious process of entering the 400 schemas names and pulling the information.
I would like to know as to what would be the best possible way to;
1) Look for all the schemas in the database
2) Look for those specific tables in the schema, which has the data in the tables.
3) If the tables are not present, than Ignore that schema and proceed further.
4) Load the data into a table
Any help, would appreciate it.
Thanks!
The query that i am using is as follows;
-- Query to select all the Schemas from the database
select username from all_users
order by username;
-- Sample Query to see if Tables exsist in the schema
SELECT DISTINCT OWNER, OBJECT_NAME
FROM ALL_OBJECTS
WHERE OBJECT_TYPE = 'TABLE'
AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
ORDER BY OWNER;
--Query to get the data from the tables in a Schema
select 'Schema_1@DATABASE_NAME' AS SCHEMA,
(SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
L_PROD_LINE.PROD_LINE,
COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
FROM
Schema_1.ENROLLMENT,
Schema_1.PRDCT,
Schema_1.L_P_L
WHERE
ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
PRODUCT.PROD_LINE_ID = L_P_L.ID
GROUP BY
L_P_L.PROD_LINE;Hi,
999355 wrote:
Hello Experts, (I appologize if i am not using the right way to ask questions)See the froum FAQ {message:id=9360002}
I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
But it will be a tedious process of entering the 400 schemas names and pulling the information.
I would like to know as to what would be the best possible way to;
1) Look for all the schemas in the database
2) Look for those specific tables in the schema, which has the data in the tables.
3) If the tables are not present, than Ignore that schema and proceed further.
4) Load the data into a table
Any help, would appreciate it.
Thanks!
The query that i am using is as follows;
-- Query to select all the Schemas from the database
select username from all_users
order by username;
-- Sample Query to see if Tables exsist in the schema
SELECT DISTINCT OWNER, OBJECT_NAME
FROM ALL_OBJECTS
WHERE OBJECT_TYPE = 'TABLE'
AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
ORDER BY OWNER; Do you want to give a list of possible schemas (like the 6 above), or do you want to consider all schemas, however many and whatever they are called?
You can get the right information for ALL_OBJECTS, but, since you known all the objects of interest are tables, ALL_TABLES will be faster and simpler.
--Query to get the data from the tables in a Schema
select 'Schema_1@DATABASE_NAME' AS SCHEMA,
(SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
L_PROD_LINE.PROD_LINE,
COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
FROM
Schema_1.ENROLLMENT,
Schema_1.PRDCT,
Schema_1.L_P_L
WHERE
ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
PRODUCT.PROD_LINE_ID = L_P_L.ID
GROUP BY
L_P_L.PROD_LINE;I take it that the tables in question are ENROLLMENT, PRDCT and L_P_L; they won't have different names in different schemas.
You can start this way:
BEGIN
FOR c IN (
SELECT owner
FROM all_tables
WHERE table_name IN ( 'ENROLLMENT'
, 'PRDCT'
, 'L_P_L'
GROUP BY owner
HAVING COUNT (*) = 3
LOOP
... -- Now get the results for tables in the c.owner schema
END LOOP;
END;
/This will find the schemas that have all 3 of those tables.
Inside the loop, write another dynamic query. All that will change is the value of c.owner
Sorry, I'm running out of time now. I hope this helps. -
Powerpivot Error on Refresh -- "We couldn't get data from the data model..."
I'm using Excel 2013 and Windows 8.1. I have a spreadsheet I've been using for over a year, and I've just started getting this error message when I try to refresh the data.
"We couldn't get data from the Data Model. Here's the error message we got:
The 'attributeRelationship' with 'AttributeID' - 'PuttDistCat9' doesn't exist in the collection"
Any idea how I can fix this problem? I haven't changed anything related to that particular attribute. All the data is contained in separate sheets in the workbook, so there are no external sources of data.
Thanks.
JeanThanks for all the suggestions.
I found a slightly older version of the spreadsheet that still refreshes properly, so I don't think I have any issues with the version of Excel or Power Query. (I've had this same error before, and I believe I applied the hotfix at that time.)
I think this problem started after I updated a number of the date filters in the pivot tables. I haven't made any changes to the data model, and the only updates I've made were to add data (which I do all the time), and to change the date filters on
the pivot tables.
As suggested, I added a new pivot table querying one table (the table with the attribute that shows up in the error message), and it worked fine. I can also refresh this pivot table.
Then I tried adding a pivot table which went against several tables in the data model (including the table in question). The pivot table seemed to return that data properly. However, when I tried to refresh it, I got the same error message ("we
couldn't get data from the data model...").
Dany also suggested running the queries one at a time to see which one is in error. Without checking all the pivot tables, it appears that any which use the table "HolePlayedStrokes" generate the error (this is the table with the attribute
mentioned in the error message). Pivot Tables without that particular table seem to refresh OK. Unfortunately, that is the main table in my data model, so most of the pivot tables use it.
Any other suggestions? I'd be happy to send a copy of the spreadsheet.
Thanks for all the help.
Jean -
Single query to get data from different databases
i need to capture certain fields from certain tables in database 1 and certain fields from certain tables in database 2 into one file using a single SQL statement.
i tried searching on the net
i found that dblinks can help
but iam not sure if ill be able to create dblinks in my situation which is:
i need to get data from oracle to be copied to mysql
this is not a replication acitivity, but i need certain fields from one database and certain from the other
so what iwas thinking is, if i use an sql query to get all the fields (i need around 40) from the different oracle databases and create a singlefile with one insert per select, i can then read that file into mysql
instead of creating multiple sql queries for each table and creating separate files and eventually separate tables in mysql.
can anyone help me here?
or maybe suggest another approach.
thanksHi,
I think dblink is the only option available to get data from different databases. It will work for your case too.
CREATE DATABASE LINK db_link CONNECT TO user_name IDENTIFIED BY password USING 'instance_name'you must have the system privilege 'create database link' to create db links. This way you can get the required data and put it in a table in oracle. But i dont know how to put this data from oracle table to Mysql.
HTH
Muneer -
Bapi to get data from BW query
Hi,
Does anyone familiar with bapi function to get data from BW query .???
I'm trying to use RS_VC_GET_QUERY_VIEW_DATA_FLAT but i get only the SUM rows of the query
and not the details rows (drill down).
i want to export the data of BW query to table and i need all the query data.
if someone have an example or documention its will be great.
Thanks.Hi,
Does anyone familiar with bapi function to get data from BW query .???
I'm trying to use RS_VC_GET_QUERY_VIEW_DATA_FLAT but i get only the SUM rows of the query
and not the details rows (drill down).
i want to export the data of BW query to table and i need all the query data.
if someone have an example or documention its will be great.
Thanks. -
Hi All,
We are facing syntax erro with ABAP query.
We have a infoset/query which is perfectly working in one system and we downloaded the both infoset and query from this system.But the same query when it is uploaded to other system is not working.
Infoset is not giving any syntax error while activation. Morever, the generated report struture is also different from the other system. In old system, report was having one include for declaration and other for data retrieval process etc.
Can you please help us to resolve this issue?
ThanksHi,
The query generated is based on the table structures available as they are used, etc.
So please check if there is any difference in the fields available in the tables used, LDB used if any.
In addition, may be few of the properties of the SAP query and info set does not get copied properly.
and after activating the info set only, activate the query, etc...check them once again.
Regards,
Santhosh. -
Syntax error in ABAP query after implement patch
Dear All,
After implement patch from SAPKA46C39 to SAPKA46C53, we have syntax error in our query.
our SAP release version is 46C.
The error in query is -The data object "R01" does not have a component called "046" -
We don't found any SAP notes that match for our error.
Anyone ..please help...
Thanks a lot...
BuditutaHi,
The query generated is based on the table structures available as they are used, etc.
So please check if there is any difference in the fields available in the tables used, LDB used if any.
In addition, may be few of the properties of the SAP query and info set does not get copied properly.
and after activating the info set only, activate the query, etc...check them once again.
Regards,
Santhosh. -
Error in dmx query for association rules to get list of products likely to be bought next
Hello
I have a created and train an association model with the following structure:
SELECT PredictAssociation( [dbo].[AssociationV] , 5)
FROM [Association]
PREDICTION JOIN
(SELECT (SELECT 'Road-150 Red' AS [col1]
UNION SELECT 'Mountain-100' AS [col2]) AS [AssociationV]) AS t
In this specific example I’m getting this error:
Executing the query ...
Parser: The end of the input was reached.
Execution complete
Thanks in advance
RamaTry this :
http://social.technet.microsoft.com/Forums/en-US/38fde948-c7f2-4b40-8777-a283cc5f0d06/parser-the-end-of-the-input-was-reached?forum=ppsmonitoringandanalytics
http://social.msdn.microsoft.com/Forums/en-US/64fa39b9-9c2e-4a3d-a999-c2e9d2d75f00/parser-the-end-of-the-input-was-reached-msmgdsrv -
ABAP QUERY taking much time after ERP Upgrade from 4.6 to 6.0
Hi All,
I have an ABAP QUERY which uses the INFOSET INVOICE_INBOUND and the USER GROUP InvoiceVerif. The INFOSET is using the tables RBKP and RSEG connected using a JOIN on BELNR and GJAHR fields.
The query was working fine in 4.6 C Version. Now the system has been upgraded to 6.0 version.
Now it takes so much time that the processing is not getting completed. Do we have to make any changes to the existing queries for an upgrade?
Thanks a lot in advance.
Gautham.Did u regenrated the query & Infoset & Program before transporting it to ECC6.0?
-
Getting Data from Maintenance view V001N into ABAP program
Hello Experts,
I have to fetch data from the maintenance view V001N in my ABAP program. I have used select statement in my program but I am getting a syntax error 'V001N is not defined in the ABAP Dictionary as a table, projection view or database view. '. V001N is a Maintenance view.
Can anybody help me out how to get the data from that maintenance view into the internal table of my ABAP program.
Regards.Sunil,
check these threads
https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6074746
https://forums.sdn.sap.com/click.jspa?searchID=18906946&messageID=6088233
so query on the tables which are used in the view
Thanks
Bala Duvvuri -
Everytime I try to update to iOS5 on my iPhone 4 I get an error containing 0xE while it is backing up data from the iPhone before installing the new operating system. I have done everything suggested in Apple support with no success. I still get the error everytime (about 5 minutes into backing up iPhone data). How can I upgrade to iOS5 without losing all the data on my iPhone (the error message says that if I continue I will lose all data on the phone)? If I have already synced the phone before upgrading the OS, would I be able to restore my data after installing the new OS by syncing after the OS upgrade is complete? Any help would be greatly appreciated.
I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
Before you restore or reset, I would try that first. -
Update ABAP Report in SAP R/3 with data from xMII
Hi Experts,
How do we update some PP reports in SAP R/3 from xMII .
We have sucessfully got all the data from the historians in the plant and also established connection between SAP R/3 and xMII.
1. We also need to store the data passed in SAP R/3 in a Z-table and fetch data from there.
2. How the BLS in xMII can be called from SAP R/3 to update the table.
Thanks in advance.
Regards,
[Vivek K|https://forums.sdn.sap.com/profile.jspa?userID=2097685]Vivek,
You can very well do this using a remote enabled function module. For this,
1) Write a function module which takes input (tag name & value) and inserts in z table.
2) Set it remote enabled.
3) Define your SAP server under data services - > SAP Server Configurations.
3) Write a BLS transaction which calls this RFC using SAP JCO action. Here you can use the configuration that you defined in earlier step. Set the input parameters.
4) Execute the transaction and you can put an external breakpoint in your RFC for debugging.
I think when you said you are getting data xacute query, even that will execute such kind of BLS transaction.
Mike. -
Select query taking 30 sec to fetch data from table containing BLOB column.
Hi Friends,<o:p></o:p>
Please help me...<o:p></o:p>
I have 15 columns in a table, in that 2 columns containing blob (images).<o:p></o:p>
More than 22 lakhs records are in a table.<o:p></o:p>
While i am try to fetch data from this table it nearly takes 25~30 sec to execute that query.<o:p></o:p>
When i deleted the two columns containing blob and i tried its executing fast .<o:p></o:p>
I should not change the table schema.<o:p></o:p>
Views also i created and indexes also there in a table.<o:p></o:p>
How can i improve the query execution speed?.<o:p></o:p>And how large is the size of BLOB data in your table? If it's several giga bytes, then the time is simply required to read the amount of data from disk and to transfer it to the Client.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How does the query decide which Infoprovider to fetch data from
Hi,
Could somebody please explain what steps go on in background to enable the query to decide which Infoproviders it should fetch data from in a multiprovider.Assuming that in the multprovider we have some infocubes that are logically partitioned by Fiscal Year and other cubes that are not.
Thanks VK..Does the RRKMULTIPROVHINT technique work in case of a multiprovider that is not homogenous... Also in case there are 5 infocubes, does the select query run on fact table of all infocubes or are select queries run initially on the dimension tables and based upon which infocube has the required data for the query the fact table is queried..
Thanks -
Error for datawindow get data from temp table with SP
I create a SP to produce results. In this SP, results recorded in a temp table #mytemp. The final sql in this sp is like:
select * from #mytemp
Then I create datawindow to display data from this sp and got following error:
Number 277 Select Error: there was a transactin active when exiting the stored procedure 'myproc'. The temporary table '#mytemp' was dropped in this transaction either explicitly or implicitly. This transaction has been aborted to prevent database corruption.
How to resolve this problem?Sorry but could not reproduce the problem with the following products:
PB 12.5.2 build 5652
ASE client 15.7 EBF22688
ASE server 15.7 EBF 19496
Tested with ASE and SYC database profiles
// Profile ASE
SQLCA.DBMS = "ASE Adaptive Server Enterprise"
SQLCA.Database = "repro"
SQLCA.LogPass = <**********>
SQLCA.ServerName = ""
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
// Profile SYC
SQLCA.DBMS = "SYC Adaptive Server Enterprise"
SQLCA.Database = "repro"
SQLCA.LogPass = <**********>
SQLCA.ServerName = "xxxxxxxx"
SQLCA.LogId = "sa"
SQLCA.AutoCommit = False
SQLCA.DBParm = "Release='15'"
Below is the source of my stored procedure.
Prior to run the script, execute a data pipeline to create ASA tables (EAS Demo DB V12.5) department and employees into your ASE server
CREATE PROCEDURE mySP
AS
BEGIN
create table #employee_working (
emp_id int not null,
manager_id int null,
emp_fname varchar(20) not null,
emp_lname varchar(20) not null,
dept_id int not null,
dept_name varchar(40) not null )
insert into #employee_working
select employee.emp_id, employee.manager_id, employee.emp_fname, employee.emp_lname, employee.dept_id, department.dept_name
from employee , department
where employee.dept_id = department.dept_id
select #employee_working.emp_id, #employee_working.manager_id, #employee_working.emp_fname, #employee_working.emp_lname,
#employee_working.dept_id, #employee_working.dept_name
from #employee_working
END
Jacob
Maybe you are looking for
-
Not able to get the Qualification data from BAPI
Hi all, I am using a BAPI (BAPI_JOBREQUIRE_GETLIST) to get the qualifiaction data for requirement profile. It's working fine earlier but I did not get the qualification data from this BAPI, although the data is there in DB against this requirement pr
-
SPAM in test mode does not show modified objects
I am running SPAM in test mode, and I need to see the objects that have been modified with the modification assistant that are in the patch... how can I see that? when I run SPAM in test mode, during the step step RUN_SPAU_? I can see only the number
-
Adobe X Pro won't download. I t partially downloads and then says I have a corrupt file. Tried different locations and get the same error message. Am using Firefox browser and have never had any touble downloading Adobe Reader X or other companies
-
Flash Player Not Found in IE9 or 10
Hi, I have been having an annoying problem lately. I recently got addicted to Facebook Casino games. About a month ago I started to have an issue with Internet Explorer 9 and Adobe Flash Player. While playing or trying to load the game, Flash Player
-
Problem on creating development componet
Hello all, I am currently trying scenario 2+. I have created a product, a component, a domain and a track. When I try to create a development component in netweaver studio, I keep getting: Syntax of'example.org/tax/calc' is not valid: Invalid Name; o