Alternate For Global Variables.

I am working on Forms6i in Payroll System.
I have around 300 common global variables in my Module. When I switch over from one form to another, The variables stored in the previous Form are replaced by the new Form.
When I Come back to oldone form. I have faced Errors. How can I Solve This problem ?
I tried by using Local Parameters. It works but my forms will be bulky. I Could I solve this problem. Reply Urgently,
Thanks For Co-ordination.

Hi,
What u can do is have Package Variables.
These Pkg can be created on the Oracle Server and can be used by the form.
U'r case of Global variable is unique.
Regards,
Ganesh R
null

Similar Messages

  • Problem with view object for global variables

    Hi,
    I'm using jdeveloper 11.1.2.3.0
    We are using view object with transient attributes for global variables.
    we defined the view as explained here:
    http://docs.oracle.com/cd/E14571_01/web.1111/b31974/bcstatemgmt.htm#ADFFD19610
    also we defined one of the attributes as primary key.
    When we start to test our application with disable connection pooling we got some problems.
    sometimes the row in the global view object is deleted.
    (for example after using executeEmptyRowSet on other view object).
    it looks strange, we couldn't fוnd why does it happen.
    Any idea?

    As Timo said, it is very hard to help without source.
    Are you sure that you do the next step:
    After the call to super.prepareSession(), add code to create a new row in the transient view object and insert it into the view object.

  • Using offset for global variables in FOX

    Dear all,
    I'm using global variables (i.e. defined in planning area)in my FOX formulas by using VARV-command.
    I'm doing this for fiscal year, which has default value current year. However I'd like to use this variable also for next year thus creating the following code:
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = CURYEAR+1.
    This gives a syntax error. Anabody any idea how I can use offset in the FOX for my variables?
    Thanks in advance!
    Kind regards, Harjan

    Harjan,
    Use TMVL function to get the offsets.
    DATA CURYEAR TYPE 0FISCYEAR.
    DATA NEXTYEAR TYPE 0FISCYEAR.
    CURYEAR = VARV(Z021VA01).
    NEXTYEAR = TMVL(CURYEAR, +1).
    hope it helps.

  • Incorrect value for global variable

    Hi,
    I am facing an issue in a query. In the query there is a Global variable 'Volume type'. In the default value tab of the variable it is given Default value as Litre. In the table RSZGLOBV also i have checked the global variable and there also the 'Internal Characterestic value' is shown as Litre itself. But when I execute the query, it is giving an out put like:
    For the keyfigure Volume,
    If the keyfigure is having some non zero value, it is showing Litre.
    If the kayfigure value is zero, it is showing KG.(which is wrong). For zero also it should display 0.00KG.
    Please help.

    Hi Nitin,
    changing the default within the variable would impact all queries.
    Only if it was an exit variable, you could define within the exit to do different things depending on the query.
    I would suggest the user uses personalization - but this impacts all queries where this variable is used for this user.
    regards
    Cornelia

  • Substitiute for Global variable

    i have a doubt if we can use anything other than a Global variable like:-
    :global.<var_name>
    for a variable i define at the form level, say 'When-new-form-instance' trigger and use it at block & item level.
    In a big application, there is a doubt of using a Global variable twice.
    Regards.

    Hi,
    Decalre a variable in an package specification and use that for your purpose.
    Global variables are good and bad at the same time. Once declared the live for the whole session. Each of them occupy 255 bytes of memory, so it's bad practise to use them heavily. Instead you can use the same variable again and again, but be aware: Since they keep their value they could lead to undesired behaviour unless you are careful and null's them (or give them a default value) each time you have used them. Often I capture their value in the pre-form trigger, store the value in a package variable within the form, and then give the global a value of '-1' (which is my default).
    /Michael

  • User Exit for Global Variables

    Hello Gurus,
    Which is the user exit where I can sed the code for the global variables
    for eg:
    0CYTLM - Cummulated to last month
    If I want to write my own code, is it the same exit
    thanks in advance

    some docs may useful
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db0be555411d189660000e829fbbd/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a49bd590-0201-0010-51b9-ea4295036979
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/db37ce90-0201-0010-3c83-948c94792ae4

  • ZXRSRU01 (RSR00001 BI: Enhancements for Global Variables in Reporting)

    Hi,
    we are using Userextit RSR00001 to define partproviders of a multiproviders by using variables and a custom table because our multiproviders contain more than 60 partproviders
    i_step = 1
    SELECT * FROM zvar_cube_userex INTO wa_zvar_cube_userex " 
          WHERE     bex_variable EQ i_vnam.                  
          IF sy-subrc EQ 0.                                   
            l_s_range-low    = wa_zvar_cube_userex-infoprovider.
            l_s_range-sign   = 'I'.                            
            l_s_range-opt    = 'EQ'.                           
            APPEND l_s_range TO e_t_range.                     
          ENDIF.                                              
        ENDSELECT.                                      
    At the end of  i_step = 1   in I_T_VAR_RANGE we get following entries
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG01
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG02
    ZINP_CP2     0infoprov   I  EQ  ZCPCRAG03
    Now our question.
    Cubes ZCPCRAG ZCPCRAG01 and so on are yearly cubes, devided by 0fiscalper. Now we think about,  additional to our 0infoprov determination ( depending on query) using SAP standard possebility "Logical multiprovider partitioning" via table RRKMULTIPROVIDERHINT. 
    - Is that possible ?
    - Is ther somebody who used it in the same way?
    Harald

    Thanks rakesh&sangeetha
    In my senario
    I created one report,on report I created on custmor exit varible
    for calday
    when I execute the report in 3.x analyzer Iam getting break point screen(I will take u to cmod)
    If I execute same report in BI.7 It,s not displying  break point?
    (with out asking the variable values ,its directly executing the report)
    why like this ?

  • Global variable in Instrument Drivers

    Hi,
    We are designing an Instrument Driver for our devices. We do have VI's that does the same operation but with different Inputs and this Input is a cluster of references.
    I would like to gain knowledge if all this VI's can be clubbed together by making those clusters as global variables. Through this way I hope we will significantly optimizie our code.
    We are also looking for the drivers to get certified by the NI so looking for any sort of solution if making global won't be a good solution for achieving optimization.
    Thanks In Advance,
    VIvek
    Solved!
    Go to Solution.

    I don't quite understand what you mean by "clubbed together". Using global variables will not magically make your code more efficient. There's uses for global variable, and there are places where they should not be used. A reasonable use is to hold data used by muliple processes, though a queue is in most cases a better way to go.
    The best way to see how to write an instrument driver is to download recent instrument drivers from the NI Instrument Driver Network. Look for the ones that are project-based as these are done in 8.x and are quite recent. Don't bother with the old drivers - they're a mess. You should be able to find something that's similar to your instrument and use it as a template. There's also an Instrument Driver Wizard that comes with LabVIEW. Another source of information is the NI Knowledge Base. Do a search, and you'll find lots of information. Like this: Developing LabVIEW Plug and Play Instrument Drivers.
    You should also read over Ben's nugget on Action Engines. 

  • Global Variable declaration in Custom Infotype

    Hi All,
    I need to validate a custom infotype field, where i need to check for execution times. I need to override the field value only during first time of the run(PAI logic) and there after user can choose a value of his choice.
    I was looking out for Global variable to check if its first run. Can you please tell me how do i create global variable in custom infotype? The top include specified in the program is not editable, being standard (MPH5ATOP).
    Thanks,

    >
    Sachidanand B wrote:
    > Hi All,
    >
    > I need to validate a custom infotype field, where i need to check for execution times. I need to override the field value only during first time of the run(PAI logic) and there after user can choose a value of his choice.
    > I was looking out for Global variable to check if its first run. Can you please tell me how do i create global variable in custom infotype? The top include specified in the program is not editable, being standard (MPH5ATOP).
    >
    > Thanks,
    The system will generate an include with the naming convention ZP<Custom Infotype number>10(This program will be included in the custom infotype main program ZP<Customeinfty number>00). You can use this include for your data declarations.
    Ex: if the number of the custom infotype is 9010 the generated include name will be ZP901010.
    For more details check the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d525ad575e11d189270000e8322f96/content.htm
    Regards
    Rajesh:

  • Re: Global Variables (what! More?!?)

    [email protected] writes:
    One problem with using service objects for global variables is
    the flat namespace they expose.I thought that was the definition of a global variable.
    I could find no sanctioned way to provide a NameSpace that was
    global only for a Server Partition. By "global only to a server partition" do you mean "visible only
    to a server partition, but not to any others or to the clients?"
    If so, how 'bout putting them in a user-visible service object?
    Remember, "user-visible" is Forte's mis-terminology for
    "partition-visible." No law that I'm aware of says you can't put
    a user-visible service object in a server partition.
    <Snip! rest of letter, which in brief described a "roll-your-own"
    partition global area built into a subclass of TextNullable and (here's
    the really neat part!) replacing task.part.AppTitle with this object.>
    I have nothing to say about your workaround, except that it's a
    REALLY ugly hack (yes, I've been around for a while, too), and I
    wish I had thought of it! One can imagine ALL SORTS of creative
    things to do with this concept.
    Tom Wyant

    David Krieger/CORP/PART/CSC
    04/14/97 05:27 PM
    do you mean "visible only
    to a server partition, but not to any others or to the clients?"
    Yes, that is a better way to say it.
    If so, how 'bout putting them in a user-visible service object?
    Remember, "user-visible" is Forte's mis-terminology for
    "partition-visible." No law that I'm aware of says you can't put
    a user-visible service object in a server partition.
    Unfortunately all Forte Service Objects share a single name space. I
    thought from the documentation that User Visible Service Objects would work
    for me. However, when I tried User Visible Service Objects, they didn't
    quite do the trick because what I wanted was identically named service
    objects that resolve to a different local instance for each partition. So
    no matter where my code was running, it could call ProcessLocalStore.Foo()
    and it would get the ProcessLocalStore for that partition. Note that I am
    not talking about replicated partitions. Even though they are called
    "user-visible service objects, there can only be one instance of the named
    service object in any given Forte environment.

  • Can't enhance ZXRSRU01 (customer exit for global vars)

    Enhancment RSR00001 - BI: Enhancments for global variables in reporting 
    In function exit  EXIT_SAPLRRS0_001
    i'm trying to enhance ZXRSRU01 but get SAP message:
    Program names ZX... are reserved for includes of exit function groups
    what's wrong with that?????

    Hi
    Please mark the quetion as answered if its solved
    Regards
    Amiya

  • Find and replace global variables

    Hi there,
    I've ran into a mess with my global variables. While I was trying to rename one of the globals, all instances in hundreds of subvis turned corrupt. The icon of the global variable turned black and the wires starting at the variable became broken. The amazing thing is that the black icons seem still to be linked to the correct global variable. If I leave the mouse cursor on the icon, the correct file path appears in the context help window. If I double click on the corrupt icon, the correct vi is opened. I tried "Save as" and "Rename" with various options. LabVIEW seems to browse through all affected vis but the icons remain broken. My last hope was to run the "Find and replace" tool (Ctrl + F), but it doesn't work for global variables for some unknown reason, unfortunately. Compare
    http://forums.ni.com/ni/board/message?board.id=170&message.id=438450&query.id=2151294
    Is anybody out there who has a useful hint?
    Peter

    stoeckel wrote:
    Hi there,
    thank you all for your contributions. We were able to solve the problem in the meanwhile. Why did nobody point us to the fact that the icons of global variables turn black if the name of the control on the panel of the variable does not match the selected name inside the icon?
    The LabVIEW compiler would have told you that right away. If you click the broken run arrow on the situation you will get the message:
    An item with the specified name could not be found. Select a different item from the list.
    Seems pretty straightforward to me. But then, perhaps it's because I've been using LabVIEW for some time.
    If somebody just quietly mentions the existence of "global variables" he or she will usually be soused with flout and bashed by the proven active veterans. But why's that? Global variables can provide an easy way to communicate a "stop" information throughout all running vis. As long as there is just one writer and many readers, there is no danger that it comes to "race conditions".  
    If global variables are really so nasty as is often said, why does National Instruments still provide them within LabVIEW??
    I don't want to get into yet another global variable debate here. The only comment regarding global variables made in this thread was a tongue-in-cheek comment I made. I was not dissing global variable. In fact, I use them quite often. Global variables, like every other programming construct ever invented have their use. The main reason you will see the so called "proven active veterans" go crazy over global variables is that they constantly see them being abused, causing race conditions, and then have to listen to newbies complain that their program doesn't work and LabVIEW sucks, when it's really their programming skills that's the real problem. But that's just my opinion.

  • Dynamically create (global) variables

    Hi,
    Is it in anyway possible to dynamically create variables, like you can do in Forms:
    DEFAULT_VALUE('test', v_test);
    with v_test holding the variable, like 'GLOBAL.TEST'. Forms would then create me the variable as it doesn't exist yet, assigning the given value.
    Like this I could read my variables' names from a DB table, dynamically create them, and assign their values. Inside the report I would then use them as lexical references.
    I know I can create parameters inside the report achieving the same, but we need the table-approach for our translations. Getting rid of the parameters' overhead would be great!
    Any suggestions appreciated,
    K.

    Where the lov is attached set the VALIDATE FROM LIST property to YES and craate one trigger for each field called WHEN-VALIDATE-ITEM and use the code as below...
    IF GET_ITEM_PROPERTY('FORM_FIELD_NAME',ITEM_IS_VALID)='FALSE' THEN
      :FORM_FIELD_NAME:=:GLOBAL.EmpCode;
    END IF;
    Don't forget to set NULL for global variable in KEY-LISTVAL trigger after assigning value to the form's field.
    HTH.
    -Ammad
    Edited by: Ammad Ahmed on Nov 8, 2010 4:33 PM

  • How to get value for a global variable from an exel file?

    Hallo all,
    I am a beginner in LabVIEW and I have  a problem in reading datas from an exel file . I would like to import a group of data with timestamps from exel file to a global variable. for ex. speed, acceleration and position of 4 different sensors to each of its global variable.
    It will be very nice if anyone can give me some ideas.
    Thanking you in advance

    ...continued here

  • Pass the value of the current case in a case structure to a global variable for use in VIs.

    I have built a large queued state machine (>100 cases).  In each state, I run a VI that I have created.  These VIs are usually not very different from one another.  In many cases, I could simply use the same VI over and over again.  There is only one problem with that.  None of these VIs know which case to send the program to next.  I have to change the value of the "NEXT_CASE" constants in the VI and save it under a new name to be inserted into each new case.  Now my program consists of hundreds of VIs whose only difference is the value of their "NEXT_CASE" constants.  This causes all kind of headaches when I have to insert new cases into the state machine, and it is just too much for me to deal with.
    I need to be able to use a global variable to keep track of the current case within my VIs.  I could change it from a string to a number and add or subtract from it to determine which case the program should go to next.  Since I'm usually only skipping from one case to the next (or the previous) I could use the exact same VI in most cases.  Can anyone tell me how to create a global variable that contains the value of the case in my case structure that I could use within my VIs to keep track of the current case?  Let me know if you have any questions.

    Instead of defining the next state inside the subvi, why not do it in the main vi inside each state case?  An output from the subvi could be used with a case structure to determine the next state.  Sort of like, if the subvi returns 0 then next state is State3, else if the subvi returns 1 then next state is State4.
    Message Edited by tbob on 08-19-2005 03:15 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    NextState.PNG ‏5 KB

Maybe you are looking for

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and

  • ITunes 7.1 Importing Problems

    Just installed iTunes 7.1 on Vista, and upgraded my G4 mini to 7.1 as well. I'm now having problems importing existing MP3s into iTunes. I have the "Copy files to iTunes music folder" option checked in preferences, but if I try to drag/drop a folder

  • Strange error: COMPUTE_BCD_OVERFLOW

    Hi everyone, i have a very very strange error/exception trying to divide 2 Numbers: The source code looks like this: lv_alt_koeff = ABS( lv_alt_wrbtr_delta / ( lv_alt_wrbtr_h - lv_alt_wrbtr_s ) ). Values are: lv_alt_wrbtr_delta = 119201.40 lv_alt_wrb

  • Neat and clear code

    Hello everyone! Until now I made games with Flash + AS3, when the game commands were separate AS files with appropriate referrals from Flash (linkage). Now, I check how I go to work with Flash CC + javaScript, I sort of figured, but one thing bothers

  • Help transferring photos and video from broke phone!!!!

    I have a Siii that was recently dropped in the toilet by my 2 year old. I am trying to get my pictures and video off of it. My screen doesn't let me swipe it. I have been using svoice to make calls and texts till my new devices comes in from Asurion.