In order to create an implementation for the string conversion example, the add-in (in this case,the interface's method) needs to be filled with logic that converts the string. This logic will be run through every time the add-in is called from the application program.
To create an implementation, proceed as follows:
1. Choose ABAP Workbench ® Utilities ® Business Add-Ins (transaction SE19) from the SAP menu or double-click on the corresponding activity in the Implementation Guide.
2. Enter a name for the implementation and choose Create.
3. Enter the name of the add-in you want to create an implementation for in the dialog box that appears.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaIEoY8sKog06Z1zd4ie58p4b3eg0YY1kbtDMLOHYPV76xfAuIJPCDPJi_INee1QY6Seapy-7tYrEckwrxWsFEZTBYxswssN-7KjODZLo-U2ATiJIi165JJDZQ-iIGe_xPDitBQ48khek/s320/12.jpg)
5. Choose the Interface tab.
6. Choose ABAP Code as the implementation type.
Besides ABAP Code, there is also the Formula option. If you choose Formula, the content of a method is determined using the Formula Builder. For more information on this, see Implementing Methods Using the Formula Builder.
7. Navigate to the Class Builder by double-clicking the method. You must first enter a package before the Class Builder is displayed.
8. Insert the desired source code for the implementation between the method if_ex_businessaddin~method. and endmethod. statements automatically provided to you by the system.
Enter the statement translate parameter to upper case. for the string conversion example.
9. Save your entries and return to the Change Implementation screen.
10. Choose Activate. You may now use this implementation when the application program is executed.
Numerous implementations may exist for a Business Add-In that cannot be used on a multiple basis. However, only one implementation can be active for these kinds of Business Add-Ins at any one time.
What is also important is that you must declare the instance generation of the implementing class (Attributes tab) as public and not as private or even abstract. If you do this, the system will return short dumps at runtime.
1 comment:
Excellent Online Resource for SAP EP and SAP Web Dynpro ABAP. Visit Learn SAP Online for Free
SAP EP - Standard Portal Services
Portal Eventing and Navigation
Portal Look and Feel - Branding the Portal
How to Develop Portal Applications
SAP EP-Developing portal content and assigning permissions
SAP EP-Role maintenance
SAP EP-How to make Enterprise Portal highly available
SAP Material Management Introduction
SAP EP-J2EE architechture
And Many More...
Basics of Web Dynpro ABAP
ABAP Data Types and Objects
ABAP Statements
WD4A - Topics to be covered in the upcoming posts
WD4A - Introduction
WDA - SAP Logon Procedures
WD4A-Format the Values appearing on value Axis of Business Graphic
WD4A-Navigate from one view to another and back to previous view
WD4A - How to Calculate next 12 months from current month in web dynpro ABAP
WD4A - Validate Inputs in a web dynpro ABAP Application
And Many More...
Post a Comment