Skip to Content
avatar image
Former Member

Submit Statement WD4A

Hi,

I am looking to run a Function Module at as a background job in a abap webdynpro application.Am using the following code to run the job by passing internal table (dynpro) to the FM . Is it possible to use the below code in ABAP Webdynpro.

DATA jobcount TYPE tbtcjob-jobcount.

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = 'CREATE_ JOB'

  • SDLSTRTDT = NO_DATE

  • SDLSTRTTM = NO_TIME

  • JOBCLASS =

IMPORTING

jobcount = jobcount

  • CHANGING

  • RET =

EXCEPTIONS

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

OTHERS = 4.

SUBMIT FMNAME

WITH TABLE TYPE1 EQ TABLETYPE_INT

USER SY-UNAME VIA JOB 'CREATE_ JOB'

NUMBER jobcount AND RETURN .

CALL FUNCTION 'JOB_CLOSE'

EXPORTING

jobcount = jobcount

jobname = 'CREATE_ JOB'

strtimmed = 'X'

EXCEPTIONS

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

invalid_target = 8

OTHERS = 9.

Regards,

kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 15, 2011 at 08:42 AM

    Solved

    Add comment
    10|10000 characters needed characters exceeded