Hi when i use treeMap class and if i exit the program
hi
hi when i use treeMap class and if i exit the program,
what will happen? the information that i put in the treeMap will be disappear??
if it is like that,,how am i able to retrieve my data...when i restart my program..
once i put ID as key and put my customer information,
in it, after exit my program,, and i can't find
my customers by their ID,,,,,,,,,how can,,i solve it......
what will happen? the information that i put in the
treeMap will be disappear??Yes. Of course. If you want data to hang around you have to tell the computer. If you want anything to happen you have to tell the computer.
if it is like that,,how am i able to retrieve my
data...when i restart my program..Tada! Tell the computer. Your simplest option is to use Serialization.
Before exiting your program, serialize your TreeMap to disk. After starting your program serialize your TreeMap from disk.
First stop should be your text book to learn what Serialization is and how it works, then try to write some code, then ask us to help with any problems.
Dave.
Similar Messages
-
How to create Package( development class) and how to assign the program
Hi,
Can any body give me the steps to create the package (developement class) and also please give me the steps to assign the local object ( program) to that development class.
thanks in advance
KPHi,
This document will help you to create package and move local package name to your package.
Package Creation:
1.T-code=SE80.
2. give the option 'PACKAGE' in text field, give 'PACKAGE NAME' then enter.
3. The next screen will open in that screen you shoul give short text and Software Component-'HOME'. then enter.
4. Next screen will open here you should give create request then next page will open
5.In the next page give short description this is your package identification,then click 'SAVE ' button now one unique number will open then give 'YES' button, now your package is created.
HOW TO MOVE LOCAL PACKAGE DATA TO YOUR PACKAGE
1.IN the same screen you should give program option, then open your local program ,
2.'WRITE CLICK YOUR PROGRAM NAME', then give 'COPY' option
3.Next window will open here you should give 'TARGET PROGRAM NAME'.
4. THEN you should give you 'PACKAGE NAME'.
now you can store local package program's to your package.
IF HELPFULL GIVE REWARD POINTS -
ALV using ABAP Classes and Objects
Hi All,
I am trying to print the values in my internal table using ALV, using ABAP classes and objects. Here the title for columns are picked based on the title specified in the data element. I want to set the title of my columns by my own. how to achieve this ?. Please provide me a sample code if possible.
thanks & regards,
Navneeth.KHello Navneeth
The following sample report shows how to build and modify a fieldcatalog (routine <b>BUILD_FIELDCATALOG_KNB1</b>).
*& Report ZUS_SDN_ALVGRID_EVENTS
REPORT zus_sdn_alvgrid_events.
DATA:
gd_okcode TYPE ui_func,
gt_fcat TYPE lvc_t_fcat,
go_docking TYPE REF TO cl_gui_docking_container,
go_grid1 TYPE REF TO cl_gui_alv_grid.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1.
PARAMETERS:
p_bukrs TYPE bukrs DEFAULT '2000' OBLIGATORY.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING
e_row_id
e_column_id
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_hotspot_click.
* define local data
DATA:
ls_knb1 TYPE knb1,
ls_col_id TYPE lvc_s_col.
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row_id-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CASE e_column_id-fieldname.
WHEN 'KUNNR'.
SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
WHEN 'ERNAM'.
* SET PARAMETER ID 'USR' FIELD ls_knb1-ernam.
* NOTE: no parameter id available, yet simply show the priciple
CALL TRANSACTION 'SU01' AND SKIP FIRST SCREEN.
WHEN OTHERS.
* do nothing
ENDCASE.
* Set active cell to field BUKRS otherwise the focus is still on
* field KUNNR which will always raise event HOTSPOT_CLICK
ls_col_id-fieldname = 'BUKRS'.
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
is_row_id = e_row_id
is_column_id = ls_col_id.
ENDMETHOD. "handle_hotspot_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = p_bukrs.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create ALV grid
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set event handler
SET HANDLER:
lcl_eventhandler=>handle_hotspot_click FOR go_grid1.
* Build fieldcatalog and set hotspot for field KUNNR
PERFORM build_fieldcatalog_knb1.
* Display data
CALL METHOD go_grid1->set_table_for_first_display
CHANGING
it_outtab = gt_knb1
it_fieldcatalog = gt_fcat
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* ok-code field = GD_OKCODE
CALL SCREEN '0100'.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form BUILD_FIELDCATALOG_KNB1
* text
* --> p1 text
* <-- p2 text
FORM build_fieldcatalog_knb1 .
* define local data
DATA:
ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'KNB1'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_fcat INTO ls_fcat
WHERE ( fieldname = 'KUNNR' OR
fieldname = 'ERNAM' ).
ls_fcat-hotspot = abap_true.
ls_fcat-scrtext_s = '<short text>'. " short text of column
ls_fcat-scrtext_m = '<medium text>'. " medium text of column
ls_fcat-scrtext_l = '<long text>'. " longtext text of column
ls_fcat-tooltip = '...'. " ALV control: Tool tip for column header
ls_fcat-coltext = '...'. " ALV control: Column heading
MODIFY gt_fcat FROM ls_fcat.
ENDLOOP.
ENDFORM. " BUILD_FIELDCATALOG_KNB1
Regards
Uwe -
Hi how to use treeMap class???
hi i m just trying to use treeMap class but i m just a newbie and don't know some of
the concepts. i opened API and read it thorouhgly, but,,,when i use put() method,
put(Object key, Object value) //don't know..
i don't know what does 'key' mean...what should i put here,,and what is this used for..
anyway i don't know what is the value used for and i just don't know about treeMap
as well..when do we use the treeMap class and could anyone tell me about these two
parameters? coz im just a bigginer.......
thanks guys........Maps are used for mapping a key to a value.
For instance, say you have a Student class that has properties like studentID, lastName, firstName, schedule, etc. If you want to be able to access students by their ID, you might do something like this (mix of pseudocode and Java): for each student {
map.put(student.getId(), student);
} Later, say your app asks the user which student he wishes to look at, and the user enters "123abc": String id = readStudentIdFromUser(); // user enters "123abc"
Student student = (Student)map.get(id); For more info... http://java.sun.com/docs/books/tutorial/collections/ -
When to use abstract class compared to interface
hi
can some one plase advise me when to use abstract class compared to interface?
Example will be appreciated...So an abstract class can carry implementation. This can be used to formulate a rule of thumb as to when to use it over an interface.
If you have a so called type specialization relationship between the subtypes and the supertype then they're likely to benefit from shared implementation provided by the supertype, so use class (abstract or concrete) extension in this case. Type specialization is when the supertype represents a general concept like Fruit and the subtypes are specialized forms of that like Apple and Banana.
Another common kind of relationship is called type expansion. In this case the subtypes are unlikely to have any use of implementation provided by the supertype, so use interface implementation. Type expansion is when the supertype represents a specific character the subtypes take on. For example Apple and Bicycle ure unrelated in the type specialization sense but still can share a common character like Comparable. The subtypes have been expanded to include the supertype character, namely the ability to be compared. -
Design question about when to use inner classes for models
This is a general design question about when to use inner classes or separate classes when dealing with table models and such. Typically I'd want to have everything related to a table within one classes, but looking at some tutorials that teach how to add a button to a table I'm finding that you have to implement quite a sophisticated tablemodel which, if nothing else, is somewhat unweildy to put as an inner class.
The tutorial I'm following in particular is this one:
http://www.devx.com/getHelpOn/10MinuteSolution/20425
I was just wondering if somebody can give me their personal opinion as to when they would place that abstracttablemodel into a separate class and when they would just have it as an inner class. I guess re-usability is one consideration, but just wanted to get some good design suggestions.It's funny that you mention that because I was comparing how the example I linked to above creates a usable button in the table and how you implemented it in another thread where you used a ButtonColumn object. I was trying to compare both implementations, but being a newbie at this, they seemed entirely different from each other. The way I understand it with the example above is that it creates a TableRenderer which should be able to render any component object, then it sets the defaultRenderer to the default and JButton.Class' renderer to that custom renderer. I don't totally understand your design in the thread
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=680674
quite yet, but it's implemented in quite a bit different way. Like I was saying the buttonClass that you created seem to be creating an object of which function I don't quite see. It looks more like a method, but I'm still trying to see how you did it, since it obviously worked.
Man adding a button to a table is much more difficult than I imagined.
Message was edited by:
deadseasquirrels -
When I use yahoo images and open an image in a new window, the page, once I click its tab causes the entire browser to scramble graphically, making it nearly impossible to navigate further. I right-clicked and selected close tab. That regains the visual clarity of the browser. But how can I fix this to browse the images?
Phillipp,
I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
Littleberry -
Customizing FD01 and FB70 using PS Class and Characteristics
Hello SAP Experts
I have the following issue:
My client has a requirement where we need to customize the Customer Master (FD01) screen and the Invoice Posting Screen (FB70). A few additional fields have to be added by creating a separate tab. I was intending to take Abaper's help and do this using user exits but I have been suggested by the cleint to use SAP PS Class and Characteristics feature to do this. Can someone please throw some light on this feature and how can i create custom fields on FD01 and FB70 screens. Is there a way we could customize these screens using PS class and characteristics. Your opinions would be much appreciated.
Please kindly give your suggestions. Thanks in advance
Regards,
NikJoao Paulo,
Thank you for the response. I have tried to obtain some info from OSS but no luck. Tried all means but there is limited information available.
Nik -
I have an apple tv 3 but when i use Home Sharing from my Windows Laptop the Apple TV shows all my music on the TV but it will only play 1 or 2 songs and then stops!!! Annoying, so I have to re-start iTunes on my Laptop and it will play 1 or 2 more songs then stops again!!! still annoying.
Can anyone assist me with this issue?
ThanksTo downgrade, you'll need to download the previous software version here: ATV3 http://appldnld.apple.com/AppleTV/041-4361.20120605.grjot/AppleTV3,1_5.0.2_9B830 _Restore.ipsw
ATV2: http://appldnld.apple.com/AppleTV/041-4362.20120605.t8i4U/AppleTV2,1_5.0.2_9B830 _Restore.ipsw
Next, plug the Apple TV into your computer with a micro-usb cable (most phones today use these) and start up Itunes. It should detect the Apple TV in recovery.
After that, hold down Option on Apple or Alt on Windows and click Restore. This should open a window that allows you to select the software update you want to apply. Select the one you downloaded earlier.
It will then go through the restore process, which takes only a few minutes, and then you will be able to plug the Apple TV back in to your display and set it up again.
I recently ran into a similar issue with a bunch of these things and after restoring them all to the previous software version they are working again. -
When to use Apps adapter and DB adapter?
Hi All,
For invoking a PL/SQL API(either a custom or System API) in Oracle Applications from BPEL Process which is better to use?When to use Apps adapter and DB adapter?
Thanks,
ChitraDeviAs Sen correctly states for the DB adapter you have to set the context manually using the fun_global.apps_initilize or Fnd_Client_Info.SET_ORG_CONTEXT. This is usually done in a wrapper procedure.
I wouldn't say I'm an expert in this field as I have only used the APPS adapter for 11.5.10. I believe things have changed a bit for R12, but from my experience with APPS, things change very slow so although R12 is 10g App Server I'm sure the principles are the same.
Sen is also correct saying that base tables are not accessible via the APPS adapter. Basically the apps adapter is there to expose services, base tables are not services.
My recommendation would be different based on the experience of the developer(s). The APPS adapter simplifies the development but may not have the flexibility. The apps adapters sweet spot is those services that are difficult to integrate with, e.g. business services, xml gateway. If these are used heavily I would use the APPS adapter.
What I personally do, even if I'm not using APPS, if I'm connecting to the database I will implement a function, stored procedure, or AQ. It is a little more hassle during deployment, but it treats it more like a service and you are not impacted if the tables change. This is not an endorsement for you to go down this path because it does have a requirement to have PL/SQL knowledge, and it breaks the notion of service abstraction from the DB.
cheers
James -
''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/828024]''
when we using overflow-x and overflow-y in tbody its not working properly. In the previous version i.e. 3.7.1 its working fine the same coding....Please help me.See:
*https://developer.mozilla.org/en/Firefox_4_for_developers#Miscellaneous_DOM_changes
*http://www.cssplay.co.uk/menu/tablescroll.html
A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.<br />
See http://forums.mozillazine.org/viewforum.php?f=25 -
A rectangular or sqaure bubble appears when I use my ipad and I always have to tap it twice. Also when I tried to go to setting to restart it, it wont go down or up. What do I do?
try pressing the home button 3 times.
-
When I use a tool on an enlarged image the image freezes and I can't get it to move unless I change tools. I tried resetting tools and uninstalling and reloading CC. What should I do? Once any tool is used I can't change its size or move the image.
Howdy,
Sorry for the lack of info. It is Adobe Photoshop CC, I have been using
CS5 and am trying the trial version of CC to see if it worth changing
to. Any tool works once but freezes the tool sizing and image movement.
I am also using the Beta version of Mac Yosemite. But the CS5 version is
working fine.
Hasta,
Bob McCaw -
When we use calculation script and when we use business rule
when we use calculation script and when we use business rule can anyone please tell me
Re the OP's question, here is an excellent introduction to Calculation Manager and business rules. It was the first hit when I googled "calculation manager hyperion".
http://ranzal.wordpress.com/2010/06/11/oracle-hyperion-calc-manager-%E2%80%93-part-1/
You can also go to odtug.com -- the Tech Resources section has a series of presentations on Calculation Manager, from beginner to intermediate.
The added benefit with business rules are that you can use variables and runtime prompts. You can also link planning with business rules and pass information from a web form into a business rules.^^^Only with Planning. There are no runtime prompts with Essbase in 11.1.2.2 but I hear it is coming back in 11.1.2.3
We can use Business Rule for all applications and it is GUI.^^^Doesn't have to be GUI-based. You can (depending on version) flip back and forth between GUI and script. I have not tried writing (nor can I actually think why you would want to do this) a Calc Mgr rule for multiple apps. Maybe you are thinking of a script object that can be called multiple times?
To check whether a calc script is executed or not you have to use the Essbase application database log file (Plan1.LOG)^^^As business rules are, sooner or later, translated to BSO (and hey, ASO too and HFM and Fusion and HPCM and they can differ, a lot, so this is not always true) calc script language, you can always check in the application log to see what is run if Planning or BSO Essbase.
Regards,
Cameron Lackpour -
When I use my iPhone and go into the iTunes Store Search, it clocks/gets-stuck in Loading.
Also if I select iTunes and App Store in Settings, nothing happens.
Any advice?
Thanks.I guess no advice. Thanks anyway.
Maybe you are looking for
-
Ipod Touch , Help with keeping pics after data loss
Ok well , a couple of weeks ago one of the HDDs in my raid array went down and I lost a fair bit of data , I dont care about the songs/videos etc but some 700+ photos I had on the drive from holidays/birthdays etc I was really upset about. Yes I know
-
Hi, I've created a Java Project in Eclipse, wich makes use of several external classes in the classpath. When viewing in the applet viewer, it works without trouble. But now I want to export it and test it from (a simple) html site. It gives a "Class
-
Uploading iweb site from my idisk
I recently had a hard drive crash on me so I've been restoring all of my old files using idisk. Problem is when I open iweb it keeps wanting to create a completely new site instead of opening my old site. I am afraid if I start a new site I will copy
-
Macbook Pro 15" not the same?
I just bought a Macbook pro 15" 2.2 ghz, and I was wondering why I got the "AMD Radeon HD 6750M with 512MB GDDR5 memory" Instead of the "AMD Radeon HD 6770M with 1GB GDDR5 memory"? I read forums and saw youtube videos where people would have the 2.2g
-
How to extract audit log from R/3 into BW
Hi, I have a request that how to extract audit log from r/3 into bw? Is there any datasource or infocube I can use?