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

function module to get spool request number

Hi Experts,

Is there a FM which basically returns the Spool Request Number generated by a particular Program / User ?

System: 4.6C

Thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 27, 2008 at 10:18 PM

    I don't think so...But you can do this...

        SELECT RQIDENT
        INTO (T_TSP01-RQIDENT)
        FROM TSP01
        WHERE RQOWNER EQ SY-UNAME
          AND RQCLIENT EQ SY-MANDT.
        APPEND T_TSP01.
        ENDSELECT.
    

    You will had the last spool number generated by a particular user...

    Greetigns,

    Blag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 09:49 AM

    one more is there

    'RSPO_OPEN_SPOOLREQUEST'

    it will give the appropriate solution to your query.

    another one ,

    SUBMIT (p_repid) TO SAP-SPOOL

    SPOOL PARAMETERS mstr_print_parms

    WITHOUT SPOOL DYNPRO

    AND RETURN.

    but it will create infinite loop , so use abap memory and export a flag variable with

    a value to restricted the excution of the above submit only once and all the internal

    table and other data which you want in your program . below is the example .

    • importing variable value set at first time to restrict the infinite loop .

    IMPORT var FROM MEMORY ID 'abc' .

    var = var + 1 .

    *checking variable to restricted scecond time exction of this block of code

    • *IF var = 1 .

    v_memid = 1 .

    EXPORT var TO MEMORY ID 'abc' . (flag variable to restrict the excution only once )

    EXPORT it_pernr it_pernr_quali v_memid TO MEMORY ID 'bcd'.(internal table and otherdata)

    • submitting the spool request

    SUBMIT (p_repid) TO SAP-SPOOL

    SPOOL PARAMETERS mstr_print_parms

    WITHOUT SPOOL DYNPRO

    AND RETURN.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2011 at 09:55 AM

    Hi Venu,

    Use this FM to get spool numbers by passing owner Parameter

    RSPO_RINIT_SPOOL_SP01

    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.