Skip to Content
0
Former Member
Jun 30, 2016 at 01:24 PM

Call transaction in IDOC

81 Views

Dear All,

is possible rollback one or more call transaction in IDOC inbound function module when error occurs?

For example:


PERFORM CALL_FIRST_TCODE TABLE TI_ERROR_MESSAGES.

IF TI_ERROR_MESSAGES IS NOT INITIAL.

ROLLBACK

ELSE.

PERFORM CALL_SECOND_TCODE TABLE TI_ERROR_MESSAGES.

IF TI_ERROR_MESSAGES IS NOT INITIAL.

ROLLBACK

ELSE.

PERFORM CALL_SECOND_TCODE TABLE TI_ERROR_MESSAGES.

IF TI_ERROR_MESSAGES IS NOT INITIAL.

ROLLBACK

ENDIF.

ENDIF.

ENDIF.

I read this in help portal:

Process

If you use a function module to process a single IDoc, as described above, but the function module uses a call transaction to post the application data to the database, the application data is posted in a different logical unit of work from that in which the IDoc status data is posted. A call transaction does a 'commit work' when it has been successfully executed.


I can't use bapi, only call transaction!!!


Thanks in advance