SAP ABAP IMG Activity SIMG_OHR450 (Screen Modifications: Adjustment of "User Data" Screen)
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 SIMG_OHR450 Screen Modifications: Adjustment of "User Data" Screen  
Transaction Code S_ALN_01000857   (empty) 
Created on 20020131    
Customizing Attributes SIMG_OHR450   Screen Modifications: Adjustment of "User Data" Screen 
Customizing Activity    
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name SIMG_OHR450    

Use

The screen User Data (screen 9999) is permanently anchored to the menu in the Travel Expense Manager, but you must still activate it using transaction FITVFELD. After it has been activated, you can find it in the entry transactions Travel Manager and Travel Expense Manager under Extras -> User Data. It is designed for entering personal default data. For example, you can use it for the following additional functions:

  • Entering the mileage at the start of a trip
  • Entering the departure location

This data must be defined in advance in structure PTK99. Structure PTK99 in turn defines the USER table in which the data is stored on the database.

Screen 9999 is not for programming your own call screen 9999 or set screen 9999 calls.

This user exit cannot be used with the SAP EP interface.

Requirements

Standard settings

Activities

The activities are described here in the form of an example:
You want to enter the mileage at the start of a trip.
Table USER must already have been defined (structure PTK99) in the data description for a trip (cluster TE). Reading and writing this table has also been configured.

You only need to complete the following activities:

  1. Choose Tools -> ABAP Workbench -> Development -> Dictionary (transaction SE11).
    1. Create the domain ZZ_KM with type DEC and length 6, and activate it.
    2. Create the data element ZZ_KM with domain ZZ_KM, and activate it.
    3. Extend the structure PTK99 to include field ZZ_KM from domain ZZ_KM, and activate it.
  2. Choose Tools -> ABAP Workbench -> Development -> Interface -> Screen Painter (transaction SE51).
    1. Bring up program SAPMP56T and screen 9999.
    2. In the Layout Editor, create the entry field PTK99-ZZ_KM with the field description (such as Mileage).
    3. In the screen painter in the flow logic, fill the PBO module D9999O_INIT;
      Data transfer table User (TE cluster) -> PTK99 (screen field):

      module d9999o_init output.
      ...
      *{ INSERT
      read table user index 1.
      ptk99 = user.

      set cursor field 'PTK99-ZZ_KM'.
      *} INSERT
      endmodule.
    4. In the screen painter in the flow logic, fill the PAI module D9999I_INIT;
      Data transfer PTK99 (screen field) -> table USER (TE cluster):

      module d9999o_init output.
      *{ INSERT
      user = ptk99.
      if user[] is initial.
      insert user index 1.
      else.
      modify user index 1.
      endif.
      *} INSERT
    5. Activate the user data for all required trip schemas (transaction FITVFELD) and define the description for your user data. The transaction now appears on the User Data tab with the contents you defined.

Further Notes

For more information on modifications, see the SAP Library under Basis -> ABAP Workbench -> BC - Changing the SAP Standard -> Modifications.

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG SIMG_OHR450 0 HLA0006755 Travel Expenses 
Maintenance Objects
Maintenance object type    
History
Last changed by/on SAP  20020211 
SAP Release Created in 110