Can I modify the data type of a dynamic parameter?

I am using CR2008 against an Oracle 11 db and have a report with dynamic parameters.
One of the report sources is a custom view that selects all of the possible 'pay ending dates' where one of the fields from this view is used as the source for the dynamic parameter.
The view performs a TRUNC on the date field in an effort to eliminate the TIME component.
The problem is that the parameter definintion defaults to DATE/TIME (vs. just DATE). I'm wondering if there is any way to modify the data type of the parameter to be DATE only.
I've searched several forumns but have not found anything.
One solution I can think of is to have the custom view format the date field as a VARCHAR (sans the time component) which I assume would force the dynamic parameter data type to string, and then have the report perform a todate function on the value when applying the criteria.
Anyone else have an idea? Just seems like CR should allow the developer to specify the data type- especially b/w Date and Date/Time, rather than make an assumption.
Thank you in advance-
emaher

emaher,
Here's what you can do:
Leave the existing date column as it is in the view...
Just add another column to the view that casts the the date as a VarChar data type and formats the date as you would like it to be.
So now you'll have 2 date columns in the view... 1 that's still a date and another that a character string.
Now for your parameter, use the date version as the parameter value and the text version as the parameter description.
Be sure to set the "Prompt with description only" is set to true.
This way the user sees the LoV in the desired format but there's not need to wrangle it back into a date for data selection.
HTH,
Jason

