cancel
Showing results for 
Search instead for 
Did you mean: 

PRINTING PDF

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thku Raja,

I was also in the same path as specfied by you.Could you explain it in a detailed manner pls?

With Regards,

SHARMILA BRINDHA.M

raja_thangamani
Active Contributor
0 Kudos

What more details would you like have?

Raja

Former Member
0 Kudos

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

raja_thangamani
Active Contributor
0 Kudos

If my understanding is correct you want to print the ouput of smartform without showing any popups rite? Correct me if im wrong..

then your code is correct except 2 thinks.


  ls_control_parameters-preview   = space.

remove below code:



  ls_control_parameters-getotf    = 'X'.

Raja

Former Member
0 Kudos

Hi Raja,

You are exactly correct.What I need is that ,I'm having a table in which link is available in name alone.

A print button below the table.Clicking the button should print the smartforms of the corresponding links without any popup.

With Regards,

SHARMILA BRINDHA.M

Former Member
0 Kudos

Thks a lot Raja.Excellent.Now its working fine.

With Regards,

SHARMILA BRINDHA.M

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Friends,

Please post your ideas regarding this issue.

With Regards,

SHARMILA BRINDHA.M

Former Member
0 Kudos

Hi Friends,

Any ideas?

With Regards,

SHRAMILA BRINDHA.M