Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the status of a trip to open when it is rejected

Former Member
0 Kudos
125

Hi,

I have a requirement in travel management where when manager rejects a trip or if there is no response from manager , then the status of trip will be changed to " not modifiable". I want to change the status to open .

Any body could help me . I tried with BAPI_TRIP_CHANGE_STATUS , but it is not working .

Thanks and Regards

ravi

2 REPLIES 2

Former Member
0 Kudos
68

HI Ravi,

Did you use BAPI_TRANSACTION_COMMIT after calling BAPI_TRIP_CHANGE_STATUS. If you didn't use then the data will not get updated to the database.

It is mandatory that we call BAPI_TRANSACTION_COMMIT after every BAPI call to have the changes reflected in the database.

Try it and then let me know whether it worked or not. I'll try to solve.

Reward if useful.

Thanks and Regards,

Maddineni Bharath.

Former Member