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

Severals Call Transactions

Former Member
0 Likes
940

Hello,

I have several Call Transactions in bach input program that generate documents.

The problem is that if one Call not run I have to eliminate the others documents.

for example:

Step 1 call transaction 'ke21n'

Step 2 call transaction 'KB15N'

Step 3 call transaction 'fb01' -


> this fall down or not run

Step 4 call transaction 'ko02'

The Step 1 and Step 2 must to be restaured and no generate the documents

Hello,

I have several Call Transactions in bach input program that generate documents.

The problem is that if one Call not run I have to eliminate the others documents.

for example:

Step 1 call transaction 'ke21n'

Step 2 call transaction 'KB15N'

Step 3 call transaction 'fb01' -


> this fall down or not run

Step 4 call transaction 'ko02'

The Step 1 and Step 2 must to be restaured and no generate the documents

6 REPLIES 6
Read only

Former Member
0 Likes
885

Hi!

During the Batch run (in SM35), you can't withdraw the documents, which was posted.

You have 2 choices:

- write into the program which creates the batch input, and examine the data, which cause problems in the transaction FB01. If this transaction will have bad or missing data, you can withdraw from your batch input table the previous transactions also.

- look for BAPI-s, and re-program the whole thing. Luckily with BAPI-s you can examine the errors.

Regards

Tamá

Read only

Former Member
0 Likes
885

I made a program that makes calls to all these transactions with bdcdata . I don't use sm35 . I need to know if there is a way to undone the changes.

Read only

0 Likes
885

I'm not familiar with these transactions, but I had a similar requirement some time ago. If one transaction failed, I backed out the earlier transactions (reversed them).

Rob

Read only

0 Likes
885

Consider the option of BAPIs instead of call transactions, as they would have an option of rolling back the changes that are made to the database.

Regards,

Ravi

Read only

RaymondGiuseppi
Active Contributor
0 Likes
885

I dont think you can, cause, when leaving a transaction you get a COMMIT WORK and all data are udpated.

You need, if possible, to reverse operation with reverse transactions KB17(N) and KB24(N) with the same data.

If you dont want any reverse document, you need to analyze causes of rejections and test theses before or try FB01 before KB15 and -21.

Regards

Read only

Former Member
0 Likes
885

Hi,

There is a Structure with the name 'CTU_PARAMS' . declare a workarea using this structure. In this structure u've a field which says 'Run Call Transaction without Commit'. So try to understand CTU_PARAMS. how it is used.

Regards,

Aravind