Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Beginners Simple Enhancement

for SE38

Applies to:
SAP ECC 6.0 (Release 700, SP 12). For more information, visit the ABAP Homepage.

Summary
In this article we will learn the simple enhancement concept of the standard transaction SE38.We will be
adding new menu-option for the transaction SE38 and add functionality to the menu-option which was
created.

Author(s): Jayashree Thiyagarajan


Company: Applexus Software Solutions Pvt. Ltd.
Created on: 23 December 2010

Author Bio
Jayashree Thiyagarajan is working as SAP Development Consultant with Applexus
Software Solutions (P) Ltd. She has completed her Bachelor of Engineering in Electrical and
Electronics Engineering.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Events in Reports

Table of Contents
Why Enhancements? ....................................................................................................................................3
Steps to be Followed…………………………………………………………………………………....…………....3
Project Creation………………...………………………………………………………………………………….....3
Assigning Enhancement and Components………………………………………………………………………...4
Finding the Package…………………………………………………………………………………...…….……….5
Menu Exit Creation………………………………………………………………………………………………...…8
Function Exit Creation………………………………………………………………………………………………..9
Result........................................................................................................................................................... 12
Related Content.......................................................................................................................................... 15
Copyright..................................................................................................................................................... 16

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Events in Reports

Why Enhancements?
The Standard SAP provides the basic functionality for the end user. But, if there is any need to have any
additional functionality in the standard transactions, SAP itself provides it in the concept of Enhancement.

Steps to be Followed
• Create a Project in CMOD Transaction
• Select the proper Enhancement
• Create the Menu option using Menu Exit
• Choose corresponding Function Exit for the Menu Exit
• Write the appropriate functionality in the exit include and activate the project

Project Creation

Go to ‘CMOD’ transaction and create a project.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Events in Reports

Give proper short text for the Project and save it in your package.

Assigning Enhancement and Components


Click on the ‘ENHANCEMENT ASSIGNMENTS’ tab and press F4 on the Enhancement input field.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
Events in Reports

The below screen appears. Click on the ‘INFORMATION SYSTEM’ tab.

Finding the Package

Now to find the package of the program, which displays source code from SE38, follow the below steps.
Go to Utilities->Status, and double click on the program field.(Using any of the standard program)

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
Events in Reports

Then Go to->Attributes, You will find the ‘SEDI’ in the package field

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Events in Reports

Provide the package name as ‘SEDI’ and press ‘ENTER’

From the below screen, Select the exit ‘SEUED001’.

Save it and click on the ‘COMPONENTS’ tab.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Events in Reports

Menu Exit Creation


From the menu exit provided, click on ‘SAPLS38E’ and rename the function text as ‘Custom-Menu Exit’ and
press ‘COPY’.

Till now we have created the menu option that appears in the menu-bar drop down list. To add the action to
be performed, when that particular menu option is triggered, we need to create the Function Module Exit for
this menu option.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Events in Reports

Function Exit Creation


Choose the Function Exit, ‘EXIT_SAPLLOCAL_EDT1_002’ for the corresponding Menu Exit ‘SAPLS38E’.
Finding the function exit for the particular menu exit is a trial and error method. Click on the various function
exit available and find the one which suits for the menu exit selected.

Create include ‘ZXSEUU25’ by Double click it. Press ‘YES’ and save it.

Write the Code in the include for the functionality that should happen when the menu option is triggered.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
Events in Reports

Activate the include and come back to activate the components.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Events in Reports

Come back to the initial screen and activate the project

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11
Events in Reports

Result
Go to ‘SE38’ Transaction and create a new program or take an existing program and open it in
change/display mode.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 12
Events in Reports

Select ‘UTILITIES’ from the standard menu provided. You can see the ‘Custom-Menu Exit’ menu option
below the menu option ‘VERSIONS’, which was created before.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 13
Events in Reports

When the ‘Custom-Menu Exit’ menu option is triggered, it will take you to another transaction ‘SE93’.

Note: if you do not need the enhancement further, then goto ‘CMOD’ transaction, give your project
name and deactivate the project created.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 14
Events in Reports

Related Content
For more information, visit the below references.
Customer Exit Overview
Exit Creation

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 15
Events in Reports

Copyright
© Copyright 2010 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the
express permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components
of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z,
System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390,
OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+,
POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System
Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM
Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of
Adobe Systems Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or
registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web
Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented
and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products
and services mentioned herein as well as their respective logos are trademarks or registered trademarks of
SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web
Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and
in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data
contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its
affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any
kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only
warranties for SAP Group products and services are those that are set forth in the express warranty
statements accompanying such products and services, if any. Nothing herein should be construed as
constituting an additional warranty.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 16

You might also like