on 08-25-2008 3:08 PM
Hi everybody
From a selection screen, a smartform is generated, whereby which before the generation, the standard print screen appears
but now the user wants after the selection screen, a list of the documents appear, with a 'Print' button, which will print all the documents, without the standard print screen appearing
Is it possible?
PREVIEW = space
NO_DIALOG = X
set these print parameters on dynamic FM call for smartform
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry for the misunderstanding but where I should put the settings you mentioned?
in CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' or CALL FUNCTION g_fm_name?
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZZDEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: text-006, text-007, text-008.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
PREVIEW = space
NO_DIALOG = 'X'.
This is the samrtform general Interface. what ever i mentioned in my above post . you pass to the respecitve parameters.
USER_SETTINGS and OUTPUT_OPTIONS
*"*"Global Interface:
*" IMPORTING
*" VALUE(ARCHIVE_INDEX) TYPE TOA_DARA OPTIONAL
*" VALUE(ARCHIVE_INDEX_TAB) TYPE TSFDARA OPTIONAL
*" VALUE(ARCHIVE_PARAMETERS) TYPE ARC_PARAMS OPTIONAL
*" VALUE(CONTROL_PARAMETERS) TYPE SSFCTRLOP OPTIONAL
*" VALUE(MAIL_APPL_OBJ) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_RECIPIENT) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_SENDER) TYPE SWOTOBJID OPTIONAL
*" VALUE(OUTPUT_OPTIONS) TYPE SSFCOMPOP OPTIONAL
*" VALUE(USER_SETTINGS) TYPE TDBOOL DEFAULT 'X'
*" EXPORTING
*" VALUE(DOCUMENT_OUTPUT_INFO) TYPE SSFCRESPD
*" VALUE(JOB_OUTPUT_INFO) TYPE SSFCRESCL
*" VALUE(JOB_OUTPUT_OPTIONS) TYPE SSFCRESOP
its wat youve told to write, correct me if im wrong plz:
Get the function module name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'zDEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
gw_options-tdnoprev = ' '.
gw_options-tddest = ' '.
gw_options-tdnewid = 'X'.
gw_options-tdimmed = 'X'.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: text-006, text-007, text-008.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
user_settings = 'X'
output_options = gw_options.
ENDLOOP.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.