on 12-14-2006 7:17 AM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
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 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.