Skip to Content
author's profile photo Former Member
Former Member

Get spool number without submit report.

Hi

I want to get spool number I am using this function module

CALL FUNCTION 'GET_JOB_RUNTIME_INFO'

IMPORTING

eventid = w_eventid

eventparm = w_eventparm

external_program_active = w_external_program_active

jobcount = w_jobcount

jobname = w_jobname

stepcount = w_stepcount

EXCEPTIONS

no_runtime_info = 1

OTHERS = 2.

* Get Spool Number

SELECT * FROM tbtcp

INTO TABLE t_tbtcp

WHERE jobname = w_jobname

AND jobcount = w_jobcount

AND stepcount = w_stepcount

AND listident <> '0000000000'

ORDER BY jobname

jobcount

stepcount.



but the function module is not fetching any thing .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 13, 2014 at 02:09 PM

    Hi,

    if you are looking for your current spool number you just need to check sy-spono after a WRITE statemet is done.

    Marco

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 13, 2014 at 03:37 PM

    Hello Rohit,

    As I understand I guess you are scheduling job in your program by using JOB_OPEN and JOB_CLOSE.

    If means after the job close call the FM " BDL_READ_JOB_STATUS" to check whether the job finished.

    Then call your FM "GET_JOB_RUNTIME_INFO" and SELECT query, after the JOB_CLOSE, because the spool will be created after the job is finished.

    Regards,

    Thanga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2014 at 05:55 AM

    Solved thanks for your response.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.