|Home • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Add new parameters and enhance source code of standard Function Module
By Shweta Chavan, Hitachi Consulting
times the existing functionality in standard function module is not sufficient
for a developer. In such cases, to little more functionality, we copy the standard FM and make the ‘Z’ custom copy of it. Or
else create the custom new FM for extra functionality and call multiple function
SAP’s new enhancement Framework, SAP has provided this new enhancement
technique which allow user to enhance the standard function module. So when
there are small changes required we can enhance the function module itself. Once
we made changes in standard FM, new changes would be available to all objects in
article will elaborate you the way to enhance the standard function module. Here
we are taking example of Function module LAST_WEEK. We are enhancing the
parameters in EXPORT & TABLES with source code enhancement. We will also be
enhancing the global data to declare some new variables.
let’s see the original function module, its parameters & output.
Import & Export
Original Function module
now enhance this function module. We will add one more parameter in Export which
will give no of holidays in that week. We will also add table which hold details
on holidays. Once we enhance this function module LAST_WEEK it will start giving
more appropriate details of last week.
Steps to Enhance Interface
to Export parameter screen select menu Function Moduleà
pop-up will come to Create Enhancement Implementation. Give the details to
create custom implementation and click on
, give the package
you can add required parameter in editable rows.
also need to add new table. So we will also add required table under tables tab.
the enhancement and activate it.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards