cancel
Showing results for 
Search instead for 
Did you mean: 

Store Smartforms spool

Former Member
0 Kudos

Dear experts,

I would like to store the spool to sp01, after call smartforms. What parameter should i set for it?

Below is my FM functions.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = gc_form

IMPORTING

fm_name = lf_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

is_header = invoice_header

is_chinese = invoice_chinese

is_nast = nast

is_repeat = repeat

IMPORTING

job_output_info = tab_otf_data

TABLES

it_item = invoice_item

it_batch = invoice_batch

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Thanks and Regards

TEE

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

DATA: cparam type SSFCTRLOP,

outop type ssfcompop,

PER1 TYPE KONV-KBETR.

outop-tddest = 'LOCL'.

*outop-TDIMMED = 'X'.

*outop-TDNEWID = 'X'.

*outop-TDFINAL = 'X'.

*CPARAM-PREVIEW = 'X'.

*CPARAM-NO_DIALOG = 'X'.

CALL FUNCTION W_FMNAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = CPARAM

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = OUTOP

USER_SETTINGS = SPACE

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

ITABFINAL = IT_FINAL

ITABCOND = IT_MAIN

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

Hope this helps u.

Assign points if useful

Former Member
0 Kudos

Hi YUGANDHAR POKALA,

I had set the

outop-tddest = 'LOCL'.

the CPARAM-preview and no_dialog nid to comment it out?

I had done so, but still dont have spool in sp01 after this.

below is my setting

ls_composer_param-TDNOPREV = 'X'.

ls_composer_param-TDNOPRINT = 'X'.

ls_composer_param-TDDATASET = 'VENEVA'.

ls_composer_param-TDNEWID = 'X'.

ls_composer_param-tddest = 'LP01'.

ls_control_param-no_dialog = 'X'.

ls_control_param-preview = 'X'.

ls_control_param-getotf = 'X'.

is that any problem?

thanks

regards

Former Member
0 Kudos

Check these two threads:

After the execution of smartform function module the import parameter JOB_OUTPUT_INFO is populated with data. This is of type SSFCRESCL.

The component SPOOLIDS of JOB_OUTPUT_INFO contains list of spool id generated for smartform..

This spool id can be used to read spool request generated using any standard func module like RSPO_RETURN_ABAP_SPOOLJOB.

See the below thread,

Former Member
0 Kudos

Hi,

thanks vasu_g. may i know after get the data from JOB_OUTPUT_INFO, may i know how to set and store to the spool so i can view in sp01?

thanks regards.