How to mark a method as deprecated
Hello,
please does anyone knows how to mark a method as deprecated.
thanks
I know about the documentation i mean about the method
itself.
is putting @deprecated at the documentation will
generate a warrning message if u did not use
-deprecation as a parameter while compilingThat is how to do it! You will only get a warning if you make use of a deprecated method. Why would you want to deprecate a method, and then carry on using it in your own code? You need to change the usages to whatever you have implemented to replace the missing required functionality.
Similar Messages
-
How to Diasble JLabel since enable(false) method is deprecated in jdk1.4
Hi friends
i am using jdk1.4 in which enable method is deprecated.
i am disabling my jlabel using jlabel.enable(false); method
however this is deprecated.
what method should i then use
please do helpYou just try with the .setEnabled(false); This will
help to solve your problem.Hey Thanks Mr. Sumode , its working with .setEnabled(false); -
How to mark a table as transport relevant
Hi Guru's,
I just have seen that our CO-PA characteristic derivation table is open for maintenance in Productive system. But this is customizing and should be transport relevant.
Can you please explain how to mark this as transport relevant and how to close this maintenance in productive system?
ThanksI know about the documentation i mean about the method
itself.
is putting @deprecated at the documentation will
generate a warrning message if u did not use
-deprecation as a parameter while compilingThat is how to do it! You will only get a warning if you make use of a deprecated method. Why would you want to deprecate a method, and then carry on using it in your own code? You need to change the usages to whatever you have implemented to replace the missing required functionality. -
Method 'getAttributeInternal' deprecated
I'm creating a new page using Jdev 10.1.3 and getting warnings as
Method 'getAttributeInternal' deprecated
How to fix this?
Thanks!Dont worry abt these Warnings. Anyway they are being generated by OA Framework and not you.
Sometimes you might need to replace these by populateAttribute, but till the time there is no issue I recommend against doing any modification to autogenerated code.
Regards
Sumit -
How to mark first record by default in oo ALV
Hi Experts,
I am using OO ALV to display ALV Grid in Custom Container. How to mark the frst record by default in ALV Grid.!
Please help.
Thanks in Advance,
Regards,
PriyaHi.,
Using set_selected_rows() method you can achieve this.,
First Call ALV using o_grid->set_table_for_first_display
Then call o_grid->set_selected_rows " here o_grid is reference to cl_gui_alv_grid
You have to pass parameter index 1 to it_row_no.
Also you can pass the row numbers which you want to select by default .,
hope this helps u.,
Thanks & Regards,
Kiran -
IN R12 -- HOW TO CREATE RECEIPT METHOD IN RECEIVABLES
IN R12 --> HOW TO CREATE RECEIPT METHOD IN RECEIVABLES
SET UP
RECEIPTS-------> RECEIPT CLASSES
I CREATED NEW RECEIPT CLASS AND NEW RECEIPT METHOD
WHEN CREATING NEW RECEIPT METHOD
BANK ACCOUNTS---------->
I AM ABLE TO SELECT THE DETAILS FOR THE FOLLOWING
1. OPERATING UNIT
2. BANK NAME
3. BRANCH NAME
4. EFFECTIVE DATES
5. CASH ACCOUNT
6. UNAPPLIED RECEIPTS
7. UNIDENTIFIED RECEIPTS
8. ON ACCOUNT RECEIPTS
BUT WHEN COMES TO THE
UNEARNED DISCOUNTS AND
EARNED DISCOUNTS I AM UNABLE TO GET LOV FOR THAT
IN THE SET UP----> SYSTEM OPTIONS ----> MISCELLANEOUS
I CHECKED THE CHECK BOX TO YES FOR
ALLOW UNEARNED DISCOUNTS
PLEASE GIVE SOLUTIONS FOR THIS
THANKS IN ADVANCE
PRINCEHi
Thank You Ketter Ohnes for Reply,
AR: Setup: Receipts: Receivable Activities
When i am doing above set up it is giving the following error.
PLEASE DEFINE A PARTY TAX PROFILE FOR OPERATING UNIT & ORG_ID
Thanks and Regards
Prince -
How to call a method in private section of a class in the public section
Hi Everybody,
i have written a method(meth1) in the private section of a class(C1).
it is as follows
class C1 definition.
private section.
methods: meth1 importing im_dt1 like tp1
im_dt2 like tp2
im_dt3 like tp3
im_dt4 like tp4
returning value(re_dt1) like tp5.
endclass.
i have the final data that has to be displayed in internal table re_dt1.
now my question is how to call this method present in private section into public section and display the data present in re_dt1.
Thanks,
learning.abap.Hi,
what you need is one public method being called at start-of-selection. Within this the private methods have to be called.
The question is, why has the method for reading the database tables to be private? If you have only one private method reading all database tables the public method being called at start-of-selection will only consist of a call-method statement.
This seems to be one call to much.
The logic for reading the different database tables is hidden inside the class anyway.
Is there any further logic reading the different database tables?
Have always all table to be read? If not another approach would be one private method for each database table being called by a public method deciding which table has to be read:
public section.
methods get_data returning value(re_Dt1).
private section.
methods:
get_table_a returning value(im_dt1),
get_table_b returning value(im_dt2),
get_table_c returning value(im_dt3),
get_table_d returning value(im_dt4),
combine_data importing im_dt1
im_dt2
im_dt3
im_dt4
returning value(re_dt1).
*- implementation of public method:
method get_data.
data: lt_dt1 ...
lt_dt2,
lt_dt3,
lt_dt4.
* here decide which tables have to be read:
lt_dt1 = get_table_a( ).
lt_dt2 = get_table_b( ).
lt_dt3 = get_table_c( ).
lt_dt4 = get_table_d( ).
re_dt1 = combine_data( i_dt1 = lt_dt1
i_dt2 = lt_dt2
i_dt3 = lt_dt3
i_dt4 = lt_dt4 ).
endmethod.
*- implementation of private methods
method get_table_a.
endmethod.
method get_table_b.
endmethod.
method get_table_c.
endmethod.
method get_table_d.
endmethod.
method combine_data.
endmethod.
Regards
Dirk -
How to call a Method in a Program?
Hello,
I am very new to the ABAP world. I have been given a task to call a method if_hrbas_plain_infotype_access~read_single from the class CL_HRBAS_PLAIN_INFOTYPE_ACCESS in a program to see if we can use it to display some employee information. I don't know how to call a method in a program. Can somebody please provide me some pseudo code or instructions?
Thanks.Hi Shan,
here is the code to call a method. while calling the method Instance as 'r_info' which is the type reference to class as specified.
pass the values to exporting parameters plvar,otype,objid...etc according to the requirement
infotypes: 0002. " creates an internal table p0002.
data:
r_info type ref to CL_HRBAS_PLAIN_INFOTYPE_ACCESS.
TRY.
CALL METHOD r_info->if_hrbas_plain_infotype_access~read
EXPORTING
plvar =
otype =
objid =
istat =
infty =
* SUBTY =
begda =
endda =
no_auth_check = 'X'
message_handler =
IMPORTING
PNNNN_TAB = P0002
* HRTNNNN_TAB =
* IS_OK =
CATCH CX_HRBAS_VIOLATED_ASSERTION .
ENDTRY.
LOOP AT P0002.
WRITE:/
P0002-VORNA,
P0002-NCHMC,
P0002-NACHN.
ENDLOOP.
Regards -
How to Stop the method Action When an Exception Occur in other Method
Hi All ,
public void action( Event clientEvent) {
startAction();
JOptionPane.showMessageDialog(null, getDocumnetId());
how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
( if the exception occur we doesn't need to show the JOption Message )Hi,
try FacesContext.getCurrentInstance().renderResponse();
Frank -
How to declare abstract method
given - work worked at first .
fact - then i went to add new entity object names ScottOafE0 . went through all the next sand finished. a package and entity obj already exist. i also tried to put a new package and ScottOafAM in a seperate place. still a no go
when i went to run the form it errors out w/ below msg.
Error(14,8): class xxxoaf.oracle.apps.xxuab.hr.newforms.server.ScottOafEOImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl
Guess - i tired to put import oracle.apps.fnd.framework.server.OAEntityImpl in the controller file . didnt work
any idea how to define abstract method ?
thanks
scottYou dont need to define your class as abstract, that would not resolve your issue, what is happening is
oracle.apps.fnd.framework.server.OAEntityImpl is a abstract class, and has a method declared as setLastUpdateLogin(oracle.jbo.domain.Number) in class
Now, any class (xxxoaf.oracle.apps.xxuab.hr.newforms.server.ScottOafEOImpl ) extending from this class must either provide a definition to this method (provide the implementation logic), or must itself be declared abstract.
We had a discussion on this issue in the forum , look for the thread.
Thanks
Tapash -
How to call a method from a separate class using IBAction
I can't work out how to call a method form an external class with IBAction.
//This Works 1
-(void)addCard:(MyiCards *)card{
[card insertNewCardIntoDatabase];
//This works 2
-(IBAction) addNewCard:(id)sender{
//stuff -- I want to call [card insertNewCardIntoDatabase];
I have tried tons of stuff here, but nothing is working. When i build this I get no errors or warnings, but trying to call the method in anyway other that what is there, i get errors.Can you explain more about what you are trying to do? IBAction is just a 'hint' to Interface Builder. It's just a void method return. And it's unclear what method is where from your code snippet below. is addNewCard: in another class? And if so, does it have a reference to the 'card' object you are sending the 'insertNewCardIntoDatabase' message? Some more details would help.
Cheers,
George -
How to access java method in JSP
Hi all,
I need to access java class (abstract portal component) method doContent() in a JSP which is under PORTAL-INF/jsp folder.
I did
<%@ page import = "com.mycompany.Aclass" %>
<%com.mycompany.Aclass a = new com.mycompany.Aclass (); %>
Aclass is coming as autofill/prepopulated with cntrl+space
Till this time, it is working. no errors. But when I do
a.
a. (a dot) no methods are populating (autofill..cntrl+space) or If I forcebly add method a.doContent(req,res)... at runtime its giving error.
It's not only with doContent method... Its with any simple methods in that class or any other class.
(Other than doContent method in the APC java class are prepopulating/autofilling but giving error in runtime)
Can anyone help me... how to access java method in JSP.
I already gone through many SDN forum post... and implemented too---but no use I refered below forum thread
Retrieve values from Java class to JSP
URGENT! How to call a java class from JSP.
Calling a java method from jsp file -
this thread is same as my issue
Thanks,
PradeeP1st. The classes must be in packages. 2nd, the package that they are in must be under the WEB-INF/classes directory. 3rd Look on google and/or this site for web application deployment
-
How to use protected method in jsp code
Could anyone tell me how to use protected method in jsp code ...
I declare a Calendar class , and I want to use the isTimeSet method ,
But if I write the code as follows ..
========================================================
<%
Calendar create_date = Calendar.getInstance();
if (create_date.isTimeSet) System.out.println("true");
%>
============================================================
when I run this jsp , it appears the error wirtten "isTimeSet has protected access in java.util.Calendar"The only way to access a protected variable is to subclass.
MyCalendar extends Calendar
but I doubt you need to do this. If you only want to tell if a Calendar object has a time associated with it, try using
cal.isSet( Calendar.HOUR ); -
How to use the method for field-exit to trigger the workflow?
Dear all,
I want the workflow to trigger , when ever the check box for DELIVERY COMPLETED is checked in ME22N .
I have developed a method in SE18 for the corresponding field and defined function module SWE_EVENT_CREATE with BOR bus2012 and event CHANGED.
Now how to use this method to make my workflow to trigger?Shall I create an event in delegated bus2012 and can I call this method?
Thanks and regards,
S.SureshHi
You want to place your method which is defined for particular filed.right?
For that you can go for BADI. First you check whether any badi is getting called form that tcode ME22N. Then to place your method, implement that BADI. So whenever that BADI is getting called, it will call your event. Through Event workflow will be getting triggered.
Regards,
Hemalatha. -
How to use the method "getChildrenRemoved()" declared in ElementChange?
How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?
I have tried to use it,but the code below alway say "Yes"....
I really have no ideas about why ec is always a null.
public void removeUpdate(DocumentEvent ee) {
DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
if(ec == null)
System.out.println("Yes");
}
Maybe you are looking for
-
Efi update problems. The mac restart
I have a BIG problem after the las software update in my mid-2012 macbook pro (13" i7) start to hang out. When i open parallales the computer show the blue screen and restart. help thnks
-
ORDER BY/GROUP BY in XSL/T
SCENARIO 1: Hello all! I have got an XML file which contains a list of products. I transform this file into an HTML page using an XSL stylesheet. The XML file looks like the following: <?xml version="1.0" encoding="ISO-8859-1"?> <products>
-
Anyone successfully ePrint from iPhone using VPN?
Hi, Just got an HP C410A ... set it up (wired and Wi-Fi), can print to it from my Mac. If I connect my iPhone 4 (yes, with the printing firmware to my LAN (via VPN and Wi-Fi), I can see my Mac (and telnet into it ... but the airprint stuff in the iPh
-
MacBook Pro Retina shutting down randomly
Hi Some shile ago my MBP Retina 15" started shutting down randomly while i use it. Then it takes like 10-30 minutes to cool down and then it can be turned on agin. If you try to switch it on earlier than it sounds like it's starting as ususally but t
-
Key differences between 11g r1 and 11g r2
What are key differences between Oracle EE 11g r1 and 11g r2? Also, there seems to be a typical perception that 11g R1 has "lot of bugs". Is that a statement out of proportion? Thanks, R