Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smart form Background error

Former Member
0 Likes
618

Friends can u help me out in smart form issues?

why the BG job has not triggered the printout immediately even in the Job print specifications are filled (Printer name and Print immediately check while scheduling the Job)

Seems Smartforms need some more parameters to be passed to enable the BG job printing (Not like ABAP list)

So Do we need to  add the parameters (In the input screen)to enable the BG print ?

one more thing the user have used the device type HP9500: so wen i checked in SPAD tcode it was not highlighted with red color.

Does it mean that we should use only lp01?

Plz help me on this .first time working in smart forms.....seems t be urgent also.

regards

sona

3 REPLIES 3
Read only

Former Member
0 Likes
573

Hi,

While calling smartform, paas control_parameters and output_options as mentioned below and set 

user_settings              = ' '.

It will send the smartform output to spool.

DATA: wa_output_options TYPE ssfcompop,

        wa_ctrl TYPE ssfctrlop.

  wa_output_options-tdimmed = 'X'.

  wa_output_options-tddelete = 'X'.

  wa_output_options-tdimmed = ' '.

  wa_output_options-tddest  = 'LOCL'.

  wa_ctrl-no_dialog = 'X'.

  CALL FUNCTION lv_fm_name

    EXPORTING

  •   ARCHIVE_INDEX              =
  •   ARCHIVE_INDEX_TAB          =
  •   ARCHIVE_PARAMETERS         =

   control_parameters         = wa_ctrl

  •   MAIL_APPL_OBJ              =
  •   MAIL_RECIPIENT             =
  •   MAIL_SENDER                =

   output_options             = wa_output_options   user_settings              = ' '      x_adrp                     = x_adrp

  • IMPORTING
  •   DOCUMENT_OUTPUT_INFO       =
  •   JOB_OUTPUT_INFO            =
  •   JOB_OUTPUT_OPTIONS         =
  • 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.

Read only

sivaprasad_paruchuri
Active Participant
0 Likes
573

U have to give the configured device name only...

Regards,
Siva Prasad.

Read only

FredericGirod
Active Contributor
0 Likes
573

Hi,

the job specifications to print immediatly ... is only valid for report (WRITE, ALV...) not for forms like Smartforms & SAPScript

you have to manage this in the caller program of your smartforms or/and in the customizing transaction of the message : VV02, VV12, VV22, VV72 ..... 

so first, give us the Smartforms type (sales order, ...) the code of your caller program

regards

Fred