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

Display Batch Job Name

Former Member
0 Likes
909

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

4 REPLIES 4
Read only

Former Member
0 Likes
763

hi use the fields..

SY-BINPT OR SY-BATCH..

regards,

venkat

Read only

0 Likes
763

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

Read only

former_member194669
Active Contributor
0 Likes
763

Check with table TBTCP.

Read only

Former Member
0 Likes
763

Thanks alot guys.