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

sapscript

Hi,

while executing a sapscript program at se38 it should create a spool request. it is not creating a spool request. how do I get a spool request number. thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2006 at 04:11 AM

    Hello,

    U can check ur spool in SP01,SP02.

    Let me know if u face further any problem

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2006 at 04:11 AM

    check ITCPO-TDNEWID if Open_form options.

    Regards

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      u Can use the following code :-

      *------------------------------------------------------*
      * FORM get_spool_number *
      *------------------------------------------------------*
      * Get the most recent spool created . *
      *------------------------------------------------------*
      * --> F_REPID (prog. name) *
      * --> F_UNAME (user name ) *
      * --> F_RQIDENT *
      *---------------------------------------------------------------------*
      form get_spool_number using f_repid
      f_uname
      changing f_rqident.
      
      *-- Declaring local variables.
      
      data:
      lc_rq2name like tsp01-rq2name,
      lc_rqident like tsp01-rqident.
      
      *-- In TSP01 table, the 'RQ2NAME' field holds the combined
      *-- ( first nine characters of the program name followed *-- by first three characters of the user name)value of
      *-- the corresponding program and username.
      
      concatenate f_repid+0(9)
      f_uname+0(3)
      into lc_rq2name .
      
      select * from tsp01 where rq2name = lc_rq2name
      order by rqcretime descending.
      f_rqident = tsp01-rqident.
      exit.
      endselect.
      
      if sy-subrc ne 0.
      clear f_rqident.
      endif.
      endform." get_spool_number

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2006 at 04:19 AM

    Check the table TSP01.

    Try to debug where u are generating the spool no's.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2006 at 04:30 AM

    Dear Prakash,

    Could you check whether you called FM "CLOSE_FORM" in program. Unless the FM "CLOSE_FORM" executed, nothing will be printed. Check whether printer name is given.

    Please let me know if any other solution you got.

    Regards,

    Prasanth

    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.