on 04-09-2008 6:07 AM
Hello friends,
i created a smartform ZIBFIFORM_VOUCHER2,and am calling it in my driver program.
it returns exception 3..(send error)..
why?
if i comment control and output and usersettings..the form is called..
strange huh?
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZIBFIFORM_VOUCHER2'
IMPORTING
fm_name = p_function.
CALL FUNCTION p_function
EXPORTING
CONTROL_PARAMETERS = p_control
OUTPUT_OPTIONS = p_output
USER_SETTINGS = ''
WAG_BKPF = wag_bkpf
IMPORTING
DOCUMENT_OUTPUT_INFO = document_output_info
JOB_OUTPUT_INFO = job_output_info
JOB_OUTPUT_OPTIONS = job_output_options
TABLES
ITG_BSEG = itg_bseg1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE e012 WITH 'Error in Display'.
ENDIF.
Hi,
Please with folllowing details:
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 = ' '
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,
If helpful points(don't forget).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Mark the user settings AS 'X' and Check other Parameters what u r passing in Control Parameters and output options.
Regards
Sandipan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kumar, If you check smartform function module, those 3 exporting parameters control and output and usersettings are optional. So there is no problem to display that is why output is being displayed. I suspect that you might be passing some information through those parameters thats error is coming. Try to find out what u r passing through those parameters. Regards, Venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
venkat,
p_control-langu = 'EN'.
p_control-no_dialog = 'X'.
p_output-tddest = 'LP05'.
p_output-tdnewid = 'X'.
these are all i am passing....
strange..i copied this program from PRODUCTION demo to DEVELOPMENT to make some changes in the form displayed...so i ddint have to touch the driver program(thats what i thought as right thing)..
but it works well in produc demo ...and throws exception in dev
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
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.