‎2008 Jul 24 12:52 PM
hi ,
i developed a smartform and also assigned to the tcode using nace. Now while saving the output in pdf format iam getting the express document error.
when i gone into the details of processing log it is saying that form entry is missing but i have written that form entry in my program...then wat si this error .please provide me the solution to resolve it.
Regards,
Rohan.
‎2008 Jul 24 12:58 PM
have you specified the printer ?? I had the same problem and it had to do that it wouldn't recognize the right printer somehow and therefor missed the link to the form
!!
ls_ssf_options-tddest = 'LO02'
!!
I tried to make it bold but markups are not working
ls_ssf_options-tdnoprint = 'X'.
ls_ssf_options-tddest = 'LO02'
*ls_ssf_options-tdprinter = 'SAPWIN'.
*ls_ssf_control-getotf = 'X'.
*ls_ssf_control-no_dialog = 'X'.
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = ls_ssf_control
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = ls_ssf_options
* USER_SETTINGS = 'X'
i_report_type = h_type
i_jaar = so_jaar
i_report_type2 = h_report_type2
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_cats_data = it_ophaal
it_header_pernr = it_header_pernr
it_header_aufnr = it_header_aufnr
it_rooster_data = it_rooster
* 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.
Edited by: A. de Smidt on Jul 24, 2008 1:58 PM
Edited by: A. de Smidt on Jul 24, 2008 1:58 PM
‎2008 Jul 24 12:58 PM
have you specified the printer ?? I had the same problem and it had to do that it wouldn't recognize the right printer somehow and therefor missed the link to the form
!!
ls_ssf_options-tddest = 'LO02'
!!
I tried to make it bold but markups are not working
ls_ssf_options-tdnoprint = 'X'.
ls_ssf_options-tddest = 'LO02'
*ls_ssf_options-tdprinter = 'SAPWIN'.
*ls_ssf_control-getotf = 'X'.
*ls_ssf_control-no_dialog = 'X'.
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = ls_ssf_control
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = ls_ssf_options
* USER_SETTINGS = 'X'
i_report_type = h_type
i_jaar = so_jaar
i_report_type2 = h_report_type2
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_cats_data = it_ophaal
it_header_pernr = it_header_pernr
it_header_aufnr = it_header_aufnr
it_rooster_data = it_rooster
* 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.
Edited by: A. de Smidt on Jul 24, 2008 1:58 PM
Edited by: A. de Smidt on Jul 24, 2008 1:58 PM
‎2008 Jul 24 1:08 PM
read below code & Apply Accordingly in ur Driver Program.
if u found help then reward.
if Doc_No is not INITIAL.
DATA: L_RBKP LIKE IT_Rbkp OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZMM_INVOICEVERIFICATION'
IMPORTING
FM_NAME = fmname
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: CONTROL_PARAMETERS LIKE SSFCTRLOP.
DATA: OUTPUT_OPTIONS TYPE SSFCOMPOP.
PARAMETERS: prtdest type SSFCOMPOP-tddest OBLIGATORY.
DATA: lv_ssf_output type ssfcrescl,
lt_otfdata TYPE TABLE OF itcoo,
L_TEMP TYPE ITCOO. " OCCURS 0 WITH HEADER LINE.
control_PARAMETERS-device = 'PRINTER'.
control_parameters-no_dialog = 'X'.
control_parameters-no_open = 'X'.
CONTROL_PARAMETERS-GETOTF = 'X'.
OUTPUT_OPTIONS-TDDEST = prtdest. "'C2B1'.
OUTPUT_OPTIONS-TDNEWID = 'X'.
OUTPUT_OPTIONS-tddelete = SPACE.
LOOP AT IT_rbkp .
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = output_options
control_parameters = control_PARAMETERS
user_settings = ' '
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.
CLEAR: L_RBKP, lv_ssf_output.
REFRESH : L_RBKP.
MOVE-CORRESPONDING IT_Rbkp TO L_RBKP.
APPEND L_RBKP.
CALL FUNCTION fmname
EXPORTING
W_RECCNT = 1 "W_RECCNT
CONTROL_PARAMETERS = control_parameters
OUTPUT_OPTIONS = output_options
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = lv_ssf_output
JOB_OUTPUT_OPTIONS =
TABLES
I_rbkp = L_RBKP "IT
I_RSEG = IT_RSEG
I_bSEG = IT_bSEG
CREDIT_RSEG = CREDIT_RSEG
DEBIT_RSEG = DEBIT_RSEG
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.
"refresh lt_otfdata.
"lt_otfdata[] = lv_ssf_output-otfdata[].
APPEND LINES OF lv_ssf_output-otfdata TO lt_otfdata.
ENDLOOP.
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF = lt_otfdata
EXCEPTIONS
CONVERT_OTF_TO_PDF_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
Edited by: Anshuman Singh on Jul 24, 2008 2:08 PM