on 12-15-2006 7:27 PM
Hello Everybody,
I am working on a smartform which needs to be printed from Web Dynpro. So, I have developed an RFC to print the form. Form is printing fine (Printing Immediately) when I test it via SE37 . But, when I test it in portal, it does not print. It creates a spool request for user ADOBETEST in SAP ( SAP account for portals, I guess).
Since the end users may not have SAP account, Is there any way we can print the form on the users local printer when printing from Web Dynpro? Somebody please suggest me how to solve this issue.
Below is the code for your reference. ( This is working fine via SE37)
DATA: it_controls TYPE ssfctrlop,
it_outputoptions TYPE ssfcompop.
it_controls-no_dialog = 'X'.
it_controls-device = 'PRINTER'.
it_outputoptions-tdimmed = 'X'.
it_outputoptions-tdcopies = '001'.
it_outputoptions-tddest = printer.
it_outputoptions-tdnoprev = ' '.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = it_controls
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = it_outputoptions
user_settings = ' '
reservation_header = wa_rkpf
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
reservations = it_final
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
ENDLOOP.
ENDAT.
ENDLOOP.
ENDFUNCTION.
Thanks,
Chandbi
HI
good
go through this link, i hope this ll help you to solve your problem,
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chandni,
There will be a parameter in the user defaults to print immediately. That means as soon as the print command is issue a spool is created. Now, depending on the parameter "Print Immediately", the system either prints / waits for the spool to be picked up.
So, in SU01, for ADOBETEST, set the print immediately flag and it should print as soon as the user prints the same from portals.
Regards,
Ravi
Note - Please mark all the helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.