WS20000040 / WS20000050 Workflow Travel Management

Van der Burg, Jeroen JA SI-PSTP-L Jeroen.A.vanderBurg at IS.shell.com
Wed Aug 30 15:27:08 EDT 2000


Yves,
 
Sounds like you have to create your own object method here, this is actually
quite simple, but involves the usual amount of copying.
 
Make a copy of the BUS2089 (say, ZBUS2089) and delegate this to the BUS2089.
 
 
 
Within your copied object, copy the method to another method (what about a
ZChangeInteractive), the function group which contains the function module
you want to adapt to your requirements (in your case this is HRTR); forget
about the other function modules within the group but copy the one you want
to use (how about a ZTripChangeInteractive).
 
Within this function module then change the statement which sets the
transaction:
----------
if ptrv_head-schem ne 'SP'.
* normal trip
    starting_screen = '1000'.
    filter_screen   = '1100'.
    travel_transaction = 'PR05'.
  else.
* weekly report
    starting_screen = '1020'.
    filter_screen   = '1120'.
    travel_transaction = 'PR04'.
endif.
-------------
 
This should actually be pointing to the transactions you mentioned based on
the trip status. This would probably mean you want to include the trip
status into the import parameters of your function module; the import and
export parameters of your method and the export parameters of your workflow
task to give you the option to manage this through your actual workflow
definition.
 
 
Good luck!
 
 
 
Regards,
 
 
Jeroen van der Burg
CMG SAP Competence centre
Rotterdam, The Netherlands
 
 
-----Original Message-----
From: Yves Peeters [mailto:yves.peeters at cmg.be]
Sent: Wednesday, August 30, 2000 3:25 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: WS20000040 / WS20000050 Workflow Travel Management
Importance: High
 
 
Hello everybody
 
We have a problem with the workflow template described above.
 
At the moment (release 4.6C) these templates make use of BUS2089.
The following method is defined in this object.
 
EmployeeTrip.ChangeInteractive => function trip_change_interactive
 
This function uses the travel transactions PR05 and PR04 for changing a trip
(request).
We want to use different transactions depending on the the trip status (trip
request or trip).
 
Same problem for function trip_display_interactive
 
Has anybody ever done this or knows how to do so ?
Also does anybody know why SAP doesn't use the new transaction TRIP instead
of the old transaction PR05 ?
 
Any help would be appreciated ?
 
 
Thanks!
 
 
 
Yves
 


More information about the SAP-WUG mailing list