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

Commit on batch input

Former Member
0 Likes
892

Hi folks,

I want to do the following:

I have a Z program where I can schedule more than order per turn! To do that, I am doing a batch input via the transaction IW33, calling it order by order.

What I want to do is to change sucessful everything or rollback all the changes made, but I think doing this way, calling the transaction order by order, I can have mistakes, because the CALL TRANSACTION can trigger a COMMIT in the database without my interference.

How could I do that? Is there some function I can use to control this? Do you know a BAPI for this purpose?

Thanks in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
455

Not that I know of. When faced with similar circumstances, instead of ROLLBACK, I have run another batch input that undoes the changes.

Rob

2 REPLIES 2
Read only

Former Member
0 Likes
456

Not that I know of. When faced with similar circumstances, instead of ROLLBACK, I have run another batch input that undoes the changes.

Rob

Read only

Former Member
0 Likes
455

You should not use Committ and call transaction will not allow.

You can do other way

call transaction tcode using bdcdata mode 'A' 'E' 'N'

UPDATE 'S'. When you update mode as 'Synchronous and it works as Comiit work.

Reward Points if it is useful

Thanks

Seshu