How to find deprecated code
Hi there
I've just been handed over a great big project that was coded a couple of years ago and have just recompiled most of it - problem is that the compiler keeps telling me that the code has deprecated stuff in it but it won't tell me WHERE! (I'm using netbeans 4.1, Java 5.0)
Does anyone know of a tool that can pick out deprecated code or wether netbeans can do this please?
Cheers
JJ
C:\temp>javac someApplet.java
Note: someApplet.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
C:\temp>javac -Xlint:deprecation someApplet.java
someApplet.java:9: warning: [deprecation] stop() in java.lang.Thread has been de
precated
Thread.currentThread().stop();
^
1 warning
Similar Messages
-
How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALVHi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi -
How to find Transaction code from Report/program name ?
Dear all,
How to find Transaction code if i know Report/program name ?Hi,
In se 38 when u open ur program,in the application toolbar u have a button beside the where-used list button as display object list.on clicking this button,a window will be opened at the left most corner for repository browser,in this u can find any tranasctions,fileds,screens,dictionary structures defined for the program.
if any transaction is created for the program u can find it under the transaction folder.
revert back for further queries.
Regards,
Sravanthi -
How to find acount code in R12
Hi,
How to find account code details in R12? Which table contains account code details?
ThanksThanks Sanjay, I would like to know account code and their name and active status also. do you think there is another table also.
-
How to find bar codes and mails to send clients in smartforms
HI friends,
How to find bar codes in smartforms and also how to send mail to the client. I have developed one object in smartforms, but i don't know how to send maill to the client. Pls help me........................
Thanks in Advance.
Saradhi.Hi!
Here is the code to send the Smartform to mail as PDF attachment.
*& Report ZTEST_PDF_MAIL
REPORT ZTEST_PDF_MAIL.
Internal Table declarations
DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
WA_OBJHEAD TYPE SOLI_TAB,
W_CTRLOP TYPE SSFCTRLOP,
W_COMPOP TYPE SSFCOMPOP,
W_RETURN TYPE SSFCRESCL,
WA_DOC_CHNG TYPE SODOCCHGI1,
W_DATA TYPE SODOCCHGI1,
WA_BUFFER TYPE STRING, "To convert from 132 to 255
Variables declarations
V_FORM_NAME TYPE RS38L_FNAM,
V_LEN_IN LIKE SOOD-OBJLEN,
V_LEN_OUT LIKE SOOD-OBJLEN,
V_LEN_OUTN TYPE I,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZTEST'
IMPORTING
FM_NAME = V_FORM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 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.
W_CTRLOP-GETOTF = 'X'.
W_CTRLOP-NO_DIALOG = 'X'.
W_COMPOP-TDNOPREV = 'X'.
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = W_CTRLOP
OUTPUT_OPTIONS = W_COMPOP
USER_SETTINGS = 'X'
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
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.
I_OTF[] = W_RETURN-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = V_LEN_IN
TABLES
OTF = I_OTF
LINES = I_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
ENDIF.
LOOP AT I_TLINE.
TRANSLATE I_TLINE USING '~'.
CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
I_RECORD = WA_BUFFER.
APPEND I_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: I_RECLIST,
I_OBJTXT,
I_OBJBIN,
I_OBJPACK.
CLEAR WA_OBJHEAD.
I_OBJBIN[] = I_RECORD[].
Create Message Body Title and Description
I_OBJTXT = 'test with pdf-Attachment!'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'smartform'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR I_OBJPACK-TRANSF_BIN.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
I_OBJPACK-BODY_NUM = V_LINES_TXT.
I_OBJPACK-DOC_TYPE = 'RAW'.
APPEND I_OBJPACK.
Attachment (pdf-Attachment)
I_OBJPACK-TRANSF_BIN = 'X'.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
READ TABLE I_OBJBIN INDEX V_LINES_BIN.
I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
I_OBJPACK-BODY_NUM = V_LINES_BIN.
I_OBJPACK-DOC_TYPE = 'PDF'.
I_OBJPACK-OBJ_NAME = 'smart'.
I_OBJPACK-OBJ_DESCR = 'test'.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = '[email protected]'.
I_RECLIST-REC_TYPE = 'U'.
APPEND I_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
If you want to send some text as Body of the Mail then follow this once
when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
I_OBJPACK-TRANSF_BIN = ' '.
I_OBJPACK-HEAD_START = 000000000000001.
I_OBJPACK-HEAD_NUM = 000000000000001.
I_OBJPACK-BODY_START = 000000000000002
I_OBJPACK-BODY_NUM = 000000000000010.
I_OBJPACK-DOC_TYPE = 'RAW'.
append I_OBJPACK-.
by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
RECEIVERS = I_RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
Regards
Tamá -
HT4061 how to find puk code to iPad
how to find puk code to iPad
It is located on the card that held your sim, if you do not have that, you need to contact your carrier.
-
How to find company code using sales doc. No
Hi,
I need to print company code, how to find company code using sales doc no. I don't find it VBAK.
Cheers
SenthilDear Senthil
You can find in table VBAK itself - Field BUKRS_VF
thanks
G. Lakshmipathi -
How to find the code which processes idocs
I am looking for a descriptive short document which would ideally give me comlete picture in IDOC processing, transactions used etc.
E.g
My XI sends idocs to an RFC port of an ERP system. All I know is message type FIDCC2(found it in message mapping and under a partner profile ias imput parameter in transaction we20 for a partner profile with rfc destination of its own rfc destination i.e. PR1CLNT001)
. However in this example I do not find source code which process then this idoc(probably as it is original idoc)?
How to find the codeJan
You can check the documentation and source code of two reports
RBDAPP01 & RESOUT00 ( https://service.sap.com/sap/support/notes/1333417)
https://service.sap.com/sap/support/notes/527481
Few more IDoc related tcode, we05,bd87 etc...
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0087780d-81b0-2a10-eb82-86e1062f1a2d?overridelayout=true
Edited by: Anindya Bose on Aug 6, 2009 7:34 PM -
How to find T-Code assigned to ABAP Query...
Hi All,
I have ABAP query, Infoset and user grp with me.
Can anybody let me know, how to find the T-code assigned to this ABAp Query.
Regards,
SanjayHi.
In SQ01 tcode .. Check the Program attached to the SAP Query .
Then Goto Tcode SE93 and Open this Program.
There you can find the (Transactions)Tcodes created for this program.
Note: You can also check in TSTC table using the Program name. It a Tcode is already created for ur Query then it will be in TSTC.
REWARD IF HELPFUL, -
How to find T-code for a business object
Hi,
Can anyone help me how to find out the t-code associated with a business object.
or I want to know what are the business objects are available for a t-code
Thanks and regards,
VenkatHi,
check this link,
https://wiki.sdn.sap.com/wiki/display/ABAP/How%20to%20find%20an%20Event%20for%20any%20transaction%20for%20triggering%20of%20a%20workflow
it will help you.
Regards,
Vijay -
How to find asset codes of machine related idocs
can anyone explain me how to find the idocs related to these asset codes of machines
regards
shekergo to BAPI explorer.. and look for the particular application like in your case " Asset Accounting" -> Create Assets.. When You select the create Asset BAPI you can view if any messaget type is attached to this BAPI..
But this only one way and you can find only those message type wchich are processed thru .. BAPI's as the FM in Process code..
Some More Options;
If U cannot find then a F4 Search in WE30 Transaction..
Also, U can go to SE37 and look for IDOC* Search..
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/step%2bby%2bstep%2bprocedure%2bfor%2bcreation%2bof%2bidoc -
How to find hard code in Transformation?
Hi,
We are on a merge project and we want to find some hard code in Transformation to replace checking in each Transformation(start routine ,end routine),would anyone know how to find the hard code for examply through table or function module? thanksHi Kenny,
See if this is helpful for you.
http://wiki.sdn.sap.com/wiki/display/BI/ABAPprogramtofindBIlookupsandcodePatterns
Thanks and Regards
Subray Hegde -
How to find security code in debit card
Hi friends....plz help me to fill my account details to purchase from App Store....how to find the security code from my debit card???
If debit cards are accepted in your country, and if that particular card is accepted, then does it not have a security code on its signature strip
Card security code : http://support.apple.com/kb/HT3541 -
How to find T.Code in user Role
Dear Experts,
How to check transaction code maintained for user Role.
For Example I have one User X who have Authorization of T. Code J1ID
is it possible to find out T. Code J1ID is maintained in which role, User have No of Roles in his ID I dont want to search it by open each and every Role. is there any short way to search T. Code.
Thanks,
JAHi Javeed,
There are many ways to do it.
Go to SUIM>> Roles> Complex Selection Criteria>
Enter the User ID: USERX
In the Objects enter: S_TCODE (Press Enter)
Enter the Tcode as the field value of this object.
Then click on execute, you will get the list of roles assigned to this userX having above mentioned Tcode. Let me know if you need any more information on this. -
How to find T-CODES for maintenance view of custom tables?
Hi,
I have a list of custom tables for which maintenance view is generated. Also, many of them might have a T-Codes assigned to them.
I need to know how to find out these T-codes?
Is there some table which maintains these or a function module which can give the t-code name?
Help will be appreciated.
Thanks.
ShreyasHi shreyas,
1. one way is
2. goto se93
3. Press Ctrl F
4. Expand the search criteria (from button on toolbar)
5. In program name enter SAPMSVMA (This program is for sm30)
6. In transaction code enter Z* or Y*
regards,
amit m.
Maybe you are looking for
-
Class not found error while accessing a Web Service
Hi All, Im getting a Class not found error while doing method calls of a third party API. The required jars(axis.jar) are set in the weblogic 8.1 classpath and I tried putting those jars(axis.jar) in my application lib folder also, but dint help. Ple
-
UCCE 7.5 Silent Monitoring for only primary supervisor
Hi all, We currently activate Silent Monitoring for our UCCE platform 7.5 using BIB and CCM based deployment. I'd like to enable the feature for only the team primary supervisor. Meaning the same supervisor, if configured as secondary for a different
-
Database Expert - Table Links breaking
Hi, I have a set up tables and linked them... while i am designing the report i am adding new tables and command. When i do this the old links break and have to recreate all. Is there something to avoid this? Thanks
-
Do we get in SAP standard -Forms:25 & 26
Hi Gurus, do we get in SAP standard below mentioned Forms: Form 25 :The form of declaration for not holding immovable property in any Urban Agglomeration, specified under the Urban Land (Ceiling and Regulation) Act, 1976, exceeding 500 sq. meters. Fo
-
Stored Passwords in Acrobat X and Upgrading to Acrobat XI
I have numerous stored passwords in Acrobat X. I don't want to lose them if I upgrade to Acrobat Pro XI. Do the passwords automatically go along with a conversion and, if not, what can I do to copy the stored passwords from Acrobat X to Acrobat XI?