Query to get number of invoice created by user between from and to date
Dear All
I need Query to get number of invoice created by user on day and his orgainization between from and to date.
thanks
select count(*) from ap_invoices_all where created_by = :p_User_id
and trunc(creation_date) between :p_from_date and :P_to_date;
Thanks/SRK
Similar Messages
-
Getting an error while creating a ERP Quotation from CRM Sales Web-UI.
Hi Experts,
I am getting an error while creating a ERP quotation from CRM Sales Web-UI. Here I am enclosing the screen shot. Please give me the solution for this.Thank you in advance.
Regards
Kishor Kumar.Hi Kishore,
Please refer to the link below -
Entry of ERP Sales Documents in SAP CRM - Sales Quotation and Order Management - SAP Library
Also, refer to the SAP note -
1446253 - FAQ note: ERP documents in the CRM Web UI (lead-to-cash scenario)
This note will give you the related topic and the configuration required through SAP help links.
Hope this will be useful.
Thanks and Regards
DJ -
Query to get the Discoverer privileges granted to user / responsibility
Hello,
I am discussing the oracle applications EUL here.
I am interested to know the privileges granted to a user / responsibility from backend or any option with "eulapi" utility which can be used to list the same.
Which EUL table should I query to get the privileges granted to a user / responsinility?
Thanks,
AjayHi Ajay,
Which EUL table should I query to get the privileges granted to a user / responsinility?Go through this link you wil get what your looking for.
Re: List of Users in Admin layer under Privileges
Hope this helps you.
Best Wishes,
Kranthi. -
How to create a program that accepts 5 digits from the user between 0 and 9
how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..
You can use a scanner to get user input from the command line.
import java.util.*;
public class Test {
private List<Integer> list;
private Scanner in;
public static void main (String... args) {
new Test ();
public Test () {
list = new LinkedList<Integer> ();
in = new Scanner (System.in);
for (int i = 0; i < 5; i ++) {
System.out.format ("Please enter a number (%d more): ", (5 - i));
list.add (in.nextInt ());
Collections.sort(list, new Comparator<Integer> () {
public int compare (Integer i1, Integer i2) {
return i2 - i1;
System.out.println (list);
} -
Ora-01847 day of month between 1 and last date of month coming in my query
i m executing simple query but it is not working plz do help
select *
from sgvf_tree_nodes_vw
where to_date(node_attr9_val, 'dd/mm/yyyy') between
to_date('01/01/2010', 'dd/mm/yyyy') and
to_date('31/12/2010', 'dd/mm/yyyy')
gives : Ora-01847 day of month should be between 1 and last date of monthHi,
Check the date format's once
SQL> drop table demo;
Table dropped.
SQL> create table demo(val number, todate varchar2(12));
Table created.
SQL> insert into demo values(1,'04/11/2008');
1 row created.
SQL> commit;
Commit complete.
SQL> select * from demo;
VAL TODATE
1 04/11/2008
SQL> select sysdate from dual;
SYSDATE
03-FEB-11
SQL> insert into demo values(1,'04/11/2010');
1 row created.
SQL> commit;
Commit complete.
SQL> select *
2 from demo
3 where to_date(todate,'dd/mm/yyyy') between to_date('01/01/2010', 'dd/mm/yyyy') and to_date('31/12/2010', 'dd/m
m/yyyy');
VAL TODATE
1 04/11/2010- Pavan Kumar N -
I have multiple devices (iMacs, Lap tops, Ipads) all connected to a Nas Drive. Can I create a user for myself and one for my wife and we each have our own apple ID's, Itunes etc, but share the same data on the hard drives? So when she logs in, and sync's her ipads, they will sync with her stuff and when I do the same under my user account, on the same device, my ipads will sync with my stuff?
You can share the same Apple ID for purchasng form the iTunes and app stores without any problems, but you should all used separate iCloud accounts with separate Apple IDs. (You are not required to use the same ID for iCloud and other services as you do for the iTunes store.) This will prevent you from ending up with merged data. You should also use separate Apple IDs for iMessage and FaceTime or you will end up getting each other's text messages and FaceTime calls.
This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/, as well as this video: http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l. -
Is it possible to create a virtual TCP port and send data to it?
Is it possible to create a virtual TCP port and send data to it?
My application is this: I am reading a constant stream of waveform data from a device via a LabVIEW VI set and I need to get that streaming data to a .NET application. I can poll a TCP port in .NET easily so is there a way I can create a virtual TCP port in LabVIEW and send the data there?Have a look at the example called simple data server and simple data client and see what you can get from that. I'm not really familiar with TCP myself.
Joe.
"NOTHING IS EVER EASY" -
There used to be a preview window in mail where you could read the message in the mail box but now its gone. It just shows me who its from and the date. I now have to click on the message twice to get it to display. How do I get the preview box back?
There is a bug in Mail triggered by receiving a password-protected PDF as an attachment. According to reports, the bug is fixed in OS X 10.8.5.
-
How to create a user using XML and specifying addional attributes that are objects
I'm trying to create a user using XML and specifying some attributes that are objects and not sure how to do it. How would I set the DirectoryUserAcl to Public?
Here's the xml file:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl> ??? </DirectoryUserAcl>
<DefaultAclBundleAcl> ??? </DefaultAclBundleAcl>
<HomeFolderPolicyBundleAcl> ??? </HomeFolderPolicyBundleAcl>
</SimpleUser>I figured out the answer:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>mike2</UserName>
<Password>abc123</Password>
<AdminEnabled>false</AdminEnabled>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasContentQuota>false</HasContentQuota>
<DirectoryUserAcl classname="SystemAccessControlList" refType="name">Public</DirectoryUserAcl>
</SimpleUser>
null -
How to create database link between oracle and SQL Server
Hello Everyone,
Here i have Oracle Database 9i and SQL Server 2005 databases.
I have some tables in sql server db and i want to access from Oracle.
How to create a database link between these two servers
Thanks,Thanks for Everyone,
I was struggle with this almost 10 days....
I created Database link from Oracle to SQL Server
Now it is fine.........
Here i am giving my servers configuration and proceedure how i created the db link...@
Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
Machine (1)
DB Version : Oracle 9.2.0.7.0
Operating System : HP-UX Itanuim 64 11.23
IP : 192.168.0.31
Host : abcdbt
Machine (2)
Version : SQL Server 2005
Operating System : Windows server 2003 x86
IP : 192.168.0.175
Host : SQLDEV1
User/PW : sa/abc@123! (Connect to database)
Database : SQLTEST (exsisting)
Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
Prerequisites in Machine (2):
a) Oracle 10g software
b) User account to access SQL Server database (sa/abc@123!)
c) Existing SQL Server Database (SQLTEST)
d) Tables (testing purpose) (T)
Steps:
1) Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
2) Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
You can follow this link also.....
http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
I created DSN as
DSN name : SQLTEST
User : SA/abc@123! (Existing user account)
Host : 192.168.0.175 (machine 2)
Already I have 1 database in SQL Server with the name SQLTEST
You can create DSN with different name also (not same as db name also)
3) Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
Create init<DSN NAME> file
Ex: initSQLTEST
Copy inithsodbc to initSQLTEST
And edit
initSQLTEST file
HS_FDS_CONNECT_INFO = SQLTEST <DSN NAME>*
HS_FDS_TRACE_LEVEL = OFF*
save the file....@
4) Configure Listener.ora *(Machine 2)*
LISTENER_NEW =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
SID_LIST_LISTENER_NEW =
(SID_LIST =
(SID_DESC =
(SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
(ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
(PROGRAM = hsodbc))
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
(PROGRAM = extproc) )
:> lsnrctl start LISTENER_NEW
5) Configure tnsname.ora *(Machine 2)*
SQLTEST11 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SQLTEST))
(HS=OK)
:> tnsping SQLTEST11
If No errors then conti….
6) Configure a file *(Machine 1)*
Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
Create a file
$ vi TEST_abcdbt_ifile.ora
something=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
(CONNECT_DATA=
(SID=SQLTEST))
(HS=OK)
$ tnsping something
$ sqlplus system/manager
Your connected to Oracle database *(machine 1)*
create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
select * from t@xyz;10 rows selected.
Thanks,
Edited by: ram5424 on Feb 10, 2010 7:24 PM -
Mountain Lion has created new user log-ins and moved old Users to a separate folder
Mountain Lion has created new user log-ins and moved old Users to a separate folder.
The new users are set-up as "standard" and the old ones were "Administrators"
All files are missing, i.e. no desktop files etc. But they are located in a folder called "Users 1" which is a new folder.
Can anyone help?Here is perhaps the solution :
http://forums.macrumors.com/showthread.php?t=1191262
follow the "Ratatapa's" instructions.
1/ boot on Recovery part (command R)
2/ find "terminal" in disk utilities
and write "resetpassword" for root. Enter a new password for the root user.
3/ reboot as root user (or when your are login, log out and typing to open a other user "root")
in the "system pref" panel, open "users and groups" and then create new user with the same name, same password.. normally it must be asking you about "You are already an account with the same name" say yes. And it's done.
4/ Log out. re-log as the normal user. desactivated the root user.
about "root user", see also :
http://support.apple.com/kb/ht1528
your welcome
f -
Can we create Mobility group between WISM2 and WLC 5500
Dears,
I need your feedback urgent please,
Can we create Mobility Group between WISM2 and WLC 5500
Firmware for WISM2 > 7.4.121.0
Firmware for WLC5500 > 6.0.196.0
I created Mobility Group with (IP address , MAC Address and Mobility group name) for Foreign Controller. if any configuration required from my side.
Wait your feedback urgent please
Regards,Hi,
Controllers do not have to be of the same model to be a member of a mobility group. Mobility groups can be comprised of any combination of controller platforms.
Thats enough :)
Regards
Dont forget to rate helpful posts -
How to create shared folder between mac and windows
how to create shared folder between mac and windows
Us ean external drive formatted FAT32 or ExFat. Both OSx and Windows can read/write to the drive and both can use the same data files as long as you have a program that can open and save these files. For example, Word running both on OSx and on Windows will be able to work with the same document on the external drive.
-
Query on batch number in Invoice
Hi Experts,
I would like to get the batch number picked during the Delivery document and shown in the print layout in A/R Invoice. Unfortunately, PLD of Invoice with Batch will not show the Batch numbers as they're already linked in the DR document.
My workaround is to attach a FMS in the INV1 field line to get the batch number when the Invoice is copied from the DR.
Any help with the query is very much appreciated.
We are using 8.81 PL7.
Thanks,
DonHi Don..........
Please check this........
Select (Case When T1.BaseType=15 then I1.BatchNum else I11.BatchNum end) 'BatchNum', T0.DocNum 'Inv. No'
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCTG T2 ON
T0.GroupNum = T2.GroupNum LEFT Join INV12 T3 On T3.DocEntry=T0.DocEntry LEFT JOIN OITM T4 On T4.ItemCode=T1.ItemCode LEFT JOIN OCHP T5 On T4.ChapterID=T5.AbsEntry
LEFT Join DLN1 T6 On T6.DocEntry=T1.BaseEntry and T6.LineNum=T1.BaseLine
left outer join IBT1 I1 on T1.ItemCode=I1.ItemCode and (T6.DocEntry=I1.BaseEntry and T6.ObjType=I1.BaseType)
left outer join OBTN T8 on T8.ItemCode=I1.ItemCode and I1.BatchNum=T8.DistNumber
LEFT Join WTR1 T16 On T16.DocEntry=T1.BaseEntry and T16.LineNum=T1.BaseLine
left outer join IBT1 I11 on T1.ItemCode=I11.ItemCode and (T16.DocEntry=I11.BaseEntry and T16.ObjType=I11.BaseType)
left outer join OBTN T18 on T18.ItemCode=I11.ItemCode and I11.BatchNum=T18.DistNumber
LEFT Outer Join OWHS T20 On T20.WhsCode=T0.Filler
Run this query you get Invoice No. and its Batch.....
You may insert required c0olumns also.....
Regards,
Rahul -
Sql query to get number of days monthwise
Hi,
i am new to sql, can anyone please tell me query to find number of working days between two dates month wise.
say
firstdate last date
21/03/2011 25/06/2011
march april may june
9 22 23 18Hi,
918373 wrote:
even a result like,
stud_id month amount
1234 MAR-11 xyz
1234 JUL-11 ...Please post the exact output that you want.
Do you want 'xyz' in the output, or do you want a number like 42 (2 hours * 6 weekdays in March 2011, plus 5 hpours * 6 weekdays = 12 + 30 = 42)?
If you want 42, then post 42. Spend 5 minutes (if it comes to that much) with a calendar and a calculator to get the exact results you want.
>
>
is much better,
in that case i want it as a view, so that i can get further details from the view....Substituting your table and column names, into the query I posted earlier and replacing COUNT (*) with SUM (no_of_hours), the query is
WITH cntr AS
SELECT LEVEL - 1 AS n
FROM (
SELECT MAX (enddate - startdate) AS days_in_range
FROM class_dets
CONNECT BY LEVEL <= 1 + days_in_range
SELECT x.stud_id
, TO_CHAR ( TRUNC (x.startdate + c.n, 'MONTH')
, 'fmMonth YYYY'
) AS month
, SUM (no_of_hours) AS total_hours
FROM class_dets x
JOIN cntr c ON x.enddate >= x.startdate + c.n
WHERE TO_CHAR ( x.startdate + c.n
, 'DY'
, 'NLS_DATE_LANGUAGE=ENGLISH' -- If necessary
) NOT IN ('SAT', 'SUN')
GROUP BY x.stud_id
, TRUNC (x.startdate + c.n, 'MONTH')
ORDER BY x.stud_id
, TRUNC (x.startdate + c.n, 'MONTH')
;The output, with the sample data you posted, is:
` STUD_ID MONTH TOTAL_HOURS
1234 March 2011 42
1234 April 2011 147
1234 May 2011 154
1234 June 2011 154
1234 July 2011 72
1234 August 2011 46
1234 September 2011 14
1235 June 2011 36
1235 July 2011 84
1235 August 2011 92
1235 September 2011 88
1235 October 2011 12
1236 June 2012 56
1236 July 2012 154
1236 August 2012 14Aside from pivoting, is that what you want?
i edited the your query,
WITH all_dates AS
SELECT start_date + LEVEL - 1 AS a_date
FROM (
SELECT TO_DATE ((select startdate from class_dets where stud_id=1236), 'DD/MM/YYYY') AS start_date
, TO_DATE ((select enddate from class_dets where stud_id=1236), 'DD/MM/YYYY') AS end_dateInstead of the 2 lines above, the query I posted had
SELECT MAX (enddate - startdate) AS days_in_rangeWhy did you make that change?
The first argument to TO_DATE is supposed to be a string. You're calling TO_DATE with this as the first argument
(select startdate from class_dets where stud_id=1236)which is a DATE, not a string.
FROM dual
CONNECT BY LEVEL <= end_date + 1 - start_date
SELECT TO_CHAR ( TRUNC (a_date, 'MONTH')
, 'fmMonth YYYY'
) AS month
, COUNT (*) * (select fee from class_dets where stud_id=1236) * (select no_of_hours from class_dets where stud_id=1236) AS amount
FROM all_dates
WHERE a_date - TRUNC (a_date, 'IW') < 5
GROUP BY TRUNC (a_date, 'MONTH')
ORDER BY TRUNC (a_date, 'MONTH')
it works very well, but instead of specifying stud_id as 1236,
but when i say,
WITH all_dates AS
SELECT start_date + LEVEL - 1 AS a_date
FROM (
SELECT TO_DATE ((select startdate from class_dets where stud_id=cd.stu_id), 'DD/MM/YYYY') AS start_date
, TO_DATE ((select enddate from class_dets where stud_id=cd.stud_id), 'DD/MM/YYYY') AS end_date
FROM dual
CONNECT BY LEVEL <= end_date + 1 - start_date
SELECT cd.stud_id,TO_CHAR ( TRUNC (a_date, 'MONTH')
, 'fmMonth YYYY'
) AS month
, count(*)
, COUNT (*) * (select fee from class_dets where stud_id=1236) * (select no_of_hours from class_dets where stud_id=1236) AS amount
FROM all_dates,class_dets cd
WHERE a_date - TRUNC (a_date, 'IW') < 5
GROUP BY TRUNC (a_date, 'MONTH'),cd.stud_id
ORDER BY TRUNC (a_date, 'MONTH'),cd.stud_id
i get error
SELECT TO_DATE ((select startdate from class_dets where stud_id=cd.stu_id), 'DD/MM/YYYY') AS start_date
ERROR at line 6:
ORA-00904: "CD"."STU_ID": invalid identifierThere's no column called stu_id in class_dets. There is a column called stud_id (with 2 'd's).
>
what should i do?
(sorry about the query format...how display query in a formatted way? )This site noramlly compresses whitespace.
Whenever you post formatted text (including, but not limited to, code) on this site, type these 6 characters:
\(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
Maybe you are looking for
-
How can I control the playback of a Flash sprite in Director?
I'm trying the sprite(#).movierate method to specify playing, pausing, and rewinding but it's not working. What's the proper way of doing it? Any help will be very appreciated!
-
ITunes recover from iPod Classic
Could anyone advise how to recover my itunes inc playlists from my iPod classic??
-
Using variable in Grand Total Label
Hi All, I am using OBIEE 11.1.1.5 on Windows Vista. Can we use variable values in Grand Total label in pivot and table views? For eg. If user chose 2013 in dashboard prompt and we saved that in a presentation variable and want to use in the Grand Tot
-
my ipod nano 7th gen is not showing artwork despite it's all shown in my itunes. how do i get it seen on the ipod?
-
[SOLVED] Make Pacman cache packages installed with -U
When installing a package with -U, pacman doesn't cache packages as it does when installing with -S. Is there a way to change this behavior? I read somewhere that specifying the package's full path and prepending "file://", as in "pacman -U file://pa