cancel
Showing results for 
Search instead for 
Did you mean: 

Print the smartform to the spool.

Former Member
0 Kudos

hi friends,

Could any one tell me abt..

How to Print the smartform to the spool.

With Regards,

Sagar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi normally when you click on the print button it will issue a print as well as it create a new spool request.

but if you want to issue the print to spoool... you have pass this

OUTPUT_OPTIONS-TDNEWID = 'X'.

OUTPUT_OPTIONS-TDIMMED = ' '

OUTPUT_OPTIONS-TDDELETE = ' '.

and pass this to the Function Module

CALL FUNCTION V_FORMNAME
  EXPORTING
    CONTROL_PARAMETERS = WA_CONTROL_PARAMETERS

<b> OUTPUT_OPTIONS = WA_OUTPUT_OPTIONS</b>

V_XXX              = WA_XXX
  IMPORTING
    JOB_OUTPUT_INFO    = WA_JOB_OUTPUT_INFO
  TABLES
    IT_VBAK            = IT_MARA
    IT_TEST_SANDEEP    = IT_TEST
  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.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

Manually print the form using spool?

first, when you run the report and you already see the form. go to text>print.

second, it will give you a spool number. so you will go to transaction sp01.

third, in sp01, type the spool id that you get.

fourth, tick the checkbox for the form that you like to print

fifth, press the "print directly" button or crltshiftf8

Hope this helps.