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

Execute a report in background

Former Member
0 Likes
445

Hi All,

I have to create a batch job which will run a report. For that batch job i have to show only few Columns in report. This report also used to run for others batch jobs.

Now i want to know how can i modified my report to know which batch job is executing my report while processing in background.

i.e i can modify the report output based on the folloing condition.

If SY-BATCH is initial and BATCHJOBNAME = 'Test'.

desired output.

else.

...

endif.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
407

Hi piyush,

1. The answer to your question is :

the FM

GET_JOB_RUNTIME_INFO

2. Use this FM inside the code

of your report.

3. It will give you various details like.

EVENTID

EVENTPARM

EXTERNAL_PROGRAM_ACTIVE

JOBCOUNT

JOBNAME

STEPCOUNT

regards,

amit m.

2 REPLIES 2
Read only

Former Member
0 Likes
408

Hi piyush,

1. The answer to your question is :

the FM

GET_JOB_RUNTIME_INFO

2. Use this FM inside the code

of your report.

3. It will give you various details like.

EVENTID

EVENTPARM

EXTERNAL_PROGRAM_ACTIVE

JOBCOUNT

JOBNAME

STEPCOUNT

regards,

amit m.

Read only

Former Member
0 Likes
407

Use this FM inside ur report program GET_JOB_RUNTIME_INFO..

It will serve your purpose.

Anju