on 08-05-2008 11:51 AM
Hi all
Where Can i find the system query for the Profit Center report.
Regards
Rashid
This is the Code I got after SQL Trace
SELECT T1.[TransId], T1.[Line_ID], T1.[ShortName], T1.[TransType], T1.[Debit], T1.[Credit], T1.[RefDate], T1.[DueDate], T0.[ActType] FROM [dbo].[OACT] T0
, [dbo].[JDT1] T1 WHERE T1.[Account] = T0.[AcctCode] AND T1.[DueDate] >= '2008-04-01 00:00:00:000' AND T1.[DueDate] <= '2009-03-31 00:00:00:000' AND T1.[RefDate] >= '2008-08-01 00:00:00:000' AND T1.[RefDate] <= '2008-08-31 00:00:00:000' AND
T1.[TaxDate]>= '2008-04-01 00:00:00:000' AND T1.[TaxDate] <= '2009-03-31 00:00:00:000' AND T1.[ProfitCode] = 'CF1' ORDER BY T1.[Account]
In the above query,
T1.[ProfitCode] = 'CF1'
Replace 'CF1' with your profit centre codes.
The above query is repeated with different parameters for T1.[ProfitCode] (all the Profit Centre Codes)
Edited by: Sridharan T on Aug 5, 2008 4:54 PM
Edited by: Sridharan T on Aug 5, 2008 4:54 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Most of the reports you see in the menu are programmed and their code is not accessible. Only the ones with icon containing u2018?u2019 are simple SQL queries, and you can see their code in the query manager.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Open SQL Server Management Studio.
From Menu select Tools -> SQL Server Profiler
Create a New Trace by selecting File -> New Trace
Now click on the report in SAP B1.
Now see the SQL Trace.
You can find out the Query here in the Trace Window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.