10-02-2008 11:57 AM
hello everyone,
i'm trying to delete time sheet recors using the bapi 'BAPI_CATIMESHEETMGR_DELETE', but the probleme it's doesn't work verry well, i don't why and all the parameters are OK, is there another way to delete time sheet that was recorded in the CAT2.
thanks a lot.
10-02-2008 12:51 PM
Time sheet records are loogically deleted from Database not physically. There should be flag in the table which indicated that the record is logically deleted.
Check if the BAPI needs a COMMIT WORK.
-Aman
10-02-2008 12:51 PM
Time sheet records are loogically deleted from Database not physically. There should be flag in the table which indicated that the record is logically deleted.
Check if the BAPI needs a COMMIT WORK.
-Aman
10-02-2008 1:44 PM
i used the function 'BAPI_TRANSACTION_COMMIT' for the commit WORK but steel the time sheet recorded is not deleted so is there another way,
thnk you
10-02-2008 1:50 PM
Check the STATUS field in the CATSDB if it changes after BAPI CALL.
-Aman
10-02-2008 1:52 PM
that's exactly why i say that's it doesn't work , the STATUS steel has the value '30' no change
10-02-2008 1:56 PM
Try using this BAPI . In my system i am using this BAPI to change the status.
BAPI_CATIMESHEETMGR_CHANGE
This will change the status in the time sheet.
This BAPI needs BAPI_TRANSACTION_COMMIT too.
-A
10-02-2008 2:00 PM
and this 'BAPI_CATIMESHEETMGR_CHANGE' will delete the time sheet already recorded????
10-02-2008 2:05 PM
It will change the status. For more details read online help of the Function modules. Its described in detail.
A
11-05-2008 4:25 PM