Skip to Content
avatar image
Former Member

Message comes "Spool request is created " while printing smart form output

i m getting message while printing smartform Spool request is created. But dont getting direct option like dialog box after clicking print button .Plz help in this regards.



CALL FUNCTION 'SSF_OPEN'
EXPORTING
* ARCHIVE_PARAMETERS =
* USER_SETTINGS = 'X'
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJ =
* OUTPUT_OPTIONS = w_compop
CONTROL_PARAMETERS = control
* IMPORTING
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

LOOP AT IT_HEAD INTO WA_HEAD.
**LOOP AT IT_FINAL INTO WA_FINAL.
** BREAK-POINT.
** CLEAR WA_FINAL1.
** REFRESH : IT_FINAL1.
** MOVE-CORRESPONDING WA_FINAL1 TO WA_FINAL .
CLEAR WA_HEAD2.
REFRESH : IT_HEAD2.
MOVE-CORRESPONDING WA_HEAD TO WA_HEAD2.

APPEND WA_HEAD2 TO IT_HEAD2."IT_FINAL.

LOOP AT IT_FINAL1 INTO WA_FINAL1 WHERE BELNR = WA_HEAD-BELNR." AND BUKRS = WA_HEAD2-BUKRS AND GJAHR = WA_HEAD2-GJAHR .

** CLEAR WA_FINAL.
** REFRESH IT_FINAL.
MOVE-CORRESPONDING WA_FINAL1 TO WA_FINAL.

APPEND WA_FINAL TO IT_FINAL.

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }

** REFRESH IT_FINAL.
CALL FUNCTION FM_NAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control"ssfctrlop
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
OUTPUT_OPTIONS = ssfcompop "w_compop"
USER_SETTINGS = ' '
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_final = IT_FINAL
* IT_FINAL1 = IT_FINAL1
IT_HEAD2 = IT_HEAD2
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

*BREAK-POINT.
***clear wa_final.
CLEAR WA_FINAL.
REFRESH IT_FINAL.
ENDLOOP.

CALL FUNCTION 'SSF_CLOSE'
* IMPORTING
* JOB_OUTPUT_INFO =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
OTHERS = 4
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 18, 2016 at 06:22 AM

    Hi Abhijeet Tayade,

    Kindly check the control parameters maintained in FM SSF_OPEN.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 18, 2016 at 06:22 AM

    Check value passed in the Control structure (e.g. NO_DIALOG)

    Regards,
    Raymond


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2016 at 06:31 AM

    i checked ...i passed control parameters as below

    control-no_dialog = 'X'.
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.

    w_compop-tdnoprev = 'X'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 18, 2016 at 07:01 AM

    but this are essential for smartforms for generating multilple documents without dialog box but finally when get smartform display ..and i m clicking print button i get message spool request is created instead print previes dialog box

    Add comment
    10|10000 characters needed characters exceeded