Home > SAP software/management Tips > SAP ABAP/Java developer tips > How to find a piece of SAP ABAP code without debugging
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

How to find a piece of SAP ABAP code without debugging


Matthew Billingham
Rating: -3.71- (out of 5)

Sometimes, when you're writing a program, you come across a requirement, and you know there must be something already in the system to deal with it. But how do you find that code?

For example, say you need to read from the clipboard into your ABAP program. You know that this is possible. After all, the option is available with select-options. But how can you find the code that does this – and then use it for your own purpose?

Obviously, one method is to find the code by debugging the program. But debugging can be a painful process. If the code you're looking for has been embedded in a system program, you will probably have to go through hundreds of lines of very low-level code.

Are there any other options aside from debugging? Two spring to mind:

It's ...


RELATED CONTENT
SAP ABAP/Java developer tips
How to do additional dialog processing after SAP COMMIT WORK statement
How to read an SAP transaction in an ABAP code
How to provide an SAP R/3 4.5B application server with a Web service interface
How to find owners and transports of deleted ABAP programs
Fixing a common OPEN_FORM and START_FORM error in SAPscript
Select Text fields: Case-insensitive
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes
Accessing private attributes in ABAP Objects
Improving performance with ABAP Objects in SAP Workflow

SAP ABAP
How to write an SAP ABAP program to read source code and create a new SAP ABAP function module
Using SAP change documents to make change logs visible
SAP talent management FAQ: Fresh answers to frequently asked questions
How to do additional dialog processing after SAP COMMIT WORK statement
SAP TechEd Demo Jam 2009: Winners use beer keg in demo
How to implement SAP BADIs
Tips on SAP ABAP
Using subclasses to develop applications that run on different releases of SAP
Configuring SAP EDI for sales orders
How to correct an SAP ABAP dump with an oversize condition
SAP ABAP Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
ABAP  (SearchSAP.com)
ABAP Objects  (SearchSAP.com)
ABAP Workbench  (SearchSAP.com)
BAPI  (SearchSAP.com)
CATT  (SearchSAP.com)
R/3 Repository  (SearchSAP.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


really easy to search for an appropriate Function Module. Just go to transaction code SE37, hit the Find button and start playing with combinations of Function Module names and descriptions.

In the past, with early SAP stuff, before the SAP programmers cottoned to the layer model, you could find a Function Module that did what you want, but it would be wrapped up in all sort of screen controls and difficult to get at. If this is still the case, you might just have to cut and paste the appropriate code into your own Function Module.

I've searched transaction SE37 for a Function Module matching *clipboard* but haven't found anything usable. So I'll try with classes.

Things should be easier now, since classes are much more likely to be well componentized. The hard part is finding an appropriate method. You can search the repository for classes, using transaction code SE24, but that's usually too blunt an instrument. What I do (there may be a better way) is simply look in table SEOCOMPO via SE16. Here, I can enter a partial method name, and find all the methods and classes that correspond.

I've tried *clipboard* as method name, and – there it is: CL_GUI_FRONTEND_SERVICES=>clipboard_import.

That'll do nicely!

About the creator of this tip: Matthew Billingham is SearchSAP.com's application development expert. He has worked for companies such as Eurotunnel and Vodafone, served as development manager for Coats PLc, and as head of application development with Novartis Pharma in Switzerland, managing the development side of a global SAP rollout. He now runs his own SAP consultancy, providing guidance and designing solutions (particularly for intractable problems) for third parties. His expertise is in program design, troubleshooting and knowing just how SAP works; his clients describe him as "Consultant for everything." He is co-founder of SecureBI, delivering innovative software solutions in the SAP security space.

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2010, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts