APO DP and 3.5 BW Query
Hi All,
My boss had a question regarding using a query as a datasource for APO DP.
Is it possible to do this?
I am preparing for a meeting today and want to make sure I have all the information needed to answer questions.
Thank you!
Caroline
Yes it is possible
create an DataSource for your Planning Area (Transactio
n /SAPAPO/SDP_EXTR) and then use that datasource to Connect it to a RemoteCube, construct a query on
the RemoteCube or
Connect the DataSource to a separate BW server, load the data there (or use a remotecube), and do the reporting from there.
Manish
Similar Messages
-
Joining Sales Orders and Delivery Notes in Query
Hi Experts
Please could someone provide me with the correct SQL syntax for joining tables ORDR, RDR1, ODLN and DLN1 in a query?
I need to show a list of the (rows of all open sales orders) and (closed sales order (which have a delivery note) between certain dates).
Thanks
JonHi Gordon
Thanks for your help. Could you help me a little further? I am writing the query to show me a mixture of (Open Order rows which contain item code 'C&P') and (closed orders between 2 dates which also contain C&P) - both need to have the customer having property 54 set as 'Y'
Working with what you sent me it almost works but for some reason I cannt fathom it won't show the open orders only the closed. I think it may have some do with my last JOIN
This is what I have:
SELECT T0.DocNum 'Delivery No', T0.DocDate 'Delivery Date', T3.Quantity 'Delivery Quantity', T1.DocNum 'S/O No', T1.DocDate 'SO Date', T1.DocStatus, T3.ItemCode, T3.Dscription, T2.Quantity 'SO Quantity', T2.Quantity-T3.Quantity 'Balance Quantity', T2.LineTotal'C&P Price After Discount', T2.DiscPrcnt, T2.Project, T4.QryGroup54'Carriage Deal', t2.freetxt, t1.comments
FROM DBO.DLN1 T3
INNER JOIN DBO.ODLN T0 ON T3.DOCENTRY = T0.DOCENTRY LEFT JOIN DBO.RDR1 T2 ON T3.BaseENTRY = T2.DOCENTRY AND T2.ItemCode = T3.ItemCode LEFT JOIN DBO.ORDR T1 ON T2.DOCENTRY = T1.DOCENTRY INNER JOIN OCRD T4 ON T0.CardCode = T4.CardCode
WHERE (T2.ItemCode LIKE 'C&P%%' AND T1.DocStatus='O' and t4.qrygroup54='Y') or (T2.[ItemCode] LIKE 'C&P%%' AND T1.[DocStatus] = 'C' and T4.QryGroup54='Y' and (T0.DocDate Between '[%0]' and '[%1]'))
Thanks
Jon -
Passing a default value to the master block and do the auto query
Hi
My problem is i have a MD FORM to which i have to pass a default value and do an auto query so that when i run the form the form should open with this default value and do the query and get the details.
I tried many things like trying to set the value of the column using p_session.set_value and then calling the same form using wwa_app_module_link by using the value in the condition but every time unless i press the query button i did not get the values.
Now i don't know what to do.
My portal version is 3.0.7.6.2
Some body please help me
thanks
SreedharI don't think this works for 3 parameters, but I know it will work for 1. Maybe you can do something with it.
1. Create a link to the destination component (YourProvider.YourLink)
2. Use the code below to use that link to pass the value of a form field to the destination component. 'FieldName' is the field on the destination component you want to query, and '_FieldName_cond' is the condition. This creates the destination URL.
3. wwa_app_module.set_target(l_url) will send you to the URL you generated.
l_url := PORTAL.wwv_user_utilities.get_url('YourProvider.YourLink', 'FieldName', v_YourParameterValue, '_FieldName_cond', '=');
portal.wwa_app_module.set_target(l_url);
I'm not the best at this, but this works for me in most cases. -
How to find last runtime of query and who ran the query
Hi,
I am doing the analysis for all the queries , their last run time and who ran the query
Since there are almost 6000 queries , is there any way to find out last run time and who ran the query
in one step or through any transaction else It would huge effort taking task to check the data in BW statistics
table for each query
Please suggest
Regards,
VivekHi,
Statistics should be switched ON for all the queries first. You can check this in RSDDSTAT.
Statistics data is stored in BW for a specific period only. This setting can be maintained in table RSADMIN (Field : TCT_KEEP_OLAP_DM_DATA_N_DAYS). If the value for the field is 30, then 30 days old statistics will be available at any point.
Not all the queries will be ran daily. Some are ran daily, monthly and yearly depending upon User requirement.
1. You can check in RSDDSTAT_OLAP for the details you needed.
2. You can install the BI Technical Content and run the respective query for the details you needed.
Hope this helps.
Regards,
Sunil -
Parse User Pasted Text and use in SQL query
I am trying to take some user pasted text (typically would come from Excel) and parse those values and put into a query.
text area:
":P11_text"
query:
"select *
from table
where column in :P11_text;"
I have tried some variations of replace and translate in order to parse that list of values...something like: translate(:P11_text, chr(10)||chr(13), ',' ).....and many variations of this.
I have been able to replace the end of lines with the commas, but it appears that I am not getting my single quotes captured, even when trying to force them in. The best attempt returned single quotes and commas in between values but not at the beginning and end of the list of values.
I would bet that there is an easy way to accomplish this or an easy way to accomplish the requirement in a different way altogether.
Please point me in the right direction.I finally got this one figured out!
create or replace type myTableType as table
of varchar2(4000)
create or replace
function in_list( p_string in varchar2 ) return myTableType
as
l_string long default p_string || ',';
l_data myTableType := myTableType();
n number;
begin
loop
exit when l_string is null;
n := instr( l_string, ',' );
l_data.extend;
l_data(l_data.count) :=
ltrim( rtrim( substr( l_string, 1, n-1 ) ) );
l_string := substr( l_string, n+1 );
end loop;
return l_data;
end;
--The SQL Query is:
select *
from t wher c in (select *
from THE
( select cast( in_list(translate(:p10_prolist,chr(10)||chr(13),',')) as
mytableType ) from dual ) a);
--Working like a champion!!! -
Hello,
Is it possible to submit a list item and at same time query/search the results if parameters are matched.
Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
SP designer and InfoPath doesn’t work due items limits.
Please suggest.
Thanks,
Manish
ManishHi Manish,
may i ask if you need,
when user account click the login button, it will be authenticate the user and then it will show search result page?
may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
Syntax of creating and calling a stored query in Ms Access
What is the syntax of creating and calling a stored query via a java program
Google found this:
http://www.quepublishing.com/articles/article.asp?p=170870 It has some examples about how to call a stored procedure. Not for Access, though - if you have questions about that, ask Microsoft. -
Starting and stopping an SQL query from within a Shell script
DB version:10gR2
OS Version:AIX
We have a C++ application called WpnCreate.cpp, which is causing some locking problems.
So, we have decided to capture(using SPOOL) the locking info(session info, blocking program,..etc) using an SQL query.
WpnCreate.cpp program is initiated by a shell script. So we need this SQL query(.sql) to start firing just before WpnCreate.cpp is called and when WpnCreate.cpp has finished executing, we need the SQL query execution to stop.
But how do i stop the sql query execution? Should i capture the session id and serial# of this session and use kill -9 at the end of the shell script?
Flow of the Shell script should be like this
Step1. Start firing the SQL query which captures the locking info and SPOOL them to a file
Step2. Execute WpnCreate.cpp program
Step3. Stop the firing of SQL query once WpnCreate.cpp has finished executing ( i don't know how)How will i go about achieving this?How can you run your step 2 untill & unless your step 1 gets over. You can run in background but then it will not capture the correct information.
I think you need to run your step 1 after step 2 , then only you will be able to capture the information.
You can run your C++ program in background and can wait for some time using sleep command and then run the query to check the locking information. -
An index can not being used and still afect a query performance?
Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
shows a lower cost even though its not being used by the execution plan.
Does anyone know why is this happening?
An index can, not being used by the execution plan and still affect a query performance?user11173393 wrote:
Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
shows a lower cost even though its not being used by the execution plan.
Does anyone know why is this happening?
An index can, not being used by the execution plan and still affect a query performance?You said that is what is happening, & I believe you. -
Variables and Structure in Existing query
Hi,
Where can i see the Variables and Structure in Existing query.
Thanks
PriyankaOpen the Query from Query designer.
Click on 'Query properties' in tool bar.
You can see the variables under 'sequence of variables' window.There you can change the Sequence of variables also.
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a569ae09411d2acb90000e829fbfe/content.htm -
How to unlock the request for a report and add the same query to new reques
hi,
how to unlock the request for a and add the same query to new requesYou can unlock in SE03 tcode.
Goto tcode SE01, give the transport number --> display --> double click on the transport --> in the next screen select all the elements --> delete --> save.
To attach it to another transport, In RSA1, click on transport connection> Choose Object types> query elements --> here you can find your query/ or you can search, which you can drag to right and attach to the transport (using truck button). -
Hello all,
Can someone tell me the most common used Tcodes, roles and auth objects in SAP APO - DP and APO-SNP security
thanksI was going to type them out but luckily for me found this link to the DP & SNP auth objects - the info there is as detailed as anything else I have seen
http://help.sap.com/saphelp_scm50/helpdata/en/21/f6253b90e48743e10000000a11402f/content.htm
There is a list of useful APO transactions here
http://help.sap.com/bp_scmv241/documentation/SCM_AIO_BP_Function_List.xls
I can't help with the standard roles as I build my own. -
Difference between SAP/APO/DP and the SAP/CRM solution for forecasting
Hi,
Can you please help me identifying the main differences between SAP/APO/DP and the SAP/CRM solution for forecasting? Advantages and disadvantages?
Thanks a lotHi LCD777,
Forecasting at DP & CRM are altogether at different entities. CRM involves webbased data transfer mechanism tool whereas DP is database/livecache driven tool.
In CRM, you dont get optimised solution of forecasting out of it whereas in DP you can get as much as
optimised solution & flexibility as per your requirements.
DP is majorly a forecasting tool where in huge statistical method functionalities are embedded in
whereas CRM is majorly a transactional tool wherein it involves gathering of forecast data and executing it.
Typically, CRM will be integrated with DP containing GATP environment & ECC so that DP will plan for forecast data, ECC system drives sales order data & GATP calls for availability check and finally
the forecast execution& transactions will be controlled by CRM
Regards
R. Senthil Mareeswaran. -
Data movement from R/3 DB to APO DB and to Live cache
Dear APO Experts,
I have few questions on live cache and how it works, I understand that Live cache is memory resident database. below are my questions.
1) What sought of data move from R/3 DB to APO DB and then to Live cache DB
2) When data moves from APO DB to Live cache, till how much duration that data stays in live cache
3) And how does data gets pulled in to live cache from APO DB
4) Why do we require live cache logs while data never gets commited to hard disk
5) Do we ever add a datafile to Live cache DB
any info that you provide on this will be really helpfull to me
Thanks,
ChetanHello Chetan,
As you know, itu2019s MAXDB/liveCache forum.
What is the version of your system?
The is documentation available at:
SAP liveCache technology
< Please review document u201CWhat is SAP liveCache technology?u201D >
Sap documents at service.sap.com/scm -> Technology:
u201CliveCache overviewu201D and u201CIntegration overviewu201D
For SAP liveCache documentation also see the SAP note 767598.
Go to SAP link Best Practices for Solution Management: mySAP SCM at SAP liveCache technology ...
And Review the document u201CManage APO Core Interface in SAP APO (3.x) / mySAP SCM (4.x/ 5.0)u201D
1. As you saw in the reference documents the data transferred from the connected R/3 system to APO.
And the transactional data could be uploaded to the liveCache, if you downloaded them
to the APO database cluster tables first. This procedure steps are running during the
system upgrade < for example, from SCM 5.0 to SCM 7.0 ) u2013 report /SAPAPO/OM_LC_UPGRADE_70 steps. Or you want to migrate the
liveCache to another operating system or convert your system to Unicode,
and therefore you want to back up the liveCache data first so that you
can reload it into the liveCache afterwards - SAP Note No. 632357.
2. Could you collaborate more on this sentence. Could you give examples?
3. u201CAnd how does data gets pulled in to live cache from APO DBu201D
The data are not pulled from the APO DB to liveCache.
When you changed the APO data on the system the LCA procedures have been called from ABAP. The objects stored in the class containers in liveCache can be accessed and manipulated only via LCA routines. The registration of the LCA routines is done automatically when the liveCache is started by the LC10. The LCA procedures in the LiveCache are written in C++
and shipped to the customers as binary LCA libraries(LCA build) together with the LiveCache.
< See more details in SAP Note No. 824489 or 1278897 as of SCM 7.0 >
4. See the SAP notes:
869267 FAQ: SAP MaxDB LOG area
1377148 FAQ: SAP MaxDB backup/recovery
5. You could run the quicksizer & estimate how much data you are planning to have in liveCache.
Also the amount of data could be increased by the creation of the new data in APO by users
Or another reason u2026
In general you will add the datavolume to solve or prevent the DB_FULL issue,
See u201C17. What do I do if the data area is full? u201C in SAP note 846890.
Thank you and best regards, Natalia Khlopina -
How to know last run time and who ran the query
Hi
I am doing the analysis for all the queries , their last run time and who ran the query
Since there are almost 6000 queries , is there any way to find out last run time and who ran the query
in one step or through any transaction else It would huge effort taking task to check the data in BW statistics
table for each query
Regards,
VivekHi,
Statistics should be switched ON for all the queries first. You can check this in RSDDSTAT.
Statistics data is stored in BW for a specific period only. This setting can be maintained in table RSADMIN (Field : TCT_KEEP_OLAP_DM_DATA_N_DAYS). If the value for the field is 30, then 30 days old statistics will be available at any point.
Not all the queries will be ran daily. Some are ran daily, monthly and yearly depending upon User requirement.
1. You can check in RSDDSTAT_OLAP for the details you needed.
2. You can install the BI Technical Content and run the respective query for the details you needed.
Hope this helps.
Regards,
Sunil
Maybe you are looking for
-
Error message when trying to open windows7 via vmwarefusion.
error message when trying to open windows7 via vmwarefusion.; Unable to open file "/Users/geraldw/Documents/Virtual Machines.localized/Windows 7.vmwarevm/Windows 7-000016.vmdk": The system cannot find the file specified. I've completely uninstalled v
-
New Airport Express is not discoverable by Airport Utility
Hello, After searching the forums for a while and not finding any posts that really address the issue I'm having, I've finally decided to create my own post. I received a brand new Airport Express from my girlfriend for Christmas. I've finally gotten
-
Sending Components to SC-Vendor from Sale Order Stock
Hi Anybody can throw some lights on following Issue .. Our Customer is Placing Order with Us .It is an MTO Scenario . The Product is Assembly In that Assembly, we have to Send some components to our Sub Contracting Vendor and get back one HALB Prod
-
Can no longer scan with the HP Envy 4500
I can no longer scan documents with the HP Envy 4500. When I try to scan it times out and I receive the following error message: "Scanner communiocation cannot be established. Ensure your product is powered on, check the connection, and ensure your
-
PDF is missing .mov files
ID CS2, OS X 10.4.11 31 page catalog with 10 interactive .mov links. They are not embedded as they a large. They appear to be properly linked. As I did each page I would Export the individual page and test that the .mov ran. OK. Now when I Export the