on 04-15-2008 7:49 AM
Hi,
I'm trying to convert SAP script form to PDF format and sending it via mail as
attachment. I am able to do it. But, the problem is I need to get the spool
number of the form in the output log of the report.
Now, my form is not listed in the spool. I've set following parameters in the
ITCPO structure.
itcpo-tdgetotf = 'X'.
itcpo-tdpreview = 'X'.
itcpo-tddataset = sy-prdsn.
itcpo-tdnewid = 'X'.
itcpo-tdtitle = 'Test'.
itcpo-tdtest = ' '.
itcpo-tdimmed = 'X'.
itcpo-tddelete = ' '.
I'm passing this structure to OPEN_FORM .yet, i'm not getting spool ID.Can anyone help me know Where i've done the mistake.
Regards,
Bharathi
Hi,
Thanks for your immediate response. But, i'm using SAP script in my case.
Regards,
Bharathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check with this.
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.
Regards,
Kumar(Reward if helpful).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.