cancel
Showing results for 
Search instead for 
Did you mean: 

Driver program for ADOBE FORM

suchita_phulkar
Active Contributor
0 Kudos

Hi experts ,

Can anyone guide me for writing a driver program for ADOBE forms ( created using SFP transaction) . I have created the form but dont know how to run it using a driver program since i m new to SFP.

Plz help me.

Message was edited by:

suchita phulkar

Accepted Solutions (1)

Accepted Solutions (1)

sreemsft
Contributor
0 Kudos

Hi Suchita,

You can call the Adobe form from your driver program like you call the Smartforms.

check the below example code.

SSF_FUNCTION_MODULE_NAME will generate a FM to your FORM.


call function 'SSF_FUNCTION_MODULE_NAME'
  exporting
    formname           = ls_form_name " ls_form_name is your Formname.
  importing
    fm_name            = lv_funcname
  exceptions
    no_form            = 1
    no_function_module = 2
    others             = 3.
if sy-subrc <> 0.
endif.

  call function lv_funcname
    exporting
      control_parameters = ls_cparam
      output_options     = ls_ooption
      user_settings      = space
      m_title            = 'Summary'
      m_title1           = 'Commissions'
    importing
      job_output_info    = ls_joboutput
    tables
      it_ytd             = lt_ytd
    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.

<i>Please close the post if your problem solved.</i>

Thanks,

Sreekanth

<i>*-- Reward if it helps you</i>

Answers (3)

Answers (3)

suchita_phulkar
Active Contributor
0 Kudos

hi,

i tried that..with f4 i get only following four output devices to choose from :

DC03

LOCL

LP01

LASE .

and i m getting the same errors.

shall i talk to a basis administrator.

thanks & regards,

suchita.

sreemsft
Contributor
0 Kudos

Yes. try to contact BASIS.

Thanks,

Sreekanth

Former Member
0 Kudos

Printer configurations are required, contact your basis people.

suchita_phulkar
Active Contributor
0 Kudos

thanks sreekanth ,

but when i tried the code and gave LOCL as printer type in printer dialog, i got error as "No PDL type has been found for the specified output device" .

and when i tried with LP01. i got the error as "Job alreaqdy started" .

Can u please tell me how to get this done ?

sreemsft
Contributor
0 Kudos

<b>Run it again and</b> Go for F4 help and choose an output device.

Please close the post if your issues is solved.. And reward all Very helpful answers.

Thanks,

Sreekanth

Message was edited by:

Sreekanth Gollamudi

sreemsft
Contributor
0 Kudos

Suchita,

You can check this code.. This is purley to run the ADOBE form, above one is to run a smart form.


*&---------------------------------------------------------------------*
*&      Form  print_form
*&---------------------------------------------------------------------*
*       Subroutine to print the form
*----------------------------------------------------------------------*
FORM print_form .

  DATA : l_fmname TYPE funcname,
         l_params TYPE sfpoutputparams,
         l_docparams TYPE sfpdocparams,
         l_formoutput TYPE fpformoutput.

  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      i_name                    = 'Z_CERT_CONTINU_FORM'
   IMPORTING
     e_funcname                 = l_fmname
*   E_INTERFACE_TYPE           =
            .
*  l_params-getpdf = 'X'.
  l_params-nodialog = ''.
  l_params-preview = 'X'.

  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = l_params
    EXCEPTIONS
      cancel          = 1
      usage_error     = 2
      system_error    = 3
      internal_error  = 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.

  l_docparams-langu = 'E'.

  CALL FUNCTION l_fmname
    EXPORTING
      /1bcdwb/docparams  = l_docparams
      g_regis            = g_regis
      g_date             = g_date
      g_frmname          = g_frmname
      g_comp             = g_comp
    IMPORTING
      /1bcdwb/formoutput = l_formoutput
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


  CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
*   E_RESULT             =
   EXCEPTIONS
     usage_error          = 1
     system_error         = 2
     internal_error       = 3
     OTHERS               = 4
            .
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

ENDFORM.                    " print_form

Thanks,

Sreekanth

<i>*-- Please close the post and do not forget to reward if it helps you</i>