Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with a function

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.

Tags:
Not what you were looking for? View more on this topic or Ask a question