09-04-2008 12:52 PM
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
09-05-2008 6:20 AM
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