Application Development 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: 

Integrity among transactions

Former Member
0 Kudos

Dear friends,

I have a interface which is internally run multiple transactions (BDC) before updating the final results in ztable. But in some cases like system failure during trasaction run interface stops in between.

In this regard, how i can maintain the integrity between all transactions ? Is rollback or LUW work in BDC scenarios if i perform these transactions in update task or reversal is the only option ?

Second case, in badi's during transaction save i want to save entries in ztables, in sometimes entries r not got inserted because of unknown reasons.

Kindly suggest.

Regards,

Praveen Lobo

1 REPLY 1

Former Member
0 Kudos

Praveen

Consider a scenario where you want to create a delivery order and invoice consecutively using BDC....

As Invoice creation is dependent on Delivery creation, you will have to commit the delivery order after calling BDC. Though you may do following steps:

Start of Sample Logic

Create Delivery Order

if success

create Invoice

if success

Raise Success Message

else

Reverse Delivery Order

Raise Error Message

endif.

else

Raise Error...

endif.

End of Logic

Thanks

Amol Lohade