Default Value Date Picker Field

Hello:
In a detail tabular form I am referencing a date picker field from the master form as default value.
This is the situation in the detail form:
TABULAR FORM
Column Name:                   FECHAREGISTRO -- the field's name in the detail tabular form
Default Type: Item (application or page item name)
Default: P68_FECHAREGISTRO -- It's a field in the master form and also is Date Picker format
Reference Table Owner: SAMPEDRORIVEROS
Reference Table Name: BITACORAABOGADO
Reference Column Name: FECHAREGISTRO -- It's a date field in the database
At execution time I have the error:
report error:
ORA-01790: expression must have same datatype as corresponding expression
I think it is because i must use to_date and to_char in order to change the datatype and i have tried using:
Default: to_date(to_char(:P68_FECHAREGISTRO,'DD-MON-YYYY'),'DD-MON-YYYY')
and in Default Type: PL/SQL Expression or Function
but I get a different message at execution time:
report error:
ORA-01722: invalid number
Could you explain me what is the problem??
Thanks in advance.
Jairohernan

I don't think you need to do a to_char here
try
to_date(:P68_FECHAREGISTRO,'DD-MON-YYYY')

Similar Messages

  • Assigning a default value to a field

    Hello Everyone,
           Could you please tell me how to assign a default value to a field in a transparent table, so that while creating an entry even if we don't enter the value, a default value will be assigned.
    Thanks,
    Anbu.

    Like this
    DATA: BEGIN OF itab OCCURS 0,
            field1 TYPE c VALUE 'X'
            field2 TYPE c,
          END OF itab.
    append itab.
    append itab.
    You will have by default X set in both rows for field1.
    Regards
    Marcin
    PS: Ooops I just noticed you meant transparent table but I wrote about internal one. As long as you maintain that table using maintenance view you can use event 05 - When Creating a New Entry and set fixed value for a field there. So whenever you create new entry it will receive that value.
    Edited by: Marcin Pciak on Jun 23, 2010 8:57 AM

  • Not allows to assign default value to input field using values in datastore

    Hi Masters,
    Consider that I have one input field in a form. I should assign default value to it. I should assign to it, the value which i have stored in a datastore. When i run the application, if i give default value as 123 ,then it is working fine i.e., it is showing 123 in the textfield in form , but if i give the default value as STORE@ProductId, then it is not displaying that value in the form.
    Please help me out.
    Thanks & Regards,
    Kaushik Sreeram

    Hi,
    i faced this problem and here's what i concluded:
    There's no way you can set default value for input field dynamicly, since the default value of input control is caculated only once (i think on initializing of the iView). The input control and the data store are initialized at the same time, STORE@productID is empty that time...
    If you don't need to recieve value through the input field you're trying to initialize, but just to display the value from the store - I suggest you try using another control - Expression Box. It's value is calculated continiously, just like the Label's, and you can refere to it later.
    Regards,
    Yulia

  • Restricting User Editing Date Picker Field Manually In Adobe Form

    Hi Experts,
                       I have an Date Picker field, which list down the calender to select date. But, along with that, it allows user to input any data manually. I want the user to select the date only from the calender and the user should not be allowed to edit the field manually. As option to do that ? I tried all available types and nothing seems to be fulfilling my requirement.
    Regards,
    Satheeshkumar.M

    Hi satheesh
    This is possible with a script in the EXIT event of the date field.
    It uses a regular expression to check the entered value for a specific pattern.
    Allows are dates in these way: [9|99] [.|/|-] [9|99] [.|/|-] [99|9999].
    Javascript code
    if (! this.formattedValue.match(/^\d{1,2}[\.\/\-]\d{1,2}[\.\/\-](\d{4}|\d{2})$/g)) { 
              xfa.host.messageBox("Enter a correct date!", "Invalid Date", 0, 0); 
             xfa.host.setFocus(this.somExpression); 
    regards
    Sandy

  • How to set a default value for particular field in SRM PO Portal

    Dear Gurus,
    Im desparetly need a help in web dynpro on how to set a default value for a field(flag) in PO header tab in portal.
    My requirement is whenever the user press the edit button in PO screen,automatically a flag field should be set as abap_false.
    I dont think this will handle in check badi or change badi. i tried this part in onbuttonpressed overwriteexit in CNR_VIEW views,i can get the function EDIT in debugging mode,but dont know how to proceed further.....
    Many of them suggested to go with get attribute and set attribute for changing any particular field in web dynpro,but im not very familiar in using those get and set attributes.I request you people can give me sample code on how to identify my target field in the node and set the values while pressing EDIT Button.
    Thanks in advance...
    Regards,
    Sathish

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

  • Want to affix a default value to a field in PO creation

    Hi all,
    I want to set the default value for the field 'Account assignment category ' when a certain type of Purchase order is created in all the screens pertaining to Purchase order.
    Please suggest
    regards
    kanishak

    Dear Laurent,
    Thanks for your response,
    But i searched in enhancement spot of WD_BADI, but couldnt get the exact way to change the coding,
    My real requirement is, that particular flag should be enable and disable dynamically by checking a condition in my header values.So in that case i dont know how to proceed further to handle in the PO screen.
    Kinly guide me how to get the particular node of field in the Purchase order screen.
    Thanks you in advance,
    Sorry for the inconvenience if any
    Regards,
    sathish

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

  • Default value to a field in PBO

    Hi all,
    I need to set a default value to a fields in a screen.
    But when  i declared field as NUMC , i am not able to store 0 (zero value) into it .
    and also when iam declaring as  integer also iam not able to store 0 .
    Pls anybody let me know how to set the defualt value.
    its urgent

    Hi Madhavi,
    This is the issue with NUMC type field. It will not display zero on the screen. As you want it only numeric field then NUMC not suit your need as it can also store CHAR values. So you better declare it as CHAR field and in the code give error if someone enters CHAR values for that field like below.
    IF l_field CA sy-abcde.
    ERROR -Only numeric values allowed.
    ENDIF.
    Regards,
    Atish

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • Date picker field shows html code?

    I have a HTMLDB 2.0 app that I have ported to APEX 3.1. I have one field that is a date picker field which has a before regions computation on it that calculates an expiration date. For some reason, the text area shows the HTML code of the page, not the calculated date. No idea why. Anyone? TIA

    Can you show us on apex.oracle.com?
    Scott

  • How to set the default values of the field of the context.

    Hi Experts ,
    I want to set the default value of the field of the context.
    Where and how this declaration should be done.
    Thanks in Advance.

    In the context tab of the view. Select the attribute for which you want to set the default value.it will show the properties at the bottom. set the Default value property to the value which you want to set as the default value.
    Regards
    Naresh

  • Hello  Guru's,  How to setup default value to a field

    Hello Guru's,,
    will anyone guide me the procedure how to setup a default value to a field in mm01 SAP STD Transaction.
    example: material description  ' xxxxxxx ' , it should be constant for all materials.
    full points for the answer
    PV

    Hi,
    Pls look into it
    These are the way to set the default values.
    Step 1 :
    CONSTANTS : P_MAKTX TYPE MAKT-MAKTX VALUE 'DESCRIPTION'.
    STEP 2:
        SET PARAMETER ID 'MAT' FIELD 'DESC'.
        CALL TRANSACTION 'MM01' AND SKIP FIRST SCREEN.
    If it is useful reward points.

  • Is there to restrict dates avaiable in a  date picker field?

    I want to use a date picker field, but want to restrict the selectable dates. I am aware that I can perform a validation on the field after the fact, but is there a way to restrict the date visible to the end user in the date picker calender?

    Hi,
    As I know there is no way do that for Apex standard datepicker.
    You can check alternative solution e.g. using jQuery
    Br, Jari

  • Default Value Date in Cash management

    Hi experts!
    I'm configuring Cash Management with document -Cash Management Germany (B46)
    I  want to configure "Default Value Date" :IMG: Treasury --> Cash Management --> Basic Settings -->Define Value Date Default
    But where I don't see Treasury?
    Please help me
    Thanks & reguards
    Ngocpt

    In ECC 6. treasury is replaced by Financial supply chain management. You can default the date in the following path:
    IMG - Financial supply chain management - cash and liquidity management - cash managment - Basic Settings -->Define Value Date Default
    Regards,
    Mayank
    *assign points if useful

Maybe you are looking for

  • Only one custom ringtone at a time?

    I've uploaded more than one custom ringtone at a time onto my phone, but it shows two of the same song and won't upload anymore. Anyone with a suggestion?

  • Need suggestion in getting data using JDBC

    Hi all need suggestion,      i had a VO corresponding to database table.      when i am try to get the records from that table,      how can i initialize the particular column value to the      corresponding VO setter method.      please do the needf

  • Stop and start counter set to frequency read

    Original question posted in the counter forum but no response so hope its ok to try here? I am using a 6024E interface to operate a PID loop that keeps the RPM stable of a servomotor but having problems when attempting to read frequency at the same t

  • Maximum size of an SQL statement

    Hello, we get a short dump with runtime error DBIF_RSQL_SQL_ERROR and exception CX_SY_OPEN_SQL_DB. The dump occurs at the following select statement:         select * from /rtc/tm_inuse           appending table gt_zrtc4inuse           where obj_name

  • Drag/Drop Proxy Image

    I would like to be able to access the Proxy Image during a drag/drop operation inside the DragOver event. Is it possible to get refernce to that object to be able to change the image, get it's current location, etc?