cancel
Showing results for 
Search instead for 
Did you mean: 

samrtform function not getting called....VERY URGENT

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Mark the user settings AS 'X' and Check other Parameters what u r passing in Control Parameters and output options.

Regards

Sandipan

Former Member
0 Kudos

sandipan,

whats the role of user settigns...

why 'X' ?

Former Member
0 Kudos

Hi,

If it is X all the parameter like TDDEST ,TDPRINTER are ignored.

Check This Link for further Details

[http://help.sap.com/saphelp_nw2004s/helpdata/en/84/1f14b517aa11d5b67b006094192fe3/content.htm]

Se under Options for Spool Control

regards

Sandipan

venkat_o
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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