Skip to Content

Background job not getting released ABAP

Hi Experts,

I am using below syntax for Submitting one standard tcode MB52 program by using another simple ZProgram.

SUBMIT RM07MLBS USING SELECTION-SET 'MB52_LX02_AB' AND RETURN VIA JOB JOBNAME NUMBER JOBCOUNT.

When I am scheduling this ZProgram as batch JOB it executes on specified time successfully but I am not seeing any spool getting generated..

But when I Execute this ZProgram using se38 (F8) and release from SM37 Spool is getting generated..

Please guide me how can I achieve this requirement.

Thanks-

Abhishek

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Oct 20, 2016 at 12:06 PM

    Did you set the print parameter and pass the result to the SUBMIT of the step?

    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        archive_mode           = '1'
      IMPORTING
        out_parameters         = print_parameters
        valid                  = valid_flag
      EXCEPTIONS
        invalid_print_params   = 1
        OTHERS                 = 2.
    * check valid flag and return code
    SUBMIT rm07mlbs
      USING SELECTION-SET 'MB52_LX02_AB'
      TO SAP-SPOOL SPOOL PARAMETERS print_parameters
                   WITHOUT SPOOL DYNPRO
      VIA JOB jobname NUMBER jobcount
      AND RETURN.

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2016 at 06:50 AM

    More analysis needed: use SP01 to make sure there is really no spool (a job may generate secondary list spool(s) - can be viewed by different menu entry in SM37 or SP01). Use ok code "jdbg" on the job in SM37 to run it in dialog, and check in SP01 again. Did you detect any error after JOB_OPEN, JOB_CLOSE and SUBMIT?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2016 at 07:41 AM

    How are you calling JOB_OPEN and JOB_CLOSE (with which parameters)?

    Add comment
    10|10000 characters needed characters exceeded