cancel
Showing results for 
Search instead for 
Did you mean: 

How to search .java files by Search tool in NWDS or any other tool?

Former Member
0 Kudos

Hi All,

I can easily search .JSP files by NWDS's Search tool, but I have a hard time to search Java files by this tool. Can anyone guide me how to search Java files which contain a specified string by using Search tool in NWDS? or any other tool?

Thanls. Jin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jin,

You can search Custom Java files with NWDS Search tool for specified string. But not standard Java files.

Suppose you have extend z_userR3 base on UserR3 and contains string some help then you can click on search in NWDS

Then click on File it will open Search box with 4 tag

1. File Search

2. Help Search

3. Java Search

4. Plug-in Search

Click on File Search tab and provide the text in Containing text input box and give java file name with wild characters like *.java

Select Workspace under Scope and hit search button. It will search string in your custom Java file. This method will not search string in Standard Java classes of SAP.

If you want to search in standard SAP java classes then you should know about what you are searching i.e. whether it is field, Method, Package, Constructor and Type select proper radio button under Search For box then tryo to select proper radio button under Limit To if you want to search everywhere then select All Occurrences. You should select Workspace under Scope.

Suppose nothing comes after selected Type then go for other option one by one Method, Field etc...

Expert people will give you more information.

I hope this will help you.

Regards.

eCommerce Developer

Former Member
0 Kudos

Thanks eCommerce Developer for your help.

This search is a continue of

I want to search all sap class/methods which call (get) setFaxNumber, to help to findout how sap to save and retrieve this data.

Could you please guide me for this search?

Thanks, Jin

Former Member
0 Kudos

Hi Jin,

Ecommerce expert has already given the detailed anwser on how to search so I can only tell

you few of the java files where you can find setFaxNumber() method, below are the file names :

com.sap.isa.businessobject.Address

com.sap.isa.dealerlocator.businessobject.DealerLocator

com.sap.isa.backend.crm.WrapperCrmIsa

com.sap.isa.backend.r3base.rfc.RFCWrapperPreBase

com.sap.isa.businesspartner.backend.r3.rfc.RFCWrapperBusinessPartnerR3

com.sap.isa.user.backend.r3.rfc.RFCWrapperUserBaseR3

com.sap.isa.businesspartner.backend.crm.BusinessPartnerCRM

com.sap.isa.user.backend.crm.IsaUserBaseCRM

com.sap.isa.user.backend.UserBaseUME

com.sap.isa.isacore.AddressFormularBase

com.sap.isa.backend.crm.SalesDocumentStatusCRM

Hope this helps you.

One more thing I would also like to stress on is that you wont find sap standard java files in your NWDS, you can find the custom your written java files only.For standard you will find .class files.But if you want the standard java files than go to your server deployment path for your standard application which would be something like D:\usr\sap\SBX\DVEBMGS00\j2ee\cluster\server0\apps\sap.com\crmb2b ...If you click on crmb2b folder there you will find src.zip. This src.zip is the standard java source code for all the java classes, here you will find all the standard .java files.

Regarding your ship to new field problem, for that I wil also try by writing code.Will let you know if any success.

Regards,

Arshi

Edited by: Arshi Arshi on Sep 10, 2009 12:45 PM

Former Member
0 Kudos

Thanks Shanto for giving me that usefull method.

Hi Arshi,

Thank you so much again for your help. That's what I'm looking for. Before I close this thread, could you please give me the steps for you to find these .class?

here is my steps:

select crmhomeshrextsap.com -> Search -> Java -> enter fax in Search string and decheck case sensitive, Search for Method, Limit to - I tried all top 4 options

but I get nothing.

Thanks, Jin

Former Member
0 Kudos

Hi Jin,

I also did the search like below and got the above results

Click on Search(ctrl+H) --> Java Search --> Search For(check Method radio button) --> Limit To(All Occurences) --> Scope --> Workspace --> Now click on Search button

Just have a recheck on your setting like this

Click on Window --> Preferences --> Enlarge Workbench --> Click on Search --> Select None for Default perspective for the search view

Please let us know if you are still not able to search these files.

Regards,

Arshi

Former Member
0 Kudos

Thank you so much Arshi for such detail steps.

I did exactly the same steps, but nothing found (maybe my NWDS has a bug?). I just closed this thread for now.

Big Thanks to eCommerce Developer for all your help and such detail steps. I wish I could give you a 10, next time for sure (sorry).

Thank you alll again, Jin

Answers (1)

Answers (1)

Former Member
0 Kudos

Jin,

To search .java files you can use cntrlshiftT

Thanks and Regards

shanto aloor