on 03-07-2007 3:27 PM
hi friends,
Could any one tell me abt..
How to Print the smartform to the spool.
With Regards,
Sagar.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.