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: 

need BAPI to change Expenses

Former Member
0 Kudos

Hi all,

I urgently need a BAPI to change Receipts or entries of Mileage of an existing Trip.

To create Expenses I use BAPI_TRIP_CREATE_FROM_DATA.

But I was not able to find a BAPI for change!

regards,

andre

1 ACCEPTED SOLUTION

LucianoBentiveg
Active Contributor
0 Kudos

If you see code of BAPI, there is a CALL TRANSACTION inside to Tx 'PR01'.

So, if there is no BAPI for change, I suggest you a call transaction to PR02...

Regards.

8 REPLIES 8

LucianoBentiveg
Active Contributor
0 Kudos

If you see code of BAPI, there is a CALL TRANSACTION inside to Tx 'PR01'.

So, if there is no BAPI for change, I suggest you a call transaction to PR02...

Regards.

Former Member
0 Kudos

Hi,

I cannot believe that there is no BAPI-call possible for changes...?

regards,

Andre

0 Kudos

Hi Andre,

Did you try the RFC 'WAF_TRIP_MODIFY' ?

Regards,

Suresh Datti

former_member181962
Active Contributor
0 Kudos

Try this RFC FM: TRIP_CHANGE_INTERACTIVE

Regards,

Ravi

0 Kudos

This is an online version. I have been really stuck with this too. I would like the user to be able to do a file upload to enter and change expenses. Can't find anything for change. We use transaction PR04 (Weekly Expense Reports). I wonder how a change is processed from ESS.

Former Member
0 Kudos

Have you try to use this FM 'HRTRV_IF_MODIFY_TRIP'. It may have the IF extension, but it is not an Interfce. Hope it helps.

In Addition, you can use the FM 'HRTRV_IF_GET_TRIP' to populate all other fields that you may need. I could not find my codes, else I can provide you with the full solution.

If you want to make it RFC enabled, you just need to create another customized FM to call this 2 FMs and set it RFC enabled at the FM attribute.

0 Kudos

Thanks ,

I will try something with these FMs. Meanwhile , if you can find the code , it would be helpful.

Former Member
0 Kudos

Andre,

Try below FM,

"BAPI_TRIP_CHANGE_STATUS "for change

" HRTRV_IF_MODIFY_TRIP " But this is not RFC enable

Don't forget to reward if useful...