Merging a set and hashmap

Hi Guys,
I have a set in which I store some unique userdefined objects,say a "Color" object.
So my collection set will look as follows:
set<Color> objects.
For example:-
(color1)
(color2)
(color3)
(color4)
(color5)
(color6)
(color7)
(color8)
(color9)
(color10)
I also have a HashMap which stores objects as follows:
HashMap<Color,Color> objects(Also userdefined "Color" objects).
For example:-
(color1,color20)
(color2,color21)
(color3,color22)
(color4,color23)
(color4,color24)
(color5,color25)
My need is that I want to merge this set and hashmap so that the resulting collection looks as follows:
(color1,color20)
(color2,color21)
(color3,color22)
(color4,color23)
(color4,color24)
(color5,color25)
(color6,null)
(color7,null)
(color8,null)
(color9,null)
(color10,null)
How could this be achieved.
Any help is appreciated.
Thanks....
P

Hi,
I do not understand what problem you are actually facing: if you manage to have your map of five items, then creating a map of ten items should be no problem.
Bye.

Similar Messages

  • In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed

    In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed from 3 to 4. When LR's HDR merge brings a photo back into LR's library, the stack number does not change and the DRG version isn't included in the stack.

    Hi,
    The Ps CS6 public beta version contains the same camera support as found in Ps CS5/5.5 compatible CR 6.6. There will be future updates to CR 7 for Ps CS6 to pick up more camera support. The Nikon D800 NEF files are not supported, yet.
    If you like to work with your D800 files in the public beta build now, you'll have to get the DNG Converter 6.7 from here: http://labs.adobe.com/technologies/cameraraw6-7/
    and convert your files to DNG.
    regards,
    steve

  • SAP adapter giving the merged result set (First RFC call data + Second RFC call data) for second RFC call

    I have a WCF Adapter service to call a SAP RFC. When I call the RFC first time, it gives me correct no of result set but when I call this RFC second time immediately after first call, it gives me merged result set (First Result set + Second Result Set).
    e.g. We have a RFC which receives vendor number and blank object of result set as parameter and gives back the list of purchase orders as Response in object of result set for that vendor.
    Suppose, we have a vendor "a" and vendor "b". For vendor "a" there are 5 purchase orders and for vendor "b", we have 4 purchase orders in SAP. When I call the WCF adapter service for this RFC for vendor "a",
    it gives me 5 purchase orders. Immediately after first call, when I call WCF service for vendor "b", it gives me 9 (5+4) purchase order records which is wrong.
    In brief, one RFC call is affected by its previous call.
    For each new WCF request, a new object of result set is created, connection is opened, rfc is executed and connection is closed.
    Can anybody have any idea on this?
    Thanks.
    Thanks, Nishant Gupta

    Hi,
    Please refer to the document
    http://seroter.wordpress.com/biztalk-and-wcf-part-vii-about-the-biztalk-adapter-pack/

  • Jax-ws 2.1 - problems returning hashtable and hashmap

    Hi,
    We're developing a set of applications that communicate via web services.
    The company decided that to do this we should use jax-ws 2.1.
    Everything is going ok, its really easy to use, except for a web method that returns a java.util.Hashtable.
    In the endpoint there's no problem, it compiles and deploys to a tomcat 5.5 without a problem.
    The client can access the wsdl via url, download it and create the necessary files (we use netbeans 5.5 for this).
    We can invoke the method getConfig without a problem, but the object returned only has the java.lang.Object 's methods, not the java.util.Hastable 's .
    Endpoint:
    package xxx.cdc_pm_i;
    import java.util.Hashtable;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.bind.annotation.*;
    @WebService()
    public class cdc_pm_i{
    @WebMethod
    public Hashtable getConfig() {
    Hashtable<String,String> config = new Hashtable<String,String>();
         config.put("1","1");
         config.put("2","2");
    return config;
    Client:
    try { // Call Web Service Operation
    xxx.CdcPmIService service = new xxx.cdc_pm_i.CdcPmIService();
    xxx.cdc_pm_i.CdcPmI port = service.getCdcPmIPort();
    // TODO process result here
    xxx.cdc_pm_i.Hashtable result = port.getConfig();
    } catch (Exception ex) {
         ex.printStackTrace();
    I'm fairly unexperienced in Web Services and i have no idea why this works for any kind of return object (as long as its serializable) and has this problem with hashtables and hashmaps.
    Any idea on how to solve this?
    Thanks in advance,
    Rui

    Didn't find the solution for this, but any object that contains an Object in its methods / attributes had the same problems, so i just built my own table that only supports Strings and the problem was solved.
    If anyone knows why i had this problem and wants to share a solution, please do so.

  • Merge multiple cells and rows

    Hello,
    I am trying to merge multiple cells and have found that I can do thi easily by selecting the adjancent row cells and using the TABLE - MERGE CELLS command.  However, If I want to apply the same merge to multiple rows, I can find noquick way to do this other than selecting each set of cells and using the TABLE - MERGE CELLS command each time.  Here is an example of what I want to do:
    Here is the Numbers spreadsheet as normal:
    Here is cell B2 and C2 merged:
    Now what I want to do is the same process for rows 3 to 10.  However, when I try to select the section and use the TABLE - MERGE CELLS command, I get on large cell rather than split rows of merged cells as seen below:
    Any idea how I can or if I can accomplish this task?
    Thanks in advance,
    OriginalGumshoe

    You may also use this script :
    --{code}
    --[SCRIPT merge_row_by_row]
    Enregistrer le script en tant que Script : merge_row_by_row.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner le bloc de cellules à traiter.
    Aller au menu Scripts , choisir Numbers puis choisir “merge_row_by_row”
    Le script fusionne les cellules de chaque ligne appartenant à la sélection.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: merge_row_by_row.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select the range of cells to treat
    Go to the Scripts Menu, choose Numbers, then choose “merge_row_by_row”
    The script merge the cells of every row included in the selection.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/18
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2, r
              my activateGUIscripting()
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        repeat with r from rowNum1 to rowNum2
                                  set selection range to range (name of cell colNum1 of row r & " : " & name of cell colNum2 of row r)
                                  my selectmenu("Numbers", 6, 23) -- Merge cells
                        end repeat
              end tell
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
              tell application "Numbers" to tell document 1
                        set d_Name to its name
                        set s_Name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_Name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_Name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if
                        end if
                        tell sheet s_Name to tell (first table where selection range is not missing value)
                                  tell selection range
                                            set {top_left, bottom_right} to {name of first cell, name of last cell}
                                  end tell
                                  set t_Name to its name
                                  tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
                                  if top_left is bottom_right then
                                            set {row_Num2, col_Num2} to {row_Num1, col_Num1}
                                  else
                                            tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
                                  end if
                        end tell -- sheet…
                        return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
              end tell -- Numbers
    end get_SelParams
    --=====
    on parleAnglais()
              local z
              try
                        tell application "Numbers" to set z to localized string "Cancel"
              on error
                        set z to "Cancel"
              end try
              return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
              local oTIDs, l
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set l to text items of t
              set AppleScript's text item delimiters to oTIDs
              return l
    end decoupe
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    my selectMenu("Pages",5, 12)
    ==== Uses GUIscripting ====
    on selectmenu(theApp, mt, mi)
      activate application theApp
              tell application "System Events" to tell application process theApp to tell menu bar 1 to ¬
                        tell menu bar item mt to tell menu 1 to click menu item mi
    end selectmenu
    --=====
    --[/SCRIPT]
    --{code}
    Yvan KOENIG (VALLAURIS, France) dimanche 18 décembre 2011 22:21:24
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Equals() in Sets and Collections

    It is a common knowledge that Collection per se are not supposed to have equals() method: first, comparing two bags (multisets) is too costly, second, comparing a Collection to a List may lead to ignoring the List order - the same elements but in different order is a different List, right?
    Then I have a question: why does SortedSet have equals() method? It is definitely not just a Map, but a decorator; the order can be different. It is obviously an error.
    Unlike the other clumsy feature:
    Map<String> m1 = new HashMap();
    Map<String> m2 = new HashMap();
    m1.put("k", "v");
    m2.put("k", "v");
    m1.equals(m2); // returns true
    m1.values().equals(m2.values()); // returns false - there is a long explanation why
    Another, unrelated, observation.
    String[] a1 = new String[] {"a", "b"};
    String[] a2 = new String[] {"a", "b"};
    a1.equals(a2); // returns false - bad, bad, bad implementation!
    Arrays.asList(a1).equals(Arrays(asList(a2)); // returns true - way to go!

    In which case my response is: It is?I think so. I can't say I've taken a survey, but I doubt that it's "common knowledge" that collections shouldn't override equals.
    Otherwise you would end up comparing
    Lists and Sets.Not if you follow the documented contracts.
    the List order - the same elements but indifferent
    order is a different List, right?List's equals contract requires that equals return
    true iff the other object is also List and hasthe
    same elements (by the elements' equals methods) in
    the same order. You are repeating my explanation, are not you?No. I'm pointing out what you seem to have missed--that if you follow the documented contracts, there won't be a problem.
    If you're aware of that and I missed you point, perhaps you could try to clarify what you're getting at?
    Then I have a question: why does SortedSet have
    equals() method? It is definitely not just aMap,
    but
    a decorator; the order can be different. It is
    obviously an error.Set's equals contract only requires that the other
    object also be a Set and that the two Sets contain
    the same elements. Wrong. I mean, an ordered set is not equivalent to a
    set. In your mind it is not. In the view taken by the collections framework, it can be. Neither view is inherently correct or wrong. I've never been in a situation to compare a SortedSet to a non-sorted Set (as far as I know), but I have compared Sets, and my own needs didn't care whether neither, one, or both of the Sets was sorted. So in the cases where I've compared Sets, the current definition has worked for me. I suppose there are cases where it doesn't work.
    It has an additional structure: the order. Two
    different ordered sets can have the same elements, it
    does not mean they are the same. There's nothing inherent about equals() that says it has to compare every attribute or every structural aspect of the objects being compared.
    It's math.But this is Java, which is intended to model certain mathematical concepts to a certain degree, but not necessarily to be perfectly faithful to them.
    >
    >
    I suppose you could argue that for
    SortedSets, order should matter for equality, buta)
    I don't see any real benefit to it and b) You then
    wouldn't be able to compare SortedSets to otherSets,
    so the specific implementation would matter(unlike
    for Maps and Lists).Well, here we are getting closer to the paradox. Of
    course it would be interesting to compare SortedSets
    as if they were ordinary Sets, and compare them to
    Sets as well.As I said, I haven't knowingly done so, but I was glad that I didn't have to care whether they were sorted.
    How about Lists? We may be interested in comparing
    them too, ignoring the order. A List is an ordered
    multiset. Why not compare Lists and Sets, as
    Collections? I would not object - but the problem
    lies somewhere deeper. Do you know where?I don't know that there is a problem. I'm not saying the current equals contracts are perfect, or that an objective "best" contract can be defined. But in my experience they have served well whenever I've needed them. I think they're a reasonable, practical compromise.
    Weird. What is that explanation?values() returns a virtual Collection, a view that
    has only an iterator which scans EntrySet and returns
    Map.Entry.getValue().Okay. Still not sure why that would return false, but I'm not able to focus on it that much at the moment.
    Yeah, I always thought it was odd that arrays'equals
    methods didn't behave more like List's. I imagine
    there's a reason for it, owing to how the array
    classes are created, but still...What could be the reason? I'm just curious, that's
    why I started this philosophical thread. :)I don't know, but one thing that's odd about arrays. There's no such class as MyClass[] until I create MyClass. Then MyClass[] magically comes into existence (or maybe the first time I use it). That makes the array classes different from other classes. I imagine it would have been possible to have them provide their own equals() that compares elements, but presumably it was deemed more difficult or complex or error-prone than the perceived value it would add.

  • InDesign CC data merge is slow and crashes

    Is there a way to create a data merge in Indesign for a large number of records, and not have it freeze?  I am on PC, using a new computer. I tried reducing the data source to just 6 columns and 5 rows as a test, but it still got hung up. I tried unchecking create overset, and I also tried creating merge to pdf, and .indd. So far any merge I have tried/tested has been unsucessful.
    the client wants serial numbers on a small sticker like product to place on their inventory.
    4000 serial numbers, 6 times each, and I set up a file with 300 per sheet
    Is this possible, or will another program handle this?  OR Is there a script, OR am I doomed to to input the serial numbers myself, with the copy/paste and find/replace as my new best friend?
    The numbers are not in numerical order, a typical number is WFC100652.

    I was having the same problem while trying to do a merge of 7,000 records.  The computer would run slow and the program would crash after a hour of so. I then did the 500 records at a time, but that was taking to long and its ridiculous to have to do that in the first place.  I checked my data file as suggested on the message boards and it was fine, with no errors found.  I tried a workaround and to my amazement, it worked fine.  I realized that the program didn't crash when I did a preview of the intended merge.  What I did was, on the DATA MERGE tab, I did a PREVIEW of my merged data.  I checked through the "merged" documents and they looked fine.  I was even able to change a mistake that I found.  I then choose EXPORT TO PDF from the pull down menu (instead of CREATE MERGED DOCUMENT) and it created my PDF of 7,000 merged documents fine in less than 2 minutes.  I was then able to open up the PDF and print it out without any problems.  Since then, i've done jobs of 8, 9 and 12,000 records without any problems using the PREVIEW method.

  • Merge a photo and pen strokes into a single image

    Good day.
    I need to add a Camera and Pen control so that I take a picture, and then write with the pen above it. Is there any way to merge both photo and pen strokes into a single image, so I can stored them in a collection??
    Thanks,

    You cannot merge them into one physical image, but you can still store them in a collection for later display.  Collect them, just like you would anything else, just store the photo as one name, and the pen as another. 
    Where you want to display them, just use two image controls, directly above each other.  Set one to the photo, and one to the pen.
    -Bruton
    Thanks, I stored the photo url and strokes in the same collection, and then I did what you suggested: two image controles, one above the other. Thanks!
    Antonio S.

  • Install, Match (X) or Copy, Merge all below and Copy all below

    Hi,
    Can any one please tell me when can we use only "Install", combination of both "Install and Match (X) or Copy" and only "Match (X) or Copy" Indicatiors.
    And what is Match (x) or Copy, are they different from each other or they are one and same? if there is difference what is the diff between Match (x) and Copy.
    And what is the use of "Merge All Below" and "Copy All Below" in the context menu of the objects that are collected.
    Regards,
    Kumar.

    Hi,
    Install
    -> Objects that are being transferred for the first time. There is not an active version of these objects in the system.
    ->Business Content objects that have been redelivered in a new version. These objects are identified by the Content time stamp in the corresponding object tables.
    Match (X) or Copy
    If the SAP delivery version and the active version can be matched, a checkbox is displayed in this column.With the most important object types, the active version and the SAP delivery version can be matched.
    The Match indicator is set as default in order to prevent the customer version being unintentionally overwritten. If the Content of the SAP delivery version is to be matched to the active version, you have to set the Install indicator separately.
    The active version is overwritten with the delivery version if
    -> the match indicator is not set and
    -> the install indicator is set.
    In other words, the delivery version is copied to the active version.
    If the Install indicator is not set, the object is not copied or matched. In this case, the Match indicator has no effect.
    In the context menu, two options are available:
    a.      Merge All Below
    The object in the selected hierarchy level and all objects in the lower levels of the hierarchy are selected as to Match.
    b.      Copy All Below
    The Match indicators are removed for the object in the selected hierarchy level and all objects in the lower levels of the hierarchy. If the Install indicator is also set, these objects are copied from the delivery version to the active version.
    The most important properties which are taken into account when versions are matched are now listed.
    For further information check this link [Installing Business Content |http://help.sap.com/saphelp_nw04/helpdata/en/80/1a66d5e07211d2acb80000e829fbfe/content.htm]
    Hope this helps....
    Rgs,
    Ravikanth.

  • Merge Address Book and iCal

    I have an iMac and my Address Book and Calendar is on iCloud. My wife got an iPad 3 weeks ago and set up her own Apple ID.  Now our address books and calendars are separate.  On advice given me we will need to share one Apple ID in the Cloud, and it will be mine.  Fine, but...can we merge our calendars and address books (or contacts if you will) into my Apple ID iCloud account? THANKS!

    A) Contacts)
    1. Open www.icloud.com
    2. Open Contacts
    3. Mark All Contacts > CMD + A
    4. Click on the small icon in the lower left corner
    5. Choose Export vCard...
    6. Open your "Address Book" on your Mac and choose "File > Import"
    B) Calendar)
    At the moment there is no option to download/export all the data, but you could share the calendar back to your Mac by opening the www.icloud.com website, then...
    2. Open Calendar
    3. Click the samll "Share" button behind the name of every calendar and share it with your account.
    or
    Add your wife's account just temporary on your Mac (Settings > Mail, Contacts, Calendars > Add Account), then
    2. Open "Calendar" on your Mac
    3. Wait until it finished synchronizing all the of her events
    3. Mark the Calendar by clicking on the name of your wife's calendar
    4. Open the menu "File > Export" + safe the file on your desktop
    5. Delete your wife's account again in Settings
    6. Open the calendar again
    7. Open the menu "File > Import" + choose the file from your desktop
    8. Choose your preferred calendar

  • Merging slowed audio and video.

    So I am currently editing a music video that was shot at 60fps. Each clip needs to be slowed 50 percent. We goofed on set and our slating was all out of wack, so now we need to go through and sync each slowed down clip to normal speed audio. So my question is, is there a way to make a subclip from the sequence that will retain the speed/duration settings we have set. Or are we going to have to slow it down, sync it, set the video back to regular speed. Merge clips and then slow it down every time we bring it back into the timeline?
    Does any of this make sense?

    Does any of this make sense?
    Not really.
    I'm assuming you sped up the playback on set, so the performers lip sync would match to the real song when the video was slowed down?  If so, why was there a slate?  That's used for dual system sound when you will be using the sound recorded on set, which you won't be doing in this case.  So...just slow down the clips, remove the audio and manually sync to the real song.

  • HT204053 We have three iPhones but one Apple ID because I pay for the acct whenever we buy Apps or music.  However, it's frustrating that when we share iCloud it merges our notes and contacts even if we say "DO NOT MERGE."  I've also lost my notes but cou

    We have three iPhones but one Apple ID because I pay for the acct whenever we buy Apps or music.  However, it's frustrating that when we share iCloud it merges our notes and contacts even if we say "DO NOT MERGE."  I've also lost my notes but could not recover them even if I did a restore.

    You can share the same iTunes ID on all your devices and still have different iCloud accounts with different IDs on them.  The ID you use for iTunes does not need to be the same as the ID used for iCloud.
    If you want to migrate your devices to separate accounts, on the devices that will be moving save any photo stream photos to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.  Also email any synced notes to yourself so you can recreate them in the new account.  Finally, if you are syncing any iWork documents with iCloud, go to the iWork app settings and turn off iCloud syncing.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Once the phones are all on separate accounts you can  then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want from each account.

  • I had to take my hp back to factory setting and reinstall itunes, when I tried to use Itunes match it said i had to Deauthorize all my computers. I am using the same computer and desperately need access to my music.

    I had to take my hp back to factory setting and reinstall itunes, when I tried to use Itunes match it said i had to Deauthorize all my computers. I am using the same computer and desperately need access to my music.

    When you reset to factory settings, the computer is de-authorised.
    In iTunes menu Store > View Account > sign in > App Store > Deauthorise All.
    Once done, authorise this computer iTunes.
    Note: you can only do that once a year.

  • Set and get parameter id

    Hi,
    I need to store one variable value and I need to retrieve the same variable value in same program. For this I have written set and get parameter ids in the same program. It is working fine but if I log off the system and if I logon the system it is not working I mean before log off the variable is showing some value if I log on again that variable is showing empty. But I want to capture the field values after log off and log on also. Is there any other option can I use table?
    Please help me I will give points.
    Thanks.

    Hi
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
    SAP global memory retains field value through out session.
    set parameter id 'MAT' field v_matnr.
    get parameter id 'MAT' field v_matnr.
    They are stored in table <b>TPARA</b>.
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
    to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
    ABAP memory is temporary and values are retained in same LUW.
    export itab to memory id 'TEST'.
    import itab from memory Id 'TEST'.
    Here itab should be declared of same type and length.
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    ABAP Memmory & SAP Memmory
    http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
    http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
    Regards
    Anji

  • Set and get values with vector

    I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
    ex:
    my class:
    sql = "Select ...";
    Vector fName = new Vector();
    rs = sqlStatement.executeQuery(sql);
    if (rs != null) {
    while (rs.next()) {
    fName.add(rs.getString("fName") + "");
    rs.close();
    setFName(fName);
    how would I set up the set and get methods???
    thanks

    I am unsure of what you are asking:
    A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
    If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
    If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
    If you are asking how to access the elements of the Vector you use an Enumeration:
    for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
    s = (java.lang.String) e.nextElement();
    vl.add(s.substring(0, 12));
    If you are asking something else: please elaborate what you want--my brain may not be very functional this morning.

Maybe you are looking for

  • Setting BB Pearl Flip clock to network? Desktop Manager asks for an update to languages.

    The Flip looks appears to require manual time adjustment rather than pulling the date and time information from the local network, either by setting it through options on the clock function, or through the Options - Date & Time menu. My Desktop Manag

  • Coldfusion - Simultaneous Requests

    Hi, BACKGROUND: I have developed a "Flash Remoting" application using Coldfusion and SQL 2000 and am almost ready to go live. The remoting application uses many queries/responses to/from the SQL 2000 database via Coldfusion. The Flash Remoting applic

  • HELP - dead at start ...

    I keep getting the ambivilous error {vayu}/home/oracle/oracle/install/linux> ./runInstaller Initializing Java Virtual Machine from D/bin/jre. Please wait... Error in CreateOUIProcess(): -1 : No such file or directory {vayu}/home/oracle/oracle/install

  • Adobe premiere pro cs5 lags in source montior

    The Title mostly says it all... I use a HP, Windows xp, over 400gb memory left. I shoot with a Nikon D7000, In full HD 1080, 24fps When I play the video in quicktime it plays perfectly fine. But when I put it into premiere it lags. The first 3 secs o

  • Media to Grid

    I opened up the toggle film strip to sort some photos and want to get back to the grid.  I closed the film strip but can't get back to the grid to open other albums.The All media sign is up in the left corner and on the screen it says no media to be