Skip to Content
avatar image
Former Member

Mode of Travel option while creating TRIP

Hello Gurus,

Is there any configuration or enhancement to document a mode of Travel for eg. Flight,Own car, Train, Bus... in TRIP.

Process :

When the user goes on a trip he need to fill the TRIP ( Travel Request ) and in that same screen there should be a mode of travel ( how is he taking the trip ) documentation.

Client doesn't have Travel Planning, their requirement is restricted to creating the TRIP and the mode he is traveling and then later on after he completes his trip he needs to fill the Expenses in PR05.

Any assistance on this would be highly appreciable.

Regards,

BLITZZ

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 12, 2011 at 11:42 AM

    Hi,

    You can Use user data screen, but please note that its a MODIFICATION

    Following is the help available on-line.

    Regards,

    Muhammad Umer

    ____________________________________________________________________

    Screen Modifications: Adjustment of "User Data" Screen

    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.

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

    a) Create the domain ZZ_KM with type DEC and length 6, and activate it.

    b) Create the data element ZZ_KM with domain ZZ_KM, and activate it.

    c) 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).

    a) Bring up program SAPMP56T and screen 9999.

    b) In the Layout Editor, create the entry field PTK99-ZZ_KM with the field description (such as Mileage).

    c) 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.

    d) 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

    e) 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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 12, 2011 at 11:43 AM

    Hi,

    you add the column "USER" and program your own coding for this.

    Regards,

    Raynard

    Add comment
    10|10000 characters needed characters exceeded