on 10-10-2007 11:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.