‎2006 Aug 28 2:14 AM
I'm using BAPI_REPMANCONF1_CREATE_MTS to do backflush, I pass in the parameters, but is not sucessfull because component is not available, which means the return table contains data. But the problem is when I check the serial no using IQ03, the status is "ESTO", before calling this BAPI is "AVLB", the status should be "AVLB" instead of "ESTO" because the BAPI execution is not successfull. Does anyone experience this problem before? Isn't a bug?
‎2007 Jul 11 11:34 AM
dear yean,
can i know the solution to your problem, cause im facing the same thing.
the bapi is not succesfull but the serial number status is updated.
many thanks !!!
‎2007 Jul 13 10:13 AM
The solution is quite simple, just issue a ABAP command "ROLLBACK WORK" after the BAPI if the return table contains error.
Example:
IF return IS INITIAL. "Successful
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ELSE. "Fail
ROLLBACK WORK.
ENDIF.
‎2007 Jul 16 8:21 AM
Thanks for posting up the solution!! managed to use it to fix the program.
Rgrds,
Alysia