cancel
Showing results for 
Search instead for 
Did you mean: 

Spool Not created

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Thanks for your immediate response. But, i'm using SAP script in my case.

Regards,

Bharathi

Former Member
0 Kudos

Hi

Check this thread

Regards

Shiva

Former Member
0 Kudos

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).