cancel
Showing results for 
Search instead for 
Did you mean: 

Trip - get status

Former Member
0 Kudos

Hi all,

I was wondering where the status of a trip (which got rejected / approved) is stored and how we can read it. If I use the method getstatus from object bus2089 the system always return status 4 (approved) even when we rejected it....

Accepted Solutions (1)

Accepted Solutions (1)

former_member217316
Contributor
0 Kudos

Hi Bjorn

The trip status is maintained in the table PTRV_PERIO with fields ANTRG and ABREC.

After performing any action over it (like approve/reject), call this "BAPI_TRIP_CHANGE_STATUS". Read the documentation of this BAPI and you'll get a better idea about it.

Hope this helps.

Harsh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi all,

thanks for the help,I used indeed the BAPI you mentioned.

br,

Björn

Former Member
0 Kudos

Hello,

Please check in table PTRV_PERIO, field ANTRG - Travel request/Approval of trip. From this you can differentiate between statuses of trip.

For your case rejected will have vale as 6 - Trip awaiting documents.

Hope this help you.

Thanks,

Vaibhav