Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

COMMIT WORK in batch fails?

$
0
0

Hi all,

 

I hope someone can help with this. If I run transaction CJ46 and fill in the selection screen and run it- no problem. I then record a BDC session to automate the process for multiple years.i.e create the same selection screen as CJ46 but have the fiscal year as a range. I run the transaction:

 

call transaction 'CJ46' using t_bdc
                           mode  w_mode
                           messages into t_messtab.

 

Basically the code runs into LKAZCF01 and reaches:

 

CLEAR vorher. CLEAR nachher.
*----------------------------------------------------------------------*
* 9. commit work and dequeue all
*----------------------------------------------------------------------*
     COMMIT WORK.
     PERFORM dequeue_all.
   ENDLOOP. "AT pt_objnr_group
ENDFORM.                               " PROCESS

 

In the standard CJ46 call, all this code gets executed. When I run my Z-batch input version, the code gets to the COMMIT WORK line and then falls back into my z program. sy-subrc is 0 and t_messtab is empty.The code in both versions seems to execute identical code but my one fails. Any ideas?

 

Cheers,

Russ.


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>