on 11-03-2010 7:18 AM
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
Use PTRA_DB_TRIP_SAVE modify IT_BELEG.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Respective Perosn indicates the Finance Personel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.