How to check variable if present or not ?

I have a main form and put the :global.gdate, When I call the others form
I want to use the :global.gdate.
I wirte a trigger "when new form instance" for each form (except main form) so I can get :global.date.
But I can only running this program from main form, if I am running the form without the main form, the error message :global.gdate does not exists.
Question:
Is it posible to check if :global.gdate is exists or not ?
maybe somthing like :
IF get_variable(:global.gdate) IS NULL THEN --?????????
:global.gdate := sysdate;
END IF;

From Oracle documentation:
DEFAULT_VALUE built-in
Description
Copies an indicated value to an indicated variable if the variable's current value is NULL. If the variable's current value is not NULL, DEFAULT_VALUE does nothing. Therefore, for text items this built-in works identically to using the COPY built-in on a NULL item. If the variable is an undefined global variable, Form Builder creates the variable.
Syntax
PROCEDURE DEFAULT_VALUE
(value_string VARCHAR2,
variable_name VARCHAR2);
Example:
** Built-in:  DEFAULT_VALUE
** Example:   Make sure a Global variable is defined by
**           assigning some value to it with Default_Value
BEGIN
  ** Default the value of GLOBAL.Command_Indicator if it is
  ** NULL or does not exist.
  Default_Value('***','global.command_indicator');
  ** If the global variable equals the string we defaulted
  ** it to above, then it must have not existed before
  IF :Global.Command_Indicator = '***' THEN
    Message('You must call this screen from the Main Menu');
    RAISE Form_Trigger_Failure;
  END IF;
END;

