Report to select customer ID occuring more than once
My report requirement is to capture transaction detail when a customer ID occurs more than once. Is there a way to do a sum count on the customer id in order to display the transaction detail. My current solution is to run a report where the customer count is greater than one, and then do a subquery against that data to display the transaction detail. I would like to be able to eliminate the subquery.
Hi,
You can create an analytic function to count the customer_ID per every transaction:
count(customer_id) over (partition by ..<enter the fields of the report>.....)
This will give for every transaction the number of transaction per same customer_id
Now that you have it you can create a condition on it so
that you will get only transaction with count customer_id > 1
Similar Messages
-
Hello All,
We have crystal reports integrated in the java web application. Reports with parameters are executing query more than once (found in the SQL Server Profiler).
Scenario:
Report query with parameter :- select * from cieuser where id >= {?userId}.
User provides value '1' to this parameter and selects report execution.
Before executing the report, our system updates the database connection details of the rpt with other configured details.
Issues:
During updating of the database details on execution of statement "databaseController.setTableLocation(orig.getTable(i), table);" , the profiler shows:
select * from cieuser where id >= NULL
And on executon of the statement "viewer.processHttpRequest(request, response, getServletConfig()
.getServletContext(), null);" the profiler shows the following:
select * from cieuser where id >= {?userId}
select * from cieuser where id >= 1
select * from cieuser where id >= 1
When the same report is executed from the standalone crystal designer, the profiler shows one time query execution:
select * from cieuser where id >= 1
Environment:
Crystal reports designer - 11.5.10.1263
JRC - 11.5
Please advise.
Thanks,
Ratan.Hello,
SAP decided to allow the confirmation of orders with a final confirmation (status CNF) deliberately. So it is possible to confirm work that was maybe forgotten or if the flag 'final confirmation' was set mistakenly. Only the status CLSD will prevent further confirmations.
If you want forbid further confirmations of orders with status CNF you can use enhancements CONFPM* or BAdI WORKORDER_CONFIRM. However, the probably easiest way is to define a user status that is set at business transaction 'Confirm order' and, once set, forbid business transaction 'Confirm order'.
Regards,
Reinhard -
How to call the same query more than once with different selection criteria
Hi,
Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
Sales organization XX
Income 2008 Income 2009
Customer A 10 20
Customer B 30 0
Sales organization YY
Income 2008 Income 2009
Customer A 20 5
Customer B 50 10
Now, I need this. At the selection screen of query, user fill variable charakteristic "Sales organization" with interval XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
Thank you very much
J.Hello,
thanks to all for cooperation. Finally we solved this issue with the following way..
User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
J. -
How do I repeat the same row more than once in report 10g
How do I repeat the same row more than once in report 10g
So I can print the bar code more than once
in report;
Edited by: user11106555 on May 9, 2009 5:50 AMGREAT THAN X MAN
It is already working, but with the first ROW
select ename from emp
CONNECT BY ROWNUM<=5
ENAME
SMITH
SMITH
SMITH
SMITH
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
BUT I want this result
Item1
Item2
Item3
to
Item1
Item1
Item1
Item2
Item2
Item2
Item3
Item3
Item3 -
Call Transaction and fill a select-options field with more than one value?
Hello everybody,
how can I fill a select-options field with more than one value.
Here is the code example:
CLEAR: GT_BDCDATA, GS_BDCDATA.
GS_BDCDATA-program = 'RHALEINI'.
GS_BDCDATA-DYNPRO = '1000'.
GS_BDCDATA-DYNBEGIN = 'X'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
GS_BDCDATA-FNAM = 'PCHOTYPE'.
GS_BDCDATA-FVAL = 'P'.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
APPEND GS_BDCDATA TO GT_BDCDATA.
CLEAR: GS_BDCDATA.
ENDLOOP.
CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
MESSAGES INTO GT_MESSAGES.
THX.Hi,
Please refer the code below:
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Thanks,
Sriram Ponna. -
Custom Administrative Template Error 53 Key name specified more than once
Hi All,
Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
settings. I am trying to set this up so that it is controlled via GPO.
My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software.
The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
The adm file I have so far is below
TIA
Jason
---------------------------------------------CUT---------------------------------------------
CLASS User
CATEGORY "App Site Settings"
POLICY !!Site1Policy
EXPLAIN !!Site1Explain
KEYNAME "Software\ApplicationCompany\Site1\Access"
VALUENAME "SystemDatabase"
VALUEON "D:\\App\\Data\\App.mdw"
VALUEOFF DELETE
KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
VALUENAME "ConfigPath"
VALUEON "D:\\Site1\\Data"
VALUEOFF DELETE
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
VALUENAME "ConfigFile"
VALUEON "D:\\App\\Data\\App_Comms.mdb"
VALUEOFF DELETE
VALUENAME "SysConfig"
VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
VALUEOFF DELETE
END POLICY
POLICY !!Site2Policy
EXPLAIN !!Site2Explain
KEYNAME "Software\ApplicationCompany\Site2\Access"
VALUENAME "SystemDatabase"
VALUE "D:\\App\\Data\\App.mdw"
KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
VALUENAME "ConfigPath"
VALUE "D:\\Site2\\Data"
KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
VALUENAME "ConfigFile"
VALUE "D:\\App\\Data\\App_Comms.mdb"
VALUENAME "SysConfig"
VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
END POLICY
END CATEGORY
[strings]
Site1Policy = "Site1 settings"
Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
Site2Policy = "Site2 settings"
Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
---------------------------------------------CUT---------------------------------------------
CLASS USER
CATEGORY "ApplicationSettings"
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
POLICY !!SITE1Policy
#if version >= 3
EXPLAIN !!PolicyExplain
#endif
KEYNAME "Software\ApplicationCompany\Site1\Access"
PART !!ConfigFilePolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
VALUENAME ConfigFile
DEFAULT !!ConfigFileDefault
END PART ;!!ConfigFilePolicy
PART !!SystemDBPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Access"
VALUENAME SystemDatabase
DEFAULT !!SystemDBDefault
END PART ;!!SystemDBPolicy
PART !!SysConfigPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
VALUENAME SysConfig
DEFAULT !!SysConfigDefault
END PART ;!!SysConfigPolicy
PART !!ArbitrationPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
VALUENAME ConfigPath
DEFAULT !!ArbitrationDefault
END PART ;!!ArbitrationPolicy
END POLICY
POLICY !!SITE2Policy
#if version >= 3
EXPLAIN !!PolicyExplain
#endif
KEYNAME "Software\ApplicationCompany\Site2\Access"
PART !!ConfigFilePolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
VALUENAME ConfigFile
DEFAULT !!ConfigFileDefault
END PART ;!!ConfigFilePolicy
PART !!SystemDBPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Access"
VALUENAME SystemDatabase
DEFAULT !!SystemDBDefault
END PART ;!!SystemDBPolicy
PART !!SysConfigPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
VALUENAME SysConfig
DEFAULT !!SysConfigDefault
END PART ;!!SysConfigPolicy
PART !!ArbitrationPolicy EDITTEXT
KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
VALUENAME ConfigPath
DEFAULT !!ArbitrationDefault
END PART ;!!ArbitrationPolicy
END POLICY
END CATEGORY
[Strings]
ArbitrationDefault =D:\SITE\Data
ArbitrationPolicy =Arbitration path
ConfigFileDefault =D:\App\Data\App_Comms.mdb
ConfigFilePolicy =Application configuration file
PolicyExplain =Enter Explainition of the Registry settings here
SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
SysConfigPolicy =Application site system configuration file
SystemDBDefault =D:\App\Data\App.mdw
SystemDBPolicy =Application system database path
SITE1Policy =Site1 Application Settings
SITE2Policy =Site2 Application Settings -
Duplicate entries / Employee is appearing twice in report (OR more than onc
Duplicate entries / Employee is appearing twice in report (OR more than once)
When I hire an employee, I assign the position, and based on the positions other values get defaulted /assigned to that employee.
I have one case where employee has been assigned to one position, but with different position descriptions, and in report it is showing duplicate entries for the same personnel number, now client need for one personnel number only one row to display in report
Also I tries to run , Birthday list standard report , it is also showing 2 entries (Or sometime more than 2)for the same personnel number , May I know why this is happening?
And how to fix this bug
Thanks and Regards
Jaydeep JadhavHi,
Can you check where the code is written to get employees from position, there may be two cases where multiple records exists for single person.
1) When getting data for pernr assigning to a position they may missed out date condition. If so we need to bring only active positions assigned to that employee.
2) There may be multiple positions assigned to a single person. In this case you need to ask the client what you need to do.
Delete adjacent duplicate is may not be correct solution as which position we need to delete is not sure. You check above two cases and go head.
Hope this information will help you.
Regards,
Narendra.Soma -
Select the same attribute in a query more than once
Hi Experts,
My requirement is to select the same attribute in a query more than once.
How can I acheive this?
Expecting an early solution..
PilligaHi,
Create a calculated attribute that just displays the "same attribute".
(Note: you will need to uniquely name this object).
For example, if you wish to display Emp Name twice in the same query, then create a calculated attribute called Emp Name2 and select it and Emp Name in your query and the same info will be displayed twice in your results set.
Cheers,
Tanish -
One Account Statement for customer present in more than one company code.
Hi all,
We have requirement of printing one account statement for customer present in more than one company code.
Program RFKORD10 generates more than one statements for customer present in more than one company code.
Please suggest if any customiztion or program changes need to be done for above issue.
Thanks.If customer is present in more than one company code then you can config in different co codes.
Now could you brief your requirement, i think you want to print only once and system should print in both company codes at one time. Is it like that?
Regards
Ashu -
ORA-00604 & ORA-30512 CANNOT MODIFY TABLE MORE THAN ONCE IN A TRANSACTION
We have a requirement where two tables should be in sync at any given point
in time with respect to the structure of the tables.
Any change on table/column via ALTER (MODIFY, ADD, RENAME COLUMN, DROP
COLUMN) on the parent table should be replicated to the replica table.
I created a DDL_TRIGGER on the schema and the desired result is achieved but
for the following one scenario for which its failing.
The issue is, if we try to reduce the width of the column (via ALTER ..
MODIFY) it fails with the following error
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
Please follow the steps to reproduce the issue (the issue is across the DB
version checked on 10.2, 11.1 and 11.2 DB version)
-- Step1 Create Parent Table
CREATE TABLE abc (col1 VARCHAR2(10))
-- Step2 Create Replica Table
CREATE TABLE replica_abc (col1 VARCHAR2(10))
-- Step3 Create DDL Trigger
CREATE OR REPLACE TRIGGER ddl_trigger
AFTER ALTER ON SCHEMA
DECLARE
operation VARCHAR2(30);
object_name VARCHAR2(30);
l_sqltext VARCHAR2(100);
i PLS_INTEGER;
l_count NUMBER:=0;
sql_text dbms_standard.ora_name_list_t;
BEGIN
i := dbms_standard.sql_txt(sql_text);
SELECT ora_sysevent, ora_dict_obj_name, UPPER(sql_text(i))
INTO operation, object_name, l_sqltext
FROM dual;
IF ora_dict_obj_name = 'ABC' THEN
l_count := INSTR(l_sqltext,'ADD CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'DISABLE',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP CONSTRAINT',1,1);
l_count := l_count + INSTR(l_sqltext,'PRIMARY KEY',1,1);
l_count := l_count + INSTR(l_sqltext,'ADD CHECK',1,1);
IF (l_count = 0) THEN
l_count := INSTR(l_sqltext,'ADD',1,1);
l_count := l_count + INSTR(l_sqltext,'MODIFY',1,1);
l_count := l_count + INSTR(l_sqltext,'DROP COLUMN',1,1);
l_count := l_count + INSTR(l_sqltext,'RENAME
COLUMN',1,1);
IF (l_count >0) THEN
l_sqltext := REPLACE(l_sqltext,'TABLE ABC','TABLE REPLICA_ABC');
execute immediate l_sqltext;
END IF;
END IF;
END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE ;
END;
-- Step 4 Issue the following ALTER command on the Parent table 'ABC'
ALTER TABLE ABC MODIFY COL1 VARCHAR2(9);
will show the following
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-30512: cannot modify DEVTESTF_OIM.REPLICA_ABC more than once in a
transaction
ORA-06512: at line 34
whereas the following commands works fine
ALTER TABLE ABC MODIFY COL1 VARCHAR2(11);
and also the rest of the operations
ALTER TABLE ABC ADD COL2 VARCHAR2(20);
ALTER TABLE ABC RENAME COLUMN COL2 TO COL3;
ALTER TABLE ABC DROP COLUMN COL3;
The issue is while reducing the size of VARCHAR2 columns, while the rest of
option works fine.
Any suggestion or workaround please.It looks like a bug to me. The failing statement from the SQL trace is
PARSE ERROR #12:len=77 dep=3 uid=0 oct=3 lid=0 tim=1263332549608656 err=30512
select /*+ first_rows */ 1 from "TIM"."REPLICA_ABC" where LENGTHB("COL1") > 9and exception cannot explain it. -
Product category exists more than once
Hi,
We are using SRM 7.0/ECC 6.0 (Ext classic)
Our SRM was earlier connected to ECC100 and was working perfectly. Now it is connected to ECC200 and working.
But area of concern is while creating limit SC, when I select a product category, the system displays a message "Product category exists more than once. Use input help". I have deleted all product categories of old ECC system from COMM_HIERARCHY too. This does not occur when I create a normal SC.
Anyone can please advise?
Thankshi,
Check the Material Group in ECC 6.0
Check in SRM in the Extended attribute tab whether the backend logical system and the product category are correct
In creation of shopping cart for the user it is picking from here
G.Ganesh Kumar -
Since I updated to iCloud, (which may or may not be related) Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 and my old iMac has no problems. When there is no service a yellow warning triangle appears adjacent to the Inbox and Connection Doctor reports,"Trying to log into this MobileMe IMAP account failed. Verify that username and password are correct." Since it does fetch Mail from time to time they cannot be wrong.... can they? Should I update to 10.7 and if so what does that entail?
You have been using MobileMe's email settings, which sometimes continue to work for a time after migration but then get turned off. iCloud's mail server settings are different. Strictly speaking Lion 10.7.2 is required for iCloud, and on that Mail is set up automatically.
Snow Leopard cannot access most of iCloud's facilities, however you can set Mail up manually to access your email. The method is described here:
http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
The situation with iCloud and Snow Leopard is described in detail here:
http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html -
Why a function column created inside a view is executed more than once when called more than once?
EXAMPLE:
create or replace view aux1 as
date_column,
any_function(date_column) column1
from any_table
create or replace view aux2 as
column1 c1,
column1 c2,
column1 c3
from aux1
select * from aux2
It will execute 3 times the function any_function... logically the value will be the same for all columns...
I understand why!... are 3 calls... but...
Why not to create a "small" verification and if the function column was execute replace the second, the third... value? ... instead of execute 3, 4... times...
tks
BragaActually, this is more than a performance issue. This is a consistency problem. If the function is NOT deterministic then you may get different values for each call which is clearly not consistent with selecting 3 copies of the same column from a row. Oracle appears to have fixed this in 9i...
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
With the Partitioning option
JServer Release 8.1.7.2.0 - Production
create view v1 as select dbms_random.value(1,100) r from dual;
create view v2 as select r r1, r r2 from v1;
select * from v2;
R1 R2
93 74
Connected to:
Oracle9i Enterprise Edition Release 9.0.1.3.0 - Production
With the Partitioning option
JServer Release 9.0.1.3.0 - Production
create view v1 as select dbms_random.value(1,100) r from dual;
create view v2 as select r r1, r r2 from v1;
select * from v2;
R1 R2
78 78Richard -
Why would aperture load more than once?
I understand that when I first load my RAW photos into Aperture it needs to generate a preview and so that's why it slows down and shows me "loading...". If I want to bypass this I can use quick preview mode. That's how I understood it so far. But I don't understand why it would need to load again at a later time? If I browse elsewhere and come back to this project, it'll start loading again. Does Aperture for some reason deletes the preview?
1) How do I force aperture to generate preview for everything, and not one by one. I'd rather go away and let the computer do its thing for a while than get disturbed every time I hop to the next photo.
You can select all images in the Browser and use the command "Photos > Update/Generate Previews" (Update will turn into "Generate", if hold down the ⌥ alt/options key). This way you can generate the previews over night.
2) Also this still doesn't explain why it needs to be done more than once? Why would it generate the preview again if I haven't changed any adjustments etc?
It will only keep and store the preview permanently, if you have enabled the sharing of previews in the "Preferences > Preview" tab. If you do not enable this, Aperture will not store the previews, to save space. -
Terminating Event Getting triggered more than once
Hi All,
I am facing a very peculiar problem in PR release workflow(item wise release, business object BUS2009).
One of the requirements of the workflow is to send a mail to PR initiator once it is rejected by any of the approvers(4, in my case). The event associated with the cancellation of the workflow is REJECTION_START.
The problem is that this event is being triggered more than once. One thing that i have observed is that if eg. second level of approver cancels it, the event is triggered twice. Likewise if third level of approver cancels it, it is being triggered thrice. Which leads to sending of 2 and 3 mails respectively to the PR initiators mailbox.
Why is this happening? Ideally, only one event should have been triggered, and the triggering of the event should have been independent of PR approver's level. I am at my wits end regarding this.
Any suggestions in this regard will be highly appreciated
Regards
Varsha Agarwal.If you check for 2nd level rejjection two release Code is associated so it triggers 2 times and same for 3rd level approval.
I think you have to put some sort of filter using FM SAP_WAPI_WORKITEM_OBJECT
in the attribute portion of yopur custom BO.
The attribjute will check this FM and if it has entries that means already a Workflow has been triggered it should set the flag as X.
Make use of this attribute in defining the start condition of this task thru
SWB_COND.
Thanks
Arghadip
Maybe you are looking for
-
XML Node Selection in Foreach Loop
Good Morning, I am just building up my first SSIS-package which uses a web service as data source. Now, that I managed the data to be processed using a Foreach Loop, I am wondering how the loop reacts when the sequence of teh nodes changes, or a cert
-
right bit of a dilemma i have a 20" imac alu 2.4 c2d 4gb ram 320gb hdd and attached is a samsung syncmaster 940bw which i have just bought off the cheap from pcworld UK what i want to do is use the samsung for viewing the video im editing, i know i c
-
Please apple give Giffgaff the settings they need to help us users tether!!
-
DBMS_SPACE.OBJECT_GROWTH_TREND without Diagnostics Pack
Hi , Can i use DBMS_SPACE.OBJECT_GROWTH_TREND without Diagnostics Pack? As per the docs this procedure uses AWR for information retrieval. Also I've seen that there are multiple bugs related to this in <10.2.0.3. Can some one share their experiences
-
I am new to this forum.Needed help
Apple ipod 40GB problem was When i switch on the ipod shows apple logo after a few seconds shows www.apple.com/support/ipod then it was getting off What to do i for this problem I installed latest itune setup in my system.Wht to do next? When i conne