Selecting set no of records

I have a report that is being grouped by a consultant name. I need to only interrogate the last 100 sales since the date the report is ran. I have listed all sales by consultant and ordered them so that the most recent sale appears at the top of the list. However, some have less than 100 sales and some have more. How do I only show the last 100 (or less) sales from the report date?

If all you want is the top 100 records period...
There are 2 ways that I know of:
1) Use a SQL Command as your data source. Something like this
SELECT TOP 100
FieldList
FROM TableName
ORDER BY SalesDate DESC;
This is the most efficient means of getting you what you are looking for because it only pulls the 1st 100 records out of the database and those are the only records that CR has to process. It also means that you have to be able to write SQL.
2) Create a suppression formula on the details section of your report
IF RecordNumber > 100 THEN TRUE ELSE FALSE
This is obviously easier but it still brings in ALL of the records. It just displays the 1st 100. If you have a large number of sales taking place within a given time frame, you can limit the total data pull by selecting on a specific criteria such as records falling within a given date range.
Unfortunately, there is no "Top #" of records feature in CR. It requires a workaround.
HTH,
Jason

Similar Messages

  • Displaying long text maintained for selected set codes in result recording

    Hi Gurus,
    I have maintained qualitative mic.For this mic i have defined selected set codes & for these selected set codes i have maintained long text.
    My client requirement is that this long text should be visible while doing result recording for the mic.Is this possible.
    Regards
    Amit

    How can they expect that?  Long text can be... well.. long.......  How can you include that on the same screen as results recording.  What if you have 5 charac with long text?  What if each selected set choice has long text and you had two choices for each?  That's ten sections of long text on one screen?   Impossible.
    Printing the long text on the cert shouldn't be a problem.  You just have to get someone to code it into the layout set.
    Craig

  • I'm getting a very low signal from my Blackbird interface. The fire wire connection is selected properly and track recording sliders set. However the recording level slider in the lower right corner is grayed out. How can I get better signal?

    I'm getting a very low signal from my Blackbird interface. The fire wire connection is selected properly and track recording sliders set. However the recording level slider in the lower right corner is grayed out. How can I get better signal?

    If it's slow on startup it would be extensions loading or LaunchDaemons starting up. 
    You should have a look in:
    /Library/LaunchDaemons
    /Library/Extensions
    You can count out anything in your home folder and it shouldn't put anything in /System as that's reserved for Apple. 

  • How to select set of unique data records from internal table

    Hi
    I am looking for a command in order to select all unique data-records from an internal table without using a loop. Does anybody know a command that could do this?
    <b><u>An illustrating example:</u></b>
    <i>Example:
    Table content
    a 1
    a 2
    a 3
    b 1
    b 2
    c 1
    c 2
    c 3
    d 1</i>
    So I am looking for a command that should provide a, b, c & d for the first column or 1, 2 & 3 for the second column<b></b>

    Hi,
    SELECT DISTINCT  MATNR
                    FROM MARA
                   into table i_mara.
    Best regards,
    Prashant

  • Why can't I select or update the Record using the PreparedStatement?

    the DB is oracle9i,here is the test table
    test
    id number;
    name char(10);
    intro char(10);
    I have insert a record in the table.
    Now I will select or update the record by using the PreparedStatement here is my code:
    sqlStr = "update test set intro = ? where name =?";
    PreparedStatement stmt = conn.prepareStatement(sqlStr);
    stmt.setString(1,"my name is irixwang");
    stmt.setString(2,"irixwang");
    int is = stmt.executeUpdate();
    if (is >=1 )
    System.out.println("ok");
    It will not work ,but where I change the update condiction as followed:
    sqlStr = "update test set intro = ? where id =?";
    PreparedStatement stmt = conn.prepareStatement(sqlStr);
    stmt.setString(1,"my name is irixwang");
    stmt.setInt(2,100);
    int is = stmt.executeUpdate();
    It works well,why?
    please help me!thk!!!!

    I doubt it works "well" in either case since you are inserting a string that is longer than 10 characters into a field that only holds 10 characters. But to your question....
    A char data type holds a fixed number of characters - in your case 10.
    Because it holds 10 characters it will never hold 9, regardless of what you think is in the field it will always have 10 characters in it. The value you are using for query for name is 9 characters. Since 9 characters, regardless of content, will never be equal to 10 characters there is no way that it will update.
    So your choice is to either use a varchar, which holds a variable number of characters, or to always use 10 characters for your query (pad it with spaces.)

  • How can i select more than one record in a LOV

    I want to select more than one record in a LOV and put them together before to display them in an item.

    This is not possible with a default LOV, so you'll need to create your own. There are a number of ways to select multiple records:
    a) you can use a tree and set Multi-Selection to Yes
    2) you can use a normal block with a checkbox on each row for the user to select records
    three) with the [SYSTEM.MOUSE_BUTTON_MODIFIERS|http://www.oracle.com/webapps/online-help/forms/10g/topics/designing_forms/mouse/at0604.html?tp=true] variable you can allow users to ctrl+click to select many records in a block. set the background colour to indicate a record has been selected
    iv) there is a pjc in the [demo code section|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] which lets you select many rows in a poplist

  • Data transfer of Selected sets (QS51) using Function modules

    Hi All,
    I am doing data migration of Selected sets (TCODE QS51) using function module. I have tried using BDC recording but it is not working in background.In foreground it is giving information error on second screen as field  RQSKT-AUSWAHLMGE is not present on screen 1000..  In foreground I am pressing enter after this error its working fine but in background the execution stops there. So I am trying function modules QPAM_SELSET_CODE_CREATE  and QPAM_SELECTED_SET_CREATE
    The fields in template I have are KATALOGART(Catalog), WERKS(Plant),AUSWAHLMGE(Selected set) ,KTX01(short text), STATUS(status),CODEGRUPPE(code group), CODE (code), KURZTEXT (short text for codegroup),BEWERTUNG(Valuation code), FEHLKLASSE(Defect class)
    QPAM_SELSET_CODE_CREATE contains fields  KATALOGART, WERKS,AUSWAHLMGE ,CODEGRUPPE,CODE which I need and While stand alone testing of this function module I am geting error as follows with the data filled :
    Runtime:        6.496 Microseconds
    Exception       WRONG_KEY
    Message ID:          QS                         Message number:           299
    Message:
    No entries were found in catalog 1
    MAN WERK K AUSWAHLM CODEGRUP CODE
    300 WI10 1 DDTEST   THREADS  1
    QPAM_SELECTED_SET_CREATE contains KATALOGART , WERKS,AUSWAHLMGE , KTX01 which I need and it requires Language key fiels KSP01. I specified it it executes successfully but in transaction it is not there. some FMs contain some fields and not all fields so I want to know which one to use ? Can anyone give me sample code how to use these FMs?

    Note 381286 - Code grps + selectd sets:Transport request requestd
    Note 592418 - Composite SAP note: Transport of code groups and codes
    But I do not recommend a modification because the system does not generate request for that in the production system.
    This means you can maintain catalog directly without transport in the production system.
    Only development or test system ask you a request number.
    Regards
    Luke

  • Code groups, codes & selected sets during UD

    Dear Friends,
    Can I create my own catalog types.
    I have created my own catalog types.
    1) For Usage Decision (R)
    2) For Defets recording (P)
    During defect recording the system is picking the code groups & codes created by me and which are assigned . It is not showing other ones.
    But during Usage decision it is picking all the code groups, codes & selected sets attached to standard UD catalog "3".
    I am unable to understand how the system is behaving like this.
    I have created my own notification type Y1. I have created my Catalog profile (YQM000001).
    I have assigned this profile to inspection type.
    I have assigned this notification type to inspection type.
    In the catalog profile YQM000001, I have assigned two catalogs (R & P).
    In catalogs & catalog profile for notification type, problems field assigned the catalog type "P".
    One more issue while recording the defects I am getting notification type as Y1 (created by me) but the catalog profile is showing standard one "QM0000001".
    I am unable to understand these all. Do anybody has got any solution.

    Dear Anuradha,
    There is no need to create separate catalog type  for your problem of displaying specific UD codes while giving user decision. You can assign the specific 'UD selected set' from catalog type 3 ( User decision) in SPRO ' Maintain inspection type'  for QM. Following is the path you can assign the  desired UD option you need to see while recording UD:
    SPRO >> Quality Management >> Quality Inspection >> Inspection lot creation >>  Maintain inspection types >>execute >> select the  inspection type say '01' and view details >> there will be field UD selected set, assign the specific selected set made for  your plant and  save.
    By doing this when you go for giving any UD, codes defined by you only will be displayed (not all).
    Didn't understand your issue related to notification, but in same above screen you can also assign notification type for particular insp. type.
    Looking at your  requirement there is no need to create separate insp type or notification type  just make proper use of  existing one and do proper assignment.
    Please let me know if you have any problem in resolving this.
    Best Regards,
    Shekhar

  • Need a function module to get IT0001 details for a pre-selected set of empl

    Dear All
    We are faced with a requirement of getting infotype 0001 record details for a pre-selected set of employees, based on a date selection (BEGDA and ENDDA). The existing function module HR_READ_INFOTYPE provides this functionality on per employee number basis. This will lead to performance issues in the context in which we have this requirement. Therefore, would appreciate any input on alternate function modules which can act like HR_READ_INFOTYPE with multiple employee numbers selection (like the facility available in function module HR_PERSON_READ_WORK_SCHEDULE).
    Kind Regards,
    Karthik

    Hi Santhosh,
                             Thanks a ton for the reply,your reply actually helped me,but I also checked the FM HRCM_EMPLOYEE_INFO_TABLE_GET
    which was simple and fits to the requirement.
    Regards,
    Karthik

  • Select AR_LOOKUPS retrieved no record while in pl/sql plus record exist

    I ran "select * from ar_lookups" no record retrieved while when I run the same script in TOAD or pl/sql plus there are records retrieve.

    Sorry for the very late response, but the problem is probably related to AR_LOOKUPS being an eBusiness Suite language specific view, which means the conditions in the view include:
    LV.LANGUAGE = userenv('LANG')SQL Developer defaults the NLS settings based on the Regional Settings (assuming you are on Windows) and not the Oracle registry entries (what is typically used by other tools), although you can change this by explicitly setting your NLS preferences via Tools > Preferences > Database > NLS Parameters.
    If your only installed transaction for the eBusiness Suite is US (for example), but your SQL Developer NLS settings are such that userenv('LANG') doesn't return US, you will not get any records returned by the AR_LOOKUPS view (or any of the other many language specific views). To get SQL Developer to match the NLS behaviour of other tools, set your NLS parameters to match what you have set in the Oracle registry entries.
    theFurryOne

  • Selected Sets for Catalog code - 9

    Dear all,
    I am aware that Selected sets can be created only for Catalog type 1 & 3. But in our business we have classified different type of defect codes in type 9. Evenhough I am attaching specific catalog defect type in MIC, when I see it in the notification screen, whole list of defect type is showing. Is there any possibility to group the defect codes according to the plant? (For your info - We have 4 different plant and each one of them has to use different catalog type as product manufactured is different)
    Regards,
    R.Ponniah ;

    hi,
    Use catalog profile  for specific defect type, plant wise it is not possible in std SAP, better to define catalog profile and assign all defect type code grp. in that profile and assign that profile with ur notification type. goto config (SPRO)-> Quality Notification>Defect Recording-> define notification type----> and maintain all in that pop- up one by one.
    Defect type is not plant specific.
    Regards
    Edited by: D GURU on Jan 17, 2012 8:26 AM

  • Extension of MIC/code-group/selected set to other plants

    Hi Experts,
                     In any plant even if we do not extend the MICs, groups and selected sets, we can go ahead with result recording and usage decision if we can include the MIC/selected set, etc. from some other plant in the inspection plan. Is it therefore necessary to extend these parameters to all plants in the landscape ? Experts please suggest if there is any other reason for extension.
    Best regards
    Sm.

    No.  The plan is assigned automatically.  If the only assignment is to the central plan then the central plan will be picked automatically.
    When  you go into the material assignment you enter in the plant Id for the material being assigned.
    If material 1000023 is in plants 1000, 1001, 10002 and 1003 and you create the plan in plant 1000 you would then have 4 assignment in the plan assignment area of the plan.
    1  1000 1000023
    1  1001 1000023
    1  1002 1000023
    1  1003 1000023
    (1 is the group counter)
    The automatic search for the plan is not limited to plans in the plant of the inspectiion lot.
    FF

  • QM Catalogs / Codes / Selected Sets

    Hi,
    Can any one please explain what exactly are Catalogs, Code groups, Selected Sets and their codes?
    Regards,
    Pavan

    hello
    1) Catalog  are codes defined to  manage and standardize information. It consists a set of codes which can be used for different functions
    In Standard SAP different catalogs are defined for 1. characteristic attribute u2013 mailing used for qualitative result recording . 2.- task catalog 9 . defect catalog, E u2013 Defect locations etc.
    This helps in analysis better
    2) Code groups are defined within a catalog type
    For eg in catalog 1 characteristic attribute you can define colour as code group. Code group actually holds a set of codes
    3) Codes make up the lowest level of a catalog. They can describe, for example, a characteristic attribute, a defect type, a defect location or a usage decision.
    For eg for code group colour the codes can green , yellow, white etc
    4) Selected sets define whether a particular code is accepted or rejected. This defined for each plan
    So code group colour , code green is acceptable, yellow is rejected
    You can check this link which has given all the details
    Link: [http://help.sap.com/saphelp_47x200/helpdata/en/2d/350910448c11d189420000e829fbbd/frameset.htm]
    Regards
    Gajesh

  • Questions regarding TARGET DATA of a selection set and usage of extracts

    1. In iSetup Users Guide (121azug.pdf), pg5-4, under 'Viewing a Selection Set',
    it has the following lines:
    Supports Update: If the data object updates the target data during load,
    then the Support Update flag appears
    There is no explanation on "target data" in earlier section.
    Can someone explain what this target data is?
    2. In iSetup Users Guide (121azug.pdf), refer to the image on pg5-14, there is a download link
    in order to download extract. What is the downloaded extract for? Is there any documents
    explaining how to use the downloaded extracts? I am thinking that this downloaded extract
    can be used to upload in other env but I am not sure how to use these.
    Any advise?
    Thanks.

    You are on the right track!
    +--the entire iTunes folder found in My Music+
    This contains the itunes library database files (iTunes Library.itl which has metadata on ratings, play counts) and all the itunes library content files (Artist/Album, movies, etc.)
    The lyrics are inside each songs' file.
    The Artwork should also be in this folder.
    +-User Name\Application Data\Apple Computer+
    +-User Name\Local Settings\Apple Computer+
    These include the backups you need for the ipod and apps data.
    You don't need to deauthorize if you are simply reinstalling itunes. You only need to deauthorize if you are reinstalling Windows itself.
    +--Can I copy the iTunes folder from the external HDD and paste it back into the same location after I recover my laptop+
    Yes
    +if the version of iTunes is slightly different (I have 10.1.0.54)?+
    If the new version is at least 10.1.0.54
    It won't work to go backwards to an older version such as v9.0

  • JBO-26041 error when creating a selection set

    11.5.10.2 with AZ.H Delta 2
    Trying to create a selection set for "Discrete Mfg. and Distribution Setups" using a filter on Inventory org and I get this error
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO AZ_SELECTION_SET_ENTITIES_B(REF_ENTITY_OCCURANCE_CODE,UPDATABLE_FLAG,ALLOW_SET_TARGETVAL_FLAG,ALLOW_FILTER_FLAG,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,CHANGE_UPDATABLE_FLAG,ENTITY_CODE,FILTERING_PARAMETERS,ENTITY_OCCURANCE_CODE,USER_ID,SELECTION_SET_CODE,SEQ_NUM,SELECTION_FLAG,FILTER_SET_FLAG) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18)".; ................
    <snip>
    ## Detail 0 ## java.sql.SQLException: Data size bigger than max size for this type: 4220 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134 ............
    <snip>
    If I do not select a filter, the selection set gets created successfully. Seems to me that the issue is related to data. Is there a limitation on the length of a certian field in the selection set ?
    Any help is appreciated - we are also creating an SR
    Thanks
    Srini

    Roopesh,
    Thanks for your support. Understood your point - I logged into the target instance and then tried to create a selection set using the Source instance and got the same error (and it can be reproduced at will on both source and target instances). The set will save successfully if I do not enter any criteria.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO AZ_SELECTION_SET_ENTITIES_B(REF_ENTITY_OCCURANCE_CODE,UPDATABLE_FLAG,ALLOW_SET_TARGETVAL_FLAG,ALLOW_FILTER_FLAG,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,CHANGE_UPDATABLE_FLAG,ENTITY_CODE,FILTERING_PARAMETERS,ENTITY_OCCURANCE_CODE,USER_ID,SELECTION_SET_CODE,SEQ_NUM,SELECTION_FLAG,FILTER_SET_FLAG) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18)".; at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at
    <snip>
    ## Detail 0 ## java.sql.SQLException: Data size bigger than max size for this type: 4282 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.ttc7.TTCItem.setArrayData(TTCItem.java:155
    <snip>
    Thanks
    Srini

Maybe you are looking for

  • Effects and sharing questions.

    First off, is there a way to make a clip play slower or faster than normal? I want to make some clips look like the event was taking forever so we had to speed things up and clips with events that need to be played in slow motion. Also, what is the b

  • Web Report Viewer - Default Printer not picked up

    We have a web application that previews Crystal Reports and prints via ActiveX. The report is set to a printer called 'RICOHC4000Letters'. The client side has another printer call 'RICOHC4000' with the same printer driver. And I understand that the A

  • Question on gather table stats.

    Guys, I am trying to gather stats on a table and it is taking a long time to finish up ( it had been running for about 28 hours ), after dropping some partitions and creating couple of partitions by splitting the part lead partition I executed the be

  • How to maintain  a field in sm34

    hi  all, i'm unable  to populate the values in custom column, Actually  using  user exit i have added one field of name 'cost center' into the field catalog  but  i am not getting the values can anybody  tell me how to maintain field  in SM 34. Regar

  • Fit image to canvas at load

    I have subclassed JPanel in order to make my own image canvas. I have implemented zooming in and out, and, since the images I'm going to be using are generally in the dimensions of 3000x2000, I'd like an image to fit to the space available when it's