Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_REPMANCONF1_CREATE_MTS problem

Former Member
0 Likes
1,037

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?

3 REPLIES 3
Read only

Former Member
0 Likes
720

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 !!!

Read only

Former Member
0 Likes
720

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.

Read only

0 Likes
720

Thanks for posting up the solution!! managed to use it to fix the program.

Rgrds,

Alysia