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

code not triggering in Background

Former Member
0 Likes
1,123


Hi Folks,

Implemented implicit enhancement in the Function Module CY_BT_KBED_READ_WITH_INDEX and written code for CM40. Foreground its working fine but background its not wokring . In background job finished using tcode JDBG at that time debugged code then working properly. Without debgugging

if we run with only background logic not working.

Kindly help me on this issue.

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
721

Hi Durga,

To write a endless 'DO....WHILE', job is running, running. Then go to SM50 to debug, will be same result?

regards,

Archer

Read only

0 Likes
721

Hi Archer,

I tried with SM50 but no use. Debug sing SM50 code is working fine but without debug anything implemeted  code not executing in CM40.

Thanks,

Durga

Read only

Former Member
0 Likes
721

If you swiched to debugging using (JDBG or SM50) the code is working fine.If we directly execute in back ground it is not executing the code.I have tried by puuting wait up to 5 seconds and commit also. But no result..

Read only

Former Member
0 Likes
721

When you are debugging, go to SAP ABAP call stack (Desktop 2) and see the previous function modules/methods and see if there is any check on sy-batch variable.

I don't think there should be an issue, because you are able to debug it.