SAP ABAP IMG Activity OFTV_MOD_USR_EX_04 (User-Exit: Include Rate Data in Trip Provision Variant)
Hierarchy
EA-HRGXX (Software Component) Sub component EA-HRGXX of EA-HR
   FI-TV-COS (Application Component) Travel Expenses
     PTRC (Package) Customizing for Travel Management
IMG Activity
ID OFTV_MOD_USR_EX_04 User-Exit: Include Rate Data in Trip Provision Variant  
Transaction Code S_ALN_01000153   (empty) 
Created on 20011029    
Customizing Attributes OFTV_MOD_USR_EX_01   User Exit: Delete/Reorganize Trip Statistics 
Customizing Activity OFTV_MOD_USR_EX_04   User Exist: Set Trip Provision Variant 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OFTV_MOD_USR_EX_04    

Use

In this step you create an enhancement for Travel Expense Accounting.

Enhancement name: RPRCST01.

The customer exits for enhancement RPRCST01 in Travel Management are intended for the following scenario: Your Travel Management and HR Systems are run in separate systems however you still require the fields pay scale type, pay scale area, or pay scale group to set a trip provision variant using the characteristic TRVCT.

As the replication of HR master data does not distribute the Infotype 0008 Basic Pay, it is necessary to read the fields pay scale type, pay scale area, and pay scale group, stored in infotype 0008 remotely from the HR System.

To do this, you need to build the enhancement component EXIT_SAPMP56T_001 (if you use period settlement with a trip on Release 4.5A, you also need to build EXIT_SAPMP56P_001) using transaction CMOD. Enter include ZXTRVU01 in the source text for the enhancement EXIT_SAPMP56T_001 (or include ZXTRVU02 for EXIT_SAPMP56P_001) and call the function module HR_GET_TARIF, provided for you by HR. This will read and supply you with the fields pay scale type, pay scale area, pay scale group, and pay scale level, as stored in infotype P0008 in your HR system.

Activities

  1. Create your enhancement. To do this, either create a new project or use an existing one.

    Modify the source code for a transaction delivered by SAP by adding the elements you need. SAP provides you with the necessary function modules with short text, interface, and documentation to be able to do this. A sample source code created by SAP may exist for user exits which can be copied (and changed) if required.

  2. Activate the project.

    This allows the ABAP source code to run. Enhancements will not have any effect beforehand.

Further notes

In contrast to modifications, enhancements can generally be transferred between Releases since they are carried out within a name range reserved for the customer rather than in the SAP original.

For more information about creating enhancements, see the SAP Library BC - Changing the SAP Standard.

Every enhancement is documented. To call up the documentation, choose Utilities -> Display req.docu from the project management screen for SAP enhancements.

Requirements

Standard settings

Activities

Example

HR master data is delivered to your Travel Management System, however the Infotype Basic Pay is not normally supplied. If the fields in this infotype are required to determine the trip provision variant using characteristic TRVCT, the Basic Pay Infotype must be read remotely into this Customer Exit.

To do this, you need to use function module HR_GET_TARIF.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
CMOD L - Logical transport object CMOD  
History
Last changed by/on SAP  20020131 
SAP Release Created in 110