Number fields in select expert

I am currently using Crystal 2008 and I am having issues with numeric values entered in the select expert.
The record selection criteria that I have entered is
{HSP_BKT.BKT_ID} in [94633, 94920]
however, crystal defaults/converts to these numbers with 8 decimal places (.000001)
{HSP_BKT.BKT_ID} in [94633.00000001, 94920.00000001]
94633 and 94920 are valid numeric values with data but because crystal is converting it to 94633.000001, I am not getting any records back.
Any help is very much appreciated.

You didn't mention the data type of the field.  If it is integer, then one way to work around this might be to define an integer array, put your values in that, and use it in place of the constants.  (Crystal really shouldn't be converting the constants to a decimal in this case, so you might wanna let SAP know about it...)  If it is a floating point type, then you may need to use CInt() to convert the field to integer.
HTH,
Carl

Similar Messages

  • F4 help for PO number field with SELECT OPTIONS

    Hi all,
    I have a field (PO no) using SELECT OPTIONS on my selection screen.I need F4 help for this field.How shud i declare it?
    I have declared it as follows:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    select-options sel_po for ZPO_LOI-zobject_id obligatory .
    SELECTION-SCREEN END OF BLOCK b1.
    ZPO_LOI is a table view with a z data element ZOBJECT_ID to which i have attached a search help which displays the required values for the PO field in the selection screen.But now the problem is i cant see the F4 icon for the field on the sel screen.
    Please help.

    Hi I have a sapmle code for this.
    *&                AT SELECTION SCREEN ON VALUE REQUEST
    *-- F4 help for IDOC numbers
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-low.
      PERFORM value_request_status USING 'S_DOCNUM-LOW'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_docnum-high.
      PERFORM value_request_status USING 'S_DOCNUM-HIGH'.
    *&      Form  value_request_status
          text
         -->fp_field  dynpro field that gets the return value
    FORM value_request_status  USING fp_field TYPE dynfnam.
      STATICS tl_values TYPE STANDARD TABLE OF tp_value.
      IF tl_values IS INITIAL.
         SELECT docnum FROM edidc UP TO 500 ROWS INTO TABLE tl_values
              WHERE credat   IN  s_credat
              AND   cretim   IN  s_cretim.
         IF sy-subrc eq 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
              retfield        = 'DOCNUM'
              dynpprog        = syst-repid
              dynpnr          = syst-dynnr
              dynprofield     = fp_field
              value_org       = 'S'
             TABLES
              value_tab       = tl_values
             EXCEPTIONS
              parameter_error = 1
              no_values_found = 2
             OTHERS          = 3.
             IF sy-subrc IS NOT INITIAL.
               MESSAGE i999(zz) WITH 'No values found'(004).
             ENDIF.
          ENDIF.
        ENDIF.
    ENDFORM.                    " value_request_status
    Regards,
    Amit.

  • Comparing Date/Time Field In Select Expert

    I have a Formula field defined INVDATE as follows:
    WhileReadingRecords;
    tonumber(totext(year({INV1.DocDate}),'##')totext(month({INV1.DocDate}),'#')totext(day({INV1.DocDate}),'#'))
    I need to select a date range by passing parameters in the Select Editor as follows:
    {@INVDATE} in {?Begin Date} to {?End Date}.
    My questions is this doesn't select only the records i have entered for the date range, it gives me all records in the table. Any idea how to code this so it only give me the records I have passed a date range for.
    Thanks Jim Dyer

    Mark I have replicated to what you have mentioned in your post and my dates are coming out perfectly.
    Here is what I did...
    Created two date parameters (Start date and End Date)
    Created formula exactly like yours
    WhileReadingRecords;
    tonumber(totext(year({order_header.date_entered}),'##')+
    totext(month({order_header.date_entered}),'#')+
    totext(day({order_header.date_entered}),'#'))
    placed it in the detail section.
    Created a Report--->Record Selection formula
    {order_header.date_entered} in {?Start Date} to {?End Date}
    Ran the report and chose the date range for today and I got all the dates which are for today.
    Can you please let me know if you are doing the same what I did? or perhaps a screenshot of what you are getting and what you expecting?
    Regards
    Jehanzeb

  • Select Expert or SQL Expression Fields help

    I am trying to do something I would consider very simple but can figure it out.
    I have two tables.  FDC_Trips & Facility.  On the report I can get the FDC_Trips.DivertedbyFacility field to populate a number value because that field is an integer.  But we need the name to show up.  That field is the ID (foreign key) of a Facilty which matches with the field Facility.Code.  Instead of it displaying the DivertedbyFacility number/ID I would like it to be able to show the Facility.Name value.  If I place the filed Facility.Name field on my report it is blank. 
    How can I write a where clause to query the Name of the Facility where the Facility.Code = FDC_Trips.DivertedbyFacility?
    Do I use the Select Expert or SQL Expression Fields.
    Please advise.

    Actually you'll use the Links tab in the Database Expert. If CR did it's stupid auto linking thing... delete them. It usually get's it wrong.
    Now just link the fk field in FDC_Trips to the pk field in Facility. Once you have that done you'll be able to simply drop Facility.FacilityName directly onto the report.
    HTH,
    Jason

  • Select Expert data field

    Post Author: ckaesche
    CA Forum: Older Products
    I am using Crystal 8.5. I'm running a query to find database entry errors in a particular field, i.e. "country", [such as 'britin'] and then correcting the database record.
    Even though the data has been removed from the database, the value listed in the drop down within crystal reports is retained and not reflecting the actual values of the field in the database.  Any suggestions?
    Thanks for any help,  ckaesche

    Post Author: pandabear
    CA Forum: Older Products
    Ok,
        Sorry, when I heard "drop down" I immediately saw "parameter" so "Action" is the wrong direction for you.  
        You don't need the "Select Expert" to see a field.  You can just drag the field on to the report.
        If you know all the valid country names, you can do this:
        Make a formula:  @GoodCountry  -  If UpperCase(table.emp_ad_country) IN ("USA","ENGLAND" etc) Then "" Else table.emp_ad_country
    That way you'll get a complete list of all the countries that are not 'IN' the list (of properly spelled countries).  After the changes,
    you should see the new values when you run (F5) the report again.
    If it doesn't show the changes, you need to check that the database.table.field you are looking at is the same one you are changing.
    Sounds basic, but it's certainly happened (many times) before    
    Hope this helps,
    The Panda

  • How to select number field starting with 99

    Hi Freinds-
    I have to pick values for a number field  but  i want only those values which starting with 99 
    how i can put code in select query for this ?
    Regards
    Meeta & Ruby

    Hi,
    Use the query as:-
    select
       <field1>
       <field2>
    from <database_table>
    into table <internal_table>
    where
       <field_name> like '99%'.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • How Display Additional Field of a Select Expert Wizard Result

    I have a group of records by customer.  I have performed a Select Expert to pull the latest dated record for the customer.  But I also need to display the subtotal value associated with the selected record of latest date.  How do I do this?

    In the field explorer use Running Totals and place them in the required section.
    Thanks,
    Rakesh

  • Select Expert on Formula Fields

    <p>Hello guys I have a Formula</p><p>if <a href="mailto:{@TrueAndFalse}<>{#RTotal0">{@TrueAndFalse}<>{#RTotal0</a>} then "Caution !"<br />    else "Is OK"</p><p>I need to created Select Expert and show only the "Caution !" </p><p>so I dont want to show "Is OK" in the report</p><p>thanks for you help<br /></p>

    Hi,
    You just Call formula in selection expert window and give like this
    formulaname = "Caution !"
    !/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif|title=Cool|height=18|alt=Cool|width=18|src=/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/emotions/images/smiley-cool.gif!
    Let me know any other info u want......Â
    Thanks
    Rajesh

  • ORA-01785: ORDER BY item must be the number of a SELECT-list expression

    I have a dynamic SQL on a page. The SQL is dynamic because there are 3 LOV fields from which the user may make selections, and those field values are used in the WHERE clause. Also, the 2nd LOV field is populated with AJAX based on the 1st LOV's selection. And, the SQL joins to another table. The report has 7 sortable columns. The main table the SQL runs over has about 1,000 rows in it.
    The 2nd table has about 500 rows. (Sorry, I'm not sure what information you might need to help me, so I listed several details.)
    The application, and page, have been working flawlessly for several weeks. Then, yesterday the page was being used and the user received the "ORA-01785: ORDER BY item must be the number of a SELECT-list expression" error. The error just appeared out of the blue, so to speak. After weeks of of usage this is the first time this error has appeared. The application had not been changed, but they had been entering data into the main table and the table joined to in the SQL. The application is in production, so I can't put the application into DEBUG, etc. to see what SQL is being built.
    Anyway, I was trying to debug the page today and was doing selections and seeing what would display, then as suddenly as the page quit working it started working correctly. No code changes made, no server changes made (to my knowledge), and no data changes made.
    I'm new to both Oracle and Apex, and am not a SQL, Oracle or Apex expert. So, I am very perplexed and don't have any idea of what could be happening.
    I don't know if it's an issue with the SQL, AJAX not loading the select fields properly, a corrupted table, a server load issue, or something else all together.
    Any suggestions?
    Also, I'm not familiar with Oracle error messages. Can they be red herrings sometimes? Because, I don't programmaticly code the ORDER BY of the SQL. Apex appends that part. So, how could that aspect quit working. And, then suddenly start working.
    Sorry, but I'm extremely confused. :-) Any suggestions or help will be greatly appreciated.
    Thanks, Tony

    Hi Dan,
    Thanks for the feedback. I'm not going to be dogmatic about possible cause, but it has myself and another Oracle developer (who writes SQL and PL/SQL in his sleep) stumped. He doesn't think it's the SQL. Your suggestion was one of the first things we thought of considering the error message we got, but from Scott's reply that it could be a red herring, and after additional testing we've ruled the SQL out for now.
    I understand what you're saying, but the SQL selects all the columns (about 40 columns are selected) that are sortable columns on the report. I've sorted by all the columns by clicking on them and that aspect works without error.
    The SQL is created dynamically and is quite large. I've included below just for information purposes.
    Thanks, Tony
    = = = = = = =
    DECLARE
    q VARCHAR2 (4000);
    BEGIN
    q := 'select ';
    q := q || 'hd."ID", hd."MODEL", hd."YEAR", hd."HIN", hd."BOAT_STATUS", hd."SPECIAL_ACTIVITY", hd."PARTIAL_KIT_VALUE",
    hd.OPTION_NUMBER || '' - '' || e.DESCRIPTION OPTION_NUMBER,
    hd."OPTIONS_HOURS", hd."OPTIONS_MATERIAL", hd."STATION", hd."ACTIVITY_COMMENT", hd."BI_EQUIV_MATERIAL",
    hd."BI_EQUIV_LABOR", hd."EI_EQUIV_MATERIAL", hd."EI_EQUIV_LABOR", hd."BASE_BOAT", hd."SA_ENGINES",
    hd."SA_OPTIONS", hd."DY_STANDARD_MATERIAL", hd."DY_STANDARD_LABOR", hd."DY_STANDARD_OVERHEAD",
    hd."DY_STANDARD_ENGINE", hd."DY_ENGINE_ENGINEUP", hd."DY_ENGINE_MATERIAL", hd."DY_ENGINE_LABOR",
    hd."DY_ENGINE_OVERHEAD", hd."DY_OPTIONS_MATERIAL", hd."DY_OPTIONS_LABOR", hd."DY_OPTIONS_OVERHEAD", hd."EI_STANDARD_UNITS", hd."EI_STANDARD_MATERIAL", hd."EI_STANDARD_LABOR", hd."EI_STANDARD_OVERHEAD", hd."EI_STANDARD_ENGINE", hd."EI_ENGINE_ENGINEUP", hd."EI_ENGINE_MATERIAL", hd."EI_ENGINE_LABOR", hd."EI_ENGINE_OVERHEAD", hd."EI_OPTIONS_MATERIAL", hd."EI_OPTIONS_LABOR", hd."EI_OPTIONS_OVERHEAD",
    htmldb_item.hidden(50,hd.ID) idalias ';
    q := q || 'from "PLP_HIN_DETAIL" hd , "PLP_ENGINES" e ';
    IF
    :P10_SEARCH_MODEL IS NOT NULL
    AND :P10_SEARCH_MODEL <> '%null%'
    AND :P10_SEARCH_YEAR IS NOT NULL
    AND :P10_SEARCH_YEAR <> '%null%'
    AND :P10_SEARCH_STATUS IS NOT NULL
    AND :P10_SEARCH_STATUS <> '%null%'
    THEN
    q := q || 'WHERE
    (instr(upper(hd.MODEL),upper(nvl(:P10_SEARCH_MODEL,hd.MODEL))) > 0
    AND instr(upper(hd.YEAR),upper(nvl(:P10_SEARCH_YEAR,hd.YEAR))) > 0
    AND instr(upper(hd.BOAT_STATUS),upper(nvl(:P10_SEARCH_STATUS,hd.BOAT_STATUS))) > 0)
    AND e.OPTION_NUMBER (+) = hd.OPTION_NUMBER and e.YEAR (+) = hd.YEAR AND e.MODEL (+) = hd.MODEL AND e.PLP_ID (+) = hd.PLP_ID';
    ELSE
    IF
    :P10_SEARCH_MODEL IS NOT NULL
    OR :P10_SEARCH_YEAR IS NOT NULL
    OR :P10_SEARCH_STATUS IS NOT NULL
    THEN
    q := q || 'WHERE
    (instr(upper(hd.MODEL),upper(nvl(:P10_SEARCH_MODEL,hd.MODEL))) > 0
    AND instr(upper(hd.YEAR),upper(nvl(:P10_SEARCH_YEAR,hd.YEAR))) > 0
    or instr(upper(hd.BOAT_STATUS),upper(nvl(:P10_SEARCH_STATUS,hd.BOAT_STATUS))) > 0)
    AND e.OPTION_NUMBER (+) = hd.OPTION_NUMBER and e.YEAR (+) = hd.YEAR AND e.MODEL (+) = hd.MODEL AND e.PLP_ID (+) = hd.PLP_ID';
    else
    q := q || 'WHERE e.option_number = hd.option_number and e.year = hd.year and e.model = hd.model and e.plp_id = hd.plp_id';
    END IF;
    END IF;
    q := q || ' AND :P0_PLP_ID = hd.PLP_ID';
    return q;
    END;

  • PA30 - Personnel Number field greyed out - No input help available.

    Hi Experts,
    In our System in DEV, & Quality  in PA30, we are unable to select employees either by directly giving the number (greyed out) or by selecting through F4 (No input help is available).
    But in Production System we can directly give Pernr or select through F4.
    Any body tell me what is the reason behind this.
    Thanks in advance.
    Samanvita.

    Hi Hariprasath,
    It is not the issue with NUMKR, The number Ranges are already maintained, and are defaulted in NUMKR feature.
    This is showing same in DEV / QA/ Prod.
    Issue is in DEV / QA,  The Personnel Number Field is Greyed out, and not able to select any number.
    For that we are going to PA20, open the personnel number first, and open PA30 in another window, then we are changing the data of the employee.
    But we want to give Personnel Number in PA30 itself as per SAP Standard.
    Any Idea, why it is like this.
    Thanks,
    Samanvita

  • Crystal Reports XI:  Using Wilcards with the Select Expert

    I have a field with 10 numbers.  There are several of them that start with three numbers and end in all zeros.  I want to make sure these are not in my report.  I have been successfully able to do this using the select expert, but it requires a lot of manual entry:
    {@Phone Number} <> "4090000000" and
    {@Phone Number} <> "2810000000" and
    {@Phone Number} <> "8320000000" and
    {@Phone Number} <> "5120000000" and
    {@Phone Number} <> "9999999999" and
    {@Phone Number} <> "9760000000" and
    {@Phone Number} <> "9360000000" and
    {@Phone Number} <> "6010000000" and
    {@Phone Number} <> "8150000000" and
    {@Phone Number} <> "7130000000"
    I need to find a way to do this without having to enter each code by itself.  I tried using a wilcard, but it appears that I am not using it correctly.
    {@Phone Number} <> "***0000000"
    Please help.  Thanks!

    Nevermind   Just needed a simple: 
    not ({@Phone Number} like "*0000000")

  • Select Expert Drop down list

    Post Author: MarcS
    CA Forum: General
    Hi,
    I'm using Crystal Report 11. I'm creating a parameter field that will allow me to select a specific data from one field in my database.  When I use the "Select Expert" it only show me the first 500 records.  How can I see the rest of the data?

    Post Author: SKodidine
    CA Forum: General
    There is a time limit of 5 seconds by default.  All values fetched within 5 seconds will be displayed.  If you want to increase the time limit or the number of records fetched then you will have to modify the registry keys as described in this KBase article.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2001119&sliceId=&dialogID=5902806&stateId=1%200%205904330
    Replace the registry key path in the article with HKEY_CURRENT_USER\Software\Business Objects\DatabaseServer

  • ABAP Query : Obligatory fields on selection screen!

    Hi Experts,
    I would like to know the differrent ways through which we can define mandatory fields on selection screen.Options availabel in Infosets (SQ02) as well as Query(SQ01).
    Selection Screen:
    Document Date in Document:  (Mandatory      Select-Option)
    Plant :  (Mandatory      Select-Option)
    Thanks,
    Yogesh

    Hi, Everyone .
    We can do that .
    At selection-screen output (code section 13), set "1" to the field REQUIED by using MODIFY SCREEN code .
    (You can get Dynpro number by F1 key or T-cd SE51 )
    Masao .
    Edited by: MASAO NONAKA on Oct 20, 2008 9:11 AM

  • External Manufacturer number field in vendor master (EMNFR)

    Hello Experts
       I am trying to search for a field  External manufacture number i.e EMFNR , I checked in OBD3 this field is maintained as a mandatory field I can see this field in LFA1 table But when I go to XK01,I can't see this field in cantrol tab is there any other setting I need to do for activate this field ?

    Hi Expert,
    The Field you mentioned is not correct, it is LFA1-EMNFR and You need to change the Field Status for the Client level to activate the field. That is done in the T-Code: OB23.
    There select the Option - Double Click - Create Vendor (Centrally) and then try again with T-Code: /NXK02..
    This will solve your issue..
    Regards,
    GK
    SAP

  • Conditional Select Expert

    Hi,
       I am trying to write a formula in the select expert based on a condition. For certain departments, I want to include specific employee hours, but, for other departments, I want to exclude them.
    Department is based on a number: 010 or 020 etc...
    Employee Job: 0020, 1020, 0430, etc...
    Here is what I am trying to accomplish:
       Ex: If (Department = 010) then DO NOT count employee job 0020   Else count employee job 0020
    Department and employee job are two separate fields in the database.

    I tried the above code and wasn't able to get it to work properly. It only worked when the department was 010. For the other departments, I got no records. I used the formula below, and it works great.
    (if({VP_TIMESHEETITEM.LABORLEVELNAME2} = '010') then {VP_TIMESHEETITEM.LABORLEVELNAME3} <> '0020'
    else {VP_TIMESHEETITEM.LABORLEVELNAME3} <> '' )

Maybe you are looking for

  • Unable to respond to Calendar Invitations

    I seem to be running into a strange bug and am curious if anyone has seen this before. On all of my devices (iPhone, iPad, and iMac), I am unable to respond to a Calendar event.  On the iOS devices, when I tap on a response, it displays in the calend

  • Email PDF to Word Document?

    I have been sent a PDF file to apply for a contract that I wish to quote for. Will this program allow me to change it to a word document and allow me to fill in the blanks?

  • SDO_BUFFER Geometry in Mapviewer

    I'm using the sdo_geom.sdo_buffer procedure to successfully generate a buffer around a point, but I can't seem to get the buffer to display the way I'd like. This is what I am doing to get a gray buffer: mv.addJDBCTheme(dataSrc, "ASSET_CIRCLES", circ

  • IMail

    I'm using an IMail server in my company. I have an application which sends email using the Java Mail API. When I send to a user whose registered in the IMail system, the mail get's sent fine. The problem is that I need to be able to send email to use

  • After upgrading to Lion, iCal doesn't sync with MobileMe

    After my upgrade to the new Lion OS X, the iCal doesn't sync properly with MobileMe; events from MobileMe will go to iCal but they will not go from iCal to MobileMe. In System Preferences/Internet & Wireless/Mail, Contacts & Calendars: I've tried rei