2008 Apr 29 7:47 PM
Hi Guys,
How can I display the name of a batch job in an email after the job is run and email necessary recipient since there isn't a system variable.E.g
System: PRD
Job: B_TEST
Hi Guys,
How can I display the name of a batch job in an email after the job is run and email necessary recipient since there isn't a system variable.E.g
System: PRD
Job: B_TEST
2008 Apr 29 7:53 PM
2008 Apr 29 8:18 PM
Hi,
You can use this FM:
CALL FUNCTION 'BP_FIND_JOBS_WITH_PROGRAM'
EXPORTING
abap_program_name = 'program name'
ABAP_VARIANT_NAME = ' '
EXTERNAL_PROGRAM_NAME = ' '
DIALOG = ' '
STATUS = 'F'
TABLES
joblist = lt_joblist
EXCEPTIONS
no_jobs_found = 1
program_specification_missing = 2
invalid_dialog_type = 3
job_find_canceled = 4
OTHERS = 5
.
Regards,
Fernando
2008 Apr 29 8:24 PM
2008 Apr 29 9:33 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |