on 2009 Apr 20 6:46 AM
Hi Friends,
I'm having a table displaying four records in which one of the column named Employee Name has a link in it.Clicking the link will be displaying a smartform corresponding to that particular candidate.
I'm haivng a requirement that clicking the print button should directly take me to the printer without
asking me any questions printing all the smartforms .No need to display the smartform .Clicking the button should start printing all the smartform for the displaying records.
With Regards,
SHARMILA BRINDHA.M
Pass the table data into smartform function module & also below output options. It will trigger the print out without any pop-up.
LS_OUTPUTOPTIONS-TDIMMED = 'X'.
LS_OUTPUTOPTIONS-TDDEST = 'LOCL'.
LS_OPTION-NO_DIALOG = 'X'.
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raja,
This is the way i have worked out for that.
ls_output_options-tdimmed = 'X'.
ls_output_options-xsfcmode = 'X'.
ls_output_options-xsfoutmode = 'S'.
ls_output_options-xsfformat = 'X'.
ls_output_options-tdnewid = 'X'.
ls_output_options-tdsuffix1 = 'LOCL'.
ls_output_options-tddest = 'LOCL'.
ls_control_parameters-preview = 'X'.
ls_control_parameters-no_dialog = 'X'.
ls_control_parameters-getotf = 'X'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = ls_control_parameters-langu
* i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = l_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
CALL FUNCTION me->sf_fm_name
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
cdcy_hrobject = me->cdcy_hrobject
cdcy_create_date = me->cdcy_create_date
cdcy_status_txt = me->cdcy_status_txt
cand_hrobject = me->cand_hrobject
cand_fullname = me->cand_fullname
req_hrobject = me->req_hrobject
req_header = me->req_header
cdcy_info_ui_labels = me->cdcy_info_ui_labels
cdcy_activities = me->cdcy_activities
cdcy_activity_ui_labels = me->cdcy_activity_ui_labels
IMPORTING
job_output_info = ls_job_output_info
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Tell me is it ok for my requirement ie to print the PDF.
With Regards,
SHARMILA BRINDHA.M
Hi Friends,
Please post your ideas regarding this issue.
With Regards,
SHARMILA BRINDHA.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.