Hierarchy
⤷ FI-LOC (Application Component) Localization
⤷ ID-FI-TR (Package) Turkey
IMG Activity
ID | RFIDTRWEKO_BADI_001 | Dynamic Selections in Bill of Exchange List |
Transaction Code | S_P6B_12000007 | (empty) |
Created on | 20020704 | |
Customizing Attributes | FIBL_BADI_THTR | Add-Ins for Bills of Exchange in Thailand and Turkey |
Customizing Activity | RFIDTRWEKO_BADI_001 | Add-In: Dynamic Selections in Bill of Exchange List |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | RFIDTRWEKO_BADI_001 |
Use
This Business Add-In enables you to change the selection criteria that the user enters in the dynamic selections in the Bill of Exchange List.
This is particularly useful for improving performance when you look for a bill of exchange (or check) using just the bill of exchange number. For more information, see the example below.
Requirements
Standard settings
In the standard system, the Add-In is not activated. It is not filter-dependent and it is not reusable.
Activities
After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.
If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:
- In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.
The screen for creating BAdI implementations is now displayed.
- Enter a short text for the implementation in the Short text for implementation field.
- From the tab index, choose Interface.
The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it.
- Save your entries, and assign the implementation to a development class.
- Place the cursor on the method, and double-click to enter method processing.
- Enter the code for the implementation between the statements
method <Interface name> ~ <Name of method>
andendmethod
. - Save and implement your code. Return to the Edit Implementation screen.
- Save the entries on the Edit Implementation screen.
Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point.
- Choose Activate
The code you stored in the method will be run when the application program is executed.
Example
Assume that a clerk enters a bill of exchange in the system. Two weeks later, one of your accountants inquires about the bill, so you look it up in the system. To do so, you run the report and, on the selection screen, you enter the selection criteria: the company code, the fiscal year, and the bill of exchange number
When you execute the report, the system requires a long time to find the bill, because the bill of exchange number is not a key field in the table where the bills of exchange are stored, BSED.
You can improve performance as follows:
- Create a copy of table BSED called ZBSED, and, in the copy, define the bill of exchange number as a key field.
- Modify the system so that whenever a clerk enters a bill of exchange receivable, the system saves it in table BSED and in ZBSED.
- Implement this Add-In, following the instructions under "Activities" above and using the sample code (see below), so that when you run the report:
- The report exports the bill of exchange number to the Add-In implementation.
- The implementation checks the table ZBSED to find out the document number of the bill of exchange.
- The implementation exports the document number to the report.
- The report uses the document number as an additional selection criterion.
- Since the document number is a key field in the table BSED, the performance improves considerably.
If you use the sample code, change all references to table BSED to ZBSED. To display the sample code, choose Goto -> Sample Code -> Display.
See also
Methods
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | I | Valid for countries specified |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20020715 |
SAP Release Created in | 470 |