Sql query to find the balances for a customer account wise.
Hi,
Could someone help me with the sql query to find the balances for each customer account wise. This is need to generate the report.
presently we are using this query, but the output doesnot return the expected result.
SELECT sum(nvl(ps.acctd_amount_due_remaining,0)) "Balance"
FROM ra_cust_trx_line_gl_dist_all gld,
gl_code_combinations c,
ar_payment_schedules_all ps,
RA_CUSTOMER_TRX_ALL rat,
ra_customers rc
WHERE c.CHART_OF_ACCOUNTS_ID = 101
and gld.code_combination_id = c.code_combination_id
and rat.CUSTOMER_TRX_ID=gld.CUSTOMER_TRX_ID
and rat.CUSTOMER_TRX_ID=ps.CUSTOMER_TRX_ID
and ps.customer_id=rc.customer_id
and ps.status='OP'
and ps.gl_date <= :PDATE
and ps.org_id=:PORGID
and ps.class in ('GUAR','INV','DM','DEP')
and c.SEGMENT4=:Account_id
and ps.customer_id=:Customer_id
Thanks in advance.
Kalyan.
Can someone help us with this.
Similar Messages
-
Can anybody provide the SQL query to find the files uploaded in a particular folder?
Hi All,
Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
Any help is greatly appreciated.
With best regards,
NevinNevin,
Be great if we could know the version of Portal. For Rel. 1, here's the query
select id,masterthingid from wwv_things
where siteid = &site
and cornerid = &corner
&site - Content Area id
&corner - Folder id
if you don't know the folder id, use
select id from wwv_corners where siteid = &site
and name = &folder
Hope this helps. I have run into this situation before. Usually, the culprits were
one of the following:
1. Junk Characters in description of item (caused due to Copy-Paste)
2. Special Characters in the File name
Hi All,
Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
Any help is greatly appreciated.
With best regards,
Nevin -
Sql query to find all contacts for an account
I wonder if someone wrote an sql query to find all contacts for an account number in Oracle customer master. We are on EBS 11.5.10.
I am also looking for sql query to find all ship to addresses for an account number.
Thanks.Can you also post the query for people who read this post and are also looking for an answer?
Regards,
Johan Louwers. -
H we find the balance for a particular gl account
h we find the balance for a particular gl account for a particular fiscal year
Try T-code FS10N it will display G/L balance for a fiscal year period wise & busiseness area wise.
anya -
SQL Query to find the Notify upon Completion employees
Hi,
I am looking for a query to find the names of the employees/users who are notified upon the completion of the Concurrent Programs. I know how to find the concurrent program details but not able to find notify upon completion employees details. Please help me.
Thanks,
KMThanks Scott for responding. There is no any custom code. Here is the navigation to reach there:
System Administrator -> Requests -> View -> Specific Requests -> Open any request ->View Details -> Options -> Notify the following people
I am looking for the query to find these notified people using SQL Query.Query FND_CONCURRENT_REQUESTS table (NOTIFY_ON_PP_ERROR column) -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
Thanks,
Hussein -
Sql query to find the space in between the sentense
hi,
can anybody tell me the query to find the space in between the data
chandanNot sure what you mean, but you might want to take a look at INSTR, like in
instr (txt, ' ') -
SQL Query to find cumulative values for a Financial Year
Dear users,
My requirement is to create a SQL query for a table/view where I have day-wise data. I want to find out cumulative values for financial year by giving any date. It should add the values from start of financial year till that date in the financial year.
I think creating a view of such type will post heavy burden on resources since accuimulation will be done for each day upto that day.
ThanksDear users,
My requirement is to create a SQL query for a
table/view where I have day-wise data. I want to
find out cumulative values for financial year by
giving any date. It should add the values from start
of financial year till that date in the financial
year.
I think creating a view of such type will post heavy
burden on resources since accuimulation will be done
for each day upto that day.
ThanksKumar's solution will serve yours purpose but m not agreed
I think creating a view of such type will post heavy
burden on resources since accuimulation will be done
for each day upto that day. Khurram -
SQL Query to find the Delta between 2 rows
Can the below be possible? If so can you help me writing aSQL Query to do so…
I have data in spreadsheet which is pulled off from the database (data from more than one table with joins); send it to the different teams. They will check the data n update the spreadsheet if necessary and send it back to me.
I have to find the changes and update the database from the provided spreadsheet accordingly. Changes can be on different columns on each set of row.
Example:
DataFrom
ServerName
Branch_Name
Application_Name
Server Status
Application_Status
App_Environment
Tier
SQL Query
abcdef
app
adp
Deployed
Deployed
Production
silver
Excel
abcdef
app
adp
Deployed
Deployed
Development
Bronze
DataFrom
ServerName
Branch_Name
Application_Name
Server Status
Application_Status
App_Environment
Tier
SQL Query
Hijkl
app
adp
Deployed
Deployed
Production
Gold
Excel
Hijkl
app
Dep
Deployed
Deployed
Production
Gold
DataFrom
ServerName
Branch_Name
Application_Name
Server Status
Application_Status
App_Environment
Tier
SQL Query
Xzy
app
Dep
Deployed
Deployed
Production
Silver
Excel
Xzy
App
Dep
Deployed
Deployed
Development
Silver
Above scenario is an example what I am look to do with sql script? Opinions/queries accepted…
There are 1200+ rows to compare it manually which is a pain.
Thanks.Columns are different, when the contain multiple distinct values.
SELECT COUNT(DISTINCT Name) ,
COUNT(DISTINCT GroupName) ,
COUNT(*)
FROM HumanResources.Department;
Without a concise and complete example (table DDL and sample data insert statements), it's hard to tell what the correct solution could be..
DECLARE @Sample TABLE ( SetID INT, ServerID INT, ApplicationID INT );
INSERT INTO @Sample
VALUES ( 1, 1, 1 ),
( 1, 1, 1 ),
( 2, 1, 1 ),
( 2, 1, 2 ),
( 3, 1, 1 ),
( 3, 2, 1 );
WITH Evaluate AS
SELECT SetID,
COUNT(DISTINCT ServerID) AS Servers,
COUNT(DISTINCT ApplicationID) AS Applications
FROM @Sample
GROUP BY SetID
SELECT S.*,
CASE WHEN E.Servers != 1 THEN 1 ELSE 0 END AS ServersDifferent,
CASE WHEN E.Applications != 1 THEN 1 ELSE 0 END AS ApplicationsDifferent
FROM @Sample S
INNER JOIN Evaluate E ON S.SetID = E.SetID
ORDER BY S.SetID; -
XRPM: Need to find the BADI for adding custom fields to master data
Hi,
We have activated XRPM(4.0) business content and need to add some custom fields to some of the master data ( for example need to add custom fields to master data info object 0RPM_IHGU, 0RPM_IGCG etc).
We have enhanced the data sources ( 0RPM_ITEM_HEADER_GUID_ATTR and 0RPM_FIN_CAT_GUID_ATTR respectively) in the source system by appending additional fields to the append structure of the data source We are trying to find the BADI where we can implement the custom code.
Can anybody help to find the particular BADI, id there one for all master data carrying data source in the xRPM source system?
ThanksDear Arunava,
1) In your R3 goto SE16 --> open table ROOSOURCE.
Search for your OLTP source...eg: 0RPM*
The column EXTRACTOR will give you the module name.
2) Also look/follow the link:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9f668696-0701-0010-22be-a278e4587b68
Currently available BAdIs include:
RPM_BUPA_CUST_FIELDS BUPA customer fields
RPM_CALC_BUPA_BPFTE Calculate the business partner availability
RPM_CALC_STAFF_ICON calculate the staffing icon
RPM_CREATEUSR_NAME Generates user names
RPM_HR_IN_IF001 Customer exit for inbound time processing
RPM_HR_IN_IF002
RPM_HR_IN_IF003
RPM_HR_IN_IF004
RPM_HR_IN_IF005
RPM_HR_IN_IF006
RPM_INTEGRATION_OPTS get and set the project integration options
/RPM/OBJECT_SERVICES Object support services
/RPM/PERSON_CUST_FLD Resource customer fields
RPM_PROCESS_DATA Inbound processing of time data by customer
Good Luck, BB -
How to find the reporting for work center machine wise
hi gurus
My question is . In one work center machine capacity category 2 machines are used. Client is asking the report machine wise. i.e as 2 machines are available .What is the capacity utilisation for each machine.Provide me the information for this. Thanks in advance
kalyanHi Kalyan
you have to make some settings in production order & work center first.
In work center capacity header ,you have to make indiovidual capacities as 2.
In the same capacity header screen by going through the menu Goto--->individual capacitities define these different individual machines.
In the production order operation detail screen goto " capacity reqmt assignment " assign the quantities for different work centers.
Adfter this in the confirmation CO11N you have to fill the split field accordingly& confirm different wortk centers seoperatley.
Then you can the report in the CO14 for diferent work centers.
you try this.
Regards
YMREDDY -
Where can I find the files for my custom amp presets?
I've gone through and created a tonne of custom amp presets in Garageband that I would like to manually backup. Does anyone know where these files are kept by Garageband?
I have located the presets that come with Garageband in Library / Application Support / GarageBand / Instrument Library / Track Settings / Real / Guitar Track
I need to find where all my tweaked presets are saved!
Many thanks in advance,
BenBen,
your own Track Settings are kept in your User Library in your Home Folder:
/Users/your user name/Library/Application Support/GarageBand
If you are using MacOS X 10.7 or later, your user library is hidden; probably that is why you did not find the files.
To reveal your user library in the Finder use the Finder's "Go" menu: Click "Go" in the main Finder menu bar, then hold down the "Alt/Options" key ⌥, until "Library" appears in the drop-down menu. Click "Library" to reveal it in the Finder and select the "Applications Support" folder, then the "GarageBand" folder. This will contain all your custom Instruments.
Regards
Léonie -
Sql query to find the scheduled date
I schedule a job for last Thursday of every month. Based on my current date and time I need the date of my next scheduled run of the job...
(i.e) If today is 28-march-2012 (Wednesday) my query should return 3/29/12(which is the last thursday of the month)
If today is 30-march-2012 (Friday) my query should return 4/26/12 (which is the last thursday of next month)
If today is 29-march-2012 and time is 11:00 AM and i have scheduled a job to run at 12:00 PM of last thursday of every month then my query should return 3/29/12
If today is 29-march-2012 and time is 1:00 PM then my query should return 4/26/12924163 wrote:
I schedule a job for last Thursday of every month. Based on my current date and time I need the date of my next scheduled run of the job...
(i.e) If today is 28-march-2012 (Wednesday) my query should return 3/29/12(which is the last thursday of the month)
If today is 30-march-2012 (Friday) my query should return 4/26/12 (which is the last thursday of next month)
If today is 29-march-2012 and time is 11:00 AM and i have scheduled a job to run at 12:00 PM of last thursday of every month then my query should return 3/29/12
If today is 29-march-2012 and time is 1:00 PM then my query should return 4/26/12may be
SQL> ed
Wrote file afiedt.buf
1 with tmp as
2 (
3 select to_date('28-march-2012','DD-month-YYYY') dt from dual union all
4 select to_date('29-march-2012 11:00:00 AM','DD-month-YYYY HH:MI:SS AM') dt from dual union all
5 select to_date('29-march-2012 1:00:00 PM','DD-month-YYYY HH:MI:SS AM') dt from dual union all
6 select to_date('29-march-2012 12:00:00 PM','DD-month-YYYY HH:MI:SS AM') dt from dual union all
7 select to_date('29-march-2012 11:59:00 AM','DD-month-YYYY HH:MI:SS AM') dt from dual union all
8 select to_date('30-march,2012','DD-month-YYYY') dt from dual
9 )
10 select dt,
11 case
12 when Next_day(Add_months(Trunc(dt, 'MM'), 1) - 7, 'thursday') + ( 12 /
13 24 ) >
14 dt then Next_day(Add_months(Trunc(dt, 'MM'), 1) - 7, 'thursday')
15 else Next_day(Add_months(Trunc(dt, 'MM'), 2) - 7, 'thursday')
16 end new_dat
17 from tmp
18* order by dt
SQL> /
DT NEW_DAT
28-Mar-2012 12:00:00 AM 29-Mar-2012 12:00:00 AM
29-Mar-2012 11:00:00 AM 29-Mar-2012 12:00:00 AM
29-Mar-2012 11:59:00 AM 29-Mar-2012 12:00:00 AM
29-Mar-2012 12:00:00 PM 26-Apr-2012 12:00:00 AM
29-Mar-2012 01:00:00 PM 26-Apr-2012 12:00:00 AM
30-Mar-2012 12:00:00 AM 26-Apr-2012 12:00:00 AM
6 rows selected.
SQL> -
Sql query to find the last word in a sentence (column)
Hi,
I have to retrieve the last word in a column containing varchar2(text) values.
If anyone knows the query for this kindly share with me.There's also the option of regular expressions in 10g onwards...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 'oracle forums is the best resource for oracle intelligence' as l from dual)
2 select regexp_replace(l, '[[:print:]]* ([^ ]*)$','\1') as l
3* from t
SQL> /
L
intelligence
SQL> -
Where do I find the balance on my itunes account?
Thoughts on this?
It is just there where your username is.
Try closing itunes and opening it again. -
How to find opening balance for customer?
Hello Abapers,
I have a requirement as i need to find opening balance for particualr customer in a company.This is related to FI/CO modules.Please solve my porblem.
Waiting for your favourable replies
Regards
MaruthiHi Maruthi,
Opening balance for a cutomer for a given period, u need to first find closing balance of that customer in the previous period. For eg. Suppose u want to find opening balance for customer 'A' for month of Nov'06, then U have to find wot was his closing balance in at end of Oct'06. Hope this solves u r problem
Maybe you are looking for
-
Accessing files stored in Common Server and share drive with SAP DMS
Hi DMS Gurus, We have a requirement, apart from retreving the data from content server storage, the client also wants the documents stored in common file server and Share drive also to be accessed through DMS, 1) one option for this may be upload all
-
Best photoshop setting for DVD Menu
Does anyone know what the best photoshop preset is for the Menu? Currently I have a 1280x720 file, and it pixilates slightly when added to the SD Menu. I want to suggest a better resolution to the client, and don't want to waste time testing it if so
-
Dear Friends, When i am posting down payment with reference to PO i am using a different vendor rather than the vendor in PO. It is giving only warning message. When I am posting down payment amount more than PO value then also system is giving warni
-
Is there a program out there to convert appleworks data to pages data
Is there a program that will convert appleworks date to pages data?
-
Floorplan manager for Webdynpro
Hello, I am working on Overview page floorplan OVP I wnat to know to the functionalities for the buttons SAVE, ADD(Insert) CANCEL (for the CANCEL button I want to cancel all the actions when user clicks on this button ). Regards, Jaffar Hasan