cancel
Showing results for 
Search instead for 
Did you mean: 

Enable to create a travel expense only in case the related travel request is already approved

0 Kudos

Hello SAP colleagues,

we have just migrated ESS Travel Management from Java WebDynpros to ABAP WebDynpros becasue of SAP Netweaver upgrade. In old Java solution was possible to create Travel expenses only if related travel request was already approved. Currently in ABAP WD based ESS we are able to create travel expense independently on travel request status. Could you please give us the solution how we can activate this functionality? We are not sure whether it is possible to activate via customizing or it needs to be done by code modification.

Thank you

P.s.: In below picture you can see, that it is possible to create travel expense for travel request which is still in opened (not approved) state.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello,

at the end of the day we have solved the problem by enhancing WD Component FITE_VC_PRESELECTION.

I've created own logic to Pre-exits ON_INIT and PREPARE_TRIP_LIST.

When user tries to create Travel Expense, related Travel Request is checked in table PTRV_PERIO for approval status. If travel request is not approved yet, error message is raised and further processing is blocked. I've had to use report_fatal_error_message method , otherwise the processing was not blocked.

It is a workaround, but issue is solved.

Thank you for your support Monika.

Kind regards,

Tomas

Answers (2)

Answers (2)

Monika_
Product and Topic Expert
Product and Topic Expert

Hi,

Check SAP note 2164524 describing in detail how to use authorization object P_TRAVL for creating expense reports on approved travel requests only.

Regards,

Monika

0 Kudos

Hello Monika,

thank you for your answer. We are checking with authorization team suggested solution. I will inform you ASAP about the results, but it looks promising.

Regards,

Tomas

0 Kudos

Hi Monika,

the solution via authorization adjustment partially worked, but it wasn't accepted by management, due to the fact, that the people who are responsible, say that its not possible to incorporate it in the existing authorization concept. When they've configured authorization object P_TRAVL according SAP note 2164524 they've lost almost all they current rights and they haven't been able to use Travel Management. Is there any other standard way how to manage this problem?

Thank you

Kind regards,

Tomas