Ansicht
Dokumentation

OFTV_MOD_BADI_017 - BAdI: Processing of Bar Codes

OFTV_MOD_BADI_017 - BAdI: Processing of Bar Codes

TXBHW - Original Tax Base Amount in Local Currency   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Travel Management (FI-TV) component.

You can implement this BAdI if you utilize an optical archiving system to assign receipts to expense reports using bar codes.

This BAdI enables you to control the following functions:

  • Automatic storage of an internally generated bar code when saving a trip (regardless of user interface used). This enables the direct assignment of optical receipts to expense reports in the system as soon as receipts are scanned with the identical bar code.
  • Manual entry of an externally generated bar code in a dialog box in the Web Dynpro ABAP application Create Expense Report when saving a trip. After the save, the system displays the entered bar codes in the expense report under the scanned receipts.

You use the BAdI to determine whether users are required to enter external bar codes for receipts in the expense report. If you do not use external bar codes, you use this BAdI to create internal bar codes.

The system executes this BAdI when a user saves the expense report in the review step of the Web Dynpro ABAP application Create Expense Report.

The BAdI contains the following methods:

  • GET_BARCODE
You can use this method to generate a bar code, for example, based on the personnel number and trip number. You can freely define the structure of the bar code. The system saves the bar code in the reference tables of the optical archive. When scanning paper receipts with the identical bar code, the system checks the reference table as to whether an expense report with this bar code exists. If this is the case, the system automatically attaches the scanned receipts to the expense report. Afterwards users can view them in the expense report.
  • GET_BARCODE_CONFIGURATION
You use this method to determine whether the system shows the dialog for the manual entry of a bar code in the Web Dynpro ABAP application Create Expense Report, and whether users are required to make an entry. With this method you also can configure the help text for the dialog and decide which document type is displayed by default. You also can control the conditions under which the dialog for entering the bar code manually should appear; for example, only when an expense report contains certain receipt types or amounts.
This method has no effect on the dialog and the menu items of the Optical Archive within the transactions of Travel Management in SAP GUI.

The Business Function Travel Management 2 (FIN_TRAVEL_2) is activated.

The optical archive is activated, in other words, the entry OAA has the value 1 in feature TRVPA. If the Business Function FIN_TRAVEL_2 is activated, the system makes this setting automatically.

In the standard system, there is no activated BAdI implementation.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

This BAdI uses the interface PTRM_BARCODE_INTERFACE. For more information, display the interface in the Class Builder.






Fill RESBD Structure from EBP Component Structure   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4294 Date: 20240523 Time: 220143     sap01-206 ( 155 ms )