cancel
Showing results for 
Search instead for 
Did you mean: 

PTRV_SREC Table Update

Former Member
0 Kudos

Hi All,

I have a requirement where I need to update RECEIPT_OK field of the table PTRV_SREC after receipts are checked by respective person. We will be using a ztransaction for doing the same. Can anybody help me with any BAPI or FM which could help me achieving this functionality.

Just for a try I was using the below PTRV_TRAVEL_STATISTICS_UPDATE. Here I am passing the below parameters.

Import parameters Value

PERSONNEL_NUMBER 00328450

TRIP_NUMBER 0010001084

TRIP_PERIOD 000

TRIP_SCHEMA 01

UPDATE_TYPE U

UPDATE_HEADER_DATA

UPDATE_RECEIPT_DATA X

UPDATE_ADD_RECEIPT_DATA

UPDATE_COST_DISTRIB_DATA

DELETE_BEFORE_INSERT

BACKGROUND_TASK

GET_TRIP_FROM_MEMORY

SIMULATION_RUN

COMMIT_WORK X

Tables Value

TRIP_SUMS 0 Entries

TRIP_RECEIPT_DATA 1 Entry

TRIP_ADD_RECEIPT_DATA 0 Entries

TRIP_COST_DISTRIB_DATA 0 Entries

TRIPS_REORGANIZED 0 Entries

In the Tables I am only passing TRIP_RECEIPT_DATA .

After executing it I see

Export parameters Value

RETURN S56804The selected method was performed successfully

But the table PTRV_SREC is not getting updated.

Kindly help me with your suggestions.

Thanks,

Koushik

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Use PTRA_DB_TRIP_SAVE modify IT_BELEG.

Former Member
0 Kudos

Respective Perosn indicates the Finance Personel.

Former Member
0 Kudos

Koushik,

It does not seem PTRV_TRAVEL_STATISTICS_UPDATE would help update with values provided through table parameters, it appears to be used for statistical update internally.

There are couple of exits available that may be helpful.

Or you can try and update the field directly by accessing the table, if you are sure changing the field value would not result in any other issues.

Srikanth02
Active Contributor
0 Kudos

Hi Koushik,

What you mean by respective person ( is it employee or approver or finance person). If you can specify in detail would be better, from the below it is difficult to understand where exactly you are looking for.

Thanks.

Regards,

S.Srikanth