2007 Jan 04 12:08 PM
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
2007 Jan 04 1:33 PM
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á
2007 Jan 04 2:03 PM
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.
2007 Jan 04 2:58 PM
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
2007 Jan 04 3:11 PM
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
2007 Jan 04 3:02 PM
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
2007 Jan 04 4:46 PM
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