How to merge 2 Collections? . . .
Hey All,
Can anyone tell me the best way I can merge 2 Collections? I tried using the Collection.addAll(Collection c) method, but I get an UnsupportedOperationException.
Thanks for any help in advance,
Peter
The Collection type is a proprietary type. The Collection I'm getting back comes from a call to a JDO (Java Data Objects) driver. I don't have the source code so I don't know exactly. I used reflection and called Class.getName() on the object only to get back an Object type that is a proprietary type written by the vendor.
I also tried converting the Collections into arrays (using the Collection.toArrray() method) only to find out that the size of the array returned is sometimes less than the size of the Collection the array was generated from (I used Collection.size() to find out the size of the Collection). I was hoping to use System.arraycopy() to merge the 2 arrays returned from the 2 Collections.
Any ideas?
Similar Messages
-
I am trying to figure out how to merge my AD network account.
I am trying to figure out how to merge my AD network account with my Mac account. The main reason for this is wanting to log into my admin account on the Mac, and have it also log into my network account so I do not have to log into differing accounts depending on wether I am on the network or not. And I am going to be running VMware fusion with windows on top, so having one account would be essential to this.
Thanks.
P.S. I am brand new to Apple, not by choice. ;-)Basically I want to link a network account to a local account, so that I always log into the same account, even if I do not have network access....
-
How to merge the cells on a tittle's report
Hi there!
Considering a simple obiee report composed of a title and a pivot table. At the same time, the title is composed of a logo and a sentence. If I export it to excel, the logo in the title and the sentence are allocated to separated cells. Do you know how to merge the cells on the tittle?
Any help will be GREATLY appreciated.
Thank you very much indeeed!!!
PS. Oracle Business Intelligence 11.1.1.6.4Hi There,
I am also facing same issue. Please let me know if any one has solved it.
Thanks in advance. -
How to merge the 2 field in alv gride display
Tables for ALV display
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv,
wa_layout TYPE slis_layout_alv,
it_exclude TYPE slis_t_extab,
wa_exclude TYPE slis_extab,
it_header TYPE STANDARD TABLE OF zqm_imir_hdr,
wa_header LIKE LINE OF it_header,
it_final TYPE STANDARD TABLE OF zqm_imir_itm,
wa_final LIKE LINE OF it_final,
it_vcode TYPE RANGE OF zqm_wtr_itm-vcode,
wa_vcode LIKE LINE OF it_vcode.
DEFINE m_fieldcat.
wa_fieldcat-fieldname = &1.
wa_fieldcat-tabname = &2.
wa_fieldcat-seltext_m = &3.
wa_fieldcat-outputlen = &4.
wa_fieldcat-col_pos = &5.
append wa_fieldcat to it_fieldcat.
clear wa_fieldcat.
END-OF-DEFINITION.
DEFINE m_vcode.
wa_vcode-option = &1.
wa_vcode-sign = &2.
wa_vcode-low = &3.
wa_vcode-high = ''.
append wa_vcode to it_vcode.
clear wa_vcode.
END-OF-DEFINITION.
START-OF-SELECTION.
PERFORM data_retrival.
PERFORM lead_time_calculation.
IF it_final[] IS NOT INITIAL.
PERFORM alv_display.
ENDIF.
Display ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = wa_layout
it_fieldcat = it_fieldcat
i_save = c_x
it_excluding = it_exclude
TABLES
t_outtab = IT_OUTPUT[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
m_fieldcat: 'ZIMIRNO' 'IT_OUTPUT' text-003 21 0,
'PRUEFLOS' 'IT_OUTPUT' text-004 21 1,
'ZCRDAT' 'IT_OUTPUT' text-030 9 2,
'INITS' 'IT_OUTPUT' text-031 6 3,
'SPLIT' 'IT_OUTPUT' text-005 12 4,
'WERK' 'IT_OUTPUT' text-006 5 5,
'LOSMENGE' 'IT_OUTPUT' text-007 24 6,
'MENGENEINH' 'IT_OUTPUT' text-008 15 7,
'NAMEVEND' 'IT_OUTPUT' text-009 11 8,
*& Hypercare - 721600 - IMIR Changes - Start
'KONT_PSPNR' 'IT_OUTPUT' text-023 15 7,
'POSID' 'IT_OUTPUT' text-023 15 9,
*& Hypercare - 721600 - IMIR Changes - End
'LTEX1' 'IT_OUTPUT' text-024 24 10,
'EBELN' 'IT_OUTPUT' text-010 26 11,
'MBLNR' 'IT_OUTPUT' text-011 24 12,
'ANZGEB' 'IT_OUTPUT' text-012 17 13,
'GEBEH' 'IT_OUTPUT' text-013 4 14,
'MATNR' 'IT_OUTPUT' text-014 18 15,
'TXZ01' 'IT_OUTPUT' text-015 128 16,
'SPECE' 'IT_OUTPUT' text-016 23 17,
'VCODE' 'IT_OUTPUT' text-017 24 18,
'TAGNO' 'IT_OUTPUT' text-018 10 19,
'HEATNO' 'IT_OUTPUT' text-019 11 20,
'IDCODE' 'IT_OUTPUT' text-020 7 21,
'TCNO' 'IT_OUTPUT' text-021 9 22,
'REMARKS' 'IT_OUTPUT' text-022 30 23,
'BUDAT' 'IT_OUTPUT' text-025 30 24,
'CPUTM' 'IT_OUTPUT' text-026 30 25,
'VDATUM' 'IT_OUTPUT' text-027 30 26,
'VEZEITERF' 'IT_OUTPUT' text-028 30 27,
'ZLTIME' 'IT_OUTPUT' text-029 30 26,
'LEADTIME' 'IT_OUTPUT' text-029 30 28.
DATA : v_unit like T006-MSEHI VALUE 'HR',
v_FCALID like SCAL-FCALID,
v_zltim TYPE f,
v_zltime TYPE p LENGTH 8 DECIMALS 2.
SELECT SINGLE FABKL INTO v_FCALID FROM T001W WHERE WERKS = s_werks.
SELECT zcrdat INTO TABLE it_zqm_imir_hdr
from zqm_imir_hdr
FOR ALL ENTRIES IN it_final
where zcrdat EQ it_final-zcrdat.
SELECT mblnr mjahr budat cputm
INTO TABLE it_mkpf
from mkpf
FOR ALL ENTRIES IN it_final
where mblnr EQ it_final-mblnr
AND mjahr EQ it_final-mjahr.
SELECT prueflos vdatum vezeiterf
INTO TABLE it_qave
from qave
FOR ALL ENTRIES IN it_final
where prueflos EQ it_final-prueflos.
SORT it_mkpf BY mblnr mjahr.
SORT it_qave by prueflos.
SORT it_zqm_imir_hdr BY zcrdat.
LOOP AT it_final into wa_final.
CLEAR: wa_output,wa_mkpf,wa_qave,wa_zqm_imir_hdr.
MOVE-CORRESPONDING wa_final to wa_output.
READ TABLE it_zqm_imir_hdr INTO wa_zqm_imir_hdr WITH KEY zcrdat = wa_final-zcrdat
BINARY SEARCH.
READ TABLE it_mkpf INTO wa_mkpf WITH KEY mblnr = wa_final-mblnr
mjahr = wa_final-mjahr
BINARY SEARCH.
MOVE wa_zqm_imir_hdr-zcrdat TO wa_output-zcrdat.
MOVE wa_mkpf-budat TO wa_output-budat.
MOVE wa_mkpf-cputm TO wa_output-cputm.
READ TABLE it_qave INTO wa_qave WITH KEY prueflos = wa_final-PRUEFLOS
BINARY SEARCH.
MOVE wa_qave-vdatum TO wa_output-vdatum.
MOVE wa_qave-vezeiterf TO wa_output-vezeiterf.
LV_START_DATE = wa_zqm_imir_hdr-zcrdat.
LV_START_DATE = wa_mkpf-budat.
LV_START_TIME = wa_mkpf-cputm.
LV_END_TIME = wa_qave-vezeiterf.
LV_END_DATE = wa_qave-vdatum.
IF LV_START_DATE IS NOT INITIAL.
IF LV_END_DATE IS NOT INITIAL.
CALL FUNCTION 'SD_CALC_DURATION_FROM_DATETIME'
EXPORTING
i_date1 = LV_START_DATE
i_time1 = LV_START_TIME
i_date2 = LV_END_DATE
i_time2 = LV_END_TIME
IMPORTING
E_TDIFF = LV_DIFF
E_DATE2_EARLY = E_DATE2_EARLY
EXCEPTIONS
INVALID_DATETIME = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
eNDFORM.}
This is my code unable to merge the to tabs position is on 3rd and 4th.
need help ......
thanks,Hi,
From Your code I saw that you called Macro of fieldcat after Calling the ALV Function Did You Check That One.
Following links may be useful for you ,
ALV report: How to merge 2 columns into 1 column?
Hope this information helps You
Regards,
Raghava Channooru -
How to merge pdf files in Preview in Lion
I've consulted Preview Help to find out how to merge many pdf files into one. The Help window tells me to open each file, and transfer the thumbnail from each opened document into the sidebar of the other. Who wrote this Help item? Once you drag one thumbnail into the other sidebar, the other window closes, and there's no way to drag the closed file into the other file's sidebar. And I've tried! And tried! A helpful way out is to combine the two files, click Print, then save as PDF. But there must be a more direct way to accomplish this merger. Before Leopard, the procedure was easy. Then in Leopard, Apple made it a little more challenging. Finally in Lion, Apple seems to have surpassed itself, making it almost impossible. Does anyone know how to accomplish this Herculean task in an easy way?
> The Help window tells me to open each file, and transfer the thumbnail from each opened document into the sidebar of the other.
It works the same way it did in SL. That's exactly what I did. Are you sure you are dragging the thumnail? I just dragged a pdf to a file of many pdfs combined and it went right in and joined the family. View menu > Thumbnails? -
How to merge photos in photo booth
how to merge photos in photo booth that they will be un one photo
You can email the photos from Photo Booth or from the camera roll in the photos app.
Tap on the photo to select it and then tap the arrow icon in the upper right corner and select email - in the photos app ..... or tap email - in Photo Booth - at the bottom of the screen.
You can also import photos from the camera roll to your Mac using iPhoto, Aperture, or Image Capture.
iOS: Importing personal photos or videos from your iOS device to your computer -
How To import collections from Bridge cs6 To Bridge CC
How To import collection from Bridge cs6 To Bridge CC??
thxHow To import collection from Bridge cs6 To Bridge CC??
A collection is a bunch of aliases to the original files in their original place. If you have upgraded to CC on the same machine you can use the same collection, on a different machine it will possible not find the correct location again.
On a Mac the path for the saved collections is : User / library/ application Support / Adobe/ BridgeCS6 / collections. Inhere are the saved collections showing the names you gave them. You can copy these collection files to the same location in Bridge CC.
If you have a different machine you best first choose the collection and add a keyword with the name of the collection to all the files in this particular collection so you can use the find command to easily recreate the collection on your new machine.
Maybe someone with more knowledge of Windows can show you the correct path but it should be something similar as on a Mac. -
How to download & how to merge pdfs into one pdf file?
Hello everyone!
I hope someone can help me, because I am SO frustrated right now! I want to create an electronic document of a 40-page thesis I wrote. I no
longer have the original computer files, so I took digital photos of each page.
Then I converted all the jpegs into pdf files.
Now I want to merge these 40 jpegs into one pdf file.
I read that this is possible with Adobe Acrobat 8 or 9. So, yesterday I downloaded the trial version of what I thought was Adobe Acrobat 9. Well,
two whole hours later, all I could find on my computer was Adobe Reader 9, which would not allow me to merge any pdfs.
So, today, I again reinstalled the Adobe Acrobat 9. Now, after waiting another two hours, there is NOTHING on my computer--no Adobe Reader, no Adobe Acrobat, no desktop icons, nothing in the "All Programs" list when I press the Start menu, etc.
What happened? How could something that took so damned long to download be totally invisible on my computer now? I do see Arcsoft, but that is for photographs. Is it possible to merge pdfs together using Arcsoft?
I have SO much other work to do, and I am so disgusted that I have lost two days on this project, just trying to merge pdfs together! Please, if
you have any suggestions as to how to get Adobe Acrobat 9 as a trial version an/or how to merge pdfs, please answer this post!
Thank you very much for your help.
CourtneyHi. Yes, that is the link from which I downloaded Acrobat 9. I now have this file on my computer: AcroPro90_efg.exe
Yes, I did install it, but one of the times it hanged at 99.96%. Do you know what that means?
Thanks in advance.
Courtney -
How to Merge 1 PDF file to 50 PDF together not one by one. Using Acrobat 9 Windows xp.
Hi, How to Merge 1 PDF file to 50 PDF together not one by one. Using Acrobat 9 Windows xp.
Depending on just what you are trying to do, you can also use DOCUMENT>Insert Pages to add multiple documents or simply drag and drop the documents into the current document (OK, I have not tried this one).
-
How to merge rows with similar values in alv grid display in webdynpro
Hi experts,
i want to know about how to merge rows with similar values in alv grid display of webdynpro.grouping rows is possible in table display in webdynpro but i am not able to do row grouping in the alv grid display in webdynpro.
kindly suggest.
thanks ,
Anita.Hi Anita,
did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
Is there an ALV function similar to the TABLE Row grouping?
Thanx in advanced!!!
Kind Regards,
Gerardo J -
How to merge data returned from server after you hit SUBMIT button
I have a PDF form with blank ID field. When user click Submit button on the form, an ID will be generated from database on the server side. How do I merge this ID with client's original PDF from so he knows his ID number? Any help thanks.
When the user submits the form, he or she is redirected to the web page that you put in the submit URL. The form doesn't generally stick around. A typical response would be to return an HTML page that confirms receipt and gives a reference number. If you want to merge data with the PDF and present that back to the user, it's possible, but not very easy. If you decide that you'd like to go down that path, you can start by searching this forum on "vnd". You'll find a long thread with 30+ messages that show how to merge data with a PDF using various types of CGI scripts.
-
How to get collection of embeded fonts using plugins in acrobat reader?
I am trying to create a plugin for acrobat reader to display embedded fonts on opened document and will do business logic afterward, but not sure whats the method to get the collection of embedded fonts.
Please give me example of code snippet how to get collection of embedded fonts of opened document.
ThanksPDDocEnumFonts() will enumerate the fonts in a document for you. You will have to look at each font to determine if it's embedded or not.
Don't forget that to build a plugin for Reader, you need a license from Adobe. -
How to merge two Oracle SSO IDs?
As many have noticed, I have 2 SSO ids: 'Hans Forbrich' that I have had for many years; and Hans Forbrich (alt ID) that was created by the OU group for SSO access to OU sites.
I'm wondering how to merge these two IDs while retaining the Oracle University Single Sign On capability.Have you tried to sign in to OU with the other ID? I
would think that you would be able to since OU uses
SSO as well (it may not have in the past).Oh yes. Does not work.
>
It may be just a matter of having some OU folks add
your other account to the database.Not quite that simple. They have a few extra settings, and permissions, tied to the user id. And effective and expiry dates. And ... -
How to merge two repositories using(MUD)
hi all,
how to merge two repositories using mude, for example i have sh rpd and paint rpd how to merge two repositories using Multi user development(mud), please don't give venkat forums link and oracle's training doc links.
Is this possible? if it is possible please help me .
Thanks
NareshHi Naresh,
What you could do is:
1. do a ontime command line merge of both repository using the nqudmlexec tool
2. In the mergerd repository created two project (sh and paint) and assign one bussiness model to each project.
3. Make this the master repository for your MUD.
4. Check the projects in and out.
regards
John
http://obiee101.blogspot.com -
How to use collect statement for below
data : begin of itab,
n(3) type c,
n1 type n,
k(5) type c,
end of itab.
select n n1 from into itab table /zteest.
*internal table has
n n1 k
gar 100 uji
hae 90 iou
gar 90 uji
hae 87 iou
I want
gar 190
hae 177
How to use collect statement as n1 is n ..?
let me know..
Thankstry this..
DATA : BEGIN OF itab OCCURS 0,
n(3) TYPE c,
n1(3) TYPE p DECIMALS 2,
k(5) TYPE c,
END OF itab.
itab-n = 'gar'.
itab-n1 = 100.
itab-k = 'uji'.
COLLECT itab .CLEAR itab.
itab-n = 'hae'.
itab-n1 = 90.
itab-k = 'iou'.
COLLECT itab .CLEAR itab.
itab-n = 'gar'.
itab-n1 = 90.
itab-k = 'uji'.
COLLECT itab .CLEAR itab.
itab-n = 'hae'.
itab-n1 = 87.
itab-k = 'iou'.
COLLECT itab .CLEAR itab. -
How to merge 4 internal tables
Hi,
I have to merge 4 internal tables
Two loops have to create in main loop because getting more than one values from other table.
Like
LOOP AT it_itab1 INTO wa_itab1.
MOVE-CORRESPONDING wa_itab1 TO wa_final.
READ TABLE it_itab2 INTO wa_itab2 WITH KEY pspel = wa_itab1-pspnr.
IF sy-subrc = 0.
wa_final-aufnr = wa_itab2-aufnr.
ENDIF.
READ TABLE it_itab3 INTO wa_itab3 WITH KEY projn = wa_itab1-pspnr.
IF sy-subrc = 0.
wa_final-vornr = wa_itab3-vornr.
ENDIF.
Instead of this READ statement of internal table it_itab3, I need to put loop as follows. But how to merge with final table?
loop at it_itab3 into wa_itab3 where projn = wa_itab1-pspnr.
wa_final-vornr = wa_itab3-vornr.
endloop.
LOOP AT it_itab4 INTO wa_itab4 WHERE aufnr = wa_final-aufnr.
wa_final-kzear = wa_itab4-kzear.
wa_final-matnr = wa_itab4-matnr.
wa_final-lgort = wa_itab4-lgort.
wa_final-sobkz = wa_itab4-sobkz.
wa_final-bdter = wa_itab4-bdter.
wa_final-bdmng = wa_itab4-bdmng.
wa_final-waers = wa_itab4-waers.
wa_final-aufnr = wa_itab4-aufnr.
wa_final-postp = wa_itab4-postp.
wa_final-posnr = wa_itab4-posnr.
wa_final-sanka = wa_itab4-sanka.
wa_final-gpreis = wa_itab4-gpreis.
APPEND wa_final TO it_final.
CLEAR:
wa_itab4.
ENDLOOP.
CLEAR:wa_final,
wa_itab1,
wa_itab2,
wa_itab3,
wa_itab4.
ENDLOOP.
Pls help me to merge this table.
Thanks in advance.
Rajkumar Pandiaraja.Hi Raj,
Do you have common key fields between final int table and other table?
if yes then you can do this by,
LOOP AT it_itab3 INTO wa_itab3 WHERE projn = wa_itab1-pspnr.
wa_final-vornr = wa_itab3-vornr.
MODIFY it_final FROM wa_final TRANSPORTING vornr
WHERE key1 = wa_tab1-key1."Mention your key field here
ENDLOOP.
Regards,
Manoj Kumar P
Edited by: Manoj Kumar on Jan 23, 2009 12:20 PM
Edited by: Manoj Kumar on Jan 23, 2009 12:21 PM
Maybe you are looking for
-
Library names in java ( JNI )
I want to load library name called MathLib. but i am getting error like below.. Exception in thread "main" java.lang.UnsatisfiedLinkError: no MathLib in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) at java.lang.Runtim
-
Asset ledger to general ledger account mapping
Hi please tell me what is asset ledger to general ledger mapping and how is it done? i mean how data is taken from asset ledger and feeded in general leger accounts? also tell me which area of general ledger account keeps the values of DEPRECIATI
-
Datawindow graphical syntax outer join BUG
Ok, so this is a bug report. I don't know where i'm supposed to post it for SAP (i do have support). The outer join syntax is ansi. Using the graphical SQL designer, outer joins are incorrectly written by powerbuilder. This has been going on ever s
-
Issue with selecting a line on table control
Hello Experts, We have a table control and using w/ SelColumn for selecting the highlighted line on a table control. It's working fine sometimes but not working in other cases. It's really wierd. On this screen, under the Table Control, we have provi
-
I tower sharper image ipod connector bad .Can this be repaired or replaced
I have a sharper image Itower model # S1353 and it will not play. My kid said someone fell into it while it was playing and messed up the ipod jack in the tower. Nice unit can it be repaired and where can I get a new pod jack for this? thanks