Skip to Content
avatar image
Former Member

HRTRV_IF_MODIFY_TRIP business area of the cost assignment was not populated

Hey, ABAP gurus,

I used function module HRTRV_IF_MODIFY_TRIP to modify the trip data.

My problem was that the business area of the cost assignment for the whole trip was not populated even I put the required data for the table COSTDIST_TRIP parameter. All the other fields like company code, cost center/WBS element and internal order were populated correctly. Is there some configuration in SPRO required to set up for function module HRTRV_IF_MODIFY_TRIP? For example, "Set Up Variable layout for Account Assignment Objects" in SPRO?

Thank you in advance!

Fisher Li

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 24, 2010 at 05:11 PM

    Not sure about the approach. I think using exits (in group XTRV) would be better a better approach to modify data.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 28, 2010 at 02:33 PM

    I finally figured how to fix my issue of this function module HRTRV_IF_MODIFY_TRIP. In my case, I assigned the expense of the whole trip to account 1 and business area 1. I put this account assignment in the table COSTDIST_TRIP.

    If this whole trip had two expense items - $500 for Hotel and $100 for Meals. I assigned $60 of the meals to account 2 and business area 2 and I only put this assignment in table COSTDIST_RECE.

    Because the function module are expecting the rest of the account assignment for the meals which I assumed that it should go to the account assignment for the whole trip, the business area 1 for the whole trip disappeared after the data were modified.

    After I change my program and adding the default account assignment

    (account 1 and business area 1) for the $40 of the meal in table COSTDIST_RECE, everything worked.

    Add comment
    10|10000 characters needed characters exceeded