Need inputs for query
Hi,
Need inputs for generating the query in the below format:
Workflow_name Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Prerequisites
UpdateETLTables
i have written a query but the output it is generating is in a different way:
SELECT workflow_name,
TO_CHAR (TRUNC (start_time, 'mm'), 'Month'),
COUNT(*)
FROM rep_wflow_run
WHERE SUBJECT_AREA='SBAN'
AND START_TIME > '01-AUG-2011'
AND START_TIME < '31-DEC-2011'
GROUP BY TRUNC (start_time, 'mm'), workflow_name
order by workflow_name
the o/p for the above query was:
Prerequisites August 491
Prerequisites September 465
Prerequisites October 479
Prerequisites November 479
Prerequisites December 475
i want the query that should print the o/p as :
Workflow Aug Sep Oct Nov Dec
Prerequisites 491 465 479 479 475
UpdateETLTables 10 200 300 56 14
Edited by: 981806 on Jan 14, 2013 2:38 PM
A couple of thoughts in no particular order.
1. Read the FAQ and learn how to use { code } tags to post a readable listing
2. Your version number is (all decimal points)
3. Provide DDL for the table
4. Provide INSERT statements with sample data
5. This is horrifying
START_TIME > '01-AUG-2011' Dates are dates ... not strings. Best case you have an implicit conversion ... worst case a statement that will return invalid results. Either change the data type or do an explicit cast with TO_DATE.
Similar Messages
-
hi i want to test query in query analyzer befor using in programe.
i need tcode for query analyzer.
thanks in advanced.hi,,
SE30 - gives you a run time analysis and points out the issues more at design time.
ST05 - Is the most useful if you want to track time taken for execution of each of the sections.
SM50 - Will give you a work process overview, not sure at a program level how can it help you.
Some times you will have to use a combination of SE30 and ST05.
I would like to use St05 personally.
rgds
anver
if hlped mark points -
Need input for my requirement?
HI all,
I have requirement like this.
Client have this existing logic.
The javascript downloads the exchange rates from the internet site abc.com by using the user name for xxxx and stores in the .CSV file .
Another Vb.net program takes that file and reformat it to suit SAP and saves in our file server for pick up.
Now my client want to do it in using PI7.1
How to do it.Please give your inputs.
Thanks.You can make use of a BPM here
JAVAScript (SOAPReq) -
> ReceiveStep ---> TransformationStep ---> SyncSend(to Internet site via SOAP) ---> Transformation (to convert the Internet site response to the SAP format) ---> SendAsync(to File server)
Assuming that you do not need a CSV file anymore and VB.net program needs to be replaced
If you need a CSV file and also a SAP supported File then:
JAVAScript (SOAPReq) -
> ReceiveStep ---> TransformationStep ---> SyncSend(to Internet site via SOAP) ---> Transformation(Internet site response to File format) ---> SendAsync (Need to apply FCC in the receiver File CC to convert to .csv file) ---> Transformation (to convert the Internet site response to the SAP format) ---> SendAsync(to File server)
If there is anything else that you are looking at then may be more details would be required from your side.
Regards,
Abhishek. -
Hi All,
Here is requirement
User X has View only and Account manager Role then we don't need to report any changes for him. And if User Y has View Only role then we need to report his activity.
select u.loginname, p.firstname,p.lastname,g.name
from sc_user u, bqperson p, sc_acl_group_mem gm,
sc_acl_group g,sc_acl_group gnm
where u.bqperson = p.tril_gid and u.tril_groups = gm.collectiongid AND gm.objectgid =
g.tril_gid AND
(g.NAME LIKE 'VIEW ONLY' OR g.NAME LIKE 'SME%')
ORDER BY loginname
Here is out put
LOGINNAME FIRSTNAME LASTNAME NAME
b684276 xxx xxx VIEW ONLY
default Guest User VIEW ONLY
n105371 Adil Khan SME EXGRATIA ADMINISTRATOR
n105371 Adil Khan SME SERVICE CENTRE SUPERVISOR
n105371 Adil Khan SME PROMOTIONS ADMINISTRATOR
n105557 Emmanuel Kajjor SME EXGRATIA ADMINISTRATOR
n105557 Emmanuel Kajjor SME SERVICE CENTRE SUPERVISOR
n105740 Priya Ghag SME EXGRATIA ADMINISTRATOR
n105740 Priya Ghag SME SERVICE CENTRE SUPERVISOR
n106311 Megha Nalawade SME EXGRATIA ADMINISTRATOR
n106311 Megha Nalawade SME SERVICE CENTRE SUPERVISOR
n106311 Megha Nalawade SME PROMOTIONS ADMINISTRATOR
n107864 Ragini Sule SME EXGRATIA ADMINISTRATOR
n107864 Ragini Sule SME SERVICE CENTRE SUPERVISOR
n107864 Ragini Sule SME PROMOTIONS ADMINISTRATOR
n110022 Harikrishna Kurup SME EXGRATIA ADMINISTRATOR
n110022 Harikrishna Kurup SME SERVICE CENTRE SUPERVISOR
n110022 Harikrishna Kurup SME PROMOTIONS ADMINISTRATOR
n110450 Rachana Vasandani SME EXGRATIA ADMINISTRATOR
n110450 Rachana Vasandani SME SERVICE CENTRE SUPERVISOR
n110932 Jigna Trivedi SME EXGRATIA ADMINISTRATOR
n110932 Jigna Trivedi SME PROMOTIONS ADMINISTRATOR
n110932 Jigna Trivedi SME SERVICE CENTRE SUPERVISOR
Please advice
Thanks in advance
SachinHi Sudeep,
Account manager is Simply a role like View Only and 'SME %'
Some user can have Roles Like 'View only' ,'Account manager' ,'SME%' They are all differnt Role
Some user Can have only 'View only' Role
Some user can have 'SMe%' Role
Some user can have 'SMe%' , 'Account manager' Role
etc probabilites
I want to retrieve the record for thiose user who have 'View only' Role or 'SMe%' Role
Some times it might happened user can have 'View only' ,'Account manager' ,'SME%' .This should come in list
if USer has any role with 'Account Manager' its result should not appear in Query other wise it should appear -
Need input for this requirement?
Hi All,
I got new requirement. In this i need to display one world map on that map i have so show blinking star for the customer countries.
if the user click on perticular blinking star i need to display some data.
How to achive this? please help me out.
Thanks and Regards,
Phani Kumar.Phani,
You can also use Google Maps API .You can find help in below links:
http://code.google.com/apis/maps/documentation/reference.html
http://net.tutsplus.com/javascript-ajax/this-is-how-you-use-the-google-maps-api/
-Suresh -
Need inputs for FILE-Webservice-File using BPM scenario
Hello All,
can any one tell me how to do the file-webservice(soap adapter)-file with out BPM.
If we cant do with out BPM then, please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
Thanks and Regards,
chinnaHi Chinna,
Check this links for the receiver side SOAP configuration
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
Sender side File adapter configuration is as usual
> please let me know after importing the WSDL file, how many Message interfaces i need to create what are they.
It is a synchronous scenario so you need to create the two message interfacess for the sender (one is for request message and another is for response message). For receiver you don't need to create any message interfaces, because the WSDL internally having the two messages (request and response).
Regards
Ramesh -
Need inputs for creating Jar file
Hi All,
I am doing the scenario as file to mail. so here i am using java mappings for sending the file in mail attachment.
as i can see in my system there are already one imported archive exists with name called "java_mappings".
in that i can find 10 to 12 mapings which are used for different interface.
i have tried to export the imported archive to my local system and created the project with same in NWDS.
but here i can not find jar file.
can anyone suggest how can i get jar file for already exist the imported archive.
second option is if i want to create new mappings then how can i get the Jar file.
thanks,
BhaskarHi Bhaskar,
Jar file is an archive which consists of all class files needed by Java mapping. If you have a folder named Java_mapping and you guess that it is being used in different interfaces, then it should have the class files in it... may be the source code is missing...
I will suggest you to export it into your local machine and extract using winzip.. then you might see some file with .class extesnion. Try a tool like frontendplus which will make java code from java class file to get there code..
Now if you are trying to make one for your requirement i would suggest to read the stefan grube blog..
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414700%29ID1981012450DB01072979760660502867End?blog=/pub/wlg/4774
Also note that the java mapping is just a jar file which has:
1. the com.sap.xpi.ib.mapping.lib.jar (PI7.1) or aii_map_api.jar (PI7.0 or XI3.0) file
2. You java code class file.
Regards
Suraj -
Need help for query... exam incoming...
ARTIST(CodA,NameA)
WORK(CodW,Title,AuthorCode,ExpositionCode)
Question:
For each ExpositionCode, find the artists with the greater number of exposed works
Pls... help!!
FabioIt's running, i have only to remove title
italics with howmuch as
italics(select ExpositionCode,AuthorCode,count(*) n from work
italicsgroup by ExpositionCode,AuthorCode)
italicsselect ExpositionCode,AuthorCode,n from howmuch h1,ARTIST a
italicswhere h1.n=(select max(n) from howmuch h2 where h2.ExpositionCode=h1.ExpositionCode)
italicsand a.CodA=h1.AuthorCode
I have only a little problem... i can't use "with" clause in the exam, can u write a running query without that? -
Procedure running slow Need inputs for Performance Improovments
we have 3 tables and we need to update the date in one table based on criteria. I had created a procedure and it is taking hours to complete. can any one help me how I can improve the performance.
Here is the procedure
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY';
DECLARE
CURSOR c1 is
select distinct TO_DATE(po.INTRO_DATE, 'MM/DD/YYYY'), po.article_num, po.season from R_INTRO_DATE po where po.band='26' ;
introDate Date;
num1 VARCHAR2(20);
code VARCHAR2(20);
sqlquery VARCHAR2(2000);
BEGIN
OPEN c1;
FETCH c1 INTO introDate, num1 , code ;
WHILE c1%FOUND loop
sqlquery := 'update spl set date2=TO_DATE(''' ||introDate||''', ''DD-MON-YYYY'') where oid=(select distinct spl.oid from spl,seas, sku where seas.att18=''';
sqlquery := sqlquery ||code ||''' and sku.att23=''';
sqlquery := sqlquery ||num1 ||''' and sku.master=lspl.skuid and seas.master=spl.a3b5)';
EXECUTE IMMEDIATE (sqlquery);
FETCH c1 INTO introDate, num1 , code ;
END LOOP;
CLOSE c1;
END;
Regards
YadalaHi Yadala,
Could you please share with the database version you are using?
Do an Explain plan and check if the UPDATE sql use the indexes (if any). Kindly share how many number of records are getting updated as part of this SQL query?
You can try using EXECUTE IMMEDIATE using clause rather hard coding your SQL statements.
http://docs.oracle.com/cd/B13789_01/appdev.101/b10807/13_elems017.htm
https://forums.oracle.com/thread/1067773 -
HI,
I am doing report first time.
I have date in my key field. Report should be developed in such way that user will give month as input..then it should fetch all records with in that month..
pls its urgent help me..
Ravi
Message was edited by:
Ravi kanthhi ravi..
create a variable for the date and use it in replacement path..
chk these links for creation of variables ...
http://help.sap.com/saphelp_nw04/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
I think the following links help u.
http://help.sap.com/search/highlightContent.jsp
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
Please check this link which is clearly explained with example and step by step how to create replacement path variable.
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html.
replacement path
why we use customet exit variables?
Re: Selection Variables in WAD
variables-- with examples .
hope it helps.. -
Need input for error caused while trggering a output type
I had created a custom program and assigned it to a custom output type. while processing this output type through VF01(billing doc) it is generating an error saying commit_in_posting. can anyone suggest in this regard........
1Check for VF01 is there any control routine written for this output type which blocks it from triggering this output.
2. are there any condition records maintained which are creating problems.
3 check the out put poecedures aslo.... -
I have Table1
ID -- Key -- Name -- City
1--R1--abc--xyz
2--R1--abc--xyz
3--R1--pqr--xyz
4--R1--abc--xyz
5--R1--abc--stp
6--R2--abc1--xyz1
7--R2--abc1--xyz1
8--R2--pqr1--xyz1
9--R2--abc1--xyz1
10--R2--abc1--stp1
I want to get result - Max(ID) where Key + Name + City is same for all rows. there should be one max per key
and result like -
Key-- MaxID
R1--4
R2--9
Edited by: 871447 on Oct 19, 2011 1:54 PM
Edited by: 871447 on Oct 19, 2011 1:56 PMMaybe (NOT TESTED!)
select key,max_id
from (select key,name,city,max(id) max_id,count(*) cnt
from table1
group by key,name,city
where cnt > 1Regards
Etbin -
Help needed in mapping BI query output to use as input for BAPI
Hi,
After wrestling with it for quite some time I choose to ask yet another question here. I want to use the output of a BI query I use as input for a BAPI. I just can not get the mapping correctly:
The query delivers: 104908BA092F7501F5E1008000829000AC
I need: 104908BA092F7501F5E1008000829000AC
How can I lose the two first digits? Thanks in advance!
Best regards,
JanNevermind. I found out myself. I am now using the statement MID(@GUID,2,32) in the connection.
-
Hi Dear All,
We have two real time infocubes and two aggregation levels based on these cubes in one multiprovider
first cube1 is like
char1| char2| keyfig_coefficient(single value for each combination of char1 and char2)
same aggregation level1
(we have input query to fill coefficients by one responsible user)
second cube2 is like
char1| char2| keyfig_quantity| keyfig_result
same aggregation level2
Input ready query should be like (for all other users of different org units)
char1|char2|keyfig_coeff| keyfig_quant(for input) | keyfig_result = keyfig_coeff*keyfig_quant(calculated value, should be saved to cube2)
And we don't have pregenerated lines in cube2, users have to add new lines themselves by wad.
Question is, what is the optimal (easiest) way to make calculation and save result data to cube2 where keyfigures for calculation should be used from different infoproviders. I need just a hint.
Appreciate any help.
Nadya.I found decision, agregation levels sould be based on multiprovider, not included.
-
Restriction data entry for input ready query
Dear All,
I have an input ready query with two structures for rows and columns.
However, I have set one of columns' structure's member as "data can be changed with planning functions", i'm able to enter data for that column. When i execute save function, entered valus are being disapperaed.(not benig written to the cube)
But i want to restrict data entrance for that column. (Like display functionality in BPS)
I know i can protect fields with excel functionality, but we are using web environment.
How can i resolve mentioned issue?
Thanks
AlkanHi Bindu,
Thanks for your quich answer.
In web environment, i think i need to use WEB API.
Do i need to write java script? Or is there any particular class to manage the properties of the cells?
BR
Alkan
Maybe you are looking for
-
I get error code 300-4 trying to use abc player
Error code 300-4 How to fix with abc player
-
Windows 7 does not recognize device
I have been successfully connecting my 8330 to a desktop PC running XP for quite a while. The device sw is v4.5.0.175. I recently got a new Lenovo T410 laptop, running Windows 7. I have downloaded the DM software (v5.0.1) and verified that my devi
-
Function chat between two versions of Portal
Hi experts, i would like to know if it´s possible to create a chat between two different versions of EP. (example: EP 6 and EP 7). I´m looking for the information but i cann´t find anything about it. Thanks a lot!!! L
-
My imac will stops at the log in
My imac can start up, at least it sounds like it does...but when it gets to the login screen it stops and I cannot use any of the navigation. And my keyboard seems useless. Please HELP!!!
-
I dont want version 6, I had version 5 happily running and it said I had to update, I have removed firefox for the time being, If I cant have version 5 again working, I will use another browser