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

Problem with spool request after submit

Hi experts,

Iam generating a pdf on spoof request,everything is going fine but iam getting my spool id as zero,iam posting part of my code

below please identify what might the problem......

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = SY-REPID

TABLES

SELECTION_TABLE = RSPARAMS

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

COVER_PAGE = ''

DATA_SET = DATASET

* DEPARTMENT = C_CHAR_UNKNOWN

DESTINATION = 'LOCL'

EXPIRATION = '1'

IMMEDIATELY = ' '

LINE_COUNT = '65'

LINE_SIZE = '255'

NO_DIALOG = 'X'

IMPORTING

* OUT_ARCHIVE_PARAMETERS =

OUT_PARAMETERS = PRI_PARAMS

VALID = VALID.

* VALID_FOR_SPOOL_CREATION =

* EXCEPTIONS

* ARCHIVE_INFO_NOT_FOUND = 1

* INVALID_PRINT_PARAMS = 2

* INVALID_ARCHIVE_PARAMS = 3

* OTHERS = 4

CLEAR l_acttime.

CONVERT DATE sy-datum TIME sy-uzeit

INTO TIME STAMP l_timestamp TIME ZONE sy-zonlo.

l_acttime(14) = l_timestamp.

CONCATENATE l_acttime '00' INTO l_acttime.

l_range_acttime-sign = 'I'.

l_range_acttime-option = 'BT'.

l_range_acttime-low = l_acttime.

SUBMIT ZPAYROLL1 WITH SELECTION-TABLE RSPARAMS with p_par = 'x' TO SAP-SPOOL SPOOL PARAMETERS PRI_PARAMS WITHOUT SPOOL DYNPRO AND RETURN.

* *Create System Log Time Right after spool

CLEAR l_acttime.

CONVERT DATE sy-datum TIME sy-uzeit

INTO TIME STAMP l_timestamp TIME ZONE sy-zonlo.

l_acttime(14) = l_timestamp.

CONCATENATE l_acttime '00' INTO l_acttime.

l_range_acttime-high = l_acttime.

APPEND l_range_acttime.

SELECT MAX( RQIDENT ) FROM TSP01 INTO LV_SPOOL WHERE RQOWNER = SY-UNAME AND RQCLIENT = SY-MANDT AND rq0name = pri_params-prdsn

AND rq1name = pri_params-pdest

AND rq2name = pri_params-plist

AND rqcretime IN l_range_acttime.

.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2012 at 11:22 AM

    Hello Hemanth,

    Although I have not executed the code that you have pasted above, can you check if the table TSP01 has a new entry created by you from SE16 tcode. Also check the structure PRI_PARAMS for the field PRREL = ' '.

    regards,

    Rohan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2012 at 10:38 AM

    You might want to refer the 3rd step in this SAP Community Network Wiki - ABAP Development - PDF Download By Creating Spool Request.

    Let me know if it does not work.

    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.