Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8078

Call Transaction behaving differently in Foreground and Background job

$
0
0

Hi Guys,

 

I have created a program (Z_TEST_CALL_TRAN), in the program I am doing CALL TRANSACTION as below.

 

When I run in foreground I get error in LT_MSG (as expected), SY-SUBRC is 1001.

When I run in background then LT_MSG is empty (My test is failed). SY-SUBRC is 0.

 

Itab LT_MSG should be field with error in background also.  I tried with MODE 'N" also, but still LT_MSG is empty.

 

CALL TRANSACTION 'FF_5' USING lt_bdcdata

             MODE 'A'

             UPDATE 'S'

             MESSAGES INTO lt_msg.


lv_subrc = sy-subrc.


In real world this program (Z_TEST_CALL_TRAN) will be submit as background job.


Can you advise me how I can fix this problem?


I have attached my test program for reference.


Thanks a lot.


Viewing all articles
Browse latest Browse all 8078

Trending Articles



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