SAP ABAP IMG Activity RFIDTRBOE2_BADI_001 (Dynamic Selections in Bill of Exchange Reversals Program)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI-LOC (Application Component) Localization
     ID-FI-TR (Package) Turkey
IMG Activity
ID RFIDTRBOE2_BADI_001 Dynamic Selections in Bill of Exchange Reversals Program  
Transaction Code S_P6B_12000016   (empty) 
Created on 20020715    
Customizing Attributes FIBL_BADI_THTR   Add-Ins for Bills of Exchange in Thailand and Turkey 
Customizing Activity RFIDTRBOE2_BADI_001   Add-In: Dynamic Selections in Bill of Exchange Reversals Program 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RFIDTRBOE2_BADI_001    

Use

This Business Add-In enables you to change the selection criteria that the user enters in the dynamic selections in the Reversal of Bill of Exchange Transactions program.

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:

  1. 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.

  2. Enter a short text for the implementation in the Short text for implementation field.
  3. 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.

  4. Save your entries, and assign the implementation to a development class.
  5. Place the cursor on the method, and double-click to enter method processing.
  6. Enter the code for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
  7. Save and implement your code. Return to the Edit Implementation screen.
  8. 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.

  9. 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 program 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 program, 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:

  1. Create a copy of table BSED called ZBSED, and, in the copy, define the bill of exchange number as a key field.
  2. Modify the system so that whenever a clerk enters a bill of exchange receivable, the system saves it in table BSED and in ZBSED.
  3. Implement this Add-In, following the instructions under "Activities" above and using the sample code (see below), so that when you run the program:
    1. The program exports the bill of exchange number to the Add-In implementation.
    2. The implementation checks the table ZBSED to find out the document number of the bill of exchange.
    3. The implementation exports the document number to the program.
    4. The program uses the document number as an additional selection criterion.
    5. 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

Change Dynamic Selections

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