cancel
Showing results for 
Search instead for 
Did you mean: 

PTRV_WEB_RECEIPTS_INT_2 , PTRV_UTIL_BELEG

former_member184386
Active Participant
0 Kudos

Hello, any of you guys encountered this error before in Travel Management/Travel Expense (WDA version) when trying to delete receipt?

Thanks in advance.


Accepted Solutions (1)

Accepted Solutions (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi Ricky,

well, you don't only delete a receipt, you attempt you delete the entire trip. Maybe there are some receipts left in the trip that cannot be deleted, because they originate from ccc and havent been settled/paid yet or the like?

I'd recommend debugging PTRA_WEB_EXPENSE_REPORT_DELETE, subsequently  BAPI_TRIP_DELETE to see what's actually going wrong.

Cheers, Lukas

P.S. That put aside, the error message really is a mess... 😕

former_member184386
Active Participant
0 Kudos

Thanks Lukas, the problem was actually related to include LPTRA_UTIL_MEMORYF02:

This call:

PERFORM CREATE_CONVERSION_TABLE_DETAIL USING LT_FIELD_CONVERSION 'PTRV_WEB_RECEIPTS_INT_2' 'PTRV_UTIL_BELEG'

it's checking the ROLLNAME for the same Data Element, if there's any duplicate, it will throw this error message.

this issue was brought up by SAP updating the structure PTRV_UTIL_BELEG, if there are fields that are using the same data element, then you'll get this error.


check out this block of code in the FORM create_conversion_table_detail

     LOOP AT lt_util_field_con INTO lwa_util_field_con
      WHERE rollname = lwa_web_field_con-rollname.
      lf_loop_counter = lf_loop_counter + 1.
    ENDLOOP.
    IF lf_loop_counter NE 1.
      lf_loop_error = 'X'.
    ENDIF.

Answers (0)