on 02-24-2023 9:22 PM
Hi Friends,
I have Question ,
1) I had created a report and set batch job for that , batch-job run daily at 08:40 am. When i execute the report, in the output it should show that which batch-job had run i.e Foreground/Background.
I had written a logic , but it was showing Foreground when report was executed.
IF SY-BATCH = 'X'.
WRITE: 'BACKGROUND'.
ELSE.
WRITE: 'FOREGROUND'.
ENDIF.
2) While Batch-job is running , Does my system need to should active at that time ?
If you have created a very simple executable program (A.K.A. "report") as below, activated it, submitted it as a "background job", that you can see in SM37, then it should generate a spool request with content "BACKGROUND".
REPORT zprogram.
IF SY-BATCH = 'X'.
WRITE: 'BACKGROUND'.
ELSE.
WRITE: 'FOREGROUND'.
ENDIF.
If not, you are not in the exact situation described above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
8 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.