cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with a function

Former Member
0 Kudos

Hi people,

If someone made a call job in the SM35 I need your help!

I use this two function to call a job, but when I debug the program in the SM35 transaction the JOB CLOSE function get the 'X' of processed in the variable that the function return but if I use the same function in the SE37 with other job the function don't return me the 'X' and I pass all the parameters that the function need.

Thanks for the help.


 call function 'JOB_OPEN'
      exporting
           jobgroup         = bi
           jobname          = jname
      importing
           jobcount         = jnumb
      exceptions
           cant_create_job  = 1
           invalid_job_data = 2
           jobname_missing  = 3
           others           = 99.

   call function 'JOB_CLOSE'
        exporting
             jobcount                   = jnumb
             jobname                    = jname
             strtimmed                  = x
             targetsystem               = batchsys
        importing
             job_was_released           = jobrele
        exceptions
             cant_start_immediate       = 1
             invalid_startdate          = 2
             jobname_missing            = 3
             job_close_failed           = 4
             job_nosteps                = 5
             job_notex                  = 6
             no_release_privilege_given = 7
             others                     = 99.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Job_group is like a constant, when I debug the SM35 I see that the system put in the variable this: 'BATCH-INPUT' like a constant.

andreas_mann3
Active Contributor
0 Kudos

hi,

i never filled <i>jobgroup</i> in fm job_open

- for what is it?

A.

Former Member
0 Kudos

Hi,

You need to call <b>JOB_SUBMIT</b> FM in between.

Regards,

Sampath.

ferry_lianto
Active Contributor
0 Kudos

Hi Carlos,

Please change this line code

strtimmed = x

to

<b> strtimmed = 'X'</b>

Also you need something it between 'JOB_OPEN' and 'JOB_ CLOSE'. For example, submit <program> ... or 'JOB_ SUBMIT'.

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

HI,

IN JOB_OPEN FM Change strtimmed = x to <b>strtimmed = 'X'</b>

Regards,

Santosh

former_member188685
Active Contributor
0 Kudos

Hi,

You need to call JOB_SUBMIT in between open and close.

Regards

vijay