Current_date different in forms 10g (variable:=current_date differente from select current_date into varialble)

If in a form, I assign current_date to a variable like ' wdate:=current_date' the variable get incorrect value than if i assign like 'select current_date into wdate from dual'
Why?, current_date is always from database session isn't it?
Thanks for your help.

Hello tony.g
This is the code:
:b11.femovi is a form field date type;
In this code wdate shows differente value than :b11.femovi.
I think that the value must be the same because "current_date" is a database variable isn't it?
declare
wdate date;
begin
:b11.femovi := current_date;
select current_date into wdate from dual;
rutmensaje('date='||to_Char(wdate,'dd/mm/yyyy hh24:MI')||'-'||to_Char(:b11.femovi,'dd/mm/yyyy hh24:MI'));
end;

Similar Messages

  • Forms Builder - form not pulling the data from the DB into the datablock

    I'm working on a school project, and I'm not sure if I'm doing something wrong, or if something is wrong with my setup.
    I created a basic form, 3 fields, and ID, firstname and lastname
    the wizard connected fine, pulled the three fields into forms builder
    I setup a canvas - type content with the a form format layout of the three fields.
    saved the form.
    When I run the form and it's displayed, nothing gets pulled into the fields (all blank).
    Shouldn't it pull at least the first row from the table?
    it says it's on record 1/1
    XP, Oracle 10g, Form builder 10.1.2,
    I'm not getting any errors
    I want to get this basic form working first, before I start adding to it, and it doesn't seem to want to cooperate.
    I've done the same steps as in the tutorials....

    I did find that, if I put data in the ID, first and lastname on the form, and click Execute & Save on the Menu, it does add it to the database.
    Maybe what I'm missing, is how do I get the form to read from the database when it starts up?

  • Selecting user input from Select option into smart form

    Hi,
    when i use parameter then i wil show company code in smart-form output
    but when i use  select option then its throwing error parameter specified here is different
    what should i do in this case i want to design a big select option screen for taking user input
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS.
    pls help me in this regards.
    ketan..

    hi
    thnx for your reply
    can u pls elaborate in my code
    now i changed code   BUKRS    = SO_BUKRS-low.
    either i can give low or high but how to select from range
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS-low.
    ketan..

  • 10g and 9i difference from DB view and DB Administration View

    Hi,
    I want to know the basic difference between oracle 10g and 9i ....
    Reason, is im new to oracle; now im going to learn oracle DB administration side... but in here they still offer Oracle version 9i... (10g is NOT officially available)
    what i want to know is whether there is BIG difference between oracle 9i and 10g from the DB Administration view.
    These are the things im going to learn:
    Introduction to Oracle 9i
    Oracle 9i DB Administration Fundermentals-1
    Oracle 9i DB Administration Fundermentals-2
    Oracle 9i DB Performance Tuning
    All will be in Oracle 9i... pls let me know is there big difference between 9i and 10g for the above subject categories.
    !!!!

    >> I want to know the basic difference between oracle 10g and 9i
    You may need to read "Oracle® Database New Features Guide 10g"
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14214/toc.htm
    but in here they still offer Oracle version 9i... (10g is NOT officially available)Hope you know that Oracle 9i is now disported by Oracle Support.
    >> what i want to know is whether there is BIG difference between oracle 9i and
    Obviously in every new Oracle Version there are big differences and many new features. Consider reading Oracle Documentation referred, It's not easy to list or two new features here in the forum, one should read about them from documentations.
    Regards,
    Sabdar Syed.

  • HOST command not working in forms 10g

    Hi,
    I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: -
    "host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);"
    But I am not able to get the sqlplus window, and the main form is still in process for long time, till i bounce the server.
    The forms are deployed on Oracle Applications Server 10g and i want to run it on server side.
    Please help me with the problem.
    Thanks,
    Ankit

    The deployment architecture is different between forms 10g and forms 6i.
    In Forms 6i HOST built-in command will run on the client machine since you are running as client/server, but in WebForms (Forms10g) the HOST built-in command will run on the middle tier which is your application server machine.
    In order to run hosts commands in WebForms you need to use webutil and use CLIENT_HOST in the webutil.
    check the [Forms 10g R2 Demo|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] for sample codes of webutil.
    You are using NO_SCREEN in your example, this will hide the window.
    Tony
    Edited by: Tony Garabedian on Nov 26, 2009 2:43 PM

  • Commit processing in Forms 10g, what triggers fire etc.

    In the oracle documentation there used to be a commit processing flowchart that said exactly what triggers fire on commit. Don’t seem to be able to find such a thing online.
    This started by trying to work out if when-validate-item always fired on commit, even if it had been fired when the value was changes. It has turned into a more general question about the above and if it is any different in forms 10g and is it any different to 6i, 9i...?
    I.e. how do you answer the standard oracle job interview question 'what triggers are fired when you commit in forms?'.
    Oracle seems to of hidden the information, anyone know the answer?
    Regards,
    Ben

    Hello,
    Something like this:
    POST-TEXT-ITEM
    POST-RECORD
    POST-BLOCK
    PRE-COMMIT
    PRE-UPDATE
    ON-UPDATE
    POST-UPDATE
    PRE-INSERT
    ON-INSERT
    POST-INSERT
    POST-FORM-COMMIT
    ON-COMMIT
    POST-DATABASE-COMMIT
    PRE-BLOCK
    PRE-RECORD
    PRE-TEXT-ITEM
    WHEN-NEW-ITEM-INSTANCE
    Francois

  • Upgrading from Forms 6i to Forms 10g

    Does Forms 10g support direct upgradation from 6i to 10g version or have to go step wise from 6i to 9i and 9i to 10g. Also suggest ways of handling the run time errors arising. Does Oracle provide some patches to facilitate a smooth transition fromo 6i to 10g.

    Thanx Grant,
    Can you also suggest as to what complications can arise as many built-ins in 6i have been discarded in 10g. Does the pathes available take in most part of the work in upgradation. I have around 1000 forms in 6i on a complex finance & insurance sectar. Will be pleased if you can suggest the best way of migration.
    As suggested the bath mode will be the likely option as individually compiling each .FMB would be combursome.
    Are there some specific de-bugging tools available.
    Regards
    Sridhar

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • Setting environment variables oracle forms 10g(10.1.2.0.2)

    Hi,
    We are migrating forms from 6i to 10g(10.1.2.0.2). We want to run reports in batch form Forms 10g and setting these environment variable(same as they are set in 6i).Please let me know correct path for these variables in Application Server.
    FORMS_OUTPUT=
    FORMS_MAPPING=
    FORMS_REPFORMAT=
    REPORTS_NO_DUMMY_PRINTER=
    DOC=
    DEMO60=
    GRAPHICS60_PATH=
    UI_ICON=
    ## setting for Project Builder
    ORACLE_AUTOREG=
    Thanks in advance
    Sandhya

    ... and beside of what Jan said, look at the following whitepaper:
    http://www.oracle.com/technology/products/forms/pdf/webicons.pdf
    Note that all directory names and file names that have a "90" in it are now without or have a frm prefix instead.
    Frank

  • Forms 10g single user log in from different computers.

    Dear All,
    I am using forms 10g and I want to stop a single user_name to log in to the application from different computers at same time trough browser. Please help me to resolve the issue....
    Thank you in advance..

    Hi,
    user_name is oracle database user name or your own application username?
    You want to restrict to only one session at a time for a particular user?
    Regards
    Yoonas

  • Differences between Forms 6i and Forms 10g

    Forms 6i and Forms 10g
    What are the differences between Forms 6i and Forms 10g
    What are the differences between Reports 6i and Reports 10g
    Regards,
    Arjun

    differences b/w forms6i , forms9i and forms10g

  • Bad bind variable error in oracle forms 10g

    i have a created a table in oracle database 10g
    create table myimage(image_id number, image_name BLOB);
    i want insert an image and retrieve an image through programing(don't want block level) in oracle forms 10g
    without using java beans(and finely working in both windows XP2 and Solaries)
    how can i do this please can anybody give me the source code to do this because i am new in oracle forms.
    i need a immediate replay to this answer why because i have urgent requirement on this in my web erp project

    You can use WEBUTIL to do so, but
    without using java beans(and finely working in both windows XP2 and Solaries)WEBUTIL also contains javabean. I don't know why you have this restriction, i'd say you won't succeed without any java-bean.

  • 10g vs 11g differences?

    I'm planning an upgrade of Forms 10g to 11g. We have a customized basejpi.htm file and I was comparing it to the 11g basejpi.htm file for differences and noticed that besides a few additional parameters (%parameter%) in 11g there were some that were not in the 11g basejpi.htm file that were in the 10g file especially ones referring to the SSO. Are these parameters no longer needed? Is there any documentation on what variables are needed and what are optional?
    Edited by: do**** on Apr 27, 2011 7:01 AM

    Let me start by saying what I say often to our customers that are upgrading from old versions to new versions.... Every new version should be viewed as a new product with some backward compatibility support. For some reason customers seem to think each new release is the same as the old. It wouldn't be new if it was the old ;) So this leads to my point. Do not attempt to take configuration files from old versions and use them with new versions. Changes should be made directly to the new files in order to prevent the possibility of overlooking changes in the new one. For example new parameters or obsoleted parameters and or values. Other critical changes may include things like adherance to formating. By taking an old file an dropping it in a new version's environment may cause unpredictable behavior depending on exactly which config file is moved. More importantly, doing this is not at all supported.
    Also important to note is that in version 11, administrators are discouraged from making changes to configuration files manually. All changes should be made from within EM unless a particular configuration file is not managed by EM. Manual changes to config files resulting in errors/failures will not be supported by Oracle. In other words, if a problem only occurs when you alter a config file manually, but does not occur if/when you attempt the same from within EM, the issue will not be deemed a defect.
    As for your specific question related to SSO I can offer the following. As mentioned above, v11 is a very different animal compared to 10. Although the basic components like Forms have remained mostly the same (at least on the surface), changes/improvements have been made which resulted in some obvious and not so obvious differences such as the one you noted. In v11 for example, there is no included SSO solution as there was in v10 where we included all of the necessary OID/SSO components and configurations. In 11 you must now add SSO/OID as a separate installation. Therefore configuration of SSO in Forms occurs after you complete the setup for SSO integration. And yes, some internal changes have also been made, so the exact parameters used in v10 may not be the same in v11.
    For details about using SSO in v11, refer to the product documentation:
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e10240/sso.htm
    Also refer to MyOracleSupport note 852352.1

  • Setting Session level parameter in FORMS 10g

    Hi folks,
    I want to setup session level setting for NLS DATE FORMAT in FORMS 10g at environment settings. because, i can't change these setting at database level. b,cz different client applications (i.e. .NET,Forms 10g and SQL PLUS) using different settings.
    So, i want to set this NLS DATE FORMAT for SESSION level in FORMS 10g.
    can i include this in default.env, if yes, how to include that one in .env file
    Edited by: user12212962 on Jul 23, 2010 7:18 PM

    No, i want to setup the session parameter for DATE FORMAT. why because, i'm executing oracle stored procedure from forms and this procedure does some logic based on date value.
    In this procedure, i have used all variables as DATE datatype only. and i can't change this procedure due to some other client application's using same procedure like JAVA, .NET, Oracle BI and scheduled jobs. And all these application's working fine, even when i use forms 6i also it's working.
    but when we use FORMS10g, date was treating as DD-MON-RR and all other client applications using DD-MON-YYYY due to session level setting and at database level also has a same format i.e. DD-MON-YYYY. because i logged this NLS value in audit_table when i executed through FORMS10G, JAVA application,.NET
    May be some where it's changing this setting to DD-MON-RR for FORMS10g. Is any settings at Oracle APP server level
    (iAS) for this parameter?

  • Forms 10g - Oracle 11g DB - Date Format Error - Urgent

    Hi All,
    We are migrating forms 6i to forms 10g.Data Base is 9i to 11g Migration.
    In 10g forms pre-form trigger ,i have statement
    :head.yr_st_dt := to_date(sc.get_property('ps.yr_st_dt'),'MON DD YYYY HH:MI:SSPM');
    In 6i ,it is working fine,the :head.yr_st_dt=22-SEP-09.
    In 1og forms with 11g Database, I am getting the below error
    frm-40735:PRE-FORM trigger raised unhandled exception ORA-01843
    It seems invalid month.
    In 9i ,the NLS_DATE_FORMAT is DD-MON-RR.In 11g also same.
    Thanks in Advance,
    Regards,
    Shan

    user642745: In the list of forum topics, the fourth topic down is this:
        Before posting on this forum please read.   Within that post there is a recommendation:   "Also read the 10 Commandments on OTN forum posting." with this link:   http://blogs.oracle.com/shay/2007/03/02
    Please read and follow step 6, "Get a name".
    You now have 101 posts to your "user642745" name. When you write, it is difficult to distinguish between your post and the original poster's since you both have a similar number as your names.
    user648338: It is clear you do not understand how Oracle handles dates. Depending on the NLS_DATE_FORMAT and NLS_LANG for the session you are running, you will get different results when you display your sc.get_property('ps.yr_st_dt') output.
    The fact that you are even trying to execute the command:
    select to_date('01-MAY-09','MON DD YYYY HH:MI:SSPM') from dual;shows that you do not understand standard date processing.
    Internally, Oracle stores ALL dates in a 7-byte format that includes both date AND time.
    The fact that you are getting results like 01-MAY-09 just means that your session is running with NLS_DATE_FORMAT set to DD-MON-YY. It does NOT mean that the date is stored that way.
    Your entire problem is caused by the fact that the system on which your old Oracle 9i -- Forms 6i environment has its NLS_DATE_FORMAT (and possibly NLS_LANG) set differently than on your Oracle 11g -- Forms 10g environment.
    If you can set your new environment the same as the old, your trouble will go away. Here is how you determine what the values of those environment variables are. Run this in SQL Plus:
    select * from nls_session_parameters
      where parameter in('NLS_LANGUAGE','NLS_TERRITORY',
                         'NLS_DATE_FORMAT','NLS_DATE_LANGUAGE');Be aware, though, that it is possible for your Forms environment to change the settings only for the Forms sessions, so what you get from SQL Plus may not be the same.
    Edited by: Steve Cosner on Sep 23, 2008 11:13 AM

Maybe you are looking for