Similar Messages

  • How to check table is creating or not

    Hi,
    I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
    sql>spool table.log
    sql>@table_partition.sql

    hi,
    I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
    with regards;
    Boo

  • How to check Reconcilliation has happened or not for a payment document

    Hi,
    How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
    Please help.

    Dear,
    If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
    Regards,
    Chintan Joshi.

  • How to check table is NULL or not when a form load?

    How to check table is NULL or not when a form load?
    I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
    Sorry for bad English... 

    Maybe you can do this in form1's Form_Open event:
    if dcount("*", "table1") = 0 then
      Cancel = True
      Docmd.Openform "form2"
    end if
    -Tom. Microsoft Access MVP

  • How to check one table exist or not in SAP

    Hi, Gurus:
    How to check one table exist or not in the SAP.
    Thanks,

    Hi,
    Query the table DD02L..
    Select single * from DD02L where tabname = 'Your table name'
                          AND TABCLASS = 'TRANSP'.  " For transparent tables.
    Thanks
    Naren

  • How to check internal table sorted or not

    Hi all
    I need to check internal table sorted or not which is without header line and having only one field and six values. please let me know how to check it is sorted or not because i need to display message if it is not sorted.
    thanks,
    Minal

    Hi Minal,
    Go through  this info.
    Sorted tables
    This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
    Stable sort
    The option
    SORT <itab> ... STABLE.
    allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.
    Examples
    DATA: BEGIN OF LINE,
            LAND(3)  TYPE C,
            NAME(10) TYPE C,
            AGE      TYPE I,
            WEIGHT   TYPE P DECIMALS 2,
          END OF LINE.
    DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.
    LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.
    LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.
    LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Howard'.
    LINE-AGE  = 40.    LINE-WEIGHT = '95.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'GB'.  LINE-NAME   = 'Jenny'.
    LINE-AGE  = 18.    LINE-WEIGHT = '50.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'F'.   LINE-NAME   = 'Michele'.
    LINE-AGE  = 30.    LINE-WEIGHT = '60.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'G'.   LINE-NAME   = 'Karl'.
    LINE-AGE  = 60.    LINE-WEIGHT = '75.00'.
    APPEND LINE TO ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB STABLE.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.
    PERFORM LOOP_AT_ITAB.
    FORM LOOP_AT_ITAB.
      LOOP AT ITAB INTO LINE.
        WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.
      ENDLOOP.
      SKIP.
    ENDFORM.
    ************rewords some points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • How to check oracle properly installed or not?

    Hello Friends,
    How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
    i want to check installation made properly or not.
    Thanks,
    Nikunj Patel

    Installation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
    First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
    The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
    The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
    Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
    10g Release 2 (10.2) for AIX
    Part Number B14201-04
    ~ Madrid

  • How to check Variable Names

    Hi All,
    I am checking in CMOD include.  It has lot of code. Example:  When 'ZFISPER' . I think that is Variable Technical name. How to check that variable and in Which Query it is.
    Please let me know...
    Thanks in advance..
    KN

    Hello,
    You can go over into transaction code RSA1 and then on your left hand side you will be able to see lot of tabs in terms of Modeling, Administration, Transport Connection and so on.
    So go ahead and click on the tab "Transport Connection" and in the next screen you will be able to see all object types available in your environment.
    Please go ahead and open up the section "Query Elements", if you are not able to see the same, on the left under the transport connection you will see the folder "SAP Transport" and within that the option called "Object Types", just click on it once and all the object types which are available for transports will show up.
    Once you have selected Query Elements, under that you will be able to see different Query related objects and you will be having "Variable". When you drilldown on Variable folder you can double click "Select Objects" and select your appropriate variable name.
    One other way to proactively get a list of variables available in your system and to find out on which InfoObject they have been buill, please go into transaction se16 or se12 and then enter the table name RSZGLOBV.
    In this table you can get a list of all the variables along with the metadata without trying to parse through one by one variable.
    Thanks
    Dharma.

  • How to check program is running or not

    Hi,
    Is it possible to check whether a program is running or not?
    I know when you try to compile a package which is running, oracle does not allow you compile it, it hangs. That is, somehow, Oracle knows the program is running. How can we check this information?
    Suppose procedure below. If i ran it in one session, how can check that procedure p is running in other session?
    I searched the forum. There is one( checking if a package procedure is already running ) thread but noone has replied.
    Thanks....
    SQL> DROP TABLE T;
    Table dropped
    SQL> CREATE TABLE T AS SELECT DUMMY D FROM DUAL;
    Table created
    SQL> CREATE OR REPLACE PROCEDURE p IS
      2    s VARCHAR2(12);
      3  BEGIN
      4    SELECT d INTO s FROM t;
      5    LOOP
      6      EXIT WHEN s = 'Y';
      7      SELECT d INTO s FROM t;
      8    END LOOP;
      9  END p;
    10  /
    Procedure created
    SQL> exec p;

    I found the answer from another thread.( Package Compilation Hangs )
    Answer is : http://www.ixora.com.au/scripts/sql/executing_packages.sql

  • How to check patch level applied or not?

    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higher
    thanks

    Hi;
    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higherPlease check :
    - How to check which Techstack patchsets have been applied [390864.1 ]
    Regard
    Helios

  • How to check mail already read or not?

    Hi everyone
    I am developing an application using javamail api.
    I have no idea how to check mail is already read or answered or seen using javamail api.
    I need to fetch new mail every time. I used DELETE flag ,its working fine but it also delete mail permanently from inbox.
    I want to fetch new mail and already fetched mail is also reside in inbox. but not fetched next time.
    Pls help me.

    Either I'm not understanding you, or you're not understanding JavaMail.
    First, the POP3 protocol supports no permanent flags, as explained in
    http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
    You can set flags on messages, but they won't persist after you close the folder.
    If you set the DELETED flag and close the folder and expunged deleted messages,
    the messages are gone for good.
    That's not a JavaMail limitation, that's a POP3 protocol limitation.
    Again, as explained in the link above, to determine which messages are new you'll
    need to keep some state in your application about which messages you've seen
    and compare that state with the current state of the INBOX. You can use the POP3
    specific UIDL command to help with this.
    Does that help?

  • How to check oracle is running or not

    Hi,
    Can any one help me the command to check whether oracle is running or not, in UNIX flatform.How to check the Disk+Work proess is running or not.

    Option1 :Logon to SAPDBA...U will be able to see whether Oracle is running or not.
    Option 2:
    Sqlplus /nolog;
    connect / as sysdba;
    startup;
    If it is already running: you will get msg that Oracle is already running
    Oprion 3: ps -eaf|grep ora
    to determine whether disp+work is running or not:
    Option 1: ps -eaf|grep sap
    Option 2: dpmon pf = <path of instance profile>
    Reward Points if helpful!

  • How to check value is numeric or not

    hi how to check whether a value is numeric or not.
    example.  data : x type n.
              x = 12345.
    Now how to check whether X contains numeric value or not.

    Hi,
         If your type is 'N' there is no way that 'X' can have any value apart for numberics (i.e. 0 - 9).
    You can also check that as follows.
    Data: num_list(10) type c value '0123456789',
          x type n.
    X = '12345'.
    This is more useful if your X is of type C.
    if X CO num_list.
    Its only numeric
    else.
    its contains non numeric
    endif.
    Regards,
    Sesh

  • How to check variable type?

    Hi,
    How to get variable type if I want to check variable
    type.which function or class do thsi.Thanks
    Mark

    I believe you use the function typeof()
    ie
    var myString:String = "test";
    trace(typeof(myString)); //should output string

  • How to check Category is filled or not in Service ticket?

    I have requirement to check the category field (CAT_GUID) is filled with value or not.
    I would like to check this category field in the Badi zOrderSave of service ticket.
    How I can accomplish this issue?
    Your reply is appreciated.
    Banu

    Hi Banu,
    I understood that you have to check Category field.
    Please, "se"nd m"e an "e"mail" with a print screen highlighting the information that u need.
    caiqueescaler hotmail com
    Regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Jun 23, 2010 8:34 PM

Maybe you are looking for

  • Does iDVD really take 6 HOURS to burn a DVD???

    This is my first DVD to burn on the iMac. Previously I have used DVD Shrink on a Windows machine which took about 1 hour from rip to completed burn. I have already used the Hand Brake program to create a mp4 and I am using iDVD to burn a new DVD and

  • SSRS 2012 problem with excel export

    Hello I updated SSRS 2005 up to SSRS 2012. When I exported report in excel (xlsx)  I got following warning : "We found a problem with some conent in 'filnename.xlsx'.Do you want to try to recover as much as we can? if you trust the source of this wor

  • SAP GRC AC 5.3 CUP Risk Analysis issue

    Hi all, I have assigned a new SoD Role to a user, who has been given previously other SoD Roles that were authorized to assingn, then I launched the Risk Analysis and it shows the risk between the previously SoD Roles, but I want to see the new posib

  • Apple Mac OS X - Menu bar icon integration

    Hi all, I am trying to figure out if Adobe AIR is a good solution for me since I am creating an app which should be compatible with multple platforms and in order to save development time, AIR could be handy. One of the requirements is that the Mac O

  • , i have canon 70d and   element 12 and can't download my raw photos.what do you think the problem

    cant download my raw photos to element 12. I have canon 70d. pc