Similar Messages

  • Can we change the data type of a field based on the value of the field

    HI Gurus,
    My Requirement is as below -- Could you please guide me
    in the Printable Adobe form -- for ex - as usual for dates fields in the Object Pallette the object type is a date/time field  and for quantity/currency fields corresponding fields are taken
    now in case the either the date, quantity or currency is initial in place of displaying 0.00 or empty date we need to display N/A (Not Applicable)
    for this I would like to change the data type of the field
    to put it simply --
    we need to change the data type of date field from DATE&TIME to Char type to hold N/A or  Quantity field to Char field to hold N/A
    how can we realize this in SAP adobe forms
    Thanks in Advace
    Ramchander Rao.K

    Hello Ramchander,
         You cannot change the data type of the field at run time in Adobe forms because the type of field you choose at the time of design level is associated with the data type itself.
    If you want to achieve your requirement, then your main idea should be to set the data type as CHARACTER itself while designing the field in the adobe form itself. CHAR field will comfortably hold the value of Calculation/amount field, Currency field, Amount, Date, Time HHMMSS, Unit Accuracy, Currency key, Floating point number, Numeric text, Client, Language and many other data types.
    After designing the field as TEXT field in Adobe form you have two options.
    Option 1:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms.
    Suppose the name of the field is TEXTFIELD1, then write the Javascript code on this field in Initialize event as below.
    if ( this.rawvalue == null )
         this.rawvalue = "N/A";
    If the field is not blank, then it will show the date. Else it will show "N/A".
    Option 2:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms. Do the formatting part in ABAP itself. It will increase the performance. Avoid Javascript as much as possible.
    Suppose you have a DATE variable l_dats of type DATS. Then take another variable l_date of type CHAR. Then write the below ABAP code.
    MOVE l_dats TO l_date.
    IF l_date IS INITIAL.
         l_date = 'N/A'.
    ENDIF.
    Bind the l_date to the TEXT field in the form.
    Even in this case, if the field is not blank, then it will show the date. Else it will show "N/A".
    But I will suggest you to use Option 2 of keeping the AMOUNT, QUANTITY, DATE, TIME fields etc as CHAR or TEXT fields in Adobe form and do the required formatting in ABAP itself.

  • How can I read the data type of a field in an MS Access database

    I need to be able to determine if a field in an Access database is of a certain data type, and if it isn't, to change it to what it should be.
    I can't seem to find any way of reading the data type of any field in any table - can anyone give me a metod of getting this info?
    Thanks
    ..Bob

    Does <cfdbinfo> work for Access DBs?
    You might be better off asking this on a MS Access forum.  It's more of an Access issue than a CF one.
    Adam

  • How can I modify the date format in Autoimporter?

    I am finding it impossible to get my iMac recognise my Canon SX200 camera and thus allow Picasa to import its pics.  Autoimporter, though, does see it and will create and populate a usefully date-named folder with them.
    Useful up to a point - Autoimporter's date is in the system's format (for me, dd-mm-yyyy) which does not allow the folders to fall naturally into date order in Picasa.  International date format (yyyy-mm-dd) would be ideal.
    Can anyone advice how Autoimporter's date format can be modified, please?
    Or tell how they got their Canon SX200 to be recognised by Picasa?

    I actually use a pretty manual solution for this with a few command line tools: ExifTool, bash, and AppleScript. It's fairly raw, but here's the process in case you're intereted.
    First, make sure ExifTool is working. Install it if needed.
    Create a bash script that moves the photos from your auto-import folder to yyyy-mm-dd folders.
    Here's a sample bash script:
    #!/bin/bash
    SOURCE_DIR=“/Users/yourusername/Pictures/Imported"
    DEST_DIR=“/Users/yourusername/Pictures"
    if [ -d $DEST_DIR ]; then
         for i in $( find $SOURCE_DIR -type f ) ; do
              mkdir -p $(exiftool -d $DEST_DIR/%y%y-%m%m-%d%d/ -p '$DateTimeOriginal' $i);
              mv -n $i $DEST_DIR/$(stat -t %y%y-%m%m-%d%d $i | awk '{print $12}' | sed s/\"//g )/;
         done
    fi
    Create an AppleScript file that calls the bash script, example:
    do shell script "~/bin/movephotos.sh”
    Then right-click the folder where you auto-import files, go to Services > Folder Actions Setup, and connect the bash script as an action for the folder.
    For more details, see http://designsimply.com/2013/12/30/moving-iphone-photos-with-autoimporter-exifto ol-bash-applescript/

  • Modifying the data type of existing field in CC&B

    Hi ,
    In log tab of Customer Contact page in CC&B there is a field (Trigger Date) which stores only date.I want to modify it so that it can store date and time also.
    Can anybody guide me how can i do this ??
    Thanks
    sunil

    its a base field from the table CI_CC_LOG. It is recomended that you do not change it.

  • How to get the Data type of the Internal Table.

    How can i get the data types used to create an internal table
    TYPES : BEGIN OF t_makt,
              matnr    TYPE    matnr,
              maktx    TYPE    maktx,
            END OF t_makt.
    Like this some function will give me which data types i have used for the internal table at run time.

    Use the FM ..
    data : int_fcat type SLIS_T_FIELDCAT_ALV.
    REUSE_ALV_FIELDCATALOG_MERGE ..
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = sy-repid
                I_INTERNAL_TABNAME     = 'IMAT'   <-- this is your internal table
                 I_INCLNAME             = sy-repid
           CHANGING
                CT_FIELDCAT            = int_fcat <--- this contains all the fields along with their characteristics ...
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.

  • How to check the data type dynamically

    hi all
    my requirement is like this  in one screen field which is of character type user is inputing data .
    now while saving to the database i have to apply one external check for this data if it is integer type or not
    as this data on the screen is refrenced to the database so i can not change the data type on the screen itself .
    i have to check it externally from PAI ....... would any one please help on this
    Thanks and regards
    Papps

    Hi
    Thanks again you are right i missed the space one ..
    but Now another problem...
    I have tried that but in that case even user can input data by mistake like this
    123 4  but this is not an integer it should also give error as this is also not a correct integer ...
    as par asi think . we have to aain check if there is any spaces in the data provided i guess or
    is there any other procedure ?

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • How can I modify the High Speed Data Reader VI to show correct time informatio​n in x-axis?

    I am just a beginner learning the LabVIEW programming currently.
    I have a PXI 6115 DAQ card and have to make a hardware timed acquisition VI for maximum performance. Thus I use the High Speed Data Logger VI for data acquisition.
    However, when I read my data by using the High Speed Data Reader VI, it doesn't show its correct time information in the graph.
    How can I modify the High Speed Data Reader VI to show correct time information in x-axis?
    I hope you can explain easily because I am a beginner.

    Hey Chunrok,
    I've modified the High Speed Data Reader VI slightly so that it now uses the scan rate of the data (as determined from the file) to set the scaling for the data points. If you wanted the start time to be a specific time you could use the start time obtained from your file to set the xscale offset as well.
    I hope this helps!
    Sarah Miracle
    National Instruments
    Attachments:
    Example.vi ‏281 KB

  • How can I modify the High Speed Data Reader VI to show the time information in x-axis?

    I am just a beginner learning the LabVIEW programming currently.
    I have a PXI 6115 DAQ card and have to make a hardware timed acquisition VI for maximum performance. Thus I use the High Speed Data Logger VI for data acquisition.
    However, when I read my data by using the High Speed Data Reader VI, it doesn't show its time information in the graph.
    How can I modify the High Speed Data Reader VI to show the time information in x-axis?
    I hope you can explain easily because I am a beginner.

    Format the x axis to either absoulte or relative time.
    You can do this by right clickingo n the graph and selecting x axis then formatting from the menu.
    Thanks,
    Naresh

  • How can I modify the High Speed Data Reader VI to show correct time information in x-axis?

    I am just a beginner learning the LabVIEW programming currently.
    I have a PXI 6115 DAQ card and have to make a hardware timed acquisition VI for maximum performance. Thus I use the High Speed Data Logger VI for data acquisition.
    However, when I read my data by using the High Speed Data Reader VI, it doesn't show its correct time information in the graph.
    How can I modify the High Speed Data Reader VI to show correct time information in x-axis?
    I hope you can explain easily because I am a beginner.

    First, I couldn't seem to find that example either on computer or on the NI sites.
    The problem that we're running into is stated in the article that I pointed to - when real time VIs are running, then the OS will stop updating the OS clock. TO us it looks like the clock is losing time. There is a hardware clock on the PXI and it is read only during boot up to set the OS clock. Our discussions with NI have not led to a solution for this problem without checking the time on start and then checking the tick count (which does not lose time) and calculating what the current time is. No access to the hardware clock is supplied.
    We're still working on a simpler way to get accurate time.
    Rob

  • Can I modify the the day type with a time rule???

    Hello,
              I´m trying to modify the day type,I want to change in some particular cases the day type from 1 to 0 for example. I´m looking in the documentation but I don´t find no operation to do this trough a time rule.
    I think that it would be abble to do with a function that modify the table PSP.
    Anybody knows how can I do it??
    Thank you very much!!!.Regards,
    Emi DF

    Thank you Valéire,
                                  I´ve solved the problem with your answer.Regards,
    Emi DF

  • How can you modify the displayed columns on a Related Information List?

    How can you modify the displayed columns on a Related Information List? For example, how could you add the "Type" column to the List of columns displayed for Service Requests when you are viewing the Contacts Detail page?
    Thanks

    I'd have to say I think this is one of the biggest flaws in the OnDemand system currently. The solution I have come up with is to create reports and put them in webapplets showing the data I want to show. I have then removed the standard Related Info List Objects and added weblinks to create new records as the button on the List object is also gone.
    Keep in mind that doing this does slow things down a little, so it may not work if you have a big user base.
    RWB.

  • Can't change column data type

    Hi, i am using Sybase IQ 16.0
    I have created a table, when I want to change one of the data type for a column for example from char to varchar, the list box is grey color and not allow me to change.
    Right click table > Properties > Columns > Data Type
    I have granted all permission for dba, but still not able to edit. (please see the attached file)
    Any help?
    Thanks.

    Hi Nelson.
    You can not change the datatype of an existing column.
    The doc reference is here: Altering Tables
    "After you create a column, you cannot modify the column data type. To change a data type, drop the column and recreate it with the correct data type."
    If you already have data in the column, you can try this:
    create the new column with a slightly different name
    copy the data in to the new column
    drop the original column
    rename the new column to the old column's name.
    --Kirby

  • How can i check the data Of the phone and repar it

    Thank you jeremy to replaying me , i forget to informe you,i already initialyze the phone, i am now how can i chek the data data of phone and repar the missing data(Read,write)
    The data are Numbers.
    i am new in Labview someone can help me withe sample.

    I do this type of thing for a living, so I am restricted (by contract) in what I can say. Therefore this answer will be sufficiently general to help you get started but without doing the work for free.
    Here goes;
    You will have to find out at least three SETS of details.
    1) Find out what physical interface to the phone is. By this I mean what type of connector do you need to plug into the phone, What type of signals are transfered back and forth, and how they are used.
    2) Determine the protocol used. This is the actual commands and response that can be sent to the phone and are returned by it. Get all of the details.
    3) Determine the what functionality is support by the phone that is usefull to you. This would be things liked, "How do
    I get a list of all the numbers", how do I modify a number", etc.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Firefox won't open in Windows 7 Ultimate.

    I recently switched to a new computer with a Windows 7 Ultimate 64-bit OS. I set up an internet connection and IE worked fine. I went to download Firefox and the installation went through without a problem. At the end of the installation I checked th

  • Problem with showing selected rows

    Hi, I have writed ALV report with OO and some input field(dialog programming) in same screen.I want to select rows but rows looking like unselected(all of them) on ALV report when i fill input field after selected rows and use enter key.I didn't unde

  • Hp pavilion e15 games are not working in high performance

    I'm using HP Pavilion 15-e015tx  and windows 8.1 os.I'm having a problem that some of the games are blinking or not working properly in high performance in amd graphics driver.The games are working only on power saving mode and I'm experiencing very

  • Where is Device Central that exist in CS5 in Cs6 ?

    in Adobe Flash Cs5 there is Device central to choose and test Air android with different resolution and brand but i cant find this on Flash CS6 !! so how can i test my Air 3.2 project in various resolutions and devices ??

  • SQL*Loader-524 using sqlldr

    I am getting the following error while running sqlldr80 on 8.0.6.3.1 version. SQL*Loader-524: partial record found at end of datafile I followed metalink note 1058890.6 that tells about the bug 735710. The problem gets resolved when I give a line fee