The application developer reserves specific function codes for customers when defining a Business Add-In and assigns them in the Menu Painter in the appropriate menu lists. The application developer must also ensure that these menu options are queried in the application program and that the corresponding add-in method is also called. Customers can take advantage of menu enhancements by creating a new implementation, choosing a text for the menu option, and then programming the method used to determine what action is performed when the menu enhancement is called.
3.
13. 1. Create the definition of an add-in and define its interface.
14. 2. Choose the FCodes tab.
15. 3. Enter the name of your program, the function code, and a description.
16 4. Call the Menu Painter or double-click on the program name or function code to navigate to user interface maintenance in the Menu Painter. Enter the function code in the appropriate menu list. If you have accessed the Menu Painter directly during add-in definition, you can call the menu lists by choosing Goto ® Object Lists ® Menu Lists.
Calling a Menu Enhancement from the Application Program
The application program should look like this:
(…)
case fcode.
when 'SAP'.
(…)
when '+CUS'
call method …
Implementing a Menu Enhancement
To create the implementation of a menu enhancement, proceed as follows:
4. eine Implementierung an und wählen Sie den Registerindex Fcodes
1. Create an implementation and choose the FCodes tab. All data adopted from your Business Add-In's definition is displayed here. You can make entries for the implementation on the right. You can also double-click the first input field. The following dialog box appears:
Here you may enter a text for your function code, the name of an icon, a text for the icon, and a short description.
The actions that you want the system to perform after the pushbutton is chosen must be programmed in the appropriate method, either manually or using a default source code that has been provided for this purpose. Menu enhancements only become visible after the implementation has been activated and the application program that calls the Business Add-In has been executed.
No comments:
Post a Comment