cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help to print the SmartForm

Former Member
0 Kudos

But I am facing a problem.

When I am calling the SF with the help of following code----

******************************************************************

START-OF-SELECTION.

Perform Final_data.

perform smart_form.

****************************************************************

Form smart_form.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZCAPTIVE_IN_SMFORM'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

importing

fm_name = lf_fm_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

retcode = sy-subrc.

PERFORM protocol_update.

endif.

call function lf_fm_name TABLES

item_final = item_final

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.

EndForm.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

But after this code I am getting the Print Screen but when I am clicking 'Prient Preview', it is going to the debug mode, it is not Printing the 'Smartform'.

I will be highly oblized if u guide. I need it urgently.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I think you have set a break point in the program lines of the smartforms do as follows.

-> Go with print preview and find the note the statement where it stopped .

-> If that statement is Break point or Break userid remove that break point from that point in the smartform

-> If it is other statement Go to the breakpoints tab in the debugger and select all the break points and delete them and save after deleteing.

or

once you log off and log in again

Thanks,

NN.

Former Member
0 Kudos

hi

check at which line it going on debuging , there may be break-point in ur driver program due to which it going in debugging mode .

and u can check ur SF also for break point .

Edited by: sachin sharma on May 12, 2008 8:38 